fe_core_ext 0.1.8 → 0.1.11

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: e59402bda10b74f3218c97ecd1d1911d95438033
4
- data.tar.gz: 15c4d2ab3d88ae4fbd64196db94ebf43d5ab6acc
3
+ metadata.gz: c23d32b11d0cb1f433c5c053b949bf6aac1014d0
4
+ data.tar.gz: 5f88eae9f7ed8166d52349bb25babce1224a1ccd
5
5
  SHA512:
6
- metadata.gz: f853b9e7af5f9a39b43b0abd39525cce68bc620a2e1bd269c4fb6d9d4b4b88ede8413fc761bd563b46ddc10b1e18358ba5b52755c77706fa9f8d9e7e78ec19ea
7
- data.tar.gz: c8146ad9cadea9cd1167be328e186fb26043133157b8722a2e6d8138d18e81050edbd3ea9d0a8177654b43dc693daaecbd62acdfa5f080756b7c544011ac8cc4
6
+ metadata.gz: 17182cb4ad7969bc4c0b545f8acb7a3827f335515d15ec589ca000d166dea1756cd4aa89b340515b500e385bdad9bdf91bece1fc16c2129c06e9dee54b47cb99
7
+ data.tar.gz: 187586d0d814b7517d3e57e62d8e1de933917dce89fc5ada22758e0d27c1a8bc8658bd1dfbcf03e174514183042b073aab5c5a96d02b659255ed342c9e3c5e99
data/fe_core_ext.gemspec CHANGED
@@ -7,19 +7,20 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "fe_core_ext"
8
8
  spec.version = FeCoreExt::VERSION
9
9
  spec.authors = ["Tetsu"]
10
- spec.email = ["eisensand@gmail.com"]
10
+ spec.email = ['eisensand@gmail.com']
11
11
 
12
12
  spec.summary = %q{Core class extensions}
13
13
  spec.description = %q{Core class extensions that doesn't supported by active_recored core_ext}
14
- spec.homepage = "http://github.com/ironsand/fe_core_ext"
14
+ spec.homepage = 'http://github.com/ironsand/fe_core_ext'
15
+ spec.license = 'MIT'
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- spec.bindir = "exe"
18
+ spec.bindir = 'exe'
18
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
20
+ spec.require_paths = ['lib']
20
21
 
21
22
  spec.add_development_dependency "bundler", "~> 1.10"
22
23
  spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "rspec"
24
- spec.add_development_dependency 'selenium-webdriver'
24
+ spec.add_development_dependency 'rspec', '~> 0'
25
+ spec.add_development_dependency 'selenium-webdriver', '~> 0'
25
26
  end
data/lib/fe_core_ext.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'fe_core_ext/version'
2
2
  require 'fe_core_ext/core_ext/array'
3
3
  require 'fe_core_ext/core_ext/string'
4
+ require 'fe_core_ext/core_ext/csv'
4
5
 
5
6
  module FeCoreExt
6
7
  end
@@ -0,0 +1,22 @@
1
+ require 'bigdecimal'
2
+ require 'bigdecimal/util'
3
+ require 'csv'
4
+
5
+ module FeCoreExt::CoreExt
6
+ end
7
+
8
+ module FeCoreExt::CoreExt::CSV
9
+
10
+ end
11
+
12
+ class CSV
13
+ #include FeCoreExt::CoreExt::CSV
14
+ Converters[:decimal] = lambda do |field|
15
+ begin
16
+ Float(field)
17
+ field.to_d
18
+ rescue
19
+ field
20
+ end
21
+ end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.11'
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.1.8
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: selenium-webdriver
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Core class extensions that doesn't supported by active_recored core_ext
@@ -85,12 +85,14 @@ files:
85
85
  - fe_core_ext.gemspec
86
86
  - lib/fe_core_ext.rb
87
87
  - lib/fe_core_ext/core_ext/array.rb
88
+ - lib/fe_core_ext/core_ext/csv.rb
88
89
  - lib/fe_core_ext/core_ext/string.rb
89
90
  - lib/fe_core_ext/gem_ext.rb
90
91
  - lib/fe_core_ext/gem_ext/selenium_webdriver.rb
91
92
  - lib/fe_core_ext/version.rb
92
93
  homepage: http://github.com/ironsand/fe_core_ext
93
- licenses: []
94
+ licenses:
95
+ - MIT
94
96
  metadata: {}
95
97
  post_install_message:
96
98
  rdoc_options: []
@@ -113,3 +115,4 @@ signing_key:
113
115
  specification_version: 4
114
116
  summary: Core class extensions
115
117
  test_files: []
118
+ has_rdoc: