Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
*.o
*.a
mkmf.log
s3.yml
s3.yml
.idea
2 changes: 1 addition & 1 deletion lib/refile/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def initialize(region:, bucket:, max_size: nil, prefix: nil, hasher: Refile::Ran
# @param [String] id The id of the file
# @return [IO] An IO object containing the file contents
verify_id def open(id)
Kernel.open(object(id).presigned_url(:get))
URI.parse(object(id).presigned_url(:get)).open
end

# Return the entire contents of the uploaded file as a String.
Expand Down
2 changes: 1 addition & 1 deletion lib/refile/s3/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Refile
class S3
VERSION = "0.2.0"
VERSION = "0.2.1"
end
end