Skip to content

Commit 0fb4e0a

Browse files
committed
Updated on 2025-01-30 21:34:12. Version: 2.0.0
1 parent 9583c81 commit 0fb4e0a

File tree

241 files changed

+17541
-8382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+17541
-8382
lines changed

.gitlab-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.ruby: &ruby
2+
variables:
3+
LANG: "C.UTF-8"
4+
before_script:
5+
- ruby -v
6+
- bundle config set --local deployment true
7+
- bundle install -j $(nproc)
8+
parallel:
9+
matrix:
10+
- RUBY_VERSION: ['2.7', '3.0', '3.1']
11+
image: "ruby:$RUBY_VERSION"
12+
cache:
13+
paths:
14+
- vendor/ruby
15+
key: 'ruby-$RUBY_VERSION'
16+
17+
gem:
18+
extends: .ruby
19+
script:
20+
- bundle exec rspec
21+
- bundle exec rake build
22+
- bundle exec rake install
23+
artifacts:
24+
paths:
25+
- pkg/*.gem
26+

.openapi-generator/FILES

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
.gitignore
2+
.gitlab-ci.yml
3+
.rspec
4+
.rubocop.yml
5+
.travis.yml
6+
Gemfile
7+
README.md
8+
Rakefile
9+
docs/AddFieldsData.md
10+
docs/AddFieldsTemplateResponse.md
11+
docs/AuthenticationError.md
12+
docs/AuthenticationSuccessResponse.md
13+
docs/CombinePdfsData.md
14+
docs/CombinedSubmission.md
15+
docs/CombinedSubmissionAction.md
16+
docs/CombinedSubmissionData.md
17+
docs/CopyTemplateData.md
18+
docs/CreateCombinedSubmissionResponse.md
19+
docs/CreateCustomFileData.md
20+
docs/CreateCustomFileResponse.md
21+
docs/CreateFolderAttributes.md
22+
docs/CreateFolderData.md
23+
docs/CreateHtmlTemplateData.md
24+
docs/CreateSubmissionBatchResponse.md
25+
docs/CreateSubmissionBatchSubmissionsResponse.md
26+
docs/CreateSubmissionData.md
27+
docs/CreateSubmissionDataRequestData.md
28+
docs/CreateSubmissionDataRequestEventRequest.md
29+
docs/CreateSubmissionDataRequestEventResponse.md
30+
docs/CreateSubmissionDataRequestTokenResponse.md
31+
docs/CreateSubmissionResponse.md
32+
docs/CreateTemplateFromUploadData.md
33+
docs/DataRequestToken.md
34+
docs/DeleteTemplateResponse.md
35+
docs/ErrorResponse.md
36+
docs/Folder.md
37+
docs/FullTemplate.md
38+
docs/HtmlTemplateData.md
39+
docs/HtmlTemplateDataWebhookOptions.md
40+
docs/InvalidRequest.md
41+
docs/InvalidRequestSingleError.md
42+
docs/ListSubmissionsResponse.md
43+
docs/MoveFolderData.md
44+
docs/MoveTemplateData.md
45+
docs/PDFApi.md
46+
docs/PendingTemplate.md
47+
docs/PreviewPdfResponse.md
48+
docs/PublishTemplateVersion404Response.md
49+
docs/PublishTemplateVersion422Response.md
50+
docs/PublishTemplateVersionResponse.md
51+
docs/PublishTemplateVersionResponseResult.md
52+
docs/PublishVersionData.md
53+
docs/RenameFolderData.md
54+
docs/RestoreTemplateVersionResponse.md
55+
docs/RestoreVersionData.md
56+
docs/Submission.md
57+
docs/SubmissionAction.md
58+
docs/SubmissionBatch.md
59+
docs/SubmissionBatchData.md
60+
docs/SubmissionData.md
61+
docs/SubmissionDataBatchRequest.md
62+
docs/SubmissionDataRequest.md
63+
docs/SubmissionDataRequestEvent.md
64+
docs/Template.md
65+
docs/TemplateData.md
66+
docs/TemplateDefaults.md
67+
docs/TemplateDocument.md
68+
docs/TemplateDocumentMetadata.md
69+
docs/TemplateSchema.md
70+
docs/UpdateDataRequestResponse.md
71+
docs/UpdateSubmissionDataRequestData.md
72+
docs/UpdateTemplateData.md
73+
docs/UpdateTemplateResponse.md
74+
docs/UploadPresign.md
75+
docs/UploadTemplateData.md
76+
docspring.gemspec
77+
git_push.sh
78+
lib/docspring.rb
79+
lib/docspring/api/client.rb
80+
lib/docspring/api/pdf_api.rb
81+
lib/docspring/api_client.rb
82+
lib/docspring/api_error.rb
83+
lib/docspring/configuration.rb
84+
lib/docspring/models/add_fields_data.rb
85+
lib/docspring/models/add_fields_template_response.rb
86+
lib/docspring/models/authentication_error.rb
87+
lib/docspring/models/authentication_success_response.rb
88+
lib/docspring/models/combine_pdfs_data.rb
89+
lib/docspring/models/combined_submission.rb
90+
lib/docspring/models/combined_submission_action.rb
91+
lib/docspring/models/combined_submission_data.rb
92+
lib/docspring/models/copy_template_data.rb
93+
lib/docspring/models/create_combined_submission_response.rb
94+
lib/docspring/models/create_custom_file_data.rb
95+
lib/docspring/models/create_custom_file_response.rb
96+
lib/docspring/models/create_folder_attributes.rb
97+
lib/docspring/models/create_folder_data.rb
98+
lib/docspring/models/create_html_template_data.rb
99+
lib/docspring/models/create_submission_batch_response.rb
100+
lib/docspring/models/create_submission_batch_submissions_response.rb
101+
lib/docspring/models/create_submission_data.rb
102+
lib/docspring/models/create_submission_data_request_data.rb
103+
lib/docspring/models/create_submission_data_request_event_request.rb
104+
lib/docspring/models/create_submission_data_request_event_response.rb
105+
lib/docspring/models/create_submission_data_request_token_response.rb
106+
lib/docspring/models/create_submission_response.rb
107+
lib/docspring/models/create_template_from_upload_data.rb
108+
lib/docspring/models/data_request_token.rb
109+
lib/docspring/models/delete_template_response.rb
110+
lib/docspring/models/error_response.rb
111+
lib/docspring/models/folder.rb
112+
lib/docspring/models/full_template.rb
113+
lib/docspring/models/html_template_data.rb
114+
lib/docspring/models/html_template_data_webhook_options.rb
115+
lib/docspring/models/invalid_request.rb
116+
lib/docspring/models/invalid_request_single_error.rb
117+
lib/docspring/models/list_submissions_response.rb
118+
lib/docspring/models/move_folder_data.rb
119+
lib/docspring/models/move_template_data.rb
120+
lib/docspring/models/pending_template.rb
121+
lib/docspring/models/preview_pdf_response.rb
122+
lib/docspring/models/publish_template_version404_response.rb
123+
lib/docspring/models/publish_template_version422_response.rb
124+
lib/docspring/models/publish_template_version_response.rb
125+
lib/docspring/models/publish_template_version_response_result.rb
126+
lib/docspring/models/publish_version_data.rb
127+
lib/docspring/models/rename_folder_data.rb
128+
lib/docspring/models/restore_template_version_response.rb
129+
lib/docspring/models/restore_version_data.rb
130+
lib/docspring/models/submission.rb
131+
lib/docspring/models/submission_action.rb
132+
lib/docspring/models/submission_batch.rb
133+
lib/docspring/models/submission_batch_data.rb
134+
lib/docspring/models/submission_data.rb
135+
lib/docspring/models/submission_data_batch_request.rb
136+
lib/docspring/models/submission_data_request.rb
137+
lib/docspring/models/submission_data_request_event.rb
138+
lib/docspring/models/template.rb
139+
lib/docspring/models/template_data.rb
140+
lib/docspring/models/template_defaults.rb
141+
lib/docspring/models/template_document.rb
142+
lib/docspring/models/template_document_metadata.rb
143+
lib/docspring/models/template_schema.rb
144+
lib/docspring/models/update_data_request_response.rb
145+
lib/docspring/models/update_submission_data_request_data.rb
146+
lib/docspring/models/update_template_data.rb
147+
lib/docspring/models/update_template_response.rb
148+
lib/docspring/models/upload_presign.rb
149+
lib/docspring/models/upload_template_data.rb
150+
lib/docspring/version.rb
151+
spec/api/client_integration_spec.rb
152+
spec/api/pdf_api_integration_spec.rb
153+
spec/api/pdf_api_spec.rb
154+
spec/models/add_fields_data_spec.rb
155+
spec/models/add_fields_template_response_spec.rb
156+
spec/models/authentication_error_spec.rb
157+
spec/models/authentication_success_response_spec.rb
158+
spec/models/combine_pdfs_data_spec.rb
159+
spec/models/combined_submission_action_spec.rb
160+
spec/models/combined_submission_data_spec.rb
161+
spec/models/combined_submission_spec.rb
162+
spec/models/copy_template_data_spec.rb
163+
spec/models/create_combined_submission_response_spec.rb
164+
spec/models/create_custom_file_data_spec.rb
165+
spec/models/create_custom_file_response_spec.rb
166+
spec/models/create_folder_attributes_spec.rb
167+
spec/models/create_folder_data_spec.rb
168+
spec/models/create_html_template_data_spec.rb
169+
spec/models/create_submission_batch_response_spec.rb
170+
spec/models/create_submission_batch_submissions_response_spec.rb
171+
spec/models/create_submission_data_request_data_spec.rb
172+
spec/models/create_submission_data_request_event_request_spec.rb
173+
spec/models/create_submission_data_request_event_response_spec.rb
174+
spec/models/create_submission_data_request_token_response_spec.rb
175+
spec/models/create_submission_data_spec.rb
176+
spec/models/create_submission_response_spec.rb
177+
spec/models/create_template_from_upload_data_spec.rb
178+
spec/models/data_request_token_spec.rb
179+
spec/models/delete_template_response_spec.rb
180+
spec/models/error_response_spec.rb
181+
spec/models/folder_spec.rb
182+
spec/models/full_template_spec.rb
183+
spec/models/html_template_data_spec.rb
184+
spec/models/html_template_data_webhook_options_spec.rb
185+
spec/models/invalid_request_single_error_spec.rb
186+
spec/models/invalid_request_spec.rb
187+
spec/models/list_submissions_response_spec.rb
188+
spec/models/move_folder_data_spec.rb
189+
spec/models/move_template_data_spec.rb
190+
spec/models/pending_template_spec.rb
191+
spec/models/preview_pdf_response_spec.rb
192+
spec/models/publish_template_version404_response_spec.rb
193+
spec/models/publish_template_version422_response_spec.rb
194+
spec/models/publish_template_version_response_result_spec.rb
195+
spec/models/publish_template_version_response_spec.rb
196+
spec/models/publish_version_data_spec.rb
197+
spec/models/rename_folder_data_spec.rb
198+
spec/models/restore_template_version_response_spec.rb
199+
spec/models/restore_version_data_spec.rb
200+
spec/models/submission_action_spec.rb
201+
spec/models/submission_batch_data_spec.rb
202+
spec/models/submission_batch_spec.rb
203+
spec/models/submission_data_batch_request_spec.rb
204+
spec/models/submission_data_request_event_spec.rb
205+
spec/models/submission_data_request_spec.rb
206+
spec/models/submission_data_spec.rb
207+
spec/models/submission_spec.rb
208+
spec/models/template_data_spec.rb
209+
spec/models/template_defaults_spec.rb
210+
spec/models/template_document_metadata_spec.rb
211+
spec/models/template_document_spec.rb
212+
spec/models/template_schema_spec.rb
213+
spec/models/template_spec.rb
214+
spec/models/update_data_request_response_spec.rb
215+
spec/models/update_submission_data_request_data_spec.rb
216+
spec/models/update_template_data_spec.rb
217+
spec/models/update_template_response_spec.rb
218+
spec/models/upload_presign_spec.rb
219+
spec/models/upload_template_data_spec.rb
220+
spec/spec_helper.rb

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
7.11.0

.rubocop.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.2
4+
TargetRubyVersion: 2.4
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true
@@ -14,12 +14,6 @@ AllCops:
1414
Style/AndOr:
1515
Enabled: true
1616

17-
# Do not use braces for hash literals when they are the last argument of a
18-
# method call.
19-
Style/BracesAroundHashParameters:
20-
Enabled: true
21-
EnforcedStyle: context_dependent
22-
2317
# Align `when` with `case`.
2418
Layout/CaseIndentation:
2519
Enabled: true
@@ -46,7 +40,7 @@ Layout/EmptyLinesAroundMethodBody:
4640
Layout/EmptyLinesAroundModuleBody:
4741
Enabled: true
4842

49-
Layout/FirstParameterIndentation:
43+
Layout/FirstArgumentIndentation:
5044
Enabled: true
5145

5246
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
@@ -57,7 +51,7 @@ Style/HashSyntax:
5751
# extra level of indentation.
5852
Layout/IndentationConsistency:
5953
Enabled: true
60-
EnforcedStyle: rails
54+
EnforcedStyle: indented_internal_methods
6155

6256
# Two spaces, no tabs (for indentation).
6357
Layout/IndentationWidth:
@@ -119,19 +113,19 @@ Layout/SpaceInsideParens:
119113
# EnforcedStyle: single_quotes
120114

121115
# Detect hard tabs, no hard tabs.
122-
Layout/Tab:
116+
Layout/IndentationStyle:
123117
Enabled: true
124118

125119
# Blank lines should not have any spaces.
126-
Layout/TrailingBlankLines:
120+
Layout/TrailingEmptyLines:
127121
Enabled: true
128122

129123
# No trailing whitespace.
130124
Layout/TrailingWhitespace:
131125
Enabled: false
132126

133127
# Use quotes for string literals when they are enough.
134-
Style/UnneededPercentQ:
128+
Style/RedundantPercentQ:
135129
Enabled: true
136130

137131
# Align `end` with the matching keyword or starting expression except for

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: ruby
2+
cache: bundler
3+
rvm:
4+
- 2.7
5+
- 3.0
6+
- 3.1
7+
script:
8+
- bundle install --path vendor/bundle
9+
- bundle exec rspec
10+
- gem build docspring.gemspec
11+
- gem install ./docspring-2.0.0.gem

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 2.0.0 [January 30, 2025]
2+
3+
- Updated OpenAPI Generator to 7.11.0
4+
- Added template versioning parameters to API methods
5+
16
### 1.4.1 [November 28, 2021]
27

38
- Added 'password' parameter to Generate PDF and Combine PDF API endpoints. You can now encrypt each generated PDF with a unique password.

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :test do
6-
gem 'rake', '>= 12.3.3'
6+
gem 'rake', '~> 13.0.1'
77
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
9+
# <--------------- BEGIN DOCSPRING CUSTOMIZATION ----------------->
10+
# Description: Add bundler-audit for security checks
811
gem 'bundler-audit'
12+
# <--------------- END DOCSPRING CUSTOMIZATION ----------------->
913
end

0 commit comments

Comments
 (0)