fugit 1.5.1 → 1.5.2

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: 8ea3f936965644ad47a2baf7b60d8a16825e8a92966bb5d4ca205f6f77205b0b
4
- data.tar.gz: 00d9608f82444554090bf4839b93b8e2a5196ed6fab378770d06de49bf478a41
3
+ metadata.gz: 7c15d1aa5444c8526cae61312916c90cde61e1e516faa8bdb330ade277ef3669
4
+ data.tar.gz: 5126ecd62951257326cb483e0b694ff4ffe7a02a7ef5eda53359e26aa43b43eb
5
5
  SHA512:
6
- metadata.gz: 1fe5f2034b40d4441c76e36075d9c9a6a31a54ac5c82e9c2961304f58875f75a2d63acd91a264f175b4ec16b74e98e46bd82bbd6e79619c2bd8f469804a4119b
7
- data.tar.gz: 1668baf1ece5ab7d1a8198c67b4d659ab0f900113c7511761cb68242b13f9e4af581d109e46a523260aa9b55ec9d2442da47f680cd5c1794d03efebf5a81ba84
6
+ metadata.gz: d04b7906c8134bc36f98a4cc3a5b598f430f1125c0169aa162cd8f789bb812479cdc17a65154ad6afb9f102b784d4d6a2831fe7a1512ef3a4b81ebe4eca22087
7
+ data.tar.gz: 1de022b1f39ba9a4f9cdeea4eed9427b1b33c3b9e121def7680a481b4036ad7542a4e5340814e7aa4a9937f03cc144b2fc2661975682b3683948cc4b7445bd0e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## fugit 1.5.2 released 2021-09-18
6
+
7
+ * Simplify inc_day, gh-62
8
+
9
+
5
10
  ## fugit 1.5.1 released 2021-08-18
6
11
 
7
12
  * Fix #next_time break issue for America/Santiago into DST, gh-60
data/CREDITS.md CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  # fugit credits
3
3
 
4
+ * Pascal Zumkehr https://github.com/codez gh-62, Santiago into DST vs Time.zone
4
5
  * Ggallardoh https://github.com/Ggallardoh gh-60, America/Santiago into DST
5
6
  * Khaled AbuShqear https://github.com/shqear93 gh-57, "12pm"
6
7
  * John W Higgins https://github.com/wishdev gh-56, 15/30 cron decision
data/lib/fugit/cron.rb CHANGED
@@ -97,14 +97,14 @@ module Fugit
97
97
 
98
98
  inc((24 - @t.hour) * 3600 - @t.min * 60 - @t.sec)
99
99
 
100
- #inc( - @t.hour * 3600) if @t.hour != 0 # compensate for entering DST
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)
100
+ return if @t.hour == 0
101
+
102
+ if @t.hour < 12
103
+ begin
104
+ @t = ::EtOrbi.make(@t.year, @t.month, @t.day, @t.zone)
105
+ rescue ::TZInfo::PeriodNotFound
106
+ inc((24 - @t.hour) * 3600)
107
+ end
108
108
  else
109
109
  inc((24 - @t.hour) * 3600)
110
110
  end
data/lib/fugit.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Fugit
4
4
 
5
- VERSION = '1.5.1'
5
+ VERSION = '1.5.2'
6
6
  end
7
7
 
8
8
  require 'time'
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.1
4
+ version: 1.5.2
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-08-18 00:00:00.000000000 Z
11
+ date: 2021-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raabro