Skip to content

Commit 7dfad4a

Browse files
committed
Initial commit
Check in Gemfile, .lock, and web.rb that has a simple sinatra server with two endpoints
0 parents  commit 7dfad4a

5 files changed

Lines changed: 90 additions & 0 deletions

File tree

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
ruby '2.4.0'
3+
4+
gem 'sinatra', '~>1.4.4'
5+
gem 'json'

Gemfile.lock

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
json (2.0.2)
5+
rack (1.6.5)
6+
rack-protection (1.5.3)
7+
rack
8+
sinatra (1.4.8)
9+
rack (~> 1.5)
10+
rack-protection (~> 1.4)
11+
tilt (>= 1.3, < 3)
12+
tilt (2.0.7)
13+
14+
PLATFORMS
15+
ruby
16+
17+
DEPENDENCIES
18+
json
19+
sinatra (~> 1.4.4)
20+
21+
RUBY VERSION
22+
ruby 2.4.0p0
23+
24+
BUNDLED WITH
25+
1.14.6

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 - Assertible, Inc (Cody Reichert, Christopher Reichert)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
# Post-deploy testing pipeline example in Ruby with Assertible and Codeship
4+
5+
This is an example of **an automated post-deployment testing
6+
pipeline** on staging and production environments, with a sample Ruby
7+
API. The project
8+
uses [Codehsip](https://codeship.com), [Heroku](https://heroku.com),
9+
and [assertible](https://assertible).
10+
11+
## How it work
12+
13+
1. Push code to a repository, which is picked up a Codeship.
14+
2. Have a custom deploy script in Codeship to deliver the application
15+
to Heroku.
16+
3. Send a deployment event to Assertible to execute a series of API
17+
tests on the new app.
18+
19+
## License
20+
21+
The code in this repository is licensed under
22+
MIT. [View the license](https://github.com/assertible/deployments/blob/master/LICENSE)
23+
24+
---
25+
26+
> [assertible.com](http://assertible.com) &nbsp;&middot;&nbsp;
27+
> GitHub [@assertible](https://github.com/assertible) &nbsp;&middot;&nbsp;
28+
> Twitter [@AssertibleApp](https://twitter.com/AssertibleApp)

web.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'json'
2+
require 'sinatra'
3+
4+
get '/' do
5+
"Hello, world!"
6+
end
7+
8+
get '/things.json' do
9+
content_type :json
10+
{ :type => 'thing' }.to_json
11+
end

0 commit comments

Comments
 (0)