et-orbi 1.2.9 → 1.2.10

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: 435f9eb2e9b27822b9ee161fbe2449375cb710e1e01b8f3313c61983424aba85
4
- data.tar.gz: a72603974625eb4e8c49e89c3a317002ea8661adbaa461c2d143450bd8b9c40a
3
+ metadata.gz: 12da146d4d75a3fb39edea976685cd6117958484f265f6a7eff404a4f9726224
4
+ data.tar.gz: b772af0f0e49c040ef15e3b2d23a61b28b540cc7d69f3e338f6fca719057c94b
5
5
  SHA512:
6
- metadata.gz: b45a1917c605b29254c97d5ab27d1b5e894cb2e9ed01b27594a19b8a52fc16c18fe6f59d56a362cedc0e0d3131278ec2d0d288427a132ce2b5152a7b0404ab22
7
- data.tar.gz: dd28bbd9b3fe1ad3feb0088284a01f909453afd1ae56ba3c910215d85d9af793fdf3042adc27fa1789bc646412abb2643f0543c1b7bb2fa8e02aa50a57771f33
6
+ metadata.gz: 56992ab662dc9ddcfbf6975332f7e44ee4a0c8eb5a90d519dbc8cd79da0847626f90451c21d5080eee440ba65c93cb16a939d20bb94b442eb5b05ce86cd6eea3
7
+ data.tar.gz: 6c04743276d444c5d7e38a852c385d643af9e8969f03de382c38661bf61ee6f692a1bebadb7c1700318aa99392c4292b592dbcbc27557cbc15d71e203a47e31a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## et-orbi 1.2.10 released 2024-03-22
6
+
7
+ - Refine #rweek computation, aim more at noon instead of midnight, gh-38
8
+
9
+
5
10
  ## et-orbi 1.2.9 released 2024-03-13
6
11
 
7
12
  - Refine #rweek computation, aim at noon instead of midnight, gh-38
data/CREDITS.md CHANGED
@@ -1,15 +1,15 @@
1
1
 
2
2
  # et-orbi credits
3
3
 
4
- * Benjami Darcet @bdarcet https://github.com/floraison/fugit/issues/67 gh-38
5
- * @franckduche https://github.com/floraison/fugit/issues/67 gh-38
4
+ * Benjami Darcet https://github.com/bdarcet https://github.com/floraison/fugit/issues/67 gh-38
5
+ * https://github.com/franckduche https://github.com/floraison/fugit/issues/67 gh-38
6
6
  * Igor Viktor https://github.com/gogainda gh-34
7
7
  * phibid, for https://github.com/floraison/fugit/issues/67
8
8
  * Peter Goldstein, https://github.com/petergoldstein GHA 3.3 j9.3, gh-32
9
- * harsha-flipp (https://github.com/harsha-flipp) https://github.com/floraison/fugit/issues/63
10
- * adank92 (https://github.com/adank92) https://github.com/ondrejbartas/sidekiq-cron/issues/276 gh-28
11
- * Stan Hu (https://github.com/stanhu) Chronic toubles, gh-24, gh-26, etc
12
- * d-m-u (https://github.com/d-m-u) EoTime#==(Time), gh-20, gh-7
9
+ * harsha-flipp https://github.com/harsha-flipp https://github.com/floraison/fugit/issues/63
10
+ * adank92 https://github.com/adank92 https://github.com/ondrejbartas/sidekiq-cron/issues/276 gh-28
11
+ * Stan Hu https://github.com/stanhu Chronic toubles, gh-24, gh-26, etc
12
+ * d-m-u https://github.com/d-m-u EoTime#==(Time), gh-20, gh-7
13
13
  * Vais Salikhov (https://github.com/vais) missing US timezone aliases, gh-18 gh-19
14
14
  * Wenhui Wang https://github.com/w11th .parse vs Chronic+ActiveSupport, fugit 11
15
15
  * Marcel https://github.com/MTRNord "Mitteleuropaeische Sommerzeit", gh-15
data/lib/et-orbi/time.rb CHANGED
@@ -354,17 +354,19 @@ module EtOrbi
354
354
  def rweek
355
355
 
356
356
  @ref ||= EtOrbi.make_time('2019-01-01 12:00:00', @zone)
357
+ noon = EtOrbi.make_time(strftime('%F 12:00:00'), @zone)
357
358
 
358
- ((self - @ref) / WEEK_S).floor + 1
359
+ ((noon - @ref) / WEEK_S).floor + 1
359
360
  end
360
361
 
361
362
  # "reference week", used in fugit for cron modulo notation
362
363
  #
363
364
  def rday
364
365
 
365
- @ref ||= EtOrbi.make_time('2019-01-01 00:00:00', @zone)
366
+ @ref ||= EtOrbi.make_time('2019-01-01 12:00:00', @zone)
367
+ noon = EtOrbi.make_time(strftime('%F 12:00:00'), @zone)
366
368
 
367
- ((self - @ref) / DAY_S).floor + 1
369
+ ((noon - @ref) / DAY_S).floor + 1
368
370
  end
369
371
 
370
372
  def reach(points)
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.9'
16
+ VERSION = '1.2.10'
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.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-13 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo