cron_format 0.2.2 → 0.2.3
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 +0 -0
- data.tar.gz.sig +0 -0
- data/lib/cron_format.rb +4 -2
- metadata +2 -2
- 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: 8ebce971a3172e6d89ba2775731d78de3c474bed
|
|
4
|
+
data.tar.gz: 0d4636996d9774e16ec0eada15006eaa2ae8f502
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f1b7e3d60615e556b7f243d39e59c46f967818833adf72a934faf7311d4ed03bc52d4f47d34bb7d44812622ad81549f4d79017d0c70fd56133e100cd774745c
|
|
7
|
+
data.tar.gz: 24352852a4e28e5145b7fceac40d7eb698c41a8a0cc76246ec7724ff2ceac36b2e49a931fb98815926abbcf6c2016f000a71692f5a5a97ffb0a9fc6bd1f77764
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/cron_format.rb
CHANGED
|
@@ -44,15 +44,17 @@ class CronFormat
|
|
|
44
44
|
|
|
45
45
|
if val then
|
|
46
46
|
index = a.index(val)
|
|
47
|
+
|
|
47
48
|
r = val[/\/(\d+)$/,1]
|
|
48
49
|
|
|
49
50
|
n = if r then
|
|
50
|
-
r.to_i * 7
|
|
51
|
+
index == 4 ? r.to_i * 7 : 0
|
|
51
52
|
else
|
|
52
53
|
val.to_i
|
|
53
54
|
end
|
|
54
55
|
end
|
|
55
56
|
|
|
57
|
+
|
|
56
58
|
month_proc = lambda {|t1,n|
|
|
57
59
|
a = t1.to_a
|
|
58
60
|
a[4] = a[4] + n <= 12 ? a[4] + n : a[4] + n - 12
|
|
@@ -330,4 +332,4 @@ class CronFormat
|
|
|
330
332
|
end
|
|
331
333
|
end
|
|
332
334
|
|
|
333
|
-
end
|
|
335
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cron_format
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
MmJuAQVfTk9wZd03YN619a64hLGIvud4ASW7UVAW0B4U0PcmbhHvne07e11jt7j5
|
|
32
32
|
WwVcDIvT38Bo3hAt
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-03-
|
|
34
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
|
35
35
|
dependencies: []
|
|
36
36
|
description:
|
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
|
Binary file
|