ohm-contrib 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ohm/contrib.rb +1 -1
- data/lib/ohm/contrib/date_validations.rb +2 -3
- metadata +3 -3
data/lib/ohm/contrib.rb
CHANGED
@@ -13,12 +13,11 @@ module Ohm
|
|
13
13
|
|
14
14
|
private
|
15
15
|
def is_date_parseable?(year, month, day)
|
16
|
-
Date.new(
|
16
|
+
Date.new(year.to_i, month.to_i, day.to_i)
|
17
17
|
rescue ArgumentError
|
18
18
|
return false
|
19
19
|
else
|
20
20
|
return true
|
21
21
|
end
|
22
22
|
end
|
23
|
-
end
|
24
|
-
|
23
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 42
|
9
|
+
version: 0.0.42
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Cyril David
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-23 00:00:00 +08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|