et-orbi 1.2.3 → 1.2.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: f18b492d498b8c0ff786a9f87e2e37dd71428aaf6ebaa1500b4f6e8fe2c0e200
4
- data.tar.gz: 46d56c7b0561c3b8ac26475ad9cc8893501c1c61748c2d1d0497ade0fa08ea51
3
+ metadata.gz: d149cca00007283238dcce941bdfea63eaeacb4c41750790fae08b5967acbafc
4
+ data.tar.gz: b6fc9ae4924376894010c180b3bd4c8b735b4647635cb7899fa0f8ede1c4f233
5
5
  SHA512:
6
- metadata.gz: 1bdc09efbc0dcaf4ed532e4ec42f45a9a74577e6af132590fc78f0557f7aa7669dd8f37eeabda27feee2f65a995bcc36c55c4a9c7fe90b5105585657eb919525
7
- data.tar.gz: 7a503eb5a07fe006d43d05a9ace9cc23839e91e6caf710c73afb000726cbee1abda561efd3adb43cd636504f3ae37580274ea80834f9c6f0bcca8091ed55e7dd
6
+ metadata.gz: 32858697fce82e2ad0d58fa913b8eaf91b4104f6afdb2c447d27edf3dbadc7a6af9610cfdc98d5f1d821f47f604c961417599c5a1a4116cc2e27f7a799c30cde
7
+ data.tar.gz: 0c507744256eac6fd376b1023ff2da5c3c73c35cded7cc61ccd5d98ab0ad97a3e6356374aec386dc4a807c8ae1bfd35a340e57b28d04f34b6fb3a989b487f752
@@ -2,6 +2,12 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## et-orbi 1.2.4 released 2020-03-18
6
+
7
+ - Do not call Chronic (even if enabled) from make_from_array, gh-28
8
+ - Be modern, use strftime '%6N', join Ruby 2.x :-)
9
+
10
+
5
11
  ## et-orbi 1.2.3 released 2020-03-06
6
12
 
7
13
  - Introduce EtOrbi.chronic_enabled = false and EtOrbi.chronic_enabled?, gh-26
data/CREDITS.md CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  # et-orbi credits
3
3
 
4
+ * adank92 (https://github.com/adank92) https://github.com/ondrejbartas/sidekiq-cron/issues/276 gh-28
4
5
  * Stan Hu (https://github.com/stanhu) Chronic toubles, gh-24, gh-26, etc
5
6
  * d-m-u (https://github.com/d-m-u) EoTime#==(Time), gh-20, gh-7
6
7
  * Vais Salikhov (https://github.com/vais) missing US timezone aliases, gh-18 gh-19
data/Makefile CHANGED
@@ -31,7 +31,7 @@ build: gemspec_validate
31
31
  mv $(NAME)-$(VERSION).gem pkg/
32
32
 
33
33
  push: build
34
- gem push pkg/$(NAME)-$(VERSION).gem
34
+ gem push --otp "$(OTP)" pkg/$(NAME)-$(VERSION).gem
35
35
 
36
36
  spec:
37
37
  bundle exec rspec
@@ -13,6 +13,6 @@ require 'et-orbi/zone'
13
13
 
14
14
  module EtOrbi
15
15
 
16
- VERSION = '1.2.3'
16
+ VERSION = '1.2.4'
17
17
  end
18
18
 
@@ -105,10 +105,9 @@ module EtOrbi
105
105
 
106
106
  def make_from_array(a, zone)
107
107
 
108
- t = Time.utc(*a)
109
- s = t.strftime("%Y-%m-%d %H:%M:%S.#{'%06d' % t.usec}")
110
-
111
- make_from_string(s, zone)
108
+ parse(
109
+ Time.utc(*a).strftime('%Y-%m-%d %H:%M:%S.%6N'), # not a Chronic string
110
+ zone: zone, enable_chronic: false)
112
111
  end
113
112
 
114
113
  def make_from_string(s, zone)
@@ -296,7 +296,7 @@ module EtOrbi
296
296
 
297
297
  def to_time_s
298
298
 
299
- strftime("%H:%M:%S.#{'%06d' % usec}")
299
+ strftime('%H:%M:%S.%6N')
300
300
  end
301
301
 
302
302
  def inc(t, dir=1)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et-orbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-06 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo
@@ -97,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.7.6.2
100
+ rubygems_version: 3.0.3
102
101
  signing_key:
103
102
  specification_version: 4
104
103
  summary: time with zones