fugit 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fugit might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CREDITS.md +1 -0
- data/lib/fugit.rb +1 -1
- data/lib/fugit/cron.rb +16 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ea3f936965644ad47a2baf7b60d8a16825e8a92966bb5d4ca205f6f77205b0b
|
4
|
+
data.tar.gz: 00d9608f82444554090bf4839b93b8e2a5196ed6fab378770d06de49bf478a41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fe5f2034b40d4441c76e36075d9c9a6a31a54ac5c82e9c2961304f58875f75a2d63acd91a264f175b4ec16b74e98e46bd82bbd6e79619c2bd8f469804a4119b
|
7
|
+
data.tar.gz: 1668baf1ece5ab7d1a8198c67b4d659ab0f900113c7511761cb68242b13f9e4af581d109e46a523260aa9b55ec9d2442da47f680cd5c1794d03efebf5a81ba84
|
data/CHANGELOG.md
CHANGED
data/CREDITS.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
|
2
2
|
# fugit credits
|
3
3
|
|
4
|
+
* Ggallardoh https://github.com/Ggallardoh gh-60, America/Santiago into DST
|
4
5
|
* Khaled AbuShqear https://github.com/shqear93 gh-57, "12pm"
|
5
6
|
* John W Higgins https://github.com/wishdev gh-56, 15/30 cron decision
|
6
7
|
* Karen Sawrey https://github.com/karensawrey gh-47, Mon%2+1 rework idea
|
data/lib/fugit.rb
CHANGED
data/lib/fugit/cron.rb
CHANGED
@@ -83,18 +83,33 @@ module Fugit
|
|
83
83
|
def dec(i); inc(-i); end
|
84
84
|
|
85
85
|
def inc_month
|
86
|
+
|
86
87
|
y = @t.year
|
87
88
|
m = @t.month + 1
|
88
89
|
if m == 13; m = 1; y += 1; end
|
90
|
+
|
89
91
|
@t = ::EtOrbi.make(y, m, @t.zone)
|
92
|
+
|
90
93
|
self
|
91
94
|
end
|
92
95
|
|
93
96
|
def inc_day
|
97
|
+
|
94
98
|
inc((24 - @t.hour) * 3600 - @t.min * 60 - @t.sec)
|
99
|
+
|
95
100
|
#inc( - @t.hour * 3600) if @t.hour != 0 # compensate for entering DST
|
96
|
-
inc( - @t.hour * 3600) if @t.hour > 0 && @t.hour < 7
|
101
|
+
#inc( - @t.hour * 3600) if @t.hour > 0 && @t.hour < 7
|
102
|
+
# leads to gh-60...
|
103
|
+
|
104
|
+
if @t.hour == 0
|
105
|
+
# it's good, carry on...
|
106
|
+
elsif @t.hour < 12
|
107
|
+
@t = ::EtOrbi.make(@t.year, @t.month, @t.day, @t.zone)
|
108
|
+
else
|
109
|
+
inc((24 - @t.hour) * 3600)
|
110
|
+
end
|
97
111
|
end
|
112
|
+
|
98
113
|
def inc_hour
|
99
114
|
inc((60 - @t.min) * 60 - @t.sec)
|
100
115
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fugit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
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-
|
11
|
+
date: 2021-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: raabro
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
rubygems_version: 3.
|
120
|
+
rubygems_version: 3.1.2
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: time tools for flor
|