fugit 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CREDITS.md +2 -1
- data/lib/fugit/cron.rb +8 -1
- data/lib/fugit.rb +1 -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: dfedcc6bdc1657d09a8c7a4dc23ad0cdb7abe7a78d5ec007477794361f678aaf
|
|
4
|
+
data.tar.gz: 617b8fb21468bb4a6c17294a9c856b2975dd67f5cb6add6569047545a92305ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c22968c95e4986b091ed498a848a1f18800cb3217af2e1a1a999ac15a979c8fce8243672f33704e125e09c4dde1adb38b33c0ee3c639f355003d00e734e097a1
|
|
7
|
+
data.tar.gz: 99f6e2170a616663f536ddf9d1b627130ff0e4f20277a2b7011b24ecaa50e43ad2a9ce944c51ace296a6151df71583d7f6e921023a91e9aa82c7820389b39abb
|
data/CHANGELOG.md
CHANGED
data/CREDITS.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
# fugit credits
|
|
3
3
|
|
|
4
|
-
*
|
|
4
|
+
* https://hithub.com/aunghtain, gh-93, include oneliner vs Ruby 2.6.6
|
|
5
|
+
* Marcos Belluci, https://github.com/delbetu, gh-88, 1st and last nat
|
|
5
6
|
* Michael Reinsch, https://github.com/mreinsch, gh-84 and gh-85
|
|
6
7
|
* Marc Anguera, https://github.com/markets, gh-70 and Sidekiq-Cron
|
|
7
8
|
* ski-nine, https://github.com/ski-nine, gh-81
|
data/lib/fugit/cron.rb
CHANGED
|
@@ -320,16 +320,23 @@ module Fugit
|
|
|
320
320
|
|
|
321
321
|
# Used by Fugit::Cron#next and Fugit::Cron#prev
|
|
322
322
|
#
|
|
323
|
-
class CronIterator
|
|
323
|
+
class CronIterator
|
|
324
|
+
include ::Enumerable
|
|
325
|
+
|
|
324
326
|
attr_reader :cron, :start, :current, :direction
|
|
327
|
+
|
|
325
328
|
def initialize(cron, direction, start)
|
|
329
|
+
|
|
326
330
|
@cron = cron
|
|
327
331
|
@start = start
|
|
328
332
|
@current = start.dup
|
|
329
333
|
@direction = direction
|
|
330
334
|
end
|
|
335
|
+
|
|
331
336
|
def each
|
|
337
|
+
|
|
332
338
|
loop do
|
|
339
|
+
|
|
333
340
|
yield(@current = @cron.send(@direction, @current))
|
|
334
341
|
end
|
|
335
342
|
end
|
data/lib/fugit.rb
CHANGED
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.10.
|
|
4
|
+
version: 1.10.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: 2024-02-
|
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: raabro
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
requirements: []
|
|
119
|
-
rubygems_version: 3.
|
|
119
|
+
rubygems_version: 3.4.10
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: time tools for flor
|