ensure we have newlines around our config. closes #1025

This commit is contained in:
Michael Hobbs
2015-03-09 19:07:50 -07:00
parent 2922a95ff6
commit 88cd81e390
9 changed files with 80 additions and 3 deletions

1
tests/apps/ruby/CHECKS Normal file
View File

@@ -0,0 +1 @@
/ Hello, world

5
tests/apps/ruby/Gemfile Normal file
View File

@@ -0,0 +1,5 @@
source 'https://rubygems.org'
ruby '2.1.5'
gem 'sinatra', '~>1.4.4'
gem 'thin'

View File

@@ -0,0 +1,24 @@
GEM
remote: https://rubygems.org/
specs:
daemons (1.1.9)
eventmachine (1.0.3)
rack (1.5.2)
rack-protection (1.5.2)
rack
sinatra (1.4.4)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
thin (1.6.1)
daemons (>= 1.0.9)
eventmachine (>= 1.0.0)
rack (>= 1.0.0)
tilt (1.4.1)
PLATFORMS
ruby
DEPENDENCIES
sinatra (~> 1.4.4)
thin

1
tests/apps/ruby/Procfile Normal file
View File

@@ -0,0 +1 @@
web: bundle exec ruby web.rb -p $PORT

33
tests/apps/ruby/README.md Normal file
View File

@@ -0,0 +1,33 @@
# ruby-sample
This is a barebones Ruby app using the [Sinatra](http://www.sinatrarb.com) framework.
## Running Locally
Asumming you have [Ruby](https://www.ruby-lang.org), [Bundler](http://bundler.io) and [Heroku Toolbelt](https://toolbelt.heroku.com) installed on your machine:
```sh
git clone git@github.com:heroku/ruby-sample.git # or clone your own fork
cd ruby-sample
bundle
foreman start
```
Your app should now be running on [localhost:5000](http://localhost:5000/).
## Deploying to Heroku
```
heroku create
git push heroku master
heroku open
```
## Documentation
For more information about using Ruby on Heroku, see these Dev Center articles:
- [Ruby on Heroku](https://devcenter.heroku.com/categories/ruby)
- [Getting Started with Ruby on Heroku](https://devcenter.heroku.com/articles/getting-started-with-ruby)
- [Getting Started with Rails 4.x on Heroku](https://devcenter.heroku.com/articles/getting-started-with-rails4)
- [Heroku Ruby Support](https://devcenter.heroku.com/articles/ruby-support)

2
tests/apps/ruby/check_deploy Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
set -e; output="$(curl -s -S "$1")"; echo "$output"; test "$output" == "Hello, world"

5
tests/apps/ruby/web.rb Normal file
View File

@@ -0,0 +1,5 @@
require 'sinatra'
get '/' do
"Hello, world"
end