This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Domain where integrity will be running from. This is used to have | |
| # nice URLs in your notifications. | |
| # For example: | |
| # http://builder.integrityapp.com | |
| :base_uri: http://integrity.domain.tld | |
| # This should be a complete connection string to your database. For example | |
| # `mysql://user@localhost/integrity` (you need an `integrity` db created in | |
| # localhost, of course). | |
| :database_uri: sqlite3://integrity.db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is what happened: | |
| table integrity_builds has no column named commit_identifier Query: INSERT INTO "integrity_builds" ("commit_identifier", "successful", "output", "updated_at", "commit_metadata", "created_at", "project_id") VALUES ('e8d36e8c51f92fe2e446d349d85b47d2f25dd0a6', 'f', '(in /private/tmp/foo/builds/sinatra-sinatra-master) Loaded suite /Users/blakemizerany/.gems/gems/rake-0.8.1/lib/rake/rake_test_loader Started ...............................................................................................E.................................................................................................... Finished in 0.53781 seconds. 1) Error: test_will_make_sure_any_public_methods_added_via_default_register_are_delegated_to_sinatra__delegator(RegisteringextensionsTest): TypeError: wrong argument type Symbol (expected Proc) ./test/extensions_test.rb:47:in `test_will_make_sure_any_public_methods_added_via_default_register_are_delegated_to_sinatra__delegator'' 196 tests, 376 assertions, 0 fail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| master!sinatra> rake | |
| (in /Users/blakemizerany/projects/sinatra) | |
| Loaded suite /Users/blakemizerany/.gems/gems/rake-0.8.1/lib/rake/rake_test_loader | |
| Started | |
| ...............................................................................................E.................................................................................................... | |
| Finished in 0.55055 seconds. | |
| 1) Error: | |
| test_will_make_sure_any_public_methods_added_via_default_register_are_delegated_to_sinatra__delegator(RegisteringextensionsTest): | |
| TypeError: wrong argument type Symbol (expected Proc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'sinatra/base' | |
| class Server < Sinatra::Base | |
| get '/' do | |
| 'hey!' | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require File.dirname(__FILE__) + '/lib/openlinuxrouter' | |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'activerecord' | |
| enable :sessions | |
| #load modules | |
| configure do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'sinatra/base' | |
| class FooApp < Sinatra::Base | |
| get '/' do | |
| 'Hello from ' + request.path_info | |
| end | |
| end | |
| map '/foo' do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'sinatra' | |
| disable :reload | |
| use Rack::Session::Pool | |
| get '/' do | |
| session["counter"] ||= 0 | |
| session["counter"] += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Alt to http://gist.github.com/58432 to keep reloading | |
| require 'rubygems' | |
| require 'sinatra' | |
| app_file = File.dirname(__FILE__) + '/myapp.rb' | |
| require app_file | |
| set :app_file => app_file | |
| use Rack::Session::Pool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| my_rails_app | |
| \_ lib | |
| \_ config | |
| \_ ... etc ... | |
| \_ flex | |
| \_ ... flex app stuff ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Foo < Sinatra::Base | |
| get '/' do | |
| 'hi!' | |
| end | |
| end |