anyfetch 0.1.0 → 0.1.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: 7f6440473107e9be88c9355b4b3ba91bb518d292
4
- data.tar.gz: 1140887e72f2336f59cc7b9738496bf6b642e8a5
3
+ metadata.gz: abe33d8e99f0ccfbd0deb6f07a34bb1be0a9d70b
4
+ data.tar.gz: 53d10c8664b9bfe872c1f89386125177731890eb
5
5
  SHA512:
6
- metadata.gz: 15e01dc7b1ac52f129a086a73618b0262245ff939b3639aed43d908064b7a155e6360da4dd8e609d94ed55aed4b3c6c2d6ff25807958d77e3e86ae253625dd12
7
- data.tar.gz: 5200670c1d3b55948c4eeaf589d9efeac0c801412c8b68cbaa8be85af8e0bd92f9f4f1713a1b023eb21281f380dcd57ed9fa70dd68f3bd3a64a9dc102e88d484
6
+ metadata.gz: b72543ae099df71a7b286ce115759aab4d2e9d0720038e0fd65193549f9f902b4f7679df77a055cd39d1d065f2e11a976854227378a4e304503b81ce541a7ed8
7
+ data.tar.gz: 81205b021492ab33bec4df7e7c21d9bf1b4ab627193633f0a4e96e16befbffbc31a45aef60a9b0f7462d29451a8d31b6c6d667c91bf4a1e6f6ff63e6cd766d52
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Anyfetch Changelog
2
+
3
+ ## 0.1.1
4
+
5
+ * Use old hash notation to support ruby 1.8
6
+
7
+ ## 0.1
8
+
9
+ Initial release
data/lib/anyfetch/http.rb CHANGED
@@ -4,7 +4,7 @@ module Anyfetch
4
4
  class HTTP
5
5
  OPTIONS = {
6
6
  "User-Agent" => "Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0",
7
- allow_redirections: :safe,
7
+ :allow_redirections => :safe,
8
8
  }
9
9
 
10
10
  def initialize(uri, options)
@@ -15,7 +15,7 @@ module Anyfetch
15
15
 
16
16
  cmd = Cocaine::CommandLine.new('/usr/bin/file', '--mime-type -b :file')
17
17
  begin
18
- mime_type = cmd.run(file: path)
18
+ mime_type = cmd.run(:file => path)
19
19
  rescue
20
20
  mime_type = meta['content-type']
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Anyfetch
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anyfetch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Szajbe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-21 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocaine
@@ -105,6 +105,7 @@ files:
105
105
  - ".gitignore"
106
106
  - ".rspec"
107
107
  - ".travis.yml"
108
+ - CHANGELOG.md
108
109
  - Gemfile
109
110
  - LICENSE.txt
110
111
  - README.md