chronic_cron 0.3.3 → 0.3.4
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
- checksums.yaml.gz.sig +1 -2
- data.tar.gz.sig +0 -0
- data/lib/chronic_cron.rb +11 -2
- metadata +13 -12
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6dd6d184a923260a92b40fdeb47c9e06fcfc7e02
|
|
4
|
+
data.tar.gz: d7e7081023a8848c800eaaf251df9cd7f794e890
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b96aa9c3b441227bc8d118cca5f7faf934a223ecdb45a51e483c4c28b5f5bb74ebc769334eb2dda125ff7fdeaa88427e145f23c3d8c5e883e75ce9b2e7b71114
|
|
7
|
+
data.tar.gz: f522e61eddaef3ac946a579e45ab10ee85eede45174ea1063c20b30f474996d58384bfe18767915f3fd587bc478c88279fbe136b69bb64e3d15bc9f155569be5
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
��b�������� ��ld��C�8�F�)�X�Ms3W�k@Ѥ��L�w��g�5��\Y���9�6��-�7=�RV5�=�A` ��s���:a��q�#)1����8��'xA�ß�e�K*�)�;*��@TV�J��◭9����GBJlN�o�5����_��Ǔ���8�J���p}��k�ٝ']*��.���aF,���N��D�r�ҜI ����f�
|
|
1
|
+
�O �0�����0`tg�0�����J��`��5/y 3��\wc4z�U��É��V\�����i4�p,�S����ΐRA�6%��4�����֚p����?~/++��/�6�00�H�u%Xe�ܯeqM/� 7h �=�V.������Bbj"у�{�2�J�6��h��7վ��nAƴ1��(^y:�i���t]��[��og�<��_�y!Ja��-�Q8��z�]�C�<���
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/chronic_cron.rb
CHANGED
|
@@ -34,8 +34,17 @@ class ChronicCron
|
|
|
34
34
|
[self.object_id, @to_expression, @cf.to_time]
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
def next()
|
|
38
|
-
|
|
37
|
+
def next()
|
|
38
|
+
@cf.next
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def to_date()
|
|
42
|
+
@cf.to_time.to_date
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def to_time()
|
|
46
|
+
@cf.to_time
|
|
47
|
+
end
|
|
39
48
|
|
|
40
49
|
protected
|
|
41
50
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chronic_cron
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -42,7 +42,7 @@ dependencies:
|
|
|
42
42
|
version: '0.1'
|
|
43
43
|
- - ">="
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.1.
|
|
45
|
+
version: 0.1.19
|
|
46
46
|
type: :runtime
|
|
47
47
|
prerelease: false
|
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -52,27 +52,27 @@ dependencies:
|
|
|
52
52
|
version: '0.1'
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.1.
|
|
55
|
+
version: 0.1.19
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: cron_format
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - "~>"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '0.
|
|
62
|
+
version: '0.3'
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 0.
|
|
65
|
+
version: 0.3.4
|
|
66
66
|
type: :runtime
|
|
67
67
|
prerelease: false
|
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
70
|
- - "~>"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '0.
|
|
72
|
+
version: '0.3'
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.
|
|
75
|
+
version: 0.3.4
|
|
76
76
|
- !ruby/object:Gem::Dependency
|
|
77
77
|
name: chronic
|
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,20 +99,20 @@ dependencies:
|
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '0.
|
|
102
|
+
version: '0.2'
|
|
103
103
|
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: 0.
|
|
105
|
+
version: 0.2.0
|
|
106
106
|
type: :runtime
|
|
107
107
|
prerelease: false
|
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
|
110
110
|
- - "~>"
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: '0.
|
|
112
|
+
version: '0.2'
|
|
113
113
|
- - ">="
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
|
-
version: 0.
|
|
115
|
+
version: 0.2.0
|
|
116
116
|
description:
|
|
117
117
|
email: james@jamesrobertson.eu
|
|
118
118
|
executables: []
|
|
@@ -143,5 +143,6 @@ rubyforge_project:
|
|
|
143
143
|
rubygems_version: 2.6.8
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
|
-
summary:
|
|
146
|
+
summary: Converts a human-readable time (e.g. 10:15 daily) into a cron format (e,g,
|
|
147
|
+
15 10 * * *
|
|
147
148
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|