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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afc959256f516f7c63218f2408a606ace35ed14f
4
- data.tar.gz: fa6d239ce30e12024d1fdcf75a703bc13e7cdbb5
3
+ metadata.gz: 5392b9fc97dd3a0ae03f2463675592b51e92d950
4
+ data.tar.gz: 5c2fa3218fdf9fb6d925a7332b114c5261d06843
5
5
  SHA512:
6
- metadata.gz: 8c5dc056631f4e1073f0f799ded3444735aa7a9f1dcbf280f75c18be8065db2127fcd470abea60a28e1b1b8aaa2f39027e051c9ca5e3b1891e710cc459855858
7
- data.tar.gz: 07721b020e65c02c511e0fce5d30b4a3bc4537b6c8be9e4f5ed48f549e6a75a7d06b640cc26d61b97ce5f101f15fa0eeb4474366ace15f35f45c2da4912d79dd
6
+ metadata.gz: 0bcaeb0b404323851db6bc29ae35a32666c263b202e7f4ffa0a8c68103a9460153fbe1f4cc6b54d70e56683de9e15e48806ad17c4a25fb86157336a9a5b1fdea
7
+ data.tar.gz: 354356a5d8d4909f54c49093270aeeafffc355bbca3d1c3816eb020f79cbe75b2484afa8e80e1239e66a2aceade8ac90943529568f4080e0a1c93656f39242bf
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- _I!uu*cJ
2
- �\ޤ��i����V�k;4�ؙBoVa#�*"�o[�0�>�W���N�ks�]���A��97g����\�_U�s�}�s)��ݟ�&�#o�H���h�$��5�fnɪ�$�4��eX�t�e�?f9�lN�y�+UE�݄]^��L��s���q�����-F�7�o�;<,���`Xl��oG�� x�:ZJ��;S��8�v@`MJ�e~��!V`�|:w���� �d�`����!�������v8���
1
+ q��6 iI3g'(�-~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.0
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-07 00:00:00.000000000 Z
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