dates_from_string 0.9.1 → 0.9.2

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: 7bc5d7c7e62118b43b4b0bde6f269aec6cce0f96
4
- data.tar.gz: 5a8e089005f5f2aeaa7f77a6c0f51626eb40b090
3
+ metadata.gz: d486dcca01fb31dd1c983b77d997f573c8588023
4
+ data.tar.gz: 483ea64e4c3e06355b95fb35f20635b188548f78
5
5
  SHA512:
6
- metadata.gz: 57a72dc0b93afdc6ca1b24f3b480b9ff3f045e3408085364b64d043f72e4df826ea2515909580a386dff7d836e82b7d0edd2e257709cdb19da5704f4d0423434
7
- data.tar.gz: 44b00fade2e4936e05b2eb490ea37133a903272b1ce77c9d6a23f3eea6c89c10b8757e550ac6b08537cb9dffdf7d3acdc7a793c7a8439721610bc2b213192961
6
+ metadata.gz: ed1b1e8182907904253f9e60f85776677e0ab4ab466ed498e49d994938713d21d7d4d676b5d1bc355dcd78622156839789e8e1f65b5197fe51123d1414fd816d
7
+ data.tar.gz: 74f2b4c078549bb7cfddd2e8b78ebf0b39bf7bec4ba39fcb830e68cfd788b77794024652c5d9cabd29e4e99cdab671699294e7f9276d6c583350a68b56e4d946
@@ -85,6 +85,18 @@ class DatesFromString
85
85
  result.to_s.split("-")
86
86
  elsif (result = string.match(/\d{2}-\d{2}-\d{4}/))
87
87
  result.to_s.split("-").reverse
88
+ elsif (result = string.match(/\d{4}-\d{1}-\d{2}/))
89
+ result.to_s.split("-")
90
+ elsif (result = string.match(/\d{2}-\d{1}-\d{4}/))
91
+ result.to_s.split("-").reverse
92
+ elsif (result = string.match(/\d{4}-\d{1}-\d{1}/))
93
+ result.to_s.split("-")
94
+ elsif (result = string.match(/\d{1}-\d{1}-\d{4}/))
95
+ result.to_s.split("-").reverse
96
+ elsif (result = string.match(/\d{4}-\d{2}-\d{1}/))
97
+ result.to_s.split("-")
98
+ elsif (result = string.match(/\d{1}-\d{2}-\d{4}/))
99
+ result.to_s.split("-").reverse
88
100
  elsif (result = string.match(/\d{4}\.\d{2}\.\d{2}/))
89
101
  result.to_s.split(".")
90
102
  elsif (result = string.match(/\d{2}\.\d{2}\.\d{4}/))
@@ -1,3 +1,3 @@
1
1
  class DatesFromString
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dates_from_string
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Chechaev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler