dates_from_string 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dates_from_string.rb +3 -0
- data/lib/dates_from_string/version.rb +1 -1
- data/lib/parsing_structure.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de1067f7e7ac78707b253cf7f0d4eb147b3d6ff
|
4
|
+
data.tar.gz: 32d18ebc707205cdf3dccbd4e92de3212c0b6c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab721b5f27f71e8ed03373445398319115d69aa9e260434dd05178ea284fa4343cbdf26632cfd5c29effaa6b2e9cef5500f6ca164daed220e8e14279e3269d93
|
7
|
+
data.tar.gz: 58d6a2a8ff27200ae4d7996a70d842ddc62eb67f9800650395f207320ff2ff540f9720883a08348c9119d58bdbba4a88787f42020ae939d166858e3ecfd173ad
|
data/lib/dates_from_string.rb
CHANGED
@@ -35,6 +35,9 @@ class DatesFromString
|
|
35
35
|
end
|
36
36
|
|
37
37
|
if value_full_date
|
38
|
+
if @main_arr.size == 0
|
39
|
+
index = 0
|
40
|
+
end
|
38
41
|
add_to_structure(:year ,value_full_date[0], index, next_index, data_arr)
|
39
42
|
add_to_structure(:month ,value_full_date[1], index, next_index, data_arr)
|
40
43
|
add_to_structure(:day ,value_full_date[2], index, next_index, data_arr)
|
data/lib/parsing_structure.rb
CHANGED