fugit 1.5.0 → 1.5.1

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: ae056967c15463b2aed7a2839f383b9965968ae19414d214f37841ccabdeb7e5
4
- data.tar.gz: 33ddf5842af78f3bba3a477800dfde053bee82cde318575f7c78d3e25df8e910
3
+ metadata.gz: 8ea3f936965644ad47a2baf7b60d8a16825e8a92966bb5d4ca205f6f77205b0b
4
+ data.tar.gz: 00d9608f82444554090bf4839b93b8e2a5196ed6fab378770d06de49bf478a41
5
5
  SHA512:
6
- metadata.gz: 13c7b00c76df998cac5c3ab8e754e7519b34c91c4653afa2da3d036d874c020ad10b34d596e20147f0d3c73e8b3904197896d0dd914b093e571d2e699df44632
7
- data.tar.gz: 59422402187e49a0ffe1b53f4798f3cab4427aa734bad7cfac8eafdb001e08728a7577f7c5f83ad197a3eaa06007c3a871714ccc8036fca1cf6361a3ed9f7a23
6
+ metadata.gz: 1fe5f2034b40d4441c76e36075d9c9a6a31a54ac5c82e9c2961304f58875f75a2d63acd91a264f175b4ec16b74e98e46bd82bbd6e79619c2bd8f469804a4119b
7
+ data.tar.gz: 1668baf1ece5ab7d1a8198c67b4d659ab0f900113c7511761cb68242b13f9e4af581d109e46a523260aa9b55ec9d2442da47f680cd5c1794d03efebf5a81ba84
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## fugit 1.5.1 released 2021-08-18
6
+
7
+ * Fix #next_time break issue for America/Santiago into DST, gh-60
8
+
9
+
5
10
  ## fugit 1.5.0 released 2021-06-08
6
11
 
7
12
  * Accept "at 12 noon" and "at 12 midday" as "* 12 * * *", gh-57
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Fugit
4
4
 
5
- VERSION = '1.5.0'
5
+ VERSION = '1.5.1'
6
6
  end
7
7
 
8
8
  require 'time'
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.0
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-06-08 00:00:00.000000000 Z
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.0.3
120
+ rubygems_version: 3.1.2
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: time tools for flor