Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'release/2.0.5'

  • Loading branch information...
commit e9addbfe7a4a943dc7be8589e9463afeca015640 2 parents 1e2a5f5 + 87fbc5a
Armand authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/sinatra/ananke.rb
  2. +1 −1  lib/sinatra/version.rb
View
4 lib/sinatra/ananke.rb
@@ -46,8 +46,8 @@ def collect_input_params(params, optional = [], &block)
value = params[param]
case
when value.nil?; value
- when value.to_i.to_s == value; value.to_i
- when value.to_f.to_s == value; value.to_f
+ when value.respond_to?(:to_i) && value.to_i.to_s == value; value.to_i
+ when value.respond_to?(:to_f) && value.to_f.to_s == value; value.to_f
else value
end
end
View
2  lib/sinatra/version.rb
@@ -1,3 +1,3 @@
module Ananke
- VERSION = "2.0.4"
+ VERSION = "2.0.5"
end
Please sign in to comment.
Something went wrong with that request. Please try again.