time_to 0.0.2 → 0.0.3

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: 10d29b8b9db0123bacf48a451c3bd842fe9eb481e422152c1cd7082cd6e1ae22
4
- data.tar.gz: e17ccb42e0de1e192233618db2dbff9ef8e4f1a179fbd1345c3c9dd5e75b3dc0
3
+ metadata.gz: d6087c97befb5046001111b9dbafc2bb231852c814962fb0b7d9df6f1f1f8d1a
4
+ data.tar.gz: b289e836b5fdcd8c1eef2b6e754f7dee31a81542f7fcbc733a5d1bd7fd187c8d
5
5
  SHA512:
6
- metadata.gz: 40ad179e2b05c528279c187e1d7f420e8f996e3c7eab37b1045f6b82d8e61d28fd2fb11fcefc405e2d5d83cbda23cdb554ec36bed407e74f5b4041ffb6eb40ca
7
- data.tar.gz: 1f9c82773b22808a5f318f745d16f10791c9487be54cae0685a0720447e4e1fd97c62f87039e3d78deb46291d9eb04cc0e1bb53ea71cd8d09eae73285dbae933
6
+ metadata.gz: c866d245efec774f5bb9d727b5b57f6434bffdb59c230fca4bf2ba33e06ea538cd40ff8e6751d7cce01c153ab3d1d6cb3e2bd99c5a24727072764cee01e5aec7
7
+ data.tar.gz: 956d2d992b94f2f75c4649a9b754d666c7d71a325db4e9b13bdf2e828150ecf1fefce580d4101a0c580c103a62d9b961c8e47bbe284760ecb5a8e3a44141a085
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.0.3] - 2021-01-07
10
+ ### Fixed
11
+ - `undefined method 'in_time_zone' for Time`
12
+
9
13
  ## [0.0.2] - 2021-01-07
10
14
  ### Fixed
11
15
  - ActiveSupport::TimeWithZone failed with `undefined method 'at' for Time:Class`
@@ -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
- respond_to?(:zone) ? Time.at(i).in_time_zone(zone) : Time.at(i)
8
+ self.class.respond_to?(:zone) ? Time.at(i).in_time_zone(self.class.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.2'
4
+ VERSION = '0.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_to
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock