fe_core_ext 0.7.0 → 0.8.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: 19d199f9b1e53d03ea27d4344623d2fef4a1a51f
4
- data.tar.gz: dee7a8d26ee853586c6068756d902fc3cd725ae2
3
+ metadata.gz: 6209d62a946c440d8db24b29698b76e17b7d4c6f
4
+ data.tar.gz: 699c065bd38d55c40f15982daa98e0aa485f2a47
5
5
  SHA512:
6
- metadata.gz: 675d1ccf81930636f29bc9f63c63b877f4ef49e9c2f9017932c06f9db97abeed537adcca65519e6ceca9e4b34a467f5b21a2d0b33a5f884d527bcffdb5f158f4
7
- data.tar.gz: 0bdace3a4dcf40d91078c431fd14e9e9ab886b474fee498b4b8d863579d0c7e31ee4720f55cd28ec8730a784e424b66917bccb2d25bc34f6a3dcd0166caa7336
6
+ metadata.gz: 94e42b57d6bf18c2fbf9a40af9a011287c6857d402cbddfcea3de158009ffd6c04dec72102b3b15b72738d07a90078e4cf5595b63b459f53b225b2b58d56a802
7
+ data.tar.gz: bfc5782f231d48e5e4f08a34a9f8c2edde738d690f18e888be1bf19da84d99d39313721e17b6b86d46b51896fe9bbaa942939335b18428786023fa28fcdf02d4
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .idea/*
11
+ .ruby-version
data/Gemfile CHANGED
@@ -7,4 +7,5 @@ gem 'bigdecimal'
7
7
  gem 'timecop'
8
8
  gem 'test-unit'
9
9
  gem 'pry'
10
- gem 'awesome_print'
10
+ gem 'awesome_print'
11
+
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
data/fe_core_ext.gemspec CHANGED
@@ -4,9 +4,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'fe_core_ext/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "fe_core_ext"
7
+ spec.name = 'fe_core_ext'
8
8
  spec.version = FeCoreExt::VERSION
9
- spec.authors = ["Tetsu"]
9
+ spec.authors = ['Tetsu']
10
10
  spec.email = ['eisensand@gmail.com']
11
11
 
12
12
  spec.summary = %q{Core class extensions}
@@ -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
data/lib/fe_core_ext.rb CHANGED
@@ -1,13 +1,5 @@
1
1
  require 'fe_core_ext/version'
2
- require 'fe_core_ext/core_ext/array'
3
- require 'fe_core_ext/core_ext/string'
4
- require 'fe_core_ext/core_ext/hash'
5
- require 'fe_core_ext/core_ext/csv'
6
- require 'fe_core_ext/core_ext/pathname'
7
- require 'fe_core_ext/core_ext/date'
8
- require 'fe_core_ext/core_ext/integer'
9
- require 'fe_core_ext/core_ext/numeric'
10
- require 'fe_core_ext/core_ext/uri'
2
+ Dir.glob("#{Dir.pwd}/lib/fe_core_ext/core_ext/*.rb").each{|file| require file }
11
3
 
12
4
  module FeCoreExt
13
5
  end
@@ -0,0 +1,24 @@
1
+ require 'active_support'
2
+ require 'active_support/time'
3
+
4
+ module FeCoreExt::CoreExt
5
+ end
6
+
7
+ module FeCoreExt::CoreExt::Time
8
+ def floor(unit = :sec)
9
+ case unit
10
+ when :sec
11
+ Time.zone.local(year, month, day, hour, min, sec)
12
+ else
13
+ self
14
+ end
15
+ end
16
+ end
17
+
18
+ module FeCoreExt::CoreExt::TimeClassMethods
19
+ end
20
+
21
+ class Time
22
+ include FeCoreExt::CoreExt::Time
23
+ extend FeCoreExt::CoreExt::TimeClassMethods
24
+ end
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.1'
3
3
  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.7.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-30 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -52,6 +52,20 @@ 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'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: selenium-webdriver
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -92,6 +106,7 @@ files:
92
106
  - lib/fe_core_ext/core_ext/numeric.rb
93
107
  - lib/fe_core_ext/core_ext/pathname.rb
94
108
  - lib/fe_core_ext/core_ext/string.rb
109
+ - lib/fe_core_ext/core_ext/time.rb
95
110
  - lib/fe_core_ext/core_ext/uri.rb
96
111
  - lib/fe_core_ext/gem_ext.rb
97
112
  - lib/fe_core_ext/gem_ext/selenium_webdriver.rb
@@ -116,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
131
  version: '0'
117
132
  requirements: []
118
133
  rubyforge_project:
119
- rubygems_version: 2.5.2
134
+ rubygems_version: 2.6.14
120
135
  signing_key:
121
136
  specification_version: 4
122
137
  summary: Core class extensions