chronic_between 0.2.22 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/chronic_between.rb +5 -21
- metadata +2 -2
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 053e7db0d6fb0f75c9a59cb8d37135a02b4dc3dc
|
4
|
+
data.tar.gz: 4d4e042caacdd438456dfbdf8f78f294844d053c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75dfb53477873ebc5baf00e7c81fbcede7746ae380ee5375d22f5d21355c02f310edeadda0c3720e6efc661b8e49ce25551ab799a409bf1224c773632a49a03a
|
7
|
+
data.tar.gz: 586929e355ce1e076c21ff16de85fdfb7d4ca1e058d824fe50b0fd598afe286e6de87dbe05651cc59a0b1724296c342fad9711211fba92a57674b5849092b1a4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
5ua~��9�J1v���D�a�yJ����(�P�>>0�3d�z�!n�Jdε��b�A�����z���zN��1R�gʧ&�lLg��*fT�x��=��r"D �ep�gp�1����II�+�!�걸\�s��`�)
|
1
|
+
Op� ��!��TQÍh��Uj���?w�R�<�@��-�'��>b�ʾs;�������×�7cA�Sɗ�2��ŒJ�C���#WfG���]�@�� �����`�?ڛ��7�K��AJ�݀3_���W�P��p�L�^ L�r�=��$|��yU�����_�V�����8u��>�b�!�$��x&�Y��`�b攕Ԝ��q�S��ZN��#6�@t�c�8i;��Pqj�z���d�0ȧ�
|
data/lib/chronic_between.rb
CHANGED
@@ -88,43 +88,27 @@ class ChronicBetween
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# e.g. 3:45-5:15
|
91
|
-
get %r{^(\d[\w:]*)\s
|
91
|
+
get %r{^(\d[\w:]*)\s*(?:-|to|and)\s*(\d[\w:]*)(?=\s*(daily|every day)?)} do
|
92
92
|
t1, t2 = params[:captures]
|
93
93
|
time_range(date, t1, t2)
|
94
94
|
end
|
95
95
|
|
96
|
-
# e.g. 3:45 to 5:15
|
97
|
-
get %r{^(\d[\w:]*)\s+to\s+(\d[\w:]*)(?=\s*(daily|every day)?)} do
|
98
|
-
t1, t2 = params[:captures]
|
99
|
-
time_range(date, t1, t2)
|
100
|
-
end
|
101
96
|
|
102
97
|
# e.g. Mon 3:45-5:15
|
103
|
-
get %r{^(\w+)\s+(\d[\w:]*)\s
|
98
|
+
get %r{^(\w+)\s+(\d[\w:]*)\s*(?:-|to|and)\s*(\d[\w:]*)$} do
|
104
99
|
d1, t1, t2 = params[:captures]
|
105
100
|
cdatetime_range(date, d1, t1, t2)
|
106
101
|
end
|
107
|
-
|
108
|
-
# e.g. Mon 3:45 to 5:15
|
109
|
-
get %r{^(\w+)\s+(\d[\w:]*)\s+to\s+(\d[\w:]*)$} do
|
110
|
-
d1, t1, t2 = params[:captures]
|
111
|
-
cdatetime_range(date, d1, t1, t2)
|
112
|
-
end
|
113
|
-
|
102
|
+
|
114
103
|
# e.g. 3:45-5:15 Mon
|
115
|
-
get %r{^(\d[\w:]*)\s
|
104
|
+
get %r{^(\d[\w:]*)\s*(?:-|to|and)\s*(\d[\w:]*)\s+(\w+)$} do
|
116
105
|
t1, t2, d1 = params[:captures]
|
117
106
|
cdatetime_range(date, d1, t1, t2)
|
118
107
|
end
|
119
108
|
|
120
|
-
# e.g. 3:45 to 5:15 Mon
|
121
|
-
get %r{^(\d[\w:]*)\s+to\s+(\d[\w:]*)\s+(\w+)$} do
|
122
|
-
t1, t2, d1 = params[:captures]
|
123
|
-
cdatetime_range(date, d1, t1, t2)
|
124
|
-
end
|
125
109
|
|
126
110
|
# e.g. Mon-Wed
|
127
|
-
get %r{^(\w+)\s
|
111
|
+
get %r{^(\w+)\s*(?:-|to|and)\s*(\w+)$} do
|
128
112
|
d1, d2 = params[:captures]
|
129
113
|
cdate2, n_days = latest_date_and_ndays(date, d1, d2)
|
130
114
|
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
gYAnNN6964dJK3oesiLcjg63rKSzHdCi9lmJT2AI/4pipR9a+tLLdd5zDRr5nCsv
|
32
32
|
UYxJo7I155qFQQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-03-
|
34
|
+
date: 2015-03-07 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: chronic
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�=p�>�&j��-q����[]؟Fl�gf���;�G��8�
|
1
|
+
�J�\���F�`ċ��SP��?�ךw�Jri�^|�@9�!�9��1 0!o
|
2
|
+
�s7\UIa�ŖR�?A!�0��$����C���S+5�@ �W=�v���~%nN�Z�XQ���ܴ�p�8ٽ*v�ٹ�h)]�3slD��T~@j}w�P>H��q\�����Z��n�3ZI������yB\�]�`�闘����oP@ZoC�j��-p2�*�kw�A���U9<@%���"vW,{���j�e5t��
|