We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a6e491 commit 8f715d8Copy full SHA for 8f715d8
2 files changed
creek.gemspec
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
28
spec.add_dependency 'nokogiri', '>= 1.7.0'
29
spec.add_dependency 'rubyzip', '>= 1.0.0'
30
- spec.add_dependency 'httparty', '~> 0.15.5'
+ spec.add_dependency 'http', '~> 3.0.0'
31
end
lib/creek/book.rb
@@ -1,7 +1,7 @@
1
require 'zip/filesystem'
2
require 'nokogiri'
3
require 'date'
4
-require 'httparty'
+require 'http'
5
6
module Creek
7
@@ -23,7 +23,7 @@ def initialize path, options = {}
23
if options[:remote]
24
zipfile = Tempfile.new("file")
25
zipfile.binmode
26
- zipfile.write(HTTParty.get(path).body)
+ zipfile.write(HTTP.get(path).to_s)
zipfile.close
path = zipfile.path
0 commit comments