docraptor 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docraptor.gemspec +1 -1
- data/docraptor.yaml +13 -2
- data/lib/docraptor.rb +1 -1
- data/lib/docraptor/api/doc_api.rb +1 -1
- data/lib/docraptor/api_client.rb +1 -1
- data/lib/docraptor/api_error.rb +1 -1
- data/lib/docraptor/configuration.rb +1 -1
- data/lib/docraptor/models/async_doc.rb +1 -1
- data/lib/docraptor/models/async_doc_status.rb +1 -1
- data/lib/docraptor/models/doc.rb +14 -2
- data/lib/docraptor/models/prince_options.rb +16 -6
- data/lib/docraptor/version.rb +2 -2
- data/swagger-config.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3c994ce2ece25936f437a269f823e57a27f3f3c
|
4
|
+
data.tar.gz: ef3483cd3a4c6edb339776e7ce3a7519624ca203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6803e9c81c3ba4075d314d0d5f7553c61de81281452a1cb42577da971de35debea9561d358de2657879665bc8a98b1efa82cd333df3b9e8c8742617c91d9e2c1
|
7
|
+
data.tar.gz: a45210b3f371f1bc13a37fa25f08135647e73a69c39eb58ba90ff81b488612a61fe130b2a0261689c7b87d3b3f70f28b57e26de8196557f508106fc774d06513
|
data/CHANGELOG.md
CHANGED
data/docraptor.gemspec
CHANGED
data/docraptor.yaml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
swagger: '2.0'
|
2
2
|
|
3
|
-
info:
|
3
|
+
info: # https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#info-object
|
4
|
+
version: "1.3.0"
|
4
5
|
title: DocRaptor v1
|
5
6
|
description: "A native client library for the DocRaptor HTML to PDF/XLS service."
|
6
7
|
termsOfService: "https://docraptor.com/tos"
|
@@ -186,6 +187,10 @@ definitions:
|
|
186
187
|
type: boolean
|
187
188
|
description: Failed loading of images/javascripts/stylesheets/etc. will not cause the rendering to stop.
|
188
189
|
default: true
|
190
|
+
ignore_console_messages:
|
191
|
+
type: boolean
|
192
|
+
description: Prevent console.log from stopping document rendering during JavaScript execution.
|
193
|
+
default: false
|
189
194
|
tag:
|
190
195
|
type: string
|
191
196
|
description: A field for storing a small amount of metadata with this document.
|
@@ -300,7 +305,8 @@ definitions:
|
|
300
305
|
- auto
|
301
306
|
version:
|
302
307
|
type: string
|
303
|
-
|
308
|
+
deprecated: true
|
309
|
+
description: Deprecated, use the appropriate `pipeline` version. Specify a specific verison of PrinceXML to use.
|
304
310
|
# default: 10
|
305
311
|
# disabled because Java will try to make an enum as 7_1 which fails
|
306
312
|
# enum:
|
@@ -321,8 +327,13 @@ definitions:
|
|
321
327
|
# disabled because Java will try to make an enum with PDF/A-1b which fails
|
322
328
|
# enum:
|
323
329
|
# - PDF/A-1b
|
330
|
+
# - PDF/A-3b # (Pipeline 6+)
|
331
|
+
# - PDF/X-1a # (Pipeline 6+)
|
324
332
|
# - PDF/X-3:2003
|
325
333
|
# - PDF/X-4
|
334
|
+
pdf_title:
|
335
|
+
type: string
|
336
|
+
description: Specify the PDF title, part of the document's metadata.
|
326
337
|
|
327
338
|
AsyncDoc:
|
328
339
|
type: object
|
data/lib/docraptor.rb
CHANGED
data/lib/docraptor/api_client.rb
CHANGED
data/lib/docraptor/api_error.rb
CHANGED
data/lib/docraptor/models/doc.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A native client library for the DocRaptor HTML to PDF/XLS service.
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3
|
@@ -39,6 +39,9 @@ module DocRaptor
|
|
39
39
|
# Failed loading of images/javascripts/stylesheets/etc. will not cause the rendering to stop.
|
40
40
|
attr_accessor :ignore_resource_errors
|
41
41
|
|
42
|
+
# Prevent console.log from stopping document rendering during JavaScript execution.
|
43
|
+
attr_accessor :ignore_console_messages
|
44
|
+
|
42
45
|
# A field for storing a small amount of metadata with this document.
|
43
46
|
attr_accessor :tag
|
44
47
|
|
@@ -89,6 +92,7 @@ module DocRaptor
|
|
89
92
|
:'test' => :'test',
|
90
93
|
:'strict' => :'strict',
|
91
94
|
:'ignore_resource_errors' => :'ignore_resource_errors',
|
95
|
+
:'ignore_console_messages' => :'ignore_console_messages',
|
92
96
|
:'tag' => :'tag',
|
93
97
|
:'help' => :'help',
|
94
98
|
:'javascript' => :'javascript',
|
@@ -109,6 +113,7 @@ module DocRaptor
|
|
109
113
|
:'test' => :'BOOLEAN',
|
110
114
|
:'strict' => :'String',
|
111
115
|
:'ignore_resource_errors' => :'BOOLEAN',
|
116
|
+
:'ignore_console_messages' => :'BOOLEAN',
|
112
117
|
:'tag' => :'String',
|
113
118
|
:'help' => :'BOOLEAN',
|
114
119
|
:'javascript' => :'BOOLEAN',
|
@@ -164,6 +169,12 @@ module DocRaptor
|
|
164
169
|
self.ignore_resource_errors = true
|
165
170
|
end
|
166
171
|
|
172
|
+
if attributes.has_key?(:'ignore_console_messages')
|
173
|
+
self.ignore_console_messages = attributes[:'ignore_console_messages']
|
174
|
+
else
|
175
|
+
self.ignore_console_messages = false
|
176
|
+
end
|
177
|
+
|
167
178
|
if attributes.has_key?(:'tag')
|
168
179
|
self.tag = attributes[:'tag']
|
169
180
|
end
|
@@ -259,6 +270,7 @@ module DocRaptor
|
|
259
270
|
test == o.test &&
|
260
271
|
strict == o.strict &&
|
261
272
|
ignore_resource_errors == o.ignore_resource_errors &&
|
273
|
+
ignore_console_messages == o.ignore_console_messages &&
|
262
274
|
tag == o.tag &&
|
263
275
|
help == o.help &&
|
264
276
|
javascript == o.javascript &&
|
@@ -276,7 +288,7 @@ module DocRaptor
|
|
276
288
|
# Calculates hash code according to all attributes.
|
277
289
|
# @return [Fixnum] Hash code
|
278
290
|
def hash
|
279
|
-
[pipeline, name, document_type, document_content, document_url, test, strict, ignore_resource_errors, tag, help, javascript, referrer, callback_url, prince_options].hash
|
291
|
+
[pipeline, name, document_type, document_content, document_url, test, strict, ignore_resource_errors, ignore_console_messages, tag, help, javascript, referrer, callback_url, prince_options].hash
|
280
292
|
end
|
281
293
|
|
282
294
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A native client library for the DocRaptor HTML to PDF/XLS service.
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3
|
@@ -90,7 +90,7 @@ module DocRaptor
|
|
90
90
|
# Specify the input format.
|
91
91
|
attr_accessor :input
|
92
92
|
|
93
|
-
# Specify a specific verison of PrinceXML to use.
|
93
|
+
# Deprecated, use the appropriate `pipeline` version. Specify a specific verison of PrinceXML to use.
|
94
94
|
attr_accessor :version
|
95
95
|
|
96
96
|
# Enable PrinceXML JavaScript. DocRaptor JavaScript parsing is also available elsewhere.
|
@@ -102,6 +102,9 @@ module DocRaptor
|
|
102
102
|
# In Prince 9.0 and up you can set the PDF profile.
|
103
103
|
attr_accessor :profile
|
104
104
|
|
105
|
+
# Specify the PDF title, part of the document's metadata.
|
106
|
+
attr_accessor :pdf_title
|
107
|
+
|
105
108
|
class EnumAttributeValidator
|
106
109
|
attr_reader :datatype
|
107
110
|
attr_reader :allowable_values
|
@@ -155,7 +158,8 @@ module DocRaptor
|
|
155
158
|
:'version' => :'version',
|
156
159
|
:'javascript' => :'javascript',
|
157
160
|
:'css_dpi' => :'css_dpi',
|
158
|
-
:'profile' => :'profile'
|
161
|
+
:'profile' => :'profile',
|
162
|
+
:'pdf_title' => :'pdf_title'
|
159
163
|
}
|
160
164
|
end
|
161
165
|
|
@@ -190,7 +194,8 @@ module DocRaptor
|
|
190
194
|
:'version' => :'String',
|
191
195
|
:'javascript' => :'BOOLEAN',
|
192
196
|
:'css_dpi' => :'Integer',
|
193
|
-
:'profile' => :'String'
|
197
|
+
:'profile' => :'String',
|
198
|
+
:'pdf_title' => :'String'
|
194
199
|
}
|
195
200
|
end
|
196
201
|
|
@@ -322,6 +327,10 @@ module DocRaptor
|
|
322
327
|
self.profile = attributes[:'profile']
|
323
328
|
end
|
324
329
|
|
330
|
+
if attributes.has_key?(:'pdf_title')
|
331
|
+
self.pdf_title = attributes[:'pdf_title']
|
332
|
+
end
|
333
|
+
|
325
334
|
end
|
326
335
|
|
327
336
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -382,7 +391,8 @@ module DocRaptor
|
|
382
391
|
version == o.version &&
|
383
392
|
javascript == o.javascript &&
|
384
393
|
css_dpi == o.css_dpi &&
|
385
|
-
profile == o.profile
|
394
|
+
profile == o.profile &&
|
395
|
+
pdf_title == o.pdf_title
|
386
396
|
end
|
387
397
|
|
388
398
|
# @see the `==` method
|
@@ -394,7 +404,7 @@ module DocRaptor
|
|
394
404
|
# Calculates hash code according to all attributes.
|
395
405
|
# @return [Fixnum] Hash code
|
396
406
|
def hash
|
397
|
-
[baseurl, no_xinclude, no_network, no_parallel_downloads, http_user, http_password, http_proxy, http_timeout, insecure, media, no_author_style, no_default_style, no_embed_fonts, no_subset_fonts, no_compress, encrypt, key_bits, user_password, owner_password, disallow_print, disallow_copy, disallow_annotate, disallow_modify, debug, input, version, javascript, css_dpi, profile].hash
|
407
|
+
[baseurl, no_xinclude, no_network, no_parallel_downloads, http_user, http_password, http_proxy, http_timeout, insecure, media, no_author_style, no_default_style, no_embed_fonts, no_subset_fonts, no_compress, encrypt, key_bits, user_password, owner_password, disallow_print, disallow_copy, disallow_annotate, disallow_modify, debug, input, version, javascript, css_dpi, profile, pdf_title].hash
|
398
408
|
end
|
399
409
|
|
400
410
|
# Builds the object from hash
|
data/lib/docraptor/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A native client library for the DocRaptor HTML to PDF/XLS service.
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.2.3
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module DocRaptor
|
14
|
-
VERSION = "1.
|
14
|
+
VERSION = "1.3.0"
|
15
15
|
end
|
data/swagger-config.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docraptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Expected Behavior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|