Skip to content

Commit

Permalink
Merge pull request #147 from projecthydra/require_addressable
Browse files Browse the repository at this point in the history
Require addressable and call it from the root
  • Loading branch information
jeremyf committed Jan 17, 2017
2 parents e4e0c3d + 2105475 commit b3acaae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions browse-everything.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'rails', '>= 3.1'
spec.add_dependency 'addressable', '~> 2.5'
spec.add_dependency 'google_drive'
spec.add_dependency 'dropbox-sdk', '>= 1.6.2'
spec.add_dependency 'skydrive'
Expand Down
3 changes: 2 additions & 1 deletion lib/browse_everything/retriever.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'httparty'
require 'tempfile'
require 'addressable'

module BrowseEverything
class Retriever
Expand Down Expand Up @@ -30,7 +31,7 @@ def retrieve(spec)
raise ArgumentError, "Download spec expired at #{spec['expires']}"
end

url = Addressable::URI.parse(spec['url'])
url = ::Addressable::URI.parse(spec['url'])
retrieved = 0
case url.scheme
when 'file'
Expand Down

0 comments on commit b3acaae

Please sign in to comment.