fe_core_ext 0.1.48 → 0.1.49

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: b9c82e4a509a50543d22671d15178a47855df431
4
- data.tar.gz: 9f8b7eb98c656fbf0dd3639eddca1774a1ad034a
3
+ metadata.gz: 7ac664a2971b7de146964bd1aef19e716fb33139
4
+ data.tar.gz: 15d7a4dc850979d7e5fc4fd0d8b471b7b7207e5d
5
5
  SHA512:
6
- metadata.gz: 66890e9e8fe12ace6098bbc480bea37b5fb8c186eed7086e2acd9505b1937aba60b5d9e5b5dc1772fecedf3d29fe67d9f100037503ac3b5b2b82b8dca023696f
7
- data.tar.gz: 0d80beabe40201731e0d2e99388cf686c0fa00ed954a44ad04ad8efa70f77f9a289061fb175c2fe81d86ebc6f32c9e8b373e087dd64b39ff9e625e7194d9feb7
6
+ metadata.gz: 894f23d467f35dfbfbecd9ce1b42dbf83cc6e8d7d1cb8e30bde9fb96162697b4390cc72a8677f83873c7881f910477bbffb5e26b19a6f58fcaa2382a2671a8d9
7
+ data.tar.gz: 54d731697e6e4707dba70b2cd90b1a162471078aaa1be480b001ef7c2eb8f1c03751ad6fe31c8f23f7d71757283a081c5c5339c525e36a1946b02729968bfaf1
@@ -0,0 +1,18 @@
1
+ require 'uri'
2
+
3
+ module FeCoreExt::CoreExt
4
+ end
5
+
6
+ module FeCoreExt::CoreExt::URI
7
+ def download(file)
8
+ File.open(file, 'wb') {|f| f.write(open(self).read)}
9
+ 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
+ end
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.48'
2
+ VERSION = '0.1.49'
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.48
4
+ version: 0.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-27 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -92,6 +92,7 @@ files:
92
92
  - lib/fe_core_ext/core_ext/numeric.rb
93
93
  - lib/fe_core_ext/core_ext/pathname.rb
94
94
  - lib/fe_core_ext/core_ext/string.rb
95
+ - lib/fe_core_ext/core_ext/uri.rb
95
96
  - lib/fe_core_ext/gem_ext.rb
96
97
  - lib/fe_core_ext/gem_ext/selenium_webdriver.rb
97
98
  - lib/fe_core_ext/version.rb