chronic_cron 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4960224d9d73073140a46deaf85424d5beb4d4f
4
- data.tar.gz: e353d5185f47d92da0a2573dbe35b0bfa702449b
3
+ metadata.gz: d46539b38f0eef931d901041c79771db9a674f6d
4
+ data.tar.gz: 4b6281e91893a9e09352f19c8d68a96512e8c086
5
5
  SHA512:
6
- metadata.gz: f5887616ece68e31b1fab690f2afaad57c88943c7a9174f436dc4c82aae5669edc7a5fae29c104e440a15848cc41f77dfb609e6863956a76f1a4de7ea1a628e8
7
- data.tar.gz: 7145ccfee5aa45e5437090fac0de6afd13b88b7c0a61fe59da4bf26077d20692567dd963352fdd78419aacddb5f6d9c397998bc80c6177f867a77a9172fe0dbd
6
+ metadata.gz: 401626d1be1d61ab015b0424b3fb579cf5a3b4308cf58eb09db6bcad5a9a8b59a94cd117c3373ced92ec5dda0a4f072db35c9b36bbe2ea0e280d4f82a587b261
7
+ data.tar.gz: 21930007780f44ae80a817f58af2b567195b9d265c47448cfd5a0ff168b49590b7470f309ed810213e59d52d1272e9e992f62e717a4a2fe45379e3bd6ac77bcc
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/chronic_cron.rb CHANGED
@@ -18,7 +18,8 @@ class ChronicCron
18
18
  super()
19
19
  @params = {}
20
20
  expressions(@params)
21
- @to_expression = find_expression s.sub(/^(?:on|at)\s+/,'')
21
+
22
+ @to_expression = find_expression s.sub!(/^(?:on|at)\s+/,'')
22
23
 
23
24
  if @to_expression.nil? then
24
25
  t = Chronic.parse(s)
@@ -83,12 +84,11 @@ class ChronicCron
83
84
  self.instance_eval %q(
84
85
  def next()
85
86
  t = TimeToday.any + DAY
86
- @cf = CronFormat.new("%s %s %s %s *" % (t)
87
- .to_a.values_at(1,2,3,4))
87
+ @cf = CronFormat.new("%s %s %s %s *" % t.to_a[1..4])
88
88
  t
89
89
  end
90
90
  )
91
- "%s %s %s %s *" % TimeToday.future.to_a.values_at(1,2,3,4)
91
+ "%s %s %s %s *" % TimeToday.future.to_a[1..4]
92
92
  end
93
93
 
94
94
  end
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.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  aYYwh4InyS/QZr4LG0nh0TuYVP5vwm1cCSlLlo4dlv7bl7Q4y815j70z8O4oUrT8
30
30
  5oSIzmlVDEDmwAibYqdf+aHqmum1mkYW
31
31
  -----END CERTIFICATE-----
32
- date: 2013-07-09 00:00:00.000000000 Z
32
+ date: 2013-07-10 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: app-routes
metadata.gz.sig CHANGED
Binary file