Skip to content

Commit

Permalink
Merge pull request refile#7 from abevoelker/fix-string-misspellings
Browse files Browse the repository at this point in the history
Fix "String" misspellings
  • Loading branch information
jnicklas committed Jul 11, 2015
2 parents 57e6417 + 2e169f5 commit 288b50f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/refile/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def initialize(region:, bucket:, max_size: nil, prefix: nil, hasher: Refile::Ran
# if a file with the given id does not exist in this backend. Use
# {FileSystem#exists?} to check if the file actually exists.
#
# @param [Sring] id The id of the file
# @param [String] id The id of the file
# @return [Refile::File] The retrieved file
verify_id def get(id)
Refile::File.new(self, id)
end

# Delete a file from this backend
#
# @param [Sring] id The id of the file
# @param [String] id The id of the file
# @return [void]
verify_id def delete(id)
object(id).delete
Expand All @@ -92,7 +92,7 @@ def initialize(region:, bucket:, max_size: nil, prefix: nil, hasher: Refile::Ran
# Return an IO object for the uploaded file which can be used to read its
# content.
#
# @param [Sring] id The id of the file
# @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))
Expand All @@ -110,7 +110,7 @@ def initialize(region:, bucket:, max_size: nil, prefix: nil, hasher: Refile::Ran

# Return the size in bytes of the uploaded file.
#
# @param [Sring] id The id of the file
# @param [String] id The id of the file
# @return [Integer] The file's size
verify_id def size(id)
object(id).get.content_length
Expand All @@ -120,7 +120,7 @@ def initialize(region:, bucket:, max_size: nil, prefix: nil, hasher: Refile::Ran

# Return whether the file with the given id exists in this backend.
#
# @param [Sring] id The id of the file
# @param [String] id The id of the file
# @return [Boolean]
verify_id def exists?(id)
object(id).exists?
Expand Down

0 comments on commit 288b50f

Please sign in to comment.