chronic_between 0.2.14 → 0.2.15

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: 647b827f5c24b9ce7563321c613814132a152f40
4
- data.tar.gz: 2c408ce3caa3ee6599affc64b529b6eb057eda3f
3
+ metadata.gz: 26ba61b8a877769c8aa9f80da9655858336882e7
4
+ data.tar.gz: 23072f2944490440b031adf861d10ed1ef05d8f8
5
5
  SHA512:
6
- metadata.gz: acf5adb9a84dfb39a030a18b7ee16d1476c34fdb1dd65a9a021b52c69160a2d1e613adf1aa4a09e4668c75b294270c810b037b0c80bd4c1a152896f35beefea9
7
- data.tar.gz: 2ab484ca3bf70c0915b6a797df7326129512a42db98133e04b051db1987e5a5019581367c6d7891b0be12205126eab6367c8133190a29b296d6ee39fdbc920a9
6
+ metadata.gz: aca8d73eb9185cf8e4e2eee483c59ea1cd264effcfc2398e623094d3337c8c803cab5010c1edd642cb1f981046efd87d23a6521a41eea959d815e556536d2905
7
+ data.tar.gz: d65077ae29516081dfb7d67a07126bbae33750347cfc4f6ba815333320bd33b066d1dd3fa175dacef3c6acccd808080318eeda5e3893cc1127a5ad62ca5c8c3f
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -13,7 +13,6 @@ class ChronicBetween
13
13
  def initialize(x)
14
14
 
15
15
  @times = x.is_a?(String) ? x.split(/[,;&]/).map(&:strip) : x
16
- puts '@times : ' + @times.inspect
17
16
  @routes = {}; @params = {}
18
17
  end
19
18
 
@@ -29,7 +28,6 @@ class ChronicBetween
29
28
  closed_times.map!{|x| x[/^#{negatives}(.*)/,2]}
30
29
 
31
30
  dates = build times
32
- puts 'dates : ' + dates.inspect
33
31
  inside_range = dates.detect {|d1, d2| p [d1,d2]; date.between? d1, d2}
34
32
 
35
33
  neg_dates = build closed_times
@@ -54,7 +52,6 @@ class ChronicBetween
54
52
  # e.g. Mon-Fri 9:00-16:30
55
53
  get %r{(\w+)-(\w+)\s+(\d[\w:]*)-(\d[\w:]*)$} do
56
54
  d1, d2, t1, t2 = params[:captures]
57
- puts 'fooo'
58
55
  date_range_time_range(date, d1 ,d2, t1, t2)
59
56
  end
60
57
 
@@ -178,7 +175,6 @@ class ChronicBetween
178
175
 
179
176
  def build(times)
180
177
  times.inject([]) do |result, x|
181
- puts 'x: ' + x
182
178
  r = run_route(x.strip)
183
179
  r.first.is_a?(Array) ? result + r : result << r
184
180
  end
@@ -213,4 +209,4 @@ class ChronicBetween
213
209
 
214
210
  alias datetime_range time_range
215
211
 
216
- end
212
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronic_between
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file