fe_core_ext 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/fe_core_ext.gemspec +1 -1
- data/lib/fe_core_ext/core_ext/date.rb +16 -0
- data/lib/fe_core_ext/version.rb +1 -1
- data/lib/fe_core_ext.rb +1 -0
- metadata +3 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20cd58847d3e36759ce281a864b8e5f55860f9fc
|
4
|
+
data.tar.gz: b85c66539cfc3a46b43f885f73a102c113d7c180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e2c1f77f2ee468f0cb52d0f1516d9aed845b6ab30ba81e178a42675d7a887ca96771ec603c070a48ffc7b3c1b66cd51e53e4c7cd15e5984066036d1b48c05ae
|
7
|
+
data.tar.gz: 16d389627e77b64d6ec80bb936f44bfb2df587c9c92e1c941a6a87cf07e47f77fe7b78f64a3b3dee80fbd2d6d1412f653e32ea15a1ec4b83145cd2d24f08d585
|
data/Gemfile
CHANGED
data/fe_core_ext.gemspec
CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_runtime_dependency 'activesupport'
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
24
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
-
spec.add_development_dependency 'rspec', '~> 0'
|
25
|
+
#spec.add_development_dependency 'rspec', '~> 0'
|
26
26
|
spec.add_development_dependency 'selenium-webdriver', '~> 0'
|
27
27
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'active_support'
|
2
|
+
require 'active_support/time'
|
3
|
+
|
4
|
+
module FeCoreExt::CoreExt
|
5
|
+
end
|
6
|
+
|
7
|
+
module FeCoreExt::CoreExt::Date
|
8
|
+
def parse_as_future(string)
|
9
|
+
date = parse(string)
|
10
|
+
date > today ? date : date + 1.year
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
class Date
|
15
|
+
extend FeCoreExt::CoreExt::Date
|
16
|
+
end
|
data/lib/fe_core_ext/version.rb
CHANGED
data/lib/fe_core_ext.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fe_core_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: selenium-webdriver
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,6 +86,7 @@ files:
|
|
100
86
|
- lib/fe_core_ext.rb
|
101
87
|
- lib/fe_core_ext/core_ext/array.rb
|
102
88
|
- lib/fe_core_ext/core_ext/csv.rb
|
89
|
+
- lib/fe_core_ext/core_ext/date.rb
|
103
90
|
- lib/fe_core_ext/core_ext/pathname.rb
|
104
91
|
- lib/fe_core_ext/core_ext/string.rb
|
105
92
|
- lib/fe_core_ext/gem_ext.rb
|