cron_format 0.1.0 → 0.1.1
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 +2 -2
- data.tar.gz.sig +0 -0
- data/lib/cron_format.rb +6 -0
- 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: 5392b9fc97dd3a0ae03f2463675592b51e92d950
|
|
4
|
+
data.tar.gz: 5c2fa3218fdf9fb6d925a7332b114c5261d06843
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bcaeb0b404323851db6bc29ae35a32666c263b202e7f4ffa0a8c68103a9460153fbe1f4cc6b54d70e56683de9e15e48806ad17c4a25fb86157336a9a5b1fdea
|
|
7
|
+
data.tar.gz: 354356a5d8d4909f54c49093270aeeafffc355bbca3d1c3816eb020f79cbe75b2484afa8e80e1239e66a2aceade8ac90943529568f4080e0a1c93656f39242bf
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
q��6 i�I3g'�(�-~w��Ŋy��G���
|
|
2
|
+
�>h(z
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/cron_format.rb
CHANGED
|
@@ -113,6 +113,11 @@ class CronFormat
|
|
|
113
113
|
repeaters << v2
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
raw_units[4].gsub!(/(sun|mon|tues|wed|thurs|fri|satur|sun)(day)?|tue|thu|sat/) do |x|
|
|
117
|
+
a = %w(sunday monday tuesday wednesday thursday friday saturday)
|
|
118
|
+
a.index a.grep(/#{x}/i).first
|
|
119
|
+
end
|
|
120
|
+
|
|
116
121
|
raw_date = raw_units.map.with_index {|x,i| dt[i].call(x) }
|
|
117
122
|
|
|
118
123
|
# expand the repeater
|
|
@@ -137,6 +142,7 @@ class CronFormat
|
|
|
137
142
|
|
|
138
143
|
d = date.map{|x| x ? x.clone : nil}
|
|
139
144
|
wday, year = d.pop(2)
|
|
145
|
+
|
|
140
146
|
d << year
|
|
141
147
|
|
|
142
148
|
next unless day_valid? d.reverse.take 3
|
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.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
9DFxFCS6sgAw21S+V+ym9ft8kbqgy7zOGdPRRNlwgb/V+UWqH4yaCtk7yJT+n8vm
|
|
32
32
|
LHkRlhnm0ScZYw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2013-07-
|
|
34
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
|
35
35
|
dependencies: []
|
|
36
36
|
description:
|
|
37
37
|
email:
|
metadata.gz.sig
CHANGED
|
Binary file
|