docraptor 1.1.0 → 1.2.0beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +38 -2
- data/.rspec +2 -0
- data/.swagger-codegen-ignore +32 -0
- data/.swagger-codegen/VERSION +1 -0
- data/.swagger-revision +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile +5 -1
- data/LICENSE +4 -10
- data/README.md +5 -4
- data/Rakefile +9 -0
- data/docraptor.gemspec +34 -16
- data/docraptor.yaml +5 -1
- data/lib/docraptor.rb +12 -0
- data/lib/docraptor/api/doc_api.rb +40 -56
- data/lib/docraptor/api_client.rb +102 -35
- data/lib/docraptor/api_error.rb +19 -5
- data/lib/docraptor/configuration.rb +40 -1
- data/lib/docraptor/models/async_doc.rb +61 -22
- data/lib/docraptor/models/async_doc_status.rb +66 -32
- data/lib/docraptor/models/doc.rb +122 -54
- data/lib/docraptor/models/prince_options.rb +116 -81
- data/lib/docraptor/version.rb +13 -1
- data/script/fix_gemspec.rb +31 -0
- data/script/post_generate_language +3 -0
- data/spec/api/doc_api_spec.rb +83 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_doc_spec.rb +42 -0
- data/spec/models/async_doc_status_spec.rb +72 -0
- data/spec/models/doc_spec.rb +128 -0
- data/spec/models/prince_options_spec.rb +214 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger-config.json +11 -3
- metadata +135 -112
data/swagger-config.json
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
"gemName": "docraptor",
|
3
|
+
"moduleName": "DocRaptor",
|
4
|
+
"gemVersion": "1.2.0beta1",
|
5
|
+
"gemAuthor": "Expected Behavior",
|
6
|
+
"gemAuthorEmail": "support@docraptor.com",
|
7
|
+
"gemHomepage": "https://github.com/docraptor/docraptor-ruby",
|
8
|
+
"gemSummary": "A wrapper for the DocRaptor HTML to PDF/XLS service.",
|
9
|
+
"gemDescription": "A native client library for the DocRaptor HTML to PDF/XLS service.",
|
10
|
+
"gemLicense": "MIT",
|
11
|
+
"hideGenerationTimestamp": true,
|
12
|
+
"httpUserAgent": "ruby-swagger-#{VERSION}"
|
5
13
|
}
|
metadata
CHANGED
@@ -1,246 +1,247 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docraptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
- Matthew Gordon
|
7
|
+
- Expected Behavior
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-08-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: typhoeus
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- - ~>
|
17
|
+
- - "~>"
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0
|
21
|
-
- -
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
22
21
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
22
|
+
version: 1.0.1
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
27
26
|
requirements:
|
28
|
-
- - ~>
|
27
|
+
- - "~>"
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
version: '0
|
31
|
-
- -
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
32
|
+
version: 1.0.1
|
34
33
|
- !ruby/object:Gem::Dependency
|
35
34
|
name: json
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
|
-
- - ~>
|
37
|
+
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1
|
41
|
-
- -
|
39
|
+
version: '2.1'
|
40
|
+
- - ">="
|
42
41
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
42
|
+
version: 2.1.0
|
44
43
|
type: :runtime
|
45
44
|
prerelease: false
|
46
45
|
version_requirements: !ruby/object:Gem::Requirement
|
47
46
|
requirements:
|
48
|
-
- - ~>
|
47
|
+
- - "~>"
|
49
48
|
- !ruby/object:Gem::Version
|
50
|
-
version: '1
|
51
|
-
- -
|
49
|
+
version: '2.1'
|
50
|
+
- - ">="
|
52
51
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
52
|
+
version: 2.1.0
|
54
53
|
- !ruby/object:Gem::Dependency
|
55
|
-
name:
|
54
|
+
name: rspec
|
56
55
|
requirement: !ruby/object:Gem::Requirement
|
57
56
|
requirements:
|
58
|
-
- - ~>
|
57
|
+
- - "~>"
|
59
58
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
- -
|
59
|
+
version: '3.6'
|
60
|
+
- - ">="
|
62
61
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
62
|
+
version: 3.6.0
|
64
63
|
type: :development
|
65
64
|
prerelease: false
|
66
65
|
version_requirements: !ruby/object:Gem::Requirement
|
67
66
|
requirements:
|
68
|
-
- - ~>
|
67
|
+
- - "~>"
|
69
68
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
71
|
-
- -
|
69
|
+
version: '3.6'
|
70
|
+
- - ">="
|
72
71
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
72
|
+
version: 3.6.0
|
74
73
|
- !ruby/object:Gem::Dependency
|
75
|
-
name:
|
74
|
+
name: vcr
|
76
75
|
requirement: !ruby/object:Gem::Requirement
|
77
76
|
requirements:
|
78
|
-
- - ~>
|
77
|
+
- - "~>"
|
79
78
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
81
|
-
- -
|
79
|
+
version: '3.0'
|
80
|
+
- - ">="
|
82
81
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
82
|
+
version: 3.0.1
|
84
83
|
type: :development
|
85
84
|
prerelease: false
|
86
85
|
version_requirements: !ruby/object:Gem::Requirement
|
87
86
|
requirements:
|
88
|
-
- - ~>
|
87
|
+
- - "~>"
|
89
88
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
91
|
-
- -
|
89
|
+
version: '3.0'
|
90
|
+
- - ">="
|
92
91
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
92
|
+
version: 3.0.1
|
94
93
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
94
|
+
name: webmock
|
96
95
|
requirement: !ruby/object:Gem::Requirement
|
97
96
|
requirements:
|
98
|
-
- - ~>
|
97
|
+
- - "~>"
|
99
98
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
101
|
-
- -
|
99
|
+
version: '1.24'
|
100
|
+
- - ">="
|
102
101
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
102
|
+
version: 1.24.3
|
104
103
|
type: :development
|
105
104
|
prerelease: false
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
107
106
|
requirements:
|
108
|
-
- - ~>
|
107
|
+
- - "~>"
|
109
108
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
111
|
-
- -
|
109
|
+
version: '1.24'
|
110
|
+
- - ">="
|
112
111
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
112
|
+
version: 1.24.3
|
114
113
|
- !ruby/object:Gem::Dependency
|
115
|
-
name:
|
114
|
+
name: autotest
|
116
115
|
requirement: !ruby/object:Gem::Requirement
|
117
116
|
requirements:
|
118
|
-
- - ~>
|
117
|
+
- - "~>"
|
119
118
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
121
|
-
- -
|
119
|
+
version: '4.4'
|
120
|
+
- - ">="
|
122
121
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
122
|
+
version: 4.4.6
|
124
123
|
type: :development
|
125
124
|
prerelease: false
|
126
125
|
version_requirements: !ruby/object:Gem::Requirement
|
127
126
|
requirements:
|
128
|
-
- - ~>
|
127
|
+
- - "~>"
|
129
128
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
131
|
-
- -
|
129
|
+
version: '4.4'
|
130
|
+
- - ">="
|
132
131
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
132
|
+
version: 4.4.6
|
134
133
|
- !ruby/object:Gem::Dependency
|
135
|
-
name:
|
134
|
+
name: autotest-rails-pure
|
136
135
|
requirement: !ruby/object:Gem::Requirement
|
137
136
|
requirements:
|
138
|
-
- - ~>
|
137
|
+
- - "~>"
|
139
138
|
- !ruby/object:Gem::Version
|
140
|
-
version: '1
|
141
|
-
- -
|
139
|
+
version: '4.1'
|
140
|
+
- - ">="
|
142
141
|
- !ruby/object:Gem::Version
|
143
|
-
version: 1.
|
142
|
+
version: 4.1.2
|
144
143
|
type: :development
|
145
144
|
prerelease: false
|
146
145
|
version_requirements: !ruby/object:Gem::Requirement
|
147
146
|
requirements:
|
148
|
-
- - ~>
|
147
|
+
- - "~>"
|
149
148
|
- !ruby/object:Gem::Version
|
150
|
-
version: '1
|
151
|
-
- -
|
149
|
+
version: '4.1'
|
150
|
+
- - ">="
|
152
151
|
- !ruby/object:Gem::Version
|
153
|
-
version: 1.
|
152
|
+
version: 4.1.2
|
154
153
|
- !ruby/object:Gem::Dependency
|
155
|
-
name: autotest
|
154
|
+
name: autotest-growl
|
156
155
|
requirement: !ruby/object:Gem::Requirement
|
157
156
|
requirements:
|
158
|
-
- - ~>
|
157
|
+
- - "~>"
|
159
158
|
- !ruby/object:Gem::Version
|
160
|
-
version: '
|
161
|
-
- -
|
159
|
+
version: '0.2'
|
160
|
+
- - ">="
|
162
161
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
162
|
+
version: 0.2.16
|
164
163
|
type: :development
|
165
164
|
prerelease: false
|
166
165
|
version_requirements: !ruby/object:Gem::Requirement
|
167
166
|
requirements:
|
168
|
-
- - ~>
|
167
|
+
- - "~>"
|
169
168
|
- !ruby/object:Gem::Version
|
170
|
-
version: '
|
171
|
-
- -
|
169
|
+
version: '0.2'
|
170
|
+
- - ">="
|
172
171
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
172
|
+
version: 0.2.16
|
174
173
|
- !ruby/object:Gem::Dependency
|
175
|
-
name: autotest-
|
174
|
+
name: autotest-fsevent
|
176
175
|
requirement: !ruby/object:Gem::Requirement
|
177
176
|
requirements:
|
178
|
-
- - ~>
|
177
|
+
- - "~>"
|
179
178
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
181
|
-
- -
|
179
|
+
version: '0.2'
|
180
|
+
- - ">="
|
182
181
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
182
|
+
version: 0.2.12
|
184
183
|
type: :development
|
185
184
|
prerelease: false
|
186
185
|
version_requirements: !ruby/object:Gem::Requirement
|
187
186
|
requirements:
|
188
|
-
- - ~>
|
187
|
+
- - "~>"
|
189
188
|
- !ruby/object:Gem::Version
|
190
|
-
version: '
|
191
|
-
- -
|
189
|
+
version: '0.2'
|
190
|
+
- - ">="
|
192
191
|
- !ruby/object:Gem::Version
|
193
|
-
version:
|
192
|
+
version: 0.2.12
|
194
193
|
- !ruby/object:Gem::Dependency
|
195
|
-
name:
|
194
|
+
name: rake
|
196
195
|
requirement: !ruby/object:Gem::Requirement
|
197
196
|
requirements:
|
198
|
-
- - ~>
|
197
|
+
- - "~>"
|
199
198
|
- !ruby/object:Gem::Version
|
200
|
-
version: '
|
201
|
-
- -
|
199
|
+
version: '11.2'
|
200
|
+
- - ">="
|
202
201
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
202
|
+
version: 11.2.2
|
204
203
|
type: :development
|
205
204
|
prerelease: false
|
206
205
|
version_requirements: !ruby/object:Gem::Requirement
|
207
206
|
requirements:
|
208
|
-
- - ~>
|
207
|
+
- - "~>"
|
209
208
|
- !ruby/object:Gem::Version
|
210
|
-
version: '
|
211
|
-
- -
|
209
|
+
version: '11.2'
|
210
|
+
- - ">="
|
212
211
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
212
|
+
version: 11.2.2
|
214
213
|
- !ruby/object:Gem::Dependency
|
215
|
-
name:
|
214
|
+
name: pry
|
216
215
|
requirement: !ruby/object:Gem::Requirement
|
217
216
|
requirements:
|
218
|
-
- - ~>
|
217
|
+
- - "~>"
|
219
218
|
- !ruby/object:Gem::Version
|
220
|
-
version: '0.
|
221
|
-
- -
|
219
|
+
version: '0.10'
|
220
|
+
- - ">="
|
222
221
|
- !ruby/object:Gem::Version
|
223
|
-
version: 0.
|
222
|
+
version: 0.10.4
|
224
223
|
type: :development
|
225
224
|
prerelease: false
|
226
225
|
version_requirements: !ruby/object:Gem::Requirement
|
227
226
|
requirements:
|
228
|
-
- - ~>
|
227
|
+
- - "~>"
|
229
228
|
- !ruby/object:Gem::Version
|
230
|
-
version: '0.
|
231
|
-
- -
|
229
|
+
version: '0.10'
|
230
|
+
- - ">="
|
232
231
|
- !ruby/object:Gem::Version
|
233
|
-
version: 0.
|
232
|
+
version: 0.10.4
|
234
233
|
description: A native client library for the DocRaptor HTML to PDF/XLS service.
|
235
234
|
email:
|
236
|
-
-
|
237
|
-
- matt@expectedbehavior.com
|
235
|
+
- support@docraptor.com
|
238
236
|
executables: []
|
239
237
|
extensions: []
|
240
238
|
extra_rdoc_files: []
|
241
239
|
files:
|
242
|
-
- .gitignore
|
243
|
-
- .
|
240
|
+
- ".gitignore"
|
241
|
+
- ".rspec"
|
242
|
+
- ".swagger-codegen-ignore"
|
243
|
+
- ".swagger-codegen/VERSION"
|
244
|
+
- ".swagger-revision"
|
244
245
|
- CHANGELOG.md
|
245
246
|
- Gemfile
|
246
247
|
- LICENSE
|
@@ -261,11 +262,20 @@ files:
|
|
261
262
|
- lib/docraptor/models/prince_options.rb
|
262
263
|
- lib/docraptor/version.rb
|
263
264
|
- script/clean
|
265
|
+
- script/fix_gemspec.rb
|
264
266
|
- script/generate_language
|
265
267
|
- script/post_generate_language
|
266
268
|
- script/swagger
|
267
269
|
- script/test
|
268
270
|
- script/update_from_upstream
|
271
|
+
- spec/api/doc_api_spec.rb
|
272
|
+
- spec/api_client_spec.rb
|
273
|
+
- spec/configuration_spec.rb
|
274
|
+
- spec/models/async_doc_spec.rb
|
275
|
+
- spec/models/async_doc_status_spec.rb
|
276
|
+
- spec/models/doc_spec.rb
|
277
|
+
- spec/models/prince_options_spec.rb
|
278
|
+
- spec/spec_helper.rb
|
269
279
|
- swagger-config.json
|
270
280
|
- test/async.rb
|
271
281
|
- test/invalid_async.rb
|
@@ -274,7 +284,7 @@ files:
|
|
274
284
|
- test/xlsx.rb
|
275
285
|
homepage: https://github.com/docraptor/docraptor-ruby
|
276
286
|
licenses:
|
277
|
-
-
|
287
|
+
- MIT
|
278
288
|
metadata: {}
|
279
289
|
post_install_message:
|
280
290
|
rdoc_options: []
|
@@ -282,18 +292,31 @@ require_paths:
|
|
282
292
|
- lib
|
283
293
|
required_ruby_version: !ruby/object:Gem::Requirement
|
284
294
|
requirements:
|
285
|
-
- -
|
295
|
+
- - ">="
|
286
296
|
- !ruby/object:Gem::Version
|
287
|
-
version: '
|
297
|
+
version: '1.9'
|
288
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
299
|
requirements:
|
290
|
-
- -
|
300
|
+
- - ">"
|
291
301
|
- !ruby/object:Gem::Version
|
292
|
-
version:
|
302
|
+
version: 1.3.1
|
293
303
|
requirements: []
|
294
304
|
rubyforge_project:
|
295
|
-
rubygems_version: 2.
|
305
|
+
rubygems_version: 2.5.1
|
296
306
|
signing_key:
|
297
307
|
specification_version: 4
|
298
308
|
summary: A wrapper for the DocRaptor HTML to PDF/XLS service.
|
299
|
-
test_files:
|
309
|
+
test_files:
|
310
|
+
- spec/api/doc_api_spec.rb
|
311
|
+
- spec/api_client_spec.rb
|
312
|
+
- spec/configuration_spec.rb
|
313
|
+
- spec/models/async_doc_spec.rb
|
314
|
+
- spec/models/async_doc_status_spec.rb
|
315
|
+
- spec/models/doc_spec.rb
|
316
|
+
- spec/models/prince_options_spec.rb
|
317
|
+
- spec/spec_helper.rb
|
318
|
+
- test/async.rb
|
319
|
+
- test/invalid_async.rb
|
320
|
+
- test/invalid_sync.rb
|
321
|
+
- test/sync.rb
|
322
|
+
- test/xlsx.rb
|