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 +4 -4
- data/lib/activerecord-time/version.rb +1 -1
- data/lib/time_of_day.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4677298acff8f9869c14b23fc953c89c1e0bc4ed
|
4
|
+
data.tar.gz: 39557dc1806bf4d6c4ddfe5b4446f6b28d126c5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fb3768624e83ce2c95267184f87bb50c8de01802b754484655f69182b70369121852bd9221089b7aa166c3bdc629e191365a12de614709498271671f19fadcd
|
7
|
+
data.tar.gz: 5f11b0232811bf67cb7414442d0110b70f7532edc8ad043a17059e4711de4778cdf554efe3adbbb0acaf3eb59ece8694fe6ba516c14b61dd7197e9ef29d0e051
|
data/lib/time_of_day.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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.
|
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
|