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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile +2 -1
- data/Rakefile +2 -2
- data/fe_core_ext.gemspec +3 -3
- data/lib/fe_core_ext.rb +1 -9
- data/lib/fe_core_ext/core_ext/time.rb +24 -0
- data/lib/fe_core_ext/version.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6209d62a946c440d8db24b29698b76e17b7d4c6f
|
4
|
+
data.tar.gz: 699c065bd38d55c40f15982daa98e0aa485f2a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e42b57d6bf18c2fbf9a40af9a011287c6857d402cbddfcea3de158009ffd6c04dec72102b3b15b72738d07a90078e4cf5595b63b459f53b225b2b58d56a802
|
7
|
+
data.tar.gz: bfc5782f231d48e5e4f08a34a9f8c2edde738d690f18e888be1bf19da84d99d39313721e17b6b86d46b51896fe9bbaa942939335b18428786023fa28fcdf02d4
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
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 =
|
7
|
+
spec.name = 'fe_core_ext'
|
8
8
|
spec.version = FeCoreExt::VERSION
|
9
|
-
spec.authors = [
|
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
|
-
|
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
|
-
|
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
|
data/lib/fe_core_ext/version.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.
|
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-
|
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.
|
134
|
+
rubygems_version: 2.6.14
|
120
135
|
signing_key:
|
121
136
|
specification_version: 4
|
122
137
|
summary: Core class extensions
|