Skip to content

Commit 8f715d8

Browse files
bgentrypythonicrubyist
authored andcommitted
Replace HTTParty with http.rb (#64)
* replace HTTParty with http.rb in gemspec * replace httparty use with http.rb
1 parent 4a6e491 commit 8f715d8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

creek.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
2727

2828
spec.add_dependency 'nokogiri', '>= 1.7.0'
2929
spec.add_dependency 'rubyzip', '>= 1.0.0'
30-
spec.add_dependency 'httparty', '~> 0.15.5'
30+
spec.add_dependency 'http', '~> 3.0.0'
3131
end

lib/creek/book.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'zip/filesystem'
22
require 'nokogiri'
33
require 'date'
4-
require 'httparty'
4+
require 'http'
55

66
module Creek
77

@@ -23,7 +23,7 @@ def initialize path, options = {}
2323
if options[:remote]
2424
zipfile = Tempfile.new("file")
2525
zipfile.binmode
26-
zipfile.write(HTTParty.get(path).body)
26+
zipfile.write(HTTP.get(path).to_s)
2727
zipfile.close
2828
path = zipfile.path
2929
end

0 commit comments

Comments
 (0)