anyfetch 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/anyfetch.gemspec +1 -1
- data/lib/anyfetch/original_filename/content_type.rb +2 -2
- data/lib/anyfetch/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b8614a3c367c6df216d41f62d3ec7d16d20fd69
|
4
|
+
data.tar.gz: 58d639c46a8f6383850f0817b84705408e482de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35983dbb0c7a611f683fd87bb895cc57519134f547ba035f23b47b4679dc03b204dbb36fef355cad41bf73772837dec021ade0223ea2822116c2aa1a16bed391
|
7
|
+
data.tar.gz: cfb3567d76aab393225edb47959c853f071895c07c394ef25f7a07b2c222247b7978eaa41edcb7de4803adbd0b4ce753803310378289dce781a10e9f25fd3fdc
|
data/anyfetch.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency '
|
24
|
+
spec.add_dependency 'terrapin'
|
25
25
|
spec.add_dependency 'mime-types'
|
26
26
|
spec.add_dependency 'open_uri_redirections'
|
27
27
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "terrapin"
|
2
2
|
require "mime-types"
|
3
3
|
|
4
4
|
module Anyfetch
|
@@ -13,7 +13,7 @@ module Anyfetch
|
|
13
13
|
filename = ::File.basename(base_uri.path)
|
14
14
|
ext = ::File.extname(filename)
|
15
15
|
|
16
|
-
cmd =
|
16
|
+
cmd = Terrapin::CommandLine.new('/usr/bin/file', '--mime-type -b :file')
|
17
17
|
begin
|
18
18
|
mime_type = cmd.run(:file => path)
|
19
19
|
rescue
|
data/lib/anyfetch/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anyfetch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Szajbe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: terrapin
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|