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 +4 -4
- data/CHANGELOG.md +5 -0
- data/CREDITS.md +6 -6
- data/lib/et-orbi/time.rb +5 -3
- data/lib/et-orbi.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12da146d4d75a3fb39edea976685cd6117958484f265f6a7eff404a4f9726224
|
4
|
+
data.tar.gz: b772af0f0e49c040ef15e3b2d23a61b28b540cc7d69f3e338f6fca719057c94b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56992ab662dc9ddcfbf6975332f7e44ee4a0c8eb5a90d519dbc8cd79da0847626f90451c21d5080eee440ba65c93cb16a939d20bb94b442eb5b05ce86cd6eea3
|
7
|
+
data.tar.gz: 6c04743276d444c5d7e38a852c385d643af9e8969f03de382c38661bf61ee6f692a1bebadb7c1700318aa99392c4292b592dbcbc27557cbc15d71e203a47e31a
|
data/CHANGELOG.md
CHANGED
data/CREDITS.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
2
|
# et-orbi credits
|
3
3
|
|
4
|
-
* Benjami Darcet
|
5
|
-
*
|
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
|
10
|
-
* adank92
|
11
|
-
* Stan Hu
|
12
|
-
* d-m-u
|
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
|
-
((
|
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
|
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
|
-
((
|
369
|
+
((noon - @ref) / DAY_S).floor + 1
|
368
370
|
end
|
369
371
|
|
370
372
|
def reach(points)
|
data/lib/et-orbi.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|