fugit 1.10.0 → 1.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d32bc8cbff08c0ca8fe2c2037454ca76c208878f26d71398cd46a93729958248
4
- data.tar.gz: ce7d21ce4265c59def186f0e28271def0b74724c99c46814443182039f26cba1
3
+ metadata.gz: dfedcc6bdc1657d09a8c7a4dc23ad0cdb7abe7a78d5ec007477794361f678aaf
4
+ data.tar.gz: 617b8fb21468bb4a6c17294a9c856b2975dd67f5cb6add6569047545a92305ee
5
5
  SHA512:
6
- metadata.gz: fe8facb5f36dd89ec4e03994c6474f3a6e8de371f05322b8c7983d2d9d8769889b475e35a2d0bcc74fb04b59f96ca857a16ffb6a3db50db41a36beff48c57c39
7
- data.tar.gz: d928deee88172c20c15e6960bddfd30b77f3eb7fb0e0edd322baa9ce54932fe476afc7a21985fe3cc65dff3507acd29540f88b51ae27f3e458d060f083a11628
6
+ metadata.gz: c22968c95e4986b091ed498a848a1f18800cb3217af2e1a1a999ac15a979c8fce8243672f33704e125e09c4dde1adb38b33c0ee3c639f355003d00e734e097a1
7
+ data.tar.gz: 99f6e2170a616663f536ddf9d1b627130ff0e4f20277a2b7011b24ecaa50e43ad2a9ce944c51ace296a6151df71583d7f6e921023a91e9aa82c7820389b39abb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## fugit 1.10.1 released 2024-02-29
6
+
7
+ * Fix on Ruby 2.2.6 thanks to @aunghtain, gh-93
8
+
9
+
5
10
  ## fugit 1.10.0 released 2024-02-22
6
11
 
7
12
  * Implement `Fugit::Cron#within(time_start, time_end)`
data/CREDITS.md CHANGED
@@ -1,7 +1,8 @@
1
1
 
2
2
  # fugit credits
3
3
 
4
- * Marcos Belluci, https://github.com/delbetu, gh-88 , 1st and last nat
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 include ::Enumerable
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Fugit
5
5
 
6
- VERSION = '1.10.0'
6
+ VERSION = '1.10.1'
7
7
  end
8
8
 
9
9
  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.10.0
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-22 00:00:00.000000000 Z
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.2.33
119
+ rubygems_version: 3.4.10
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: time tools for flor