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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceac526dbab85896fb300cdea42d295106bad0f7
4
- data.tar.gz: 8dd6708c3646d678c4d6ae1ffec1ef7a8f7d2e05
3
+ metadata.gz: a76f9ae839c0fdee5a02955e8ad97945160be6d5
4
+ data.tar.gz: 7a15b430eeabe8dfed0b6e8e48789f6f7a9a423d
5
5
  SHA512:
6
- metadata.gz: 96cb57b5651249388d3ddef23598a711e704b8fa97f060012acb0c32a30f4e2f8bdb3071aeaa263ece3ea715a1b9ae5f1aa05e05d2cc3dc2ffe89c334a7e5d86
7
- data.tar.gz: f1a8e53536da1d4411b45465ee3bd994fdd6c2e0c593cca5ce58a7295ca139df40c091a8eff73fbb478fa407b5ce1c75de456373d6fb0993420cb06547d6ca59
6
+ metadata.gz: 192b75467a1c9dff2b1eeac438f11a1b09521bb50951f9bc6ec9e2922165e995768493e0d2bcb22e5f6179a109a6098792174f04894d7608d23e3f93cfe5fb18
7
+ data.tar.gz: 31244c4419dfd1adaef4154829f6de7757b6dcb1b52e0bf31b1360097a32add22f9913b13a3fe278a46e695acc6e93686bac80c66260c1f3780539e97a7d2a22
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.1
4
- before_install: gem install bundler -v 1.12.5
4
+ before_install: gem install bundler -v 1.13.6
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
 
@@ -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','Apr','Sep','Oct','Nov','Dec']
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
@@ -1,3 +1,3 @@
1
1
  class DatesFromString
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
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: 1.2.0
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: 2016-11-17 00:00:00.000000000 Z
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.2.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