dmtx 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c16436599c8d67eaede6abf22d043f3154e7448d11c5aad7ea2d73a9d60a2f8a
4
- data.tar.gz: 05a2a4585428d5a1f7dc653ea08e49e2c66bdd704a2791443524eee1196c4150
3
+ metadata.gz: a114ad5037384a5dd7a9944663ff50f2ef82b5ccefdcf9f415cf1e364dbd6bb5
4
+ data.tar.gz: 4b3346d6d27a62311a04df3c6ea459ee1524920811d7d5b34104fbf61185923b
5
5
  SHA512:
6
- metadata.gz: 38aed0964ba6bc6e60d276b867bf7def43aef7cd7be1f950c08690634cda9e6f58cf70396d7399d42c983427ca5fb1ffc9629f81a5bd26b66f9690221d47e49b
7
- data.tar.gz: ca534e74457c993ec07af6e88011f44d1a8ae7e1aba3901a7e8dbdb12952ae5d0d241935a94bf9f6de8a6b12052ef621539ae5fe6a74b3f66c56df9b74237661
6
+ metadata.gz: '01866bc5320e4c56a495eed7c2671871b64dc7d84af57e4d3aa15078617d69aca943da63386b62fcd2e4efb1ee73d9c30b58ff9443651e2ba304237b1a2135a6'
7
+ data.tar.gz: 6b8e0d0d64248af532a77c4407dc884fea29cba0428115733bf3a046fde586c57eea2b3fab5b963c4f81c3c233f5c0f2cf626bb2d3069b208cb38a73f6c64746
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.1] - 2021-09-02
2
+
3
+ - Fix PNG bgcolor
4
+
1
5
  ## [0.1.0] - 2021-09-02
2
6
 
3
7
  - Initial release
@@ -104,7 +104,7 @@ module Dmtx
104
104
  bgcolor = bgcolor ? ChunkyPNG::Color(bgcolor) : ChunkyPNG::Color::TRANSPARENT
105
105
  width_px = mod * (width + pad * 2)
106
106
  height_px = mod * (height + pad * 2)
107
- png = ChunkyPNG::Image.new(width_px, height_px, ChunkyPNG::Color::TRANSPARENT)
107
+ png = ChunkyPNG::Image.new(width_px, height_px, bgcolor)
108
108
  sx = sy = mod * pad
109
109
  (0..(height - 1)).each do |y|
110
110
  (0..(width - 1)).each do |x|
data/lib/dmtx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dmtx
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmtx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Grosser