hexapdf 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -0
- data/CONTRIBUTERS +1 -1
- data/VERSION +1 -1
- data/lib/hexapdf/rectangle.rb +2 -2
- data/lib/hexapdf/version.rb +1 -1
- data/test/hexapdf/test_writer.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bd20872b69a7358f9bef26a12e1ea57368c3305d
|
4
|
+
data.tar.gz: 1d107e0db8ec876d24ea19d7f75e3c7229ca284c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64085653fc25ae248aabd54bc71250ab06f6d533657fe9d0803581b1f555f2858ee3602afcea74904755c290ada68c3cf4c4feb303623606febecdc34579bc7f
|
7
|
+
data.tar.gz: d8c8ab19a87badc8a732984d914b65c6cd7aa0dbbbcb8e1bc64339a13dcb4be0a1d33f641bba90b380273cb3faf6e188c979b44df473bd2f952196f40619779f
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTERS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.3
|
data/lib/hexapdf/rectangle.rb
CHANGED
@@ -96,7 +96,7 @@ module HexaPDF
|
|
96
96
|
# top right corner.
|
97
97
|
def after_data_change
|
98
98
|
super
|
99
|
-
unless value.size == 4 && all?(Numeric)
|
99
|
+
unless value.size == 4 && all? {|v| v.kind_of?(Numeric) }
|
100
100
|
raise ArgumentError, "A PDF rectangle structure must contain an array of four numbers"
|
101
101
|
end
|
102
102
|
self[0], self[2] = self[2], self[0] if self[0] > self[2]
|
@@ -105,7 +105,7 @@ module HexaPDF
|
|
105
105
|
|
106
106
|
def perform_validation #:nodoc:
|
107
107
|
super
|
108
|
-
unless value.size == 4 && all?(Numeric)
|
108
|
+
unless value.size == 4 && all? {|v| v.kind_of?(Numeric) }
|
109
109
|
yield("A PDF rectangle structure must contain an array of four numbers", false)
|
110
110
|
end
|
111
111
|
end
|
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.3)>>
|
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.3)>>
|
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.3
|
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-
|
11
|
+
date: 2019-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmdparse
|
@@ -638,7 +638,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
638
638
|
version: '0'
|
639
639
|
requirements: []
|
640
640
|
rubyforge_project:
|
641
|
-
rubygems_version: 2.
|
641
|
+
rubygems_version: 2.6.14.4
|
642
642
|
signing_key:
|
643
643
|
specification_version: 4
|
644
644
|
summary: HexaPDF - A Versatile PDF Creation and Manipulation Library For Ruby
|