coerce 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/coerce.gemspec +1 -1
- data/lib/coerce.rb +3 -3
- metadata +5 -7
data/coerce.gemspec
CHANGED
data/lib/coerce.rb
CHANGED
@@ -9,7 +9,7 @@ module Coerce
|
|
9
9
|
|
10
10
|
## version
|
11
11
|
#
|
12
|
-
Coerce::Version = '0.0.
|
12
|
+
Coerce::Version = '0.0.3'
|
13
13
|
|
14
14
|
def self.version
|
15
15
|
Coerce::Version
|
@@ -53,9 +53,9 @@ module Coerce
|
|
53
53
|
|
54
54
|
coerce :boolean do |obj|
|
55
55
|
case obj.to_s
|
56
|
-
when %r/^(true|t|1)$/
|
56
|
+
when %r/^(true|t|1|yes|y)$/i
|
57
57
|
true
|
58
|
-
when %r/^(false|f|0)$/
|
58
|
+
when %r/^(false|f|0|no|n)$/i
|
59
59
|
false
|
60
60
|
else
|
61
61
|
!!obj
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ara T. Howard
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-10-13 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: chronic
|
@@ -47,7 +46,6 @@ files:
|
|
47
46
|
- Rakefile
|
48
47
|
- coerce.gemspec
|
49
48
|
- lib/coerce.rb
|
50
|
-
has_rdoc: true
|
51
49
|
homepage: https://github.com/ahoward/coerce
|
52
50
|
licenses: []
|
53
51
|
|
@@ -77,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
75
|
requirements: []
|
78
76
|
|
79
77
|
rubyforge_project: codeforpeople
|
80
|
-
rubygems_version: 1.
|
78
|
+
rubygems_version: 1.8.11
|
81
79
|
signing_key:
|
82
80
|
specification_version: 3
|
83
81
|
summary: coerce
|