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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6087c97befb5046001111b9dbafc2bb231852c814962fb0b7d9df6f1f1f8d1a
4
- data.tar.gz: b289e836b5fdcd8c1eef2b6e754f7dee31a81542f7fcbc733a5d1bd7fd187c8d
3
+ metadata.gz: c3ecede1509806785130c77a881ae8d05f0581563732814f1d07f28052483da8
4
+ data.tar.gz: 1b015e2085bed97f124407b0106762e5a64873578e1eaad4105bc5fc292fdf6d
5
5
  SHA512:
6
- metadata.gz: c866d245efec774f5bb9d727b5b57f6434bffdb59c230fca4bf2ba33e06ea538cd40ff8e6751d7cce01c153ab3d1d6cb3e2bd99c5a24727072764cee01e5aec7
7
- data.tar.gz: 956d2d992b94f2f75c4649a9b754d666c7d71a325db4e9b13bdf2e828150ecf1fefce580d4101a0c580c103a62d9b961c8e47bbe284760ecb5a8e3a44141a085
6
+ metadata.gz: 896c9cae5b41ed271fcf1a448f397552e4e9924666a4edebbab0e2494cb2e63259834dd1b2189461ff00fadab44e31a9dcd547fec011b908cb1f7fb9c0418cee
7
+ data.tar.gz: a232c97bc9246bbdd8ecc7df8f23e7182e4122bbf9204c4eb484b5f8c1f2384b6de3c32df3df4fbd972bb46cdfd9f99cbd4f6d38353f69fa635f0515d25eb385
@@ -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
- self.class.respond_to?(:zone) ? Time.at(i).in_time_zone(self.class.zone) : Time.at(i)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TimeTo
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
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.3
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-01-07 00:00:00.000000000 Z
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.3
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.