AuraPrint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aura-print.rb +4 -4
- 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: '095cb3bc24e1235f010da99534d1c87f49a86a9d'
|
4
|
+
data.tar.gz: 04a5e811d2f43ec4f4cc2a9f847208c0945e8287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: babeaa9cf206cc30330ce2fd720efe39f8feaae4a84872e1c575b966db3a753dc8b842f981e6ae49492291853e30af3e01019373456957c7ba5bca9564dc22f4
|
7
|
+
data.tar.gz: c95ad27e120622b1d996f3146338d3561b2c7c6d3c42c2472e398aa966450556407c7990d7d869b5ca08d321fc0e27e40010c34b138935cc91cc20360afda5ea
|
data/lib/aura-print.rb
CHANGED
@@ -43,11 +43,11 @@ module AuraPrint
|
|
43
43
|
require 'rmagick'
|
44
44
|
require 'chunky_png'
|
45
45
|
require 'barby/outputter/rmagick_outputter'
|
46
|
+
|
46
47
|
barcode = Barby::Code128B.new(sku)
|
47
|
-
img = barcode.to_image
|
48
|
-
img.format = 'png'
|
49
|
-
|
50
|
-
"<img src='data:image/png;base64,#{imgCode}' />".html_safe
|
48
|
+
@img = barcode.to_image
|
49
|
+
@img.format = 'png'
|
50
|
+
@img.to_blob
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.barcodeWeb(sku, printer)
|