hexapdf 0.11.3 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTERS +1 -1
- data/VERSION +1 -1
- data/lib/hexapdf/image_loader/png.rb +3 -3
- data/lib/hexapdf/version.rb +1 -1
- data/test/hexapdf/test_writer.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: '0907516ec3eaf3e982a0380bab72ea8923ea18ed3213b426061572913c2c426e'
|
|
4
|
+
data.tar.gz: 6541fdd61bfc2000a3bd77e8aa8ebf046e14c56a87d856bace5f89c586042f42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76a46bb08612f035c0e1159c1644797ecb949933ea73451d4f2e3bb128f5db3fd240bb759ec750ab42469c378b3fc36ec8ff466a6c39682a166b606dca5e7ca1
|
|
7
|
+
data.tar.gz: 1368b225b5d638c8cfc36057d983126746df3333e73f2b88d50238c51bdef095de275b9c872653b5c78a3009dbf60d71a7cd0ae7f9e231e6966c590e831de834
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTERS
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.11.
|
|
1
|
+
0.11.4
|
|
@@ -361,12 +361,12 @@ module HexaPDF
|
|
|
361
361
|
image_data << data.getbyte(0)
|
|
362
362
|
mask_data << data.getbyte(0)
|
|
363
363
|
while i < bytes_per_row
|
|
364
|
-
image_data << data.
|
|
364
|
+
bytes_per_colors.times {|j| image_data << data.getbyte(i + j) }
|
|
365
365
|
i += bytes_per_colors
|
|
366
|
-
mask_data << data.
|
|
366
|
+
bytes_per_alpha.times {|j| mask_data << data.getbyte(i + j) }
|
|
367
367
|
i += bytes_per_alpha
|
|
368
368
|
end
|
|
369
|
-
data[
|
|
369
|
+
data = data[bytes_per_row..-1]
|
|
370
370
|
end
|
|
371
371
|
end
|
|
372
372
|
|
data/lib/hexapdf/version.rb
CHANGED
data/test/hexapdf/test_writer.rb
CHANGED
|
@@ -40,7 +40,7 @@ describe HexaPDF::Writer do
|
|
|
40
40
|
219
|
|
41
41
|
%%EOF
|
|
42
42
|
3 0 obj
|
|
43
|
-
<</Producer(HexaPDF version 0.11.
|
|
43
|
+
<</Producer(HexaPDF version 0.11.4)>>
|
|
44
44
|
endobj
|
|
45
45
|
xref
|
|
46
46
|
3 1
|
|
@@ -72,7 +72,7 @@ describe HexaPDF::Writer do
|
|
|
72
72
|
141
|
|
73
73
|
%%EOF
|
|
74
74
|
6 0 obj
|
|
75
|
-
<</Producer(HexaPDF version 0.11.
|
|
75
|
+
<</Producer(HexaPDF version 0.11.4)>>
|
|
76
76
|
endobj
|
|
77
77
|
2 0 obj
|
|
78
78
|
<</Length 10>>stream
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hexapdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Leitner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cmdparse
|
|
@@ -637,8 +637,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
637
637
|
- !ruby/object:Gem::Version
|
|
638
638
|
version: '0'
|
|
639
639
|
requirements: []
|
|
640
|
-
|
|
641
|
-
rubygems_version: 2.6.14.4
|
|
640
|
+
rubygems_version: 3.0.3
|
|
642
641
|
signing_key:
|
|
643
642
|
specification_version: 4
|
|
644
643
|
summary: HexaPDF - A Versatile PDF Creation and Manipulation Library For Ruby
|