frenchy 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 138c95435cc74894cf8df639fc13c0778cc3ac92
4
- data.tar.gz: '09a619f4b0f0f98e0986a946ede910d61bfde470'
3
+ metadata.gz: 900479619e9ddf60c44f879d9f1ba83c7176f5b6
4
+ data.tar.gz: 9b6796a87ef2700a544526ea9a7d0d51a2fca979
5
5
  SHA512:
6
- metadata.gz: d87c907a2ed667b3920775aa6cfd023134a4d88faeae7261418c7821758823b078b81b3c9c7e3e4d5ea2a8a67840cab0410b5f24fd189f3d685699746989d85c
7
- data.tar.gz: a0ada1f16dceaea56217eeec439633b428cf3a3d7ae2c0c059eae9bb907d86f9b0becfe2ab5b18998a374149e26b1e650674a2ce450d31782c4582c246311c75
6
+ metadata.gz: 7d727f9ad761e2033e31b133a764390f0e4bc371c0502cd849051c0a4c382f1f7fc556d4af9c8652d427c9fc6db7d8825ca8e1781f826fc18de238fddeeec520
7
+ data.tar.gz: 2478df6e201ec0e38b8afef4d149b1ed4b78f249a1a9c62e2ff11721c4c7c71c7cb167dac3ea60e1b2cf60f095583ecb076835bad024c294656ef72ee9789ae6
@@ -145,7 +145,7 @@ module Frenchy
145
145
  # Convert value to a Time or DateTime. Numbers are treated as unix timestamps,
146
146
  # other values are parsed with DateTime.parse.
147
147
  define_method("#{name}=") do |v|
148
- if v.is_a?(Fixnum)
148
+ if v.is_a?(Integer)
149
149
  set(name, Time.at(v).to_datetime)
150
150
  elsif v.is_a?(DateTime)
151
151
  set(name, v)
@@ -1,3 +1,3 @@
1
1
  module Frenchy
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frenchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Coene