tex2png 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/tex2png/converter.rb +4 -1
- data/lib/tex2png/version.rb +1 -1
- data/spec/converter_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 407c4f2d114704b4a96d3bb0de1ae4010f19e904
|
4
|
+
data.tar.gz: 49ac3b5216421f61953b27b7d40092713c748aaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5dadf80697a21140ba24066395ad9429f83a817e68904f79892e6a4f982382a68554fe7953b32d474d57e2564bba4f1397147cf5766b19c7aa2027b435642a
|
7
|
+
data.tar.gz: 5b01633eccdbdb0c80a54819def9ae3c9679047c9bba47c8ef16726f1d0aca5b1e5edc9fd94430b298cd29358b7a464d1ada34b1be92b8fbeefe064aacf823da
|
data/README.md
CHANGED
data/lib/tex2png/converter.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "securerandom"
|
2
|
+
require "base64"
|
2
3
|
|
3
4
|
module Tex2png
|
4
5
|
class Converter
|
@@ -26,7 +27,9 @@ module Tex2png
|
|
26
27
|
end
|
27
28
|
|
28
29
|
def data
|
29
|
-
png
|
30
|
+
@data ||= png do |io|
|
31
|
+
"data:image/png;base64, #{Base64.encode64(io.read)}"
|
32
|
+
end
|
30
33
|
end
|
31
34
|
|
32
35
|
def png(&block)
|
data/lib/tex2png/version.rb
CHANGED
data/spec/converter_spec.rb
CHANGED