et-orbi 1.2.5 → 1.2.7

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: ee673cb530f7c10cff490be7104ce58f7ed2aaba9824169e9598c29f136dc22c
4
- data.tar.gz: 25f5e2700473dfd30ae472388b298a9caa1ceae2bd4ed4985f800953f453c3b4
3
+ metadata.gz: 23ff138170f965f0a2dc35d38aaa08123ddfd97176d76f5e1b2136306eec812e
4
+ data.tar.gz: 193d8bca6b8cfb34f023aadb504e127fd3f187eb64c10f546327510c8f487e04
5
5
  SHA512:
6
- metadata.gz: 68014f7b6df2c3cb55b0ef4b7b7405db4f65ee1e583b95c13dfeb4138cd370a64eeacdd26bf519618613caf4851eea1609c148d1851207cbec1e514ec34f9e48
7
- data.tar.gz: 2f00a51829515e0b9d49b536b2a5914aa916a9eff1ffb623b32416182220b4b635bc12216a247172aee798b4e524f3fc7bac0f5f23c903bf77f22dd39ae8d18d
6
+ metadata.gz: 9a5747b65189567c49a9dda0936bac7d947deaa8a5067ba4d311d1c80032722baae682acfc111488d8c6b3139fa41238dfec645279983449312c6f5aa8881eb9
7
+ data.tar.gz: 2173668af72a6c2aff4e992201d5c74ffe5f87023f6e52c4c42389c28bb8cab4a231c55142bbc9c12513173260c80bf3b372c0ccad555900f6a7efad01e35482
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## et-orbi 1.2.7 released 2022-03-09
6
+
7
+ - Fix the wday_in_month computation for floraison/fugit#67
8
+
9
+
10
+ ## et-orbi 1.2.6 released 2021-10-30
11
+
12
+ - Favour IANA timezone name in EtOrbi.make_time
13
+
14
+
5
15
  ## et-orbi 1.2.5 released 2021-09-18
6
16
 
7
17
  - Re-use the DateTime.parse result
data/CREDITS.md CHANGED
@@ -1,6 +1,9 @@
1
1
 
2
2
  # et-orbi credits
3
3
 
4
+ * phibid, for https://github.com/floraison/fugit/issues/67
5
+ * Peter Goldstein, https://github.com/petergoldstein GHA 3.3 j9.3, gh-32
6
+ * harsha-flipp (https://github.com/harsha-flipp) https://github.com/floraison/fugit/issues/63
4
7
  * adank92 (https://github.com/adank92) https://github.com/ondrejbartas/sidekiq-cron/issues/276 gh-28
5
8
  * Stan Hu (https://github.com/stanhu) Chronic toubles, gh-24, gh-26, etc
6
9
  * d-m-u (https://github.com/d-m-u) EoTime#==(Time), gh-20, gh-7
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- Copyright (c) 2017-2021, John Mettraux, jmettraux+flor@gmail.com
2
+ Copyright (c) 2017-2022, John Mettraux, jmettraux+flor@gmail.com
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
data/lib/et-orbi/make.rb CHANGED
@@ -86,8 +86,8 @@ module EtOrbi
86
86
  z =
87
87
  zone ||
88
88
  get_as_tzone(t) ||
89
- get_tzone(t.zone) ||
90
- get_local_tzone(t)
89
+ get_local_tzone(t) ||
90
+ get_tzone(t.zone)
91
91
 
92
92
  z ||= t.zone
93
93
  # pass the abbreviation anyway,
data/lib/et-orbi/time.rb CHANGED
@@ -326,7 +326,8 @@ module EtOrbi
326
326
 
327
327
  def wday_in_month
328
328
 
329
- [ count_weeks(-1), - count_weeks(1) ]
329
+ [ count_weeks(EtOrbi.make_time(strftime('%F 12:00:00 %/Z')), -1),
330
+ - count_weeks(EtOrbi.make_time(strftime('%F 12:00:00 %/Z')) , 1) ]
330
331
  end
331
332
 
332
333
  def rweek
@@ -385,10 +386,11 @@ module EtOrbi
385
386
  @time ||= @zone.utc_to_local(utc)
386
387
  end
387
388
 
388
- def count_weeks(dir)
389
+ def count_weeks(start, dir)
389
390
 
390
391
  c = 0
391
- t = self
392
+ t = start
393
+
392
394
  until t.month != self.month
393
395
  c += 1
394
396
  t += dir * (7 * 24 * 3600)
data/lib/et-orbi.rb CHANGED
@@ -13,6 +13,6 @@ require 'et-orbi/zone'
13
13
 
14
14
  module EtOrbi
15
15
 
16
- VERSION = '1.2.5'
16
+ VERSION = '1.2.7'
17
17
  end
18
18
 
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.5
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-18 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo