form_api 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +15 -13
- data/.swagger-codegen-ignore +0 -8
- data/Gemfile +1 -0
- data/Gemfile.lock +80 -0
- data/README.md +86 -70
- data/Rakefile +0 -3
- data/docs/CreateCombinedSubmissionBody.md +11 -0
- data/docs/CreateSubmissionBatchBody.md +10 -0
- data/docs/CreateSubmissionBody.md +10 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +21 -0
- data/docs/InlineResponse201.md +9 -0
- data/docs/InlineResponse2011.md +9 -0
- data/docs/InlineResponse201CombinedSubmission.md +14 -0
- data/docs/InlineResponse400.md +9 -0
- data/docs/InlineResponse401.md +8 -0
- data/docs/InlineResponse422.md +9 -0
- data/docs/PDFApi.md +482 -0
- data/docs/TemplatestemplateIdsubmissionsbatchSubmission.md +14 -0
- data/form_api.gemspec +3 -10
- data/git_push.sh +55 -0
- data/{extensions/lib → lib}/form_api/api/client.rb +2 -2
- data/lib/form_api/api/pdf_api.rb +129 -19
- data/lib/form_api/configuration.rb +1 -1
- data/lib/form_api/models/{data.rb → create_combined_submission_body.rb} +1 -1
- data/lib/form_api/models/create_submission_batch_body.rb +211 -0
- data/lib/form_api/models/{data_1.rb → create_submission_body.rb} +1 -1
- data/lib/form_api/models/inline_response_200_1.rb +400 -0
- data/lib/form_api/models/inline_response_201_1.rb +1 -1
- data/lib/form_api/models/{inline_response_201_1_submission.rb → templatestemplate_idsubmissionsbatch_submission.rb} +1 -1
- data/lib/form_api/version.rb +1 -1
- data/lib/form_api.rb +6 -4
- data/spec/api/pdf_api_spec.rb +41 -15
- data/spec/api_client_spec.rb +1 -1
- data/spec/models/{data_spec.rb → create_combined_submission_body_spec.rb} +6 -6
- data/spec/models/create_submission_batch_body_spec.rb +54 -0
- data/spec/models/{data_1_spec.rb → create_submission_body_spec.rb} +6 -6
- data/spec/models/inline_response_200_1_spec.rb +124 -0
- data/spec/models/{inline_response_201_1_submission_spec.rb → templatestemplate_idsubmissionsbatch_submission_spec.rb} +6 -6
- data/spec/vcr_cassettes/FormAPI_Client/should_generate_a_PDF_and_wait_for_the_submission_to_be_processed.yml +2 -2
- metadata +45 -47
- data/.swagger-revision +0 -1
- data/.travis.yml +0 -8
- data/CHANGELOG.md +0 -2
- data/LICENSE +0 -7
- data/examples/generate_and_download_pdf.rb +0 -60
- data/examples/generate_pdf_async.rb +0 -57
- data/examples/merge_generated_pdfs.rb +0 -31
- data/scripts/clean +0 -5
- data/scripts/fix_gemspec.rb +0 -31
- data/scripts/generate +0 -22
- data/scripts/post_generate +0 -22
- data/scripts/release +0 -6
- data/scripts/swagger +0 -35
- data/scripts/test +0 -24
- data/swagger-config.json +0 -13
data/scripts/test
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
set -e
|
3
|
-
cd "`dirname \"$0\"`/.."
|
4
|
-
|
5
|
-
# check dependencies
|
6
|
-
ruby -v > /dev/null || (echo "ruby must be installed"; exit 1)
|
7
|
-
bundler -v > /dev/null || (echo "bundler must be installed"; exit 1)
|
8
|
-
|
9
|
-
bundle install
|
10
|
-
|
11
|
-
cd test
|
12
|
-
|
13
|
-
# runs a test file with PASS/FAIL message
|
14
|
-
run_test() {
|
15
|
-
ruby $1 && echo "PASS $1" || (echo "FAIL $1"; exit 1)
|
16
|
-
}
|
17
|
-
|
18
|
-
if [ "$1" == "" ]; then
|
19
|
-
for test in $(ls *.rb); do
|
20
|
-
run_test $test
|
21
|
-
done
|
22
|
-
else
|
23
|
-
run_test $1.rb
|
24
|
-
fi
|
data/swagger-config.json
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"gemName": "form_api",
|
3
|
-
"moduleName": "FormAPI",
|
4
|
-
"gemVersion": "0.1.5",
|
5
|
-
"gemAuthor": "Form Applications Inc.",
|
6
|
-
"gemAuthorEmail": "support@formapi.io",
|
7
|
-
"gemHomepage": "https://github.com/FormAPI/formapi-ruby",
|
8
|
-
"gemSummary": "A client library for the FormAPI PDF generation service",
|
9
|
-
"gemDescription": "A client library for the FormAPI PDF generation service",
|
10
|
-
"gemLicense": "MIT",
|
11
|
-
"hideGenerationTimestamp": true,
|
12
|
-
"httpUserAgent": "ruby-swagger-#{VERSION}"
|
13
|
-
}
|