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.
@@ -1,6 +1,6 @@
1
1
  module Ohm
2
2
  module Contrib
3
- VERSION = "0.0.41"
3
+ VERSION = "0.0.42"
4
4
  end
5
5
 
6
6
  autoload :ActiveModelExtension, "ohm/contrib/active_model_extension"
@@ -13,12 +13,11 @@ module Ohm
13
13
 
14
14
  private
15
15
  def is_date_parseable?(year, month, day)
16
- Date.new(Integer(year), Integer(month), Integer(day))
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
- - 41
9
- version: 0.0.41
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-22 00:00:00 +08:00
17
+ date: 2010-11-23 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency