Created
February 7, 2014 12:04
-
-
Save etehtsea/8861524 to your computer and use it in GitHub Desktop.
grape-options-issue
This file contains 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 'grape' | |
class DemoApp < Grape::API | |
get '/hello' do | |
'Hello!' | |
end | |
end | |
class RootApp < Grape::API | |
version 'v1' | |
mount DemoApp | |
end | |
run RootApp | |
# $ curl -X OPTIONS -i 0.0.0.0:9292/v1/hello 2.1.0 ☺ | |
# HTTP/1.1 404 Not Found | |
# Content-Type: text/html | |
# X-Cascade: pass | |
# Transfer-Encoding: chunked | |
# Server: WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25) | |
# Date: Fri, 07 Feb 2014 12:02:01 GMT | |
# Content-Length: 19 | |
# Connection: Keep-Alive | |
# Not Found% |
This file contains 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
source 'https://rubygems.org' | |
gem 'pry' | |
gem 'grape', github: 'intridea/grape' |
This file contains 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
GIT | |
remote: git://github.com/intridea/grape.git | |
revision: bc0ad13ee2811a5d67a4c09c7c45dcc833a18429 | |
specs: | |
grape (0.7.0) | |
activesupport | |
builder | |
hashie (>= 1.2.0) | |
multi_json (>= 1.3.2) | |
multi_xml (>= 0.5.2) | |
rack (>= 1.3.0) | |
rack-accept | |
rack-mount | |
virtus (>= 1.0.0) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
activesupport (4.0.2) | |
i18n (~> 0.6, >= 0.6.4) | |
minitest (~> 4.2) | |
multi_json (~> 1.3) | |
thread_safe (~> 0.1) | |
tzinfo (~> 0.3.37) | |
atomic (1.1.14) | |
axiom-types (0.0.5) | |
descendants_tracker (~> 0.0.1) | |
ice_nine (~> 0.9) | |
builder (3.2.2) | |
coderay (1.1.0) | |
coercible (1.0.0) | |
descendants_tracker (~> 0.0.1) | |
descendants_tracker (0.0.3) | |
equalizer (0.0.9) | |
hashie (2.0.5) | |
i18n (0.6.9) | |
ice_nine (0.11.0) | |
method_source (0.8.2) | |
minitest (4.7.5) | |
multi_json (1.8.4) | |
multi_xml (0.5.5) | |
pry (0.9.12.6) | |
coderay (~> 1.0) | |
method_source (~> 0.8) | |
slop (~> 3.4) | |
rack (1.5.2) | |
rack-accept (0.4.5) | |
rack (>= 0.4) | |
rack-mount (0.8.3) | |
rack (>= 1.0.0) | |
slop (3.4.7) | |
thread_safe (0.1.3) | |
atomic | |
tzinfo (0.3.38) | |
virtus (1.0.1) | |
axiom-types (~> 0.0.5) | |
coercible (~> 1.0) | |
descendants_tracker (~> 0.0.1) | |
equalizer (~> 0.0.7) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
grape! | |
pry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment