et-orbi 1.2.6 → 1.2.7
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 +3 -0
- data/LICENSE.txt +1 -1
- 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: 23ff138170f965f0a2dc35d38aaa08123ddfd97176d76f5e1b2136306eec812e
|
4
|
+
data.tar.gz: 193d8bca6b8cfb34f023aadb504e127fd3f187eb64c10f546327510c8f487e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5747b65189567c49a9dda0936bac7d947deaa8a5067ba4d311d1c80032722baae682acfc111488d8c6b3139fa41238dfec645279983449312c6f5aa8881eb9
|
7
|
+
data.tar.gz: 2173668af72a6c2aff4e992201d5c74ffe5f87023f6e52c4c42389c28bb8cab4a231c55142bbc9c12513173260c80bf3b372c0ccad555900f6a7efad01e35482
|
data/CHANGELOG.md
CHANGED
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-
|
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/time.rb
CHANGED
@@ -326,7 +326,8 @@ module EtOrbi
|
|
326
326
|
|
327
327
|
def wday_in_month
|
328
328
|
|
329
|
-
[ count_weeks(
|
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 =
|
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
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.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:
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|