zhong 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cf0507becd43b3bd5e220ca807c539eccdc955d
4
- data.tar.gz: 46ae372e6e8b04b970e19ce1d4768552b4dfe044
3
+ metadata.gz: 58363ac3ea11e4bb20aa41811b6242421c858777
4
+ data.tar.gz: 953b201c5d195b2994ab3445b8ccfa1459d93d74
5
5
  SHA512:
6
- metadata.gz: 8c6c347eef8f5520a0119a676a1fb11f322e6a5e947cada7606d50f38030a1d9728bdedb609d95020be7fe3543008ab6986096691c3f8d364a5d080977a5e203
7
- data.tar.gz: 428004dbde08236b4b4018e00b15dadd955e9463b54c3ce735a00b59d74c5b5789072da7e385f3767dc086d024f44fdcc891e5a42e963e412df737c1e68f32ca
6
+ metadata.gz: 5ff2cca40da90cc77edd36aeb921e11a6afaf41bcdff80225ea4e3b859ab1af5394664b8aa167da20fe350ff1d623bfa1f2ab660c95530f811db6345f723fc5e
7
+ data.tar.gz: 755a8b2ee5bb970a1d54b43977237f647fc1d1258cc4e7a0980ccacb37d356f5104b16cc99a6742304e7b7d11f92a859c2e3ea3a5e8804a5169c23bdec5b32f3
@@ -1,6 +1,10 @@
1
+ ## 0.1.2
2
+
3
+ - Fix bug with setting `at` like "**:35".
4
+
1
5
  ## 0.1.1
2
6
 
3
- - Handle multiple ats (at: ["mon 8:00, tues 9:30"]).
7
+ - Handle multiple `at`s (at: ["mon 8:00, tues 9:30"]).
4
8
  - Job callbacks (:before_tick, :after_tick, etc).
5
9
 
6
10
  ## 0.1.0
@@ -3,12 +3,5 @@
3
3
  require "bundler/setup"
4
4
  require "zhong"
5
5
 
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
6
  require "irb"
14
7
  IRB.start
data/bin/zhong CHANGED
@@ -12,4 +12,8 @@ file = "./#{file}" unless file.match(/^[\/.]/)
12
12
 
13
13
  require file
14
14
 
15
+ require "irb"
16
+ IRB.start
17
+
18
+
15
19
  Zhong.start
@@ -27,7 +27,8 @@ module Zhong
27
27
  def next_at(time = Time.now)
28
28
  at_time = @wday.nil? ? time.dup : (time + (@wday - time.wday).days)
29
29
 
30
- at_time = at_time.change(hour: @hour, min: @minute)
30
+ at_time = at_time.change(min: @minute)
31
+ at_time = at_time.change(hour: @hour) if @hour
31
32
 
32
33
  if at_time < @grace.ago
33
34
  if @wday.nil?
@@ -1,3 +1,3 @@
1
1
  module Zhong
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zhong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Elser