hexapdf 0.11.7 → 0.11.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/hexapdf/serializer.rb +1 -1
- data/lib/hexapdf/version.rb +1 -1
- data/test/hexapdf/test_serializer.rb +3 -3
- data/test/hexapdf/test_writer.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baa354ef4d01aa8a9348cfb584d9e255ee253c04b0f927ea16361c45ca904d46
|
4
|
+
data.tar.gz: 2be95e4cd431bf772815ce4788f7ca25b132de2faec665bbdaf0982f73fea489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1bf0748678d022163457de1df628e080f7df261e5cb01ac09bae7f8560f05477f901a5e7b17c04111aea958458e0c0ff3c8d3beeda7119ddcd2913e906915b
|
7
|
+
data.tar.gz: 792ebec34b3f1010ae53867b2e4cce93bb2b472f504606a87f0f8fe651d8cae94c8d4bb99b69e972e9813955a76d9401319dbbb01084b67ea352d210d2656b73
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 0.11.8 - 2020-06-11
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
|
5
|
+
* Serialization of special `/` (zero-length name) object in dictionaries and
|
6
|
+
arrays
|
7
|
+
|
8
|
+
|
1
9
|
## 0.11.7 - 2020-06-10
|
2
10
|
|
3
11
|
### Fixed
|
@@ -7,6 +15,7 @@
|
|
7
15
|
* [HexaPDF::Task::Optimize] to work correctly when deleting object streams and
|
8
16
|
generating xref streams
|
9
17
|
|
18
|
+
|
10
19
|
## 0.11.6 - 2020-05-27
|
11
20
|
|
12
21
|
### Fixed
|
data/lib/hexapdf/serializer.rb
CHANGED
data/lib/hexapdf/version.rb
CHANGED
@@ -75,18 +75,18 @@ describe HexaPDF::Serializer do
|
|
75
75
|
assert_serialized('/lime#20Green', 'lime Green'.intern)
|
76
76
|
assert_serialized('/paired#28#29parentheses', 'paired()parentheses'.intern)
|
77
77
|
assert_serialized('/The_Key_of_F#23_Minor', 'The_Key_of_F#_Minor'.intern)
|
78
|
-
assert_serialized('/', ''.intern)
|
78
|
+
assert_serialized('/ ', ''.intern)
|
79
79
|
assert_serialized('/H#c3#b6#c3#9fgang', "Hößgang".intern)
|
80
80
|
assert_serialized('/H#e8lp', "H\xE8lp".force_encoding('BINARY').intern)
|
81
81
|
end
|
82
82
|
|
83
83
|
it "serializes arrays" do
|
84
|
-
assert_serialized("[-12
|
84
|
+
assert_serialized("[-12/ 2.4321/Name true(345)true]", [-12, :"", 2.4321, :Name, true, '345', true])
|
85
85
|
assert_serialized("[]", [])
|
86
86
|
end
|
87
87
|
|
88
88
|
it "serializes hashes" do
|
89
|
-
assert_serialized("<</hallo 5/other true/name[5]>>", hallo: 5, other: true, name: [5])
|
89
|
+
assert_serialized("<</hallo 5/ true/other true/name[5]>>", hallo: 5, "": true, other: true, name: [5])
|
90
90
|
assert_serialized("<<>>", {})
|
91
91
|
end
|
92
92
|
|
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.8)>>
|
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.8)>>
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Leitner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmdparse
|