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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 569e36409af92892e51daffa031686bc87db46bc846933ddb9f47c415fccfd3f
4
- data.tar.gz: 88ad0152b80467b2f7936e2431b24091b8fa799b51094efcbfb467af04fb468e
3
+ metadata.gz: baa354ef4d01aa8a9348cfb584d9e255ee253c04b0f927ea16361c45ca904d46
4
+ data.tar.gz: 2be95e4cd431bf772815ce4788f7ca25b132de2faec665bbdaf0982f73fea489
5
5
  SHA512:
6
- metadata.gz: d49c7ae6f7bb2d17cf3124a10043b50d451e832f64fbf9cd6d852e00d00a6eb0fb47fedb624f97629404f5509b6126d4fdf04265164416adbb2020075b0dafd9
7
- data.tar.gz: 2fa2a590c07c7e286ab4b57bd110618bab7b3e4f6bfbb00906c1df53e3314f23536644652ba6a143802ca2bc331bd8f1ffa58ee4fbda884ae020c9b517b7f652
6
+ metadata.gz: 3e1bf0748678d022163457de1df628e080f7df261e5cb01ac09bae7f8560f05477f901a5e7b17c04111aea958458e0c0ff3c8d3beeda7119ddcd2913e906915b
7
+ data.tar.gz: 792ebec34b3f1010ae53867b2e4cce93bb2b472f504606a87f0f8fe651d8cae94c8d4bb99b69e972e9813955a76d9401319dbbb01084b67ea352d210d2656b73
@@ -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
@@ -187,7 +187,7 @@ module HexaPDF
187
187
  begin
188
188
  str = obj.to_s.dup.force_encoding(Encoding::BINARY)
189
189
  str.gsub!(NAME_REGEXP, NAME_SUBSTS)
190
- "/#{str}"
190
+ str.empty? ? "/ " : "/#{str}"
191
191
  end
192
192
  end
193
193
 
@@ -37,6 +37,6 @@
37
37
  module HexaPDF
38
38
 
39
39
  # The version of HexaPDF.
40
- VERSION = '0.11.7'
40
+ VERSION = '0.11.8'
41
41
 
42
42
  end
@@ -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 2.4321/Name true(345)true]", [-12, 2.4321, :Name, true, '345', true])
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
 
@@ -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.7)>>
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.7)>>
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.7
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-09 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmdparse