Skip to content

Commit

Permalink
Remove entirely base64 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsykes committed Jan 3, 2025
1 parent 729438e commit ba61a28
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion fastimage.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.6}
s.summary = %q{FastImage - Image info fast}
s.add_dependency 'base64'
s.add_development_dependency 'fakeweb-fi', '~> 1.3'
# Note rake 11 drops support for ruby 1.9.2
s.add_development_dependency('rake', ">= 10.5")
Expand Down
1 change: 0 additions & 1 deletion lib/fastimage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
require 'delegate'
require 'pathname'
require 'zlib'
require 'base64'
require 'uri'
require 'stringio'

Expand Down
2 changes: 1 addition & 1 deletion lib/fastimage/fastimage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def fetch_using_file_open

def fetch_using_base64(uri)
decoded = begin
Base64.decode64(uri.split(',')[1])
uri.split(',')[1].unpack1("m")
rescue
raise CannotParseImage
end
Expand Down

0 comments on commit ba61a28

Please sign in to comment.