pdf-core 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdf/core/pdf_object.rb +2 -2
- data/pdf-core.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa5548070414d841b8f73c1a1e0e7e7071287674
|
4
|
+
data.tar.gz: 380d75f03a842a941f30aa96568f9e77e4e85321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4219f4b7a03342774aa17a641caea4cf68b3c3d35ce76000cdc6885e7bd940a1ef030a9ad7dc26f81dc5aeef2fee19d0399a3014364c31b99e1792c4b6504e9
|
7
|
+
data.tar.gz: a338b5ab4035dac6d599cac547591fde73045e59b695f9a7d74cdcd49d815f985122b4457c9b695992e75abcdf2c301810cee730333668a936c85b2126eb2d3a
|
data/lib/pdf/core/pdf_object.rb
CHANGED
@@ -58,11 +58,11 @@ module PDF
|
|
58
58
|
when Array
|
59
59
|
"[" << obj.map { |e| PdfObject(e, in_content_stream) }.join(' ') << "]"
|
60
60
|
when PDF::Core::LiteralString
|
61
|
-
obj = obj.gsub(/[\\\n\r\t\b\f\(\)]/
|
61
|
+
obj = obj.gsub(/[\\\n\r\t\b\f\(\)]/) { |m| "\\#{m}" }
|
62
62
|
"(#{obj})"
|
63
63
|
when Time
|
64
64
|
obj = obj.strftime("D:%Y%m%d%H%M%S%z").chop.chop + "'00'"
|
65
|
-
obj = obj.gsub(/[\\\n\r\t\b\f\(\)]/
|
65
|
+
obj = obj.gsub(/[\\\n\r\t\b\f\(\)]/) { |m| "\\#{m}" }
|
66
66
|
"(#{obj})"
|
67
67
|
when PDF::Core::ByteString
|
68
68
|
"<" << obj.unpack("H*").first << ">"
|
data/pdf-core.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.authors = ["Gregory Brown","Brad Ediger","Daniel Nelson","Jonathan Greenberg","James Healy"]
|
19
19
|
spec.email = ["gregory.t.brown@gmail.com","brad@bradediger.com","dnelson@bluejade.com","greenberg@entryway.net","jimmy@deefa.com"]
|
20
20
|
spec.rubyforge_project = "prawn"
|
21
|
-
spec.licenses =
|
21
|
+
spec.licenses = %w(PRAWN GPL-2.0 GPL-3.0)
|
22
22
|
spec.add_development_dependency('pdf-reader', '~>1.2')
|
23
23
|
spec.add_development_dependency('simplecov')
|
24
24
|
spec.add_development_dependency('pdf-inspector', '~> 1.1.0')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Brown
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2016-02-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: pdf-reader
|
@@ -133,9 +133,9 @@ files:
|
|
133
133
|
- spec/stream_spec.rb
|
134
134
|
homepage: http://prawn.majesticseacreature.com
|
135
135
|
licenses:
|
136
|
-
-
|
137
|
-
- GPL-2
|
138
|
-
- GPL-3
|
136
|
+
- PRAWN
|
137
|
+
- GPL-2.0
|
138
|
+
- GPL-3.0
|
139
139
|
metadata: {}
|
140
140
|
post_install_message:
|
141
141
|
rdoc_options: []
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: 1.3.6
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project: prawn
|
156
|
-
rubygems_version: 2.4.5
|
156
|
+
rubygems_version: 2.4.5.1
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: PDF::Core is used by Prawn to render PDF documents
|