This repository was archived by the owner on Sep 27, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ jekyll_image_encode- * .gem
Original file line number Diff line number Diff line change 11Gem ::Specification . new do |s |
22 s . name = 'jekyll_image_encode'
3- s . version = '0.0.1 '
3+ s . version = '0.0.2 '
44 s . date = '2013-08-10'
55 s . summary = "Jekyll Image Encode"
66 s . description = "Jekyll tag that renders base64 codes of images fetched from the web"
@@ -9,4 +9,4 @@ Gem::Specification.new do |s|
99 s . files = Dir . glob ( 'lib/**/*' ) # `git ls-files`.split($/)
1010 s . homepage = 'https://github.com/GSI/' + s . name
1111 s . license = 'MIT'
12- end
12+ end
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def encode_image
3535 else
3636 # p "Caching #{@url} as local base64 string ..."
3737 open ( @url ) do |image |
38- encoded_image = Base64 . encode64 ( image . read )
38+ encoded_image = Base64 . strict_encode64 ( image . read )
3939 end
4040 self . cached_base64_codes . merge! ( @url => encoded_image )
4141 end
@@ -46,4 +46,4 @@ def encode_image
4646 end
4747end
4848
49- Liquid ::Template . register_tag ( 'base64' , Jekyll ::Tags ::ImageEncodeTag )
49+ Liquid ::Template . register_tag ( 'base64' , Jekyll ::Tags ::ImageEncodeTag )
You can’t perform that action at this time.
0 commit comments