AuraPrint 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aura-print.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c09675d416ec6adeb333d0a6d7b63ebc9db720b
4
- data.tar.gz: 36e941196eceb53be43a51e23b7bce8b9856bc9c
3
+ metadata.gz: '095cb3bc24e1235f010da99534d1c87f49a86a9d'
4
+ data.tar.gz: 04a5e811d2f43ec4f4cc2a9f847208c0945e8287
5
5
  SHA512:
6
- metadata.gz: 0b0ecb3342ed5e1685544f258c07b668b02e6271d6c78554a12ffd14480a7c3b834e07df9cb807f5b06b7f0e3aca05bcad7acf1c3e03a15da27e31251df36a24
7
- data.tar.gz: da8847465ff6adf46c97dbb77783c1083897dd199fb6de7951a03019d5f68ff7467a3f6eacf84f2f1f49c7c44fec6fe70ad49e3e6b3df260f5b9743db47d8812
6
+ metadata.gz: babeaa9cf206cc30330ce2fd720efe39f8feaae4a84872e1c575b966db3a753dc8b842f981e6ae49492291853e30af3e01019373456957c7ba5bca9564dc22f4
7
+ data.tar.gz: c95ad27e120622b1d996f3146338d3561b2c7c6d3c42c2472e398aa966450556407c7990d7d869b5ca08d321fc0e27e40010c34b138935cc91cc20360afda5ea
@@ -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
- imgCode = Base64.encode64(@img.to_blob).gsub(/\n/, "")
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AuraPrint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keaton Burleson