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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 950a7b75d0a94bf583479236db63901ac5497ea2
4
- data.tar.gz: a6718b76e616240dfa9e6cc08497bb9dfd295fae
3
+ metadata.gz: 053e7db0d6fb0f75c9a59cb8d37135a02b4dc3dc
4
+ data.tar.gz: 4d4e042caacdd438456dfbdf8f78f294844d053c
5
5
  SHA512:
6
- metadata.gz: d9a75d0cd6a1b4d457b0dacdd5cb9ce3ce3c78e8508e18f9ac6dda5538844366adcd9a404394398a5c33972b541684ac4592381302d49183dfd8f7e7ca27de15
7
- data.tar.gz: da718dd72272028073d02764cf5048b4ef995de197d8ef1e956082bdeeabb6cfc90c94682988cf305b1d86f1b93d720cbb8698268e8c883f2277b88b0c30d1ed
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
- S I'm�;n�u�b�aj6���� \H@��52V�WO�����q��[3��j���49b}Jo}Xa�Zxnѓ}."��t���l�o�*�
2
- 5ua~��9�޶J1v��� D�a�yJ����(�P�>>0�3d�z�!n�Jdε��b�A�����z���zN��1R�gʧ&�lL g��*fT�x��=��r"D �ep�gp�1����II�+�!�걸\�s��`�)
1
+ Op ��!��TQÍh��Uj���?w�R�<�@��-�'��>b�ʾs;�������×�7cASɗ�2��ŒJC���#WfG���] @�� �����`�?ڛ��7K��AJ�݀3_���WP��p�L�^ L�r�=��$|��yU�����_�V�����8 u��>�b�!�$��x&�Y��`�b攕Ԝ��q�S��ZN��#6�@t�c�8i;��Pqj�z���d�0ȧ�
@@ -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*-\s*(\d[\w:]*)(?=\s*(daily|every day)?)} do
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*-\s*(\d[\w:]*)$} do
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*-\s*(\d[\w:]*)\s+(\w+)$} do
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*-\s*(\w+)$} do
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.2.22
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-04 00:00:00.000000000 Z
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
- ���4u'_8��o��č��f�����~L�ÇF��UT;��4U}c�͗c��_1�, =o$&�~f���UؕI �بT�GK�
2
- ҆�m�&۴ ���ퟰAc 1�&
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��