chronic_between 0.2.18 → 0.2.19

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: 4ddb8e35b51eb5fa78cefd79de8c4386d5e40271
4
- data.tar.gz: 8ba3040c9c090d37a138c2f9ec04239c4e558ebe
3
+ metadata.gz: feb8ed881947ca4955857d82cfa4f1488b27094d
4
+ data.tar.gz: 27e43780d3333179f1cac4c8d6f9ffe9bb674d58
5
5
  SHA512:
6
- metadata.gz: 1330bc87e447c5fd251c6879a004f63a14d6f8323602ef5e68e20528e082e9adeac9198ee9a920e79ad4476171f71676795e6689d63560fa46b1c1fc3ee5a1e9
7
- data.tar.gz: b07058c4a2c5579440582dddb522a1d1bf7adb3e86a887e0f4fb8dcf628c8430e5b22b64c582263cd90204e37fb8b0ced6bcd093679e1b365ab4acbfe6722d02
6
+ metadata.gz: cda236a29605d02d5b048e2732351bc2ff957c6a1c77b7e2906fbf0cfbb56d9fe2394bf8a381d9c654cd3a644788afb30f73d62922392e4c8758468c48b939f4
7
+ data.tar.gz: bc867749d8f0db5aecb92751c5289e3da7219828ddd8ceb13d85d0b13544cd2c43cdfd012267160690f45094cb1e1e0a3297953080b41b6d0ffc6d2caa7fe659
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -74,6 +74,11 @@ class ChronicBetween
74
74
  date_range_time_range(date, d1 ,d2, t1, t2)
75
75
  end
76
76
 
77
+ get /today/i do
78
+ date1 = DateTime.parse(Time.now.strftime("%d-%b-%y") + ' 00:00')
79
+ [date1, date1 + 1]
80
+ end
81
+
77
82
  # e.g. Saturday
78
83
  get %r{^(\w+)$} do
79
84
  day = params[:captures].first
@@ -210,4 +215,4 @@ class ChronicBetween
210
215
 
211
216
  alias datetime_range time_range
212
217
 
213
- end
218
+ 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.18
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,34 +29,34 @@ cert_chain:
29
29
  aQjggWe+thx9aRnac+FunPZ7ltAgjkOreOsrc0fCXFmRlvDjbnCNBvpi4PhfHXzh
30
30
  VK9OMDms3W3rq/ODn7ohj8ao4ZtQdcvF
31
31
  -----END CERTIFICATE-----
32
- date: 2013-07-27 00:00:00.000000000 Z
32
+ date: 2013-09-25 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: chronic
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: app-routes
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  description:
@@ -76,12 +76,12 @@ require_paths:
76
76
  - lib
77
77
  required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - '>='
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
metadata.gz.sig CHANGED
Binary file