time_to 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/time_to/extension.rb +1 -1
- data/lib/time_to/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3ecede1509806785130c77a881ae8d05f0581563732814f1d07f28052483da8
|
4
|
+
data.tar.gz: 1b015e2085bed97f124407b0106762e5a64873578e1eaad4105bc5fc292fdf6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 896c9cae5b41ed271fcf1a448f397552e4e9924666a4edebbab0e2494cb2e63259834dd1b2189461ff00fadab44e31a9dcd547fec011b908cb1f7fb9c0418cee
|
7
|
+
data.tar.gz: a232c97bc9246bbdd8ecc7df8f23e7182e4122bbf9204c4eb484b5f8c1f2384b6de3c32df3df4fbd972bb46cdfd9f99cbd4f6d38353f69fa635f0515d25eb385
|
data/lib/time_to/extension.rb
CHANGED
@@ -5,7 +5,7 @@ module TimeTo::Extension
|
|
5
5
|
|
6
6
|
def to(time, by: DAY)
|
7
7
|
(to_i..time.to_i).step(by).map do |i|
|
8
|
-
|
8
|
+
Time.respond_to?(:zone) ? Time.at(i).in_time_zone(Time.zone) : Time.at(i)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/time_to/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time_to
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trae Robrock
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple gem to make it easy to iterate between time objects.
|
14
14
|
email:
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
|
-
rubygems_version: 3.2.
|
61
|
+
rubygems_version: 3.2.4
|
62
62
|
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: A simple gem to make it easy to iterate between time objects.
|