fe_core_ext 0.1.49 → 0.2.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: 7ac664a2971b7de146964bd1aef19e716fb33139
4
- data.tar.gz: 15d7a4dc850979d7e5fc4fd0d8b471b7b7207e5d
3
+ metadata.gz: 1fea49ac19df0b21d7a9770ee4c26ad1492643d9
4
+ data.tar.gz: f2f898728740f4dffcbc52e3bc805a120a5eaca0
5
5
  SHA512:
6
- metadata.gz: 894f23d467f35dfbfbecd9ce1b42dbf83cc6e8d7d1cb8e30bde9fb96162697b4390cc72a8677f83873c7881f910477bbffb5e26b19a6f58fcaa2382a2671a8d9
7
- data.tar.gz: 54d731697e6e4707dba70b2cd90b1a162471078aaa1be480b001ef7c2eb8f1c03751ad6fe31c8f23f7d71757283a081c5c5339c525e36a1946b02729968bfaf1
6
+ metadata.gz: 97e664f5cea02296d8f8d49257c35465ff5b7ca048f5863471948ac775e3165c6ee0ca1c54a89ef944fdbe92c5eae5d1c11d3962a18cda725e6b21fd59e562f1
7
+ data.tar.gz: '0841162ad39e502b9a340354480dbc0589b10bc2a44b71fd02b252db3d08778e458f5ff57a4591c6011563df69e6406fac31d89a1842e59235dee5dbd723b2c8'
@@ -1,18 +1,11 @@
1
1
  require 'uri'
2
+ require 'open-uri'
2
3
 
3
4
  module FeCoreExt::CoreExt
4
5
  end
5
6
 
6
- module FeCoreExt::CoreExt::URI
7
+ module URI
7
8
  def download(file)
8
- File.open(file, 'wb') {|f| f.write(open(self).read)}
9
+ File.open(file, 'wb') {|f| f.write(OpenURI.open_uri(self).read)}
9
10
  end
10
- end
11
-
12
- module FeCoreExt::CoreExt::URIClassMethods
13
- end
14
-
15
- class URI
16
- extend FeCoreExt::CoreExt::URIClassMethods
17
- include FeCoreExt::CoreExt::URI
18
11
  end
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.49'
2
+ VERSION = '0.2.1'
3
3
  end
data/lib/fe_core_ext.rb CHANGED
@@ -7,6 +7,7 @@ require 'fe_core_ext/core_ext/pathname'
7
7
  require 'fe_core_ext/core_ext/date'
8
8
  require 'fe_core_ext/core_ext/integer'
9
9
  require 'fe_core_ext/core_ext/numeric'
10
+ require 'fe_core_ext/core_ext/uri'
10
11
 
11
12
  module FeCoreExt
12
13
  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.49
4
+ version: 0.2.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-03-25 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport