dates_from_string 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +8 -0
- data/lib/dates_from_string.rb +1 -1
- data/lib/dates_from_string/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a76f9ae839c0fdee5a02955e8ad97945160be6d5
|
4
|
+
data.tar.gz: 7a15b430eeabe8dfed0b6e8e48789f6f7a9a423d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 192b75467a1c9dff2b1eeac438f11a1b09521bb50951f9bc6ec9e2922165e995768493e0d2bcb22e5f6179a109a6098792174f04894d7608d23e3f93cfe5fb18
|
7
|
+
data.tar.gz: 31244c4419dfd1adaef4154829f6de7757b6dcb1b52e0bf31b1360097a32add22f9913b13a3fe278a46e695acc6e93686bac80c66260c1f3780539e97a7d2a22
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -51,6 +51,14 @@ dates_from_string.find_date(text)
|
|
51
51
|
|
52
52
|
#=> return
|
53
53
|
# ["2015-02-02 23:00:10"]
|
54
|
+
|
55
|
+
|
56
|
+
# find year in email
|
57
|
+
date_from_string = DatesFromString.new()
|
58
|
+
input = '1test1988@gmail.com'
|
59
|
+
date_from_string.email_date(input)
|
60
|
+
#=> return
|
61
|
+
# "1988"
|
54
62
|
```
|
55
63
|
|
56
64
|
|
data/lib/dates_from_string.rb
CHANGED
@@ -206,7 +206,7 @@ class DatesFromString
|
|
206
206
|
end
|
207
207
|
|
208
208
|
def get_short_month(string)
|
209
|
-
short_month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','
|
209
|
+
short_month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
|
210
210
|
short_index = short_month.index(string)
|
211
211
|
|
212
212
|
if short_index
|
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: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Chechaev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.5.1
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Flexible solution for finding all formats of dates in text
|