This repository was archived by the owner on Sep 27, 2018. It is now read-only.
File tree 3 files changed +5
-4
lines changed
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 1
1
Gem ::Specification . new do |s |
2
2
s . name = 'jekyll_image_encode'
3
- s . version = '0.0.1 '
3
+ s . version = '0.0.2 '
4
4
s . date = '2013-08-10'
5
5
s . summary = "Jekyll Image Encode"
6
6
s . description = "Jekyll tag that renders base64 codes of images fetched from the web"
@@ -9,4 +9,4 @@ Gem::Specification.new do |s|
9
9
s . files = Dir . glob ( 'lib/**/*' ) # `git ls-files`.split($/)
10
10
s . homepage = 'https://github.com/GSI/' + s . name
11
11
s . license = 'MIT'
12
- end
12
+ end
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def encode_image
35
35
else
36
36
# p "Caching #{@url} as local base64 string ..."
37
37
open ( @url ) do |image |
38
- encoded_image = Base64 . encode64 ( image . read )
38
+ encoded_image = Base64 . strict_encode64 ( image . read )
39
39
end
40
40
self . cached_base64_codes . merge! ( @url => encoded_image )
41
41
end
@@ -46,4 +46,4 @@ def encode_image
46
46
end
47
47
end
48
48
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