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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55005bb178154452a478eb3c732714e383bb89de
4
- data.tar.gz: 2bd8a35430057bf7fb117e713c5c1aaf2d37a30a
3
+ metadata.gz: 20cd58847d3e36759ce281a864b8e5f55860f9fc
4
+ data.tar.gz: b85c66539cfc3a46b43f885f73a102c113d7c180
5
5
  SHA512:
6
- metadata.gz: 96674bc2c7b3bc011a21dfa9564a17be4c3278b054647542ecf5bbab9a5d31abdb2af92a9834b6e8547da2c37c7549de8c451682716486d7a921d4be638c2d88
7
- data.tar.gz: e048b926098b9ebd5172022e8fd7e9c481d396c3e3dcd6196760c4b5d31ef8b3f2a63843e88100340c116e27b6ba71975772b72c3169ec409c5bc53ad1f74b2a
6
+ metadata.gz: 7e2c1f77f2ee468f0cb52d0f1516d9aed845b6ab30ba81e178a42675d7a887ca96771ec603c070a48ffc7b3c1b66cd51e53e4c7cd15e5984066036d1b48c05ae
7
+ data.tar.gz: 16d389627e77b64d6ec80bb936f44bfb2df587c9c92e1c941a6a87cf07e47f77fe7b78f64a3b3dee80fbd2d6d1412f653e32ea15a1ec4b83145cd2d24f08d585
data/Gemfile CHANGED
@@ -3,4 +3,6 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in fe_core_ext.gemspec
4
4
  gemspec
5
5
 
6
- gem 'bigdecimal'
6
+ gem 'bigdecimal'
7
+ gem 'timecop'
8
+ gem 'test-unit'
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
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.14'
2
+ VERSION = '0.1.15'
3
3
  end
data/lib/fe_core_ext.rb CHANGED
@@ -3,6 +3,7 @@ require 'fe_core_ext/core_ext/array'
3
3
  require 'fe_core_ext/core_ext/string'
4
4
  require 'fe_core_ext/core_ext/csv'
5
5
  require 'fe_core_ext/core_ext/pathname'
6
+ require 'fe_core_ext/core_ext/date'
6
7
 
7
8
  module FeCoreExt
8
9
  end
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.14
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-02 00:00:00.000000000 Z
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