sinatra-param 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sinatra-param (0.1.0)
4
+ sinatra-param (0.1.1)
5
5
  sinatra (~> 1.3)
6
6
 
7
7
  GEM
data/lib/sinatra/param.rb CHANGED
@@ -40,7 +40,7 @@ module Sinatra
40
40
 
41
41
  def coerce(param, type, options = {})
42
42
  return nil if param.nil?
43
- return param if param.is_a?(type)
43
+ return param if (param.is_a?(type) rescue false)
44
44
  return Integer(param) if type == Integer
45
45
  return Float(param) if type == Float
46
46
  return String(param) if type == String
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Param
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-param
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-08-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &70343992738160 !ruby/object:Gem::Requirement
16
+ requirement: &70210869854140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70343992738160
24
+ version_requirements: *70210869854140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70343992737380 !ruby/object:Gem::Requirement
27
+ requirement: &70210869853020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.10'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70343992737380
35
+ version_requirements: *70210869853020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack-test
38
- requirement: &70343992736800 !ruby/object:Gem::Requirement
38
+ requirement: &70210869852560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70343992736800
46
+ version_requirements: *70210869852560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70343992736040 !ruby/object:Gem::Requirement
49
+ requirement: &70210869852020 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 0.9.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70343992736040
57
+ version_requirements: *70210869852020
58
58
  description: Parameter Contracts for Sinatra
59
59
  email: m@mattt.me
60
60
  executables: []
@@ -73,6 +73,7 @@ files:
73
73
  - ./LICENSE
74
74
  - ./Rakefile
75
75
  - ./README.md
76
+ - ./sinatra-param-0.1.0.gem
76
77
  - ./sinatra-param.gemspec
77
78
  - spec/exclude_spec.rb
78
79
  - spec/spec_helper.rb
@@ -90,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  segments:
92
93
  - 0
93
- hash: -1546291879647992050
94
+ hash: -4354181681426426125
94
95
  required_rubygems_version: !ruby/object:Gem::Requirement
95
96
  none: false
96
97
  requirements:
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  version: '0'
100
101
  segments:
101
102
  - 0
102
- hash: -1546291879647992050
103
+ hash: -4354181681426426125
103
104
  requirements: []
104
105
  rubyforge_project:
105
106
  rubygems_version: 1.8.15