zhong 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/bin/console +0 -7
- data/bin/zhong +4 -0
- data/lib/zhong/at.rb +2 -1
- data/lib/zhong/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58363ac3ea11e4bb20aa41811b6242421c858777
|
4
|
+
data.tar.gz: 953b201c5d195b2994ab3445b8ccfa1459d93d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ff2cca40da90cc77edd36aeb921e11a6afaf41bcdff80225ea4e3b859ab1af5394664b8aa167da20fe350ff1d623bfa1f2ab660c95530f811db6345f723fc5e
|
7
|
+
data.tar.gz: 755a8b2ee5bb970a1d54b43977237f647fc1d1258cc4e7a0980ccacb37d356f5104b16cc99a6742304e7b7d11f92a859c2e3ea3a5e8804a5169c23bdec5b32f3
|
data/CHANGELOG.md
CHANGED
data/bin/console
CHANGED
@@ -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
data/lib/zhong/at.rb
CHANGED
@@ -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(
|
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?
|
data/lib/zhong/version.rb
CHANGED