Skip to content

Commit

Permalink
Update for Shrine 3.0.0.rc
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Sep 28, 2019
1 parent 02e92ec commit 22d82b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ source 'https://rubygems.org'

gemspec

gem 'pry'
gem "pry"
2 changes: 2 additions & 0 deletions lib/shrine/storage/fog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def upload(io, id, **upload_options)

def open(id, **options)
Down::Http.open(url(id), **options)
rescue Down::NotFound
raise Shrine::FileNotFound, "file #{id.inspect} not found on storage"
end

def exists?(id)
Expand Down
4 changes: 2 additions & 2 deletions shrine-fog.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
gem.files = Dir["README.md", "LICENSE.txt", "lib/**/*.rb", "*.gemspec"]
gem.require_path = "lib"

gem.add_dependency "shrine", ">= 2.2", "< 4"
gem.add_dependency "down", "~> 4.4"
gem.add_dependency "shrine", ">= 3.0.0.rc", "< 4"
gem.add_dependency "down", "~> 5.0"
gem.add_dependency "http", ">= 3.2", "< 5"

gem.add_development_dependency "rake"
Expand Down

0 comments on commit 22d82b1

Please sign in to comment.