ananke 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,8 +46,8 @@ module Sinatra
46
46
  value = params[param]
47
47
  case
48
48
  when value.nil?; value
49
- when value.to_i.to_s == value; value.to_i
50
- when value.to_f.to_s == value; value.to_f
49
+ when value.respond_to?(:to_i) && value.to_i.to_s == value; value.to_i
50
+ when value.respond_to?(:to_f) && value.to_f.to_s == value; value.to_f
51
51
  else value
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module Ananke
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ananke
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.4
5
+ version: 2.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andries Coetzee
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-23 00:00:00 Z
13
+ date: 2012-01-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colored
@@ -99,8 +99,8 @@ extensions: []
99
99
  extra_rdoc_files: []
100
100
 
101
101
  files:
102
- - lib/sinatra/ananke.rb
103
102
  - lib/sinatra/version.rb
103
+ - lib/sinatra/ananke.rb
104
104
  - README.rdoc
105
105
  homepage: http://github.com/hasandries/ananke
106
106
  licenses: []
@@ -131,3 +131,4 @@ specification_version: 3
131
131
  summary: The Awesome ReST framework
132
132
  test_files: []
133
133
 
134
+ has_rdoc: