activerecord-time 0.8.0 → 0.9.0

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: 1dd3abdb57563a7a23de8e40e0e23d4413c80053
4
- data.tar.gz: 4c43da1a4b7ad61c534ee949a8b90407d81d5363
3
+ metadata.gz: 4677298acff8f9869c14b23fc953c89c1e0bc4ed
4
+ data.tar.gz: 39557dc1806bf4d6c4ddfe5b4446f6b28d126c5b
5
5
  SHA512:
6
- metadata.gz: '091eb06ba8c9c8d5cc3c700a98c915be578703c09b357f9ea86f00ddc9f4b23e6048bb12e7eff2e40537d7eb9ab98a8fbf496bfca7e3c3e1db07cf7ed1e451a0'
7
- data.tar.gz: 5898cf0e03e049d9ca0d4a88f7a4baba78f4dd5c3533c5b167ee8e2943c1adb55943e3c2e8cf2287638a65553bca161ff79c4db2e260255c15ebb8b061a37dc8
6
+ metadata.gz: 6fb3768624e83ce2c95267184f87bb50c8de01802b754484655f69182b70369121852bd9221089b7aa166c3bdc629e191365a12de614709498271671f19fadcd
7
+ data.tar.gz: 5f11b0232811bf67cb7414442d0110b70f7532edc8ad043a17059e4711de4778cdf554efe3adbbb0acaf3eb59ece8694fe6ba516c14b61dd7197e9ef29d0e051
@@ -1,5 +1,5 @@
1
1
  module Activerecord
2
2
  module Time
3
- VERSION = '0.8.0'.freeze
3
+ VERSION = '0.9.0'.freeze
4
4
  end
5
5
  end
@@ -100,7 +100,8 @@ end
100
100
  class Date
101
101
  def at(time_of_day)
102
102
  time_of_day = TimeOfDay.parse(time_of_day) if time_of_day.is_a?(String)
103
- Time.local(year, month, day, time_of_day.hour, time_of_day.minute, time_of_day.second)
103
+ zone = Time.zone || Time
104
+ zone.local(year, month, day, time_of_day.hour, time_of_day.minute, time_of_day.second)
104
105
  end
105
106
  end
106
107
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-19 00:00:00.000000000 Z
11
+ date: 2017-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.6.8
177
+ rubygems_version: 2.6.11
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: A handler for storing TimeOfDay objects in ActiveRecord objects as sql time