hexapdf 0.11.3 → 0.11.4

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
- SHA1:
3
- metadata.gz: bd20872b69a7358f9bef26a12e1ea57368c3305d
4
- data.tar.gz: 1d107e0db8ec876d24ea19d7f75e3c7229ca284c
2
+ SHA256:
3
+ metadata.gz: '0907516ec3eaf3e982a0380bab72ea8923ea18ed3213b426061572913c2c426e'
4
+ data.tar.gz: 6541fdd61bfc2000a3bd77e8aa8ebf046e14c56a87d856bace5f89c586042f42
5
5
  SHA512:
6
- metadata.gz: 64085653fc25ae248aabd54bc71250ab06f6d533657fe9d0803581b1f555f2858ee3602afcea74904755c290ada68c3cf4c4feb303623606febecdc34579bc7f
7
- data.tar.gz: d8c8ab19a87badc8a732984d914b65c6cd7aa0dbbbcb8e1bc64339a13dcb4be0a1d33f641bba90b380273cb3faf6e188c979b44df473bd2f952196f40619779f
6
+ metadata.gz: 76a46bb08612f035c0e1159c1644797ecb949933ea73451d4f2e3bb128f5db3fd240bb759ec750ab42469c378b3fc36ec8ff466a6c39682a166b606dca5e7ca1
7
+ data.tar.gz: 1368b225b5d638c8cfc36057d983126746df3333e73f2b88d50238c51bdef095de275b9c872653b5c78a3009dbf60d71a7cd0ae7f9e231e6966c590e831de834
@@ -1,3 +1,11 @@
1
+ ## 0.11.4 - 2019-12-28
2
+
3
+ ### Fixed
4
+
5
+ * Memory consumption problem of PNG image loader when using images with alpha
6
+ channel
7
+
8
+
1
9
  ## 0.11.3 - 2019-11-27
2
10
 
3
11
  ### Fixed
@@ -1,5 +1,5 @@
1
1
  Count Name
2
2
  ======= ====
3
- 1095 Thomas Leitner <t_leitner@gmx.at>
3
+ 1097 Thomas Leitner <t_leitner@gmx.at>
4
4
  1 Stanislav (Stas) Katkov <sk@skylup.com>
5
5
  1 Daniel Kraus <bovender@bovender.de>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.3
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.byteslice(i, bytes_per_colors)
364
+ bytes_per_colors.times {|j| image_data << data.getbyte(i + j) }
365
365
  i += bytes_per_colors
366
- mask_data << data.byteslice(i, bytes_per_alpha)
366
+ bytes_per_alpha.times {|j| mask_data << data.getbyte(i + j) }
367
367
  i += bytes_per_alpha
368
368
  end
369
- data[0, bytes_per_row] = ''
369
+ data = data[bytes_per_row..-1]
370
370
  end
371
371
  end
372
372
 
@@ -37,6 +37,6 @@
37
37
  module HexaPDF
38
38
 
39
39
  # The version of HexaPDF.
40
- VERSION = '0.11.3'
40
+ VERSION = '0.11.4'
41
41
 
42
42
  end
@@ -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.3)>>
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.3)>>
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.3
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-27 00:00:00.000000000 Z
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
- rubyforge_project:
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