Permalink
Browse files

Gemfile and rspec support in development.

  • Loading branch information...
1 parent b3eb48d commit f4123929286dc80d53363444a585b4dd63af5724 Martin Bilski committed Jan 8, 2013
Showing with 59 additions and 7 deletions.
  1. +1 −0 .rspec
  2. +6 −0 Gemfile
  3. +45 −0 Gemfile.lock
  4. +1 −1 rspec-cramp.gemspec
  5. +4 −4 spec/rspec_cramp_spec.rb
  6. +2 −2 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+--color
View
@@ -0,0 +1,6 @@
+source :rubygems
+gemspec
+
+gem "cramp"
+gem "rspec"
+gem "http_router", '>= 0.11'
View
@@ -0,0 +1,45 @@
+PATH
+ remote: .
+ specs:
+ rspec-cramp (0.1.1)
+ cramp (~> 0.15)
+ eventmachine (~> 1.0.0.beta.3)
+ http_router (>= 0.11)
+ rack (~> 1.3.2)
+ rspec (~> 2.6)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (3.0.18)
+ cramp (0.15.1)
+ activesupport (~> 3.0.9)
+ eventmachine (~> 1.0.0.beta.3)
+ rack (~> 1.3.2)
+ thor (~> 0.14.6)
+ diff-lcs (1.1.3)
+ eventmachine (1.0.0)
+ http_router (0.11.0)
+ rack (>= 1.0.0)
+ url_mount (~> 0.2.1)
+ rack (1.3.8)
+ rspec (2.12.0)
+ rspec-core (~> 2.12.0)
+ rspec-expectations (~> 2.12.0)
+ rspec-mocks (~> 2.12.0)
+ rspec-core (2.12.2)
+ rspec-expectations (2.12.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.12.1)
+ thor (0.14.6)
+ url_mount (0.2.1)
+ rack
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ cramp
+ http_router (>= 0.11)
+ rspec
+ rspec-cramp!
View
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.add_dependency('cramp', '~> 0.15')
s.add_dependency('rack', '~> 1.3.2')
s.add_dependency('eventmachine', '~> 1.0.0.beta.3')
- s.add_dependency('http_router', '~> 0.10')
+ s.add_dependency('http_router', '>= 0.11')
s.add_dependency('rspec', '~> 2.6')
s.files = Dir['README.md', 'MIT-LICENSE', 'lib/**/*', 'spec/**/*']
s.has_rdoc = false
@@ -132,10 +132,10 @@ def routes
add('/raise_on_finish').to RaiseOnFinish
add('/sse').to SseAction
add('/sse_no_render').to SseNoRenderAction
- add('/get_only').request_method('GET').to SuccessfulResponse
- add('/post_only').request_method('POST').to SuccessfulResponse
- add('/put_only').request_method('PUT').to SuccessfulResponse
- add('/delete_only').request_method('DELETE').to SuccessfulResponse
+ get('/get_only').to SuccessfulResponse
+ post('/post_only').to SuccessfulResponse
+ put('/put_only').to SuccessfulResponse
+ delete('/delete_only').to SuccessfulResponse
add('/request_headers').to RequestHeaders
add('/request_params').to RequestParams
end
View
@@ -1,6 +1,6 @@
require "rubygems"
-require "cramp"
-require "rspec"
+require "bundler/setup"
+
require "http_router"
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

0 comments on commit f412392

Please sign in to comment.