You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Koper, Dies" <di...@fast.au.fujitsu.com> on 2013/02/15 05:50:36 UTC
sinatra docs
Hi Michal,
FYI, I was just experimenting with the online Sinatra docs but noticed
error pages on some:
http://localhost:3001/api/docs/realms/show
http://localhost:3001/api/docs/drivers/show
etc.
127.0.0.1 - - [15/Feb/2013 15:49:55] "GET /api/docs/storage_snapshots
HTTP/1.1" 200 101132 0.0800
E, [2013-02-15T15:49:56.403363 #348] ERROR -- 500: [NoMethodError]
undefined method `capitalize' for :string:Symbol
d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:80:in
`evaluate_source'
d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:75:in
`each'
d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:75:in
`evaluate_source'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.
rb:144:in `cached_evaluate'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.
rb:127:in `evaluate'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/haml.rb:2
4:in `evaluate'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.
rb:76:in `render'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/bas
e.rb:686:in `render_without_format'
d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:35:in
`render'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/bas
e.rb:582:in `haml'
D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.3/lib/sina
tra/rabbit/base.rb:311:in `GET /docs/storage_snapshots/show'
Regards,
Dies Koper
Re: sinatra docs
Posted by Michal Fojtik <mf...@redhat.com>.
On 02/15, Koper, Dies wrote:
Thanks for reporting this!
This was a MRI 1.8 issue. Should be fixed now. I pushed new version to
rubygems, so executing 'gem update sinatra-rabbit' or 'bundle' should
fix it :)
-- Michal
> Hi Michal,
>
> FYI, I was just experimenting with the online Sinatra docs but noticed
> error pages on some:
>
> http://localhost:3001/api/docs/realms/show
> http://localhost:3001/api/docs/drivers/show
> etc.
>
> 127.0.0.1 - - [15/Feb/2013 15:49:55] "GET /api/docs/storage_snapshots
> HTTP/1.1" 200 101132 0.0800
> E, [2013-02-15T15:49:56.403363 #348] ERROR -- 500: [NoMethodError]
> undefined method `capitalize' for :string:Symbol
>
> d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:80:in
> `evaluate_source'
> d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:75:in
> `each'
> d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:75:in
> `evaluate_source'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.
> rb:144:in `cached_evaluate'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.
> rb:127:in `evaluate'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/haml.rb:2
> 4:in `evaluate'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.
> rb:76:in `render'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/bas
> e.rb:686:in `render_without_format'
> d:/sources/OSS/cloud/deltacloud/server/lib/sinatra/rack_accept.rb:35:in
> `render'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/bas
> e.rb:582:in `haml'
> D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.3/lib/sina
> tra/rabbit/base.rb:311:in `GET /docs/storage_snapshots/show'
>
> Regards,
> Dies Koper
>
--
Michal Fojtik <mf...@redhat.com>
Deltacloud API, CloudForms