pdf4me 1.0.1 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/{LICENSE → LICENSE.txt} +6 -6
  3. data/README.md +124 -395
  4. data/lib/pdf4me.rb +40 -110
  5. data/lib/pdf4me/actions/complex_action.rb +64 -0
  6. data/lib/pdf4me/actions/convert_file_to_pdf.rb +30 -0
  7. data/lib/pdf4me/actions/convert_to_pdf.rb +14 -0
  8. data/lib/pdf4me/actions/create_pdf_a.rb +29 -0
  9. data/lib/pdf4me/actions/create_thumbnail.rb +55 -0
  10. data/lib/pdf4me/actions/extract_pages.rb +49 -0
  11. data/lib/pdf4me/actions/merge_two_pdfs.rb +34 -0
  12. data/lib/pdf4me/actions/optimize.rb +10 -0
  13. data/lib/pdf4me/actions/optimize_by_profile.rb +42 -0
  14. data/lib/pdf4me/actions/split_by_page_nr.rb +55 -0
  15. data/lib/pdf4me/actions/text_stamp.rb +63 -0
  16. data/lib/pdf4me/actions/wrapper_action.rb +65 -0
  17. data/lib/pdf4me/client.rb +87 -0
  18. data/lib/pdf4me/configuration.rb +9 -88
  19. data/lib/pdf4me/exceptions.rb +26 -0
  20. data/lib/pdf4me/models/base.rb +26 -0
  21. data/lib/pdf4me/models/convert_to_pdf_action.rb +26 -246
  22. data/lib/pdf4me/models/convert_to_pdf_res.rb +5 -185
  23. data/lib/pdf4me/models/doc_log.rb +12 -257
  24. data/lib/pdf4me/models/doc_metadata.rb +13 -282
  25. data/lib/pdf4me/models/document.rb +14 -282
  26. data/lib/pdf4me/models/notification.rb +8 -191
  27. data/lib/pdf4me/models/optimize_action.rb +72 -508
  28. data/lib/pdf4me/models/optimize_res.rb +5 -195
  29. data/lib/pdf4me/models/page.rb +12 -254
  30. data/lib/pdf4me/utils/assigner.rb +10 -0
  31. data/lib/pdf4me/utils/serializer.rb +43 -0
  32. data/lib/pdf4me/version.rb +1 -13
  33. data/spec/actions/create_pdf_a_spec.rb +21 -0
  34. data/spec/actions/wrapper_action_spec.rb +24 -0
  35. data/spec/files/4.pdf +0 -0
  36. data/spec/spec_helper.rb +17 -100
  37. metadata +70 -421
  38. data/Gemfile +0 -7
  39. data/Rakefile +0 -8
  40. data/docs/ActionFlow.md +0 -8
  41. data/docs/ApiUsageRes.md +0 -11
  42. data/docs/ArchiveConfig.md +0 -11
  43. data/docs/ArchiveJobReq.md +0 -12
  44. data/docs/ArchiveJobRes.md +0 -9
  45. data/docs/Color.md +0 -10
  46. data/docs/ConvertApi.md +0 -102
  47. data/docs/ConvertToPdf.md +0 -10
  48. data/docs/ConvertToPdfAction.md +0 -10
  49. data/docs/ConvertToPdfRes.md +0 -8
  50. data/docs/CreateImages.md +0 -10
  51. data/docs/CreateImagesRes.md +0 -8
  52. data/docs/CreatePdfA.md +0 -10
  53. data/docs/CreatePdfARes.md +0 -8
  54. data/docs/CustomCMSConfig.md +0 -23
  55. data/docs/DocAction.md +0 -8
  56. data/docs/DocLog.md +0 -12
  57. data/docs/DocMetadata.md +0 -16
  58. data/docs/Document.md +0 -16
  59. data/docs/DocumentApi.md +0 -203
  60. data/docs/DropDocumentReq.md +0 -20
  61. data/docs/DropDocumentRes.md +0 -15
  62. data/docs/ExecutionTrigger.md +0 -10
  63. data/docs/Extract.md +0 -10
  64. data/docs/ExtractAction.md +0 -9
  65. data/docs/ExtractApi.md +0 -102
  66. data/docs/ExtractRes.md +0 -8
  67. data/docs/GetDocumentListRes.md +0 -13
  68. data/docs/GetDocumentReq.md +0 -14
  69. data/docs/GetDocumentRes.md +0 -14
  70. data/docs/IFormFile.md +0 -13
  71. data/docs/Image.md +0 -15
  72. data/docs/ImageAction.md +0 -30
  73. data/docs/ImageApi.md +0 -107
  74. data/docs/Job.md +0 -10
  75. data/docs/JobApi.md +0 -197
  76. data/docs/JobConfig.md +0 -18
  77. data/docs/JobConfigRes.md +0 -8
  78. data/docs/KeyValuePairStringObject.md +0 -9
  79. data/docs/KeyValuePairStringString.md +0 -9
  80. data/docs/ManagementApi.md +0 -92
  81. data/docs/Merge.md +0 -10
  82. data/docs/MergeAction.md +0 -8
  83. data/docs/MergeApi.md +0 -102
  84. data/docs/MergeRes.md +0 -8
  85. data/docs/Notification.md +0 -9
  86. data/docs/OcrAction.md +0 -12
  87. data/docs/OcrApi.md +0 -57
  88. data/docs/Optimize.md +0 -10
  89. data/docs/OptimizeAction.md +0 -35
  90. data/docs/OptimizeApi.md +0 -103
  91. data/docs/OptimizeRes.md +0 -9
  92. data/docs/Page.md +0 -14
  93. data/docs/PageSelection.md +0 -10
  94. data/docs/Pdf4meAction.md +0 -12
  95. data/docs/Pdf4meDocument.md +0 -32
  96. data/docs/Pdf4meException.md +0 -8
  97. data/docs/PdfAAction.md +0 -14
  98. data/docs/PdfAApi.md +0 -102
  99. data/docs/PdfFont.md +0 -9
  100. data/docs/Pricing.md +0 -13
  101. data/docs/ProduceDocuments.md +0 -14
  102. data/docs/ProduceDocumentsRes.md +0 -8
  103. data/docs/ProduceOutput.md +0 -8
  104. data/docs/RGBSet.md +0 -10
  105. data/docs/RecognizeDocument.md +0 -10
  106. data/docs/RecognizeDocumentRes.md +0 -9
  107. data/docs/Rectangle.md +0 -11
  108. data/docs/Rotate.md +0 -10
  109. data/docs/RunJobRes.md +0 -10
  110. data/docs/SignatureConfig.md +0 -7
  111. data/docs/Split.md +0 -10
  112. data/docs/SplitAction.md +0 -11
  113. data/docs/SplitApi.md +0 -103
  114. data/docs/SplitRes.md +0 -8
  115. data/docs/Stamp.md +0 -10
  116. data/docs/StampAction.md +0 -22
  117. data/docs/StampApi.md +0 -110
  118. data/docs/StampRes.md +0 -8
  119. data/docs/StorageFolder.md +0 -10
  120. data/docs/Text.md +0 -17
  121. data/docs/Transform.md +0 -13
  122. data/docs/Translate.md +0 -9
  123. data/docs/UserFingerprint.md +0 -9
  124. data/docs/VersionRes.md +0 -8
  125. data/docs/java.md +0 -425
  126. data/lib/pdf4me/api/convert_api.rb +0 -130
  127. data/lib/pdf4me/api/document_api.rb +0 -218
  128. data/lib/pdf4me/api/extract_api.rb +0 -131
  129. data/lib/pdf4me/api/image_api.rb +0 -139
  130. data/lib/pdf4me/api/job_api.rb +0 -223
  131. data/lib/pdf4me/api/management_api.rb +0 -117
  132. data/lib/pdf4me/api/merge_api.rb +0 -131
  133. data/lib/pdf4me/api/ocr_api.rb +0 -74
  134. data/lib/pdf4me/api/optimize_api.rb +0 -139
  135. data/lib/pdf4me/api/pdf_a_api.rb +0 -134
  136. data/lib/pdf4me/api/split_api.rb +0 -135
  137. data/lib/pdf4me/api/stamp_api.rb +0 -159
  138. data/lib/pdf4me/api_client.rb +0 -380
  139. data/lib/pdf4me/api_error.rb +0 -38
  140. data/lib/pdf4me/models/action_flow.rb +0 -190
  141. data/lib/pdf4me/models/api_usage_res.rb +0 -219
  142. data/lib/pdf4me/models/archive_config.rb +0 -226
  143. data/lib/pdf4me/models/archive_job_req.rb +0 -249
  144. data/lib/pdf4me/models/archive_job_res.rb +0 -207
  145. data/lib/pdf4me/models/color.rb +0 -206
  146. data/lib/pdf4me/models/convert_to_pdf.rb +0 -209
  147. data/lib/pdf4me/models/create_images.rb +0 -209
  148. data/lib/pdf4me/models/create_images_res.rb +0 -189
  149. data/lib/pdf4me/models/create_pdf_a.rb +0 -209
  150. data/lib/pdf4me/models/create_pdf_a_res.rb +0 -189
  151. data/lib/pdf4me/models/custom_cms_config.rb +0 -323
  152. data/lib/pdf4me/models/doc_action.rb +0 -190
  153. data/lib/pdf4me/models/drop_document_req.rb +0 -348
  154. data/lib/pdf4me/models/drop_document_res.rb +0 -260
  155. data/lib/pdf4me/models/execution_trigger.rb +0 -206
  156. data/lib/pdf4me/models/extract.rb +0 -207
  157. data/lib/pdf4me/models/extract_action.rb +0 -201
  158. data/lib/pdf4me/models/extract_res.rb +0 -188
  159. data/lib/pdf4me/models/get_document_list_res.rb +0 -237
  160. data/lib/pdf4me/models/get_document_req.rb +0 -243
  161. data/lib/pdf4me/models/get_document_res.rb +0 -246
  162. data/lib/pdf4me/models/i_form_file.rb +0 -235
  163. data/lib/pdf4me/models/image.rb +0 -300
  164. data/lib/pdf4me/models/image_action.rb +0 -513
  165. data/lib/pdf4me/models/job.rb +0 -213
  166. data/lib/pdf4me/models/job_config.rb +0 -298
  167. data/lib/pdf4me/models/job_config_res.rb +0 -193
  168. data/lib/pdf4me/models/key_value_pair_string_object.rb +0 -197
  169. data/lib/pdf4me/models/key_value_pair_string_string.rb +0 -197
  170. data/lib/pdf4me/models/merge.rb +0 -209
  171. data/lib/pdf4me/models/merge_action.rb +0 -190
  172. data/lib/pdf4me/models/merge_res.rb +0 -188
  173. data/lib/pdf4me/models/ocr_action.rb +0 -259
  174. data/lib/pdf4me/models/optimize.rb +0 -209
  175. data/lib/pdf4me/models/page_selection.rb +0 -246
  176. data/lib/pdf4me/models/pdf4me_action.rb +0 -259
  177. data/lib/pdf4me/models/pdf4me_document.rb +0 -511
  178. data/lib/pdf4me/models/pdf4me_exception.rb +0 -189
  179. data/lib/pdf4me/models/pdf_a_action.rb +0 -297
  180. data/lib/pdf4me/models/pdf_font.rb +0 -213
  181. data/lib/pdf4me/models/pricing.rb +0 -278
  182. data/lib/pdf4me/models/produce_documents.rb +0 -251
  183. data/lib/pdf4me/models/produce_documents_res.rb +0 -191
  184. data/lib/pdf4me/models/produce_output.rb +0 -221
  185. data/lib/pdf4me/models/recognize_document.rb +0 -209
  186. data/lib/pdf4me/models/recognize_document_res.rb +0 -198
  187. data/lib/pdf4me/models/rectangle.rb +0 -215
  188. data/lib/pdf4me/models/rgb_set.rb +0 -206
  189. data/lib/pdf4me/models/rotate.rb +0 -221
  190. data/lib/pdf4me/models/run_job_res.rb +0 -215
  191. data/lib/pdf4me/models/signature_config.rb +0 -179
  192. data/lib/pdf4me/models/split.rb +0 -207
  193. data/lib/pdf4me/models/split_action.rb +0 -219
  194. data/lib/pdf4me/models/split_res.rb +0 -190
  195. data/lib/pdf4me/models/stamp.rb +0 -209
  196. data/lib/pdf4me/models/stamp_action.rb +0 -387
  197. data/lib/pdf4me/models/stamp_res.rb +0 -189
  198. data/lib/pdf4me/models/storage_folder.rb +0 -239
  199. data/lib/pdf4me/models/text.rb +0 -320
  200. data/lib/pdf4me/models/transform.rb +0 -263
  201. data/lib/pdf4me/models/translate.rb +0 -207
  202. data/lib/pdf4me/models/user_fingerprint.rb +0 -197
  203. data/lib/pdf4me/models/version_res.rb +0 -188
  204. data/pdf4me.gemspec +0 -47
  205. data/spec/api/convert_api_spec.rb +0 -60
  206. data/spec/api/document_api_spec.rb +0 -83
  207. data/spec/api/extract_api_spec.rb +0 -60
  208. data/spec/api/image_api_spec.rb +0 -62
  209. data/spec/api/job_api_spec.rb +0 -82
  210. data/spec/api/management_api_spec.rb +0 -57
  211. data/spec/api/merge_api_spec.rb +0 -60
  212. data/spec/api/ocr_api_spec.rb +0 -47
  213. data/spec/api/optimize_api_spec.rb +0 -60
  214. data/spec/api/pdf_a_api_spec.rb +0 -60
  215. data/spec/api/split_api_spec.rb +0 -60
  216. data/spec/api/stamp_api_spec.rb +0 -63
  217. data/spec/api_client_spec.rb +0 -226
  218. data/spec/configuration_spec.rb +0 -42
  219. data/spec/models/action_flow_spec.rb +0 -42
  220. data/spec/models/api_usage_res_spec.rb +0 -60
  221. data/spec/models/archive_config_spec.rb +0 -60
  222. data/spec/models/archive_job_req_spec.rb +0 -66
  223. data/spec/models/archive_job_res_spec.rb +0 -48
  224. data/spec/models/color_spec.rb +0 -54
  225. data/spec/models/convert_to_pdf_action_spec.rb +0 -62
  226. data/spec/models/convert_to_pdf_res_spec.rb +0 -42
  227. data/spec/models/convert_to_pdf_spec.rb +0 -54
  228. data/spec/models/create_images_res_spec.rb +0 -42
  229. data/spec/models/create_images_spec.rb +0 -54
  230. data/spec/models/create_pdf_a_res_spec.rb +0 -42
  231. data/spec/models/create_pdf_a_spec.rb +0 -54
  232. data/spec/models/custom_cms_config_spec.rb +0 -132
  233. data/spec/models/doc_action_spec.rb +0 -42
  234. data/spec/models/doc_log_spec.rb +0 -70
  235. data/spec/models/doc_metadata_spec.rb +0 -90
  236. data/spec/models/document_spec.rb +0 -90
  237. data/spec/models/drop_document_req_spec.rb +0 -118
  238. data/spec/models/drop_document_res_spec.rb +0 -84
  239. data/spec/models/execution_trigger_spec.rb +0 -54
  240. data/spec/models/extract_action_spec.rb +0 -48
  241. data/spec/models/extract_res_spec.rb +0 -42
  242. data/spec/models/extract_spec.rb +0 -54
  243. data/spec/models/get_document_list_res_spec.rb +0 -72
  244. data/spec/models/get_document_req_spec.rb +0 -78
  245. data/spec/models/get_document_res_spec.rb +0 -78
  246. data/spec/models/i_form_file_spec.rb +0 -72
  247. data/spec/models/image_action_spec.rb +0 -206
  248. data/spec/models/image_spec.rb +0 -88
  249. data/spec/models/job_config_res_spec.rb +0 -42
  250. data/spec/models/job_config_spec.rb +0 -102
  251. data/spec/models/job_spec.rb +0 -54
  252. data/spec/models/key_value_pair_string_object_spec.rb +0 -48
  253. data/spec/models/key_value_pair_string_string_spec.rb +0 -48
  254. data/spec/models/merge_action_spec.rb +0 -42
  255. data/spec/models/merge_res_spec.rb +0 -42
  256. data/spec/models/merge_spec.rb +0 -54
  257. data/spec/models/notification_spec.rb +0 -48
  258. data/spec/models/ocr_action_spec.rb +0 -70
  259. data/spec/models/optimize_action_spec.rb +0 -228
  260. data/spec/models/optimize_res_spec.rb +0 -48
  261. data/spec/models/optimize_spec.rb +0 -54
  262. data/spec/models/page_selection_spec.rb +0 -58
  263. data/spec/models/page_spec.rb +0 -78
  264. data/spec/models/pdf4me_action_spec.rb +0 -70
  265. data/spec/models/pdf4me_document_spec.rb +0 -202
  266. data/spec/models/pdf4me_exception_spec.rb +0 -42
  267. data/spec/models/pdf_a_action_spec.rb +0 -86
  268. data/spec/models/pdf_font_spec.rb +0 -48
  269. data/spec/models/pricing_spec.rb +0 -80
  270. data/spec/models/produce_documents_res_spec.rb +0 -42
  271. data/spec/models/produce_documents_spec.rb +0 -78
  272. data/spec/models/produce_output_spec.rb +0 -46
  273. data/spec/models/recognize_document_res_spec.rb +0 -48
  274. data/spec/models/recognize_document_spec.rb +0 -54
  275. data/spec/models/rectangle_spec.rb +0 -60
  276. data/spec/models/rgb_set_spec.rb +0 -54
  277. data/spec/models/rotate_spec.rb +0 -54
  278. data/spec/models/run_job_res_spec.rb +0 -54
  279. data/spec/models/signature_config_spec.rb +0 -36
  280. data/spec/models/split_action_spec.rb +0 -60
  281. data/spec/models/split_res_spec.rb +0 -42
  282. data/spec/models/split_spec.rb +0 -54
  283. data/spec/models/stamp_action_spec.rb +0 -142
  284. data/spec/models/stamp_res_spec.rb +0 -42
  285. data/spec/models/stamp_spec.rb +0 -54
  286. data/spec/models/storage_folder_spec.rb +0 -58
  287. data/spec/models/text_spec.rb +0 -104
  288. data/spec/models/transform_spec.rb +0 -72
  289. data/spec/models/translate_spec.rb +0 -48
  290. data/spec/models/user_fingerprint_spec.rb +0 -48
  291. data/spec/models/version_res_spec.rb +0 -42
@@ -0,0 +1,10 @@
1
+ module Pdf4me
2
+ module Assigner
3
+ def assign_attributes(attributes = {})
4
+ attributes.to_h.each do |key, value|
5
+ writer_method = "#{key}="
6
+ send(writer_method, value) if respond_to?(writer_method)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,43 @@
1
+ module Pdf4me
2
+ module Serializer
3
+ def from_response(response)
4
+ attributes = JSON.parse(response.body)
5
+ return nil unless attributes.is_a?(Hash)
6
+ from_hash(attributes)
7
+ end
8
+
9
+ def from_hash(attributes)
10
+ model_attributes = {}
11
+
12
+ self::ATTRIBUTES.stringify_keys.each do |key, type|
13
+ hash_key = key.camelize(:lower)
14
+ hash_value = attributes[hash_key]
15
+
16
+ if type =~ /\AArray<(.*)>/i
17
+ model_attributes[key] = Array(hash_value).map { |value| _deserialize($1, value) }
18
+ elsif !hash_value.nil?
19
+ model_attributes[key] = _deserialize(type, hash_value)
20
+ end
21
+ end
22
+
23
+ new(model_attributes)
24
+ end
25
+
26
+ def _deserialize(type, value)
27
+ case type
28
+ when 'String'
29
+ value.to_s
30
+ when 'DateTime'
31
+ DateTime.parse(value)
32
+ when 'Date'
33
+ Date.parse(value)
34
+ when 'Integer'
35
+ value.to_i
36
+ when 'BOOLEAN'
37
+ value == 'true'
38
+ else
39
+ Pdf4me.const_get(type).from_hash(value)
40
+ end
41
+ end
42
+ end
43
+ end
@@ -1,15 +1,3 @@
1
- =begin
2
- #DmsApi
3
-
4
- #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
-
6
- OpenAPI spec version: v1
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
10
-
11
- =end
12
-
13
1
  module Pdf4me
14
- VERSION = "1.0.1"
2
+ VERSION = "2.0.1"
15
3
  end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Pdf4me::CreatePdfA, type: :action do
4
+
5
+ it "extends Base Action" do
6
+ expect(subject).to be_kind_of(Pdf4me::WrapperAction)
7
+ end
8
+
9
+ describe 'validations' do
10
+ it { should validate_presence_of :file }
11
+ it { should validate_presence_of :compliance }
12
+ end
13
+
14
+ describe 'methods' do
15
+ describe '.path' do
16
+ it 'should give the right path' do
17
+ expect(subject.path).to eq('/PdfA/CreatePdfA')
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe Pdf4me::WrapperAction, type: :action do
4
+
5
+ describe 'methods' do
6
+ describe '.client' do
7
+ it 'should return the right client' do
8
+ expect(subject.client).to be_kind_of(Pdf4me::Client)
9
+ end
10
+ end
11
+
12
+ describe '.defaults' do
13
+ it 'should return empty defaults for base' do
14
+ expect(subject.defaults).to eq({})
15
+ end
16
+ end
17
+
18
+ describe '.parsed_json_response' do
19
+ it 'should parse the json correctly' do
20
+ expect(subject.send(:parsed_json_response, '{"hello": "world"}')).to eq({hello: "world"})
21
+ end
22
+ end
23
+ end
24
+ end
Binary file
@@ -1,111 +1,28 @@
1
- =begin
2
- #DmsApi
1
+ require "bundler/setup"
2
+ require "pdf4me"
3
+ require 'shoulda/matchers'
3
4
 
4
- #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
-
6
- OpenAPI spec version: v1
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
10
-
11
- =end
12
-
13
- # load the gem
14
- require 'pdf4me'
15
-
16
- # The following was generated by the `rspec --init` command. Conventionally, all
17
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
18
- # The generated `.rspec` file contains `--require spec_helper` which will cause
19
- # this file to always be loaded, without a need to explicitly require it in any
20
- # files.
21
- #
22
- # Given that it is always loaded, you are encouraged to keep this file as
23
- # light-weight as possible. Requiring heavyweight dependencies from this file
24
- # will add to the boot time of your test suite on EVERY test run, even for an
25
- # individual file that may not need all of that loaded. Instead, consider making
26
- # a separate helper file that requires the additional dependencies and performs
27
- # the additional setup, and require it from the spec files that actually need
28
- # it.
29
- #
30
- # The `.rspec` file also contains a few flags that are not defaults but that
31
- # users commonly want.
32
- #
33
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
34
5
  RSpec.configure do |config|
35
- # rspec-expectations config goes here. You can use an alternate
36
- # assertion/expectation library such as wrong or the stdlib/minitest
37
- # assertions if you prefer.
38
- config.expect_with :rspec do |expectations|
39
- # This option will default to `true` in RSpec 4. It makes the `description`
40
- # and `failure_message` of custom matchers include text for helper methods
41
- # defined using `chain`, e.g.:
42
- # be_bigger_than(2).and_smaller_than(4).description
43
- # # => "be bigger than 2 and smaller than 4"
44
- # ...rather than:
45
- # # => "be bigger than 2"
46
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
47
- end
6
+ config.example_status_persistence_file_path = ".rspec_status"
48
7
 
49
- # rspec-mocks config goes here. You can use an alternate test double
50
- # library (such as bogus or mocha) by changing the `mock_with` option here.
51
- config.mock_with :rspec do |mocks|
52
- # Prevents you from mocking or stubbing a method that does not exist on
53
- # a real object. This is generally recommended, and will default to
54
- # `true` in RSpec 4.
55
- mocks.verify_partial_doubles = true
56
- end
57
-
58
- # The settings below are suggested to provide a good initial experience
59
- # with RSpec, but feel free to customize to your heart's content.
60
- =begin
61
- # These two settings work together to allow you to limit a spec run
62
- # to individual examples or groups you care about by tagging them with
63
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
64
- # get run.
65
- config.filter_run :focus
66
- config.run_all_when_everything_filtered = true
67
-
68
- # Allows RSpec to persist some state between runs in order to support
69
- # the `--only-failures` and `--next-failure` CLI options. We recommend
70
- # you configure your source control system to ignore this file.
71
- config.example_status_persistence_file_path = "spec/examples.txt"
72
-
73
- # Limits the available syntax to the non-monkey patched syntax that is
74
- # recommended. For more details, see:
75
- # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
76
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
77
- # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
78
8
  config.disable_monkey_patching!
9
+ config.expose_dsl_globally = true
79
10
 
80
- # This setting enables warnings. It's recommended, but in some cases may
81
- # be too noisy due to issues in dependencies.
82
- config.warnings = true
11
+ config.expect_with :rspec do |c|
12
+ c.syntax = :expect
13
+ end
83
14
 
84
- # Many RSpec users commonly either run the entire suite or an individual
85
- # file, and it's useful to allow more verbose output when running an
86
- # individual spec file.
87
- if config.files_to_run.one?
88
- # Use the documentation formatter for detailed output,
89
- # unless a formatter has already been configured
90
- # (e.g. via a command-line flag).
91
- config.default_formatter = 'doc'
15
+ config.before :each do
16
+ Typhoeus::Expectation.clear
92
17
  end
93
18
 
94
- # Print the 10 slowest examples and example groups at the
95
- # end of the spec run, to help surface which specs are running
96
- # particularly slow.
97
- config.profile_examples = 10
19
+ Shoulda::Matchers.configure do |config|
20
+ config.integrate do |with|
21
+ with.test_framework :rspec
22
+ with.library :active_model
23
+ end
24
+ end
98
25
 
99
- # Run specs in random order to surface order dependencies. If you find an
100
- # order dependency and want to debug it, you can fix the order by providing
101
- # the seed, which is printed after each run.
102
- # --seed 1234
103
- config.order = :random
26
+ config.include(Shoulda::Matchers::ActiveModel, type: :action)
104
27
 
105
- # Seed global randomization in this process using the `--seed` CLI option.
106
- # Setting this allows you to use `--seed` to deterministically reproduce
107
- # test failures related to randomization by passing the same `--seed` value
108
- # as the one that triggered the failure.
109
- Kernel.srand config.seed
110
- =end
111
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf4me
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - themonk
7
+ - arpanlepcha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.0.1
22
+ version: 1.3.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '1.0'
29
+ version: '1.3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.1
32
+ version: 1.3.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -51,437 +51,170 @@ dependencies:
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.1.0
53
53
  - !ruby/object:Gem::Dependency
54
- name: adal
54
+ name: dotenv
55
55
  requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- type: :runtime
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- - !ruby/object:Gem::Dependency
68
- name: rspec
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '3.6'
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 3.6.0
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
56
  requirements:
81
57
  - - "~>"
82
58
  - !ruby/object:Gem::Version
83
- version: '3.6'
59
+ version: '2.5'
84
60
  - - ">="
85
61
  - !ruby/object:Gem::Version
86
- version: 3.6.0
87
- - !ruby/object:Gem::Dependency
88
- name: vcr
89
- requirement: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: '3.0'
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 3.0.1
62
+ version: 2.5.0
97
63
  type: :development
98
64
  prerelease: false
99
65
  version_requirements: !ruby/object:Gem::Requirement
100
66
  requirements:
101
67
  - - "~>"
102
68
  - !ruby/object:Gem::Version
103
- version: '3.0'
69
+ version: '2.5'
104
70
  - - ">="
105
71
  - !ruby/object:Gem::Version
106
- version: 3.0.1
72
+ version: 2.5.0
107
73
  - !ruby/object:Gem::Dependency
108
- name: webmock
74
+ name: bundler
109
75
  requirement: !ruby/object:Gem::Requirement
110
76
  requirements:
111
- - - "~>"
77
+ - - '='
112
78
  - !ruby/object:Gem::Version
113
- version: '1.24'
79
+ version: '1.16'
114
80
  - - ">="
115
81
  - !ruby/object:Gem::Version
116
- version: 1.24.3
82
+ version: 1.16.3
117
83
  type: :development
118
84
  prerelease: false
119
85
  version_requirements: !ruby/object:Gem::Requirement
120
86
  requirements:
121
- - - "~>"
87
+ - - '='
122
88
  - !ruby/object:Gem::Version
123
- version: '1.24'
89
+ version: '1.16'
124
90
  - - ">="
125
91
  - !ruby/object:Gem::Version
126
- version: 1.24.3
92
+ version: 1.16.3
127
93
  - !ruby/object:Gem::Dependency
128
- name: autotest
94
+ name: rake
129
95
  requirement: !ruby/object:Gem::Requirement
130
96
  requirements:
131
97
  - - "~>"
132
98
  - !ruby/object:Gem::Version
133
- version: '4.4'
99
+ version: '12.3'
134
100
  - - ">="
135
101
  - !ruby/object:Gem::Version
136
- version: 4.4.6
102
+ version: 12.3.1
137
103
  type: :development
138
104
  prerelease: false
139
105
  version_requirements: !ruby/object:Gem::Requirement
140
106
  requirements:
141
107
  - - "~>"
142
108
  - !ruby/object:Gem::Version
143
- version: '4.4'
109
+ version: '12.3'
144
110
  - - ">="
145
111
  - !ruby/object:Gem::Version
146
- version: 4.4.6
112
+ version: 12.3.1
147
113
  - !ruby/object:Gem::Dependency
148
- name: autotest-rails-pure
114
+ name: rspec
149
115
  requirement: !ruby/object:Gem::Requirement
150
116
  requirements:
151
117
  - - "~>"
152
118
  - !ruby/object:Gem::Version
153
- version: '4.1'
119
+ version: '3.6'
154
120
  - - ">="
155
121
  - !ruby/object:Gem::Version
156
- version: 4.1.2
122
+ version: 3.6.0
157
123
  type: :development
158
124
  prerelease: false
159
125
  version_requirements: !ruby/object:Gem::Requirement
160
126
  requirements:
161
127
  - - "~>"
162
128
  - !ruby/object:Gem::Version
163
- version: '4.1'
129
+ version: '3.6'
164
130
  - - ">="
165
131
  - !ruby/object:Gem::Version
166
- version: 4.1.2
132
+ version: 3.6.0
167
133
  - !ruby/object:Gem::Dependency
168
- name: autotest-growl
134
+ name: activemodel
169
135
  requirement: !ruby/object:Gem::Requirement
170
136
  requirements:
171
137
  - - "~>"
172
138
  - !ruby/object:Gem::Version
173
- version: '0.2'
139
+ version: '5.2'
174
140
  - - ">="
175
141
  - !ruby/object:Gem::Version
176
- version: 0.2.16
142
+ version: 5.2.0
177
143
  type: :development
178
144
  prerelease: false
179
145
  version_requirements: !ruby/object:Gem::Requirement
180
146
  requirements:
181
147
  - - "~>"
182
148
  - !ruby/object:Gem::Version
183
- version: '0.2'
149
+ version: '5.2'
184
150
  - - ">="
185
151
  - !ruby/object:Gem::Version
186
- version: 0.2.16
152
+ version: 5.2.0
187
153
  - !ruby/object:Gem::Dependency
188
- name: autotest-fsevent
154
+ name: shoulda-matchers
189
155
  requirement: !ruby/object:Gem::Requirement
190
156
  requirements:
191
157
  - - "~>"
192
158
  - !ruby/object:Gem::Version
193
- version: '0.2'
159
+ version: '3.1'
194
160
  - - ">="
195
161
  - !ruby/object:Gem::Version
196
- version: 0.2.12
162
+ version: 3.1.2
197
163
  type: :development
198
164
  prerelease: false
199
165
  version_requirements: !ruby/object:Gem::Requirement
200
166
  requirements:
201
167
  - - "~>"
202
168
  - !ruby/object:Gem::Version
203
- version: '0.2'
169
+ version: '3.1'
204
170
  - - ">="
205
171
  - !ruby/object:Gem::Version
206
- version: 0.2.12
207
- description: No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
172
+ version: 3.1.2
173
+ description: ''
208
174
  email:
209
- - ''
175
+ - arpanlepcha@gmail.com
210
176
  executables: []
211
177
  extensions: []
212
178
  extra_rdoc_files: []
213
179
  files:
214
- - Gemfile
215
- - LICENSE
180
+ - LICENSE.txt
216
181
  - README.md
217
- - Rakefile
218
- - docs/ActionFlow.md
219
- - docs/ApiUsageRes.md
220
- - docs/ArchiveConfig.md
221
- - docs/ArchiveJobReq.md
222
- - docs/ArchiveJobRes.md
223
- - docs/Color.md
224
- - docs/ConvertApi.md
225
- - docs/ConvertToPdf.md
226
- - docs/ConvertToPdfAction.md
227
- - docs/ConvertToPdfRes.md
228
- - docs/CreateImages.md
229
- - docs/CreateImagesRes.md
230
- - docs/CreatePdfA.md
231
- - docs/CreatePdfARes.md
232
- - docs/CustomCMSConfig.md
233
- - docs/DocAction.md
234
- - docs/DocLog.md
235
- - docs/DocMetadata.md
236
- - docs/Document.md
237
- - docs/DocumentApi.md
238
- - docs/DropDocumentReq.md
239
- - docs/DropDocumentRes.md
240
- - docs/ExecutionTrigger.md
241
- - docs/Extract.md
242
- - docs/ExtractAction.md
243
- - docs/ExtractApi.md
244
- - docs/ExtractRes.md
245
- - docs/GetDocumentListRes.md
246
- - docs/GetDocumentReq.md
247
- - docs/GetDocumentRes.md
248
- - docs/IFormFile.md
249
- - docs/Image.md
250
- - docs/ImageAction.md
251
- - docs/ImageApi.md
252
- - docs/Job.md
253
- - docs/JobApi.md
254
- - docs/JobConfig.md
255
- - docs/JobConfigRes.md
256
- - docs/KeyValuePairStringObject.md
257
- - docs/KeyValuePairStringString.md
258
- - docs/ManagementApi.md
259
- - docs/Merge.md
260
- - docs/MergeAction.md
261
- - docs/MergeApi.md
262
- - docs/MergeRes.md
263
- - docs/Notification.md
264
- - docs/OcrAction.md
265
- - docs/OcrApi.md
266
- - docs/Optimize.md
267
- - docs/OptimizeAction.md
268
- - docs/OptimizeApi.md
269
- - docs/OptimizeRes.md
270
- - docs/Page.md
271
- - docs/PageSelection.md
272
- - docs/Pdf4meAction.md
273
- - docs/Pdf4meDocument.md
274
- - docs/Pdf4meException.md
275
- - docs/PdfAAction.md
276
- - docs/PdfAApi.md
277
- - docs/PdfFont.md
278
- - docs/Pricing.md
279
- - docs/ProduceDocuments.md
280
- - docs/ProduceDocumentsRes.md
281
- - docs/ProduceOutput.md
282
- - docs/RGBSet.md
283
- - docs/RecognizeDocument.md
284
- - docs/RecognizeDocumentRes.md
285
- - docs/Rectangle.md
286
- - docs/Rotate.md
287
- - docs/RunJobRes.md
288
- - docs/SignatureConfig.md
289
- - docs/Split.md
290
- - docs/SplitAction.md
291
- - docs/SplitApi.md
292
- - docs/SplitRes.md
293
- - docs/Stamp.md
294
- - docs/StampAction.md
295
- - docs/StampApi.md
296
- - docs/StampRes.md
297
- - docs/StorageFolder.md
298
- - docs/Text.md
299
- - docs/Transform.md
300
- - docs/Translate.md
301
- - docs/UserFingerprint.md
302
- - docs/VersionRes.md
303
- - docs/java.md
304
182
  - lib/pdf4me.rb
305
- - lib/pdf4me/api/convert_api.rb
306
- - lib/pdf4me/api/document_api.rb
307
- - lib/pdf4me/api/extract_api.rb
308
- - lib/pdf4me/api/image_api.rb
309
- - lib/pdf4me/api/job_api.rb
310
- - lib/pdf4me/api/management_api.rb
311
- - lib/pdf4me/api/merge_api.rb
312
- - lib/pdf4me/api/ocr_api.rb
313
- - lib/pdf4me/api/optimize_api.rb
314
- - lib/pdf4me/api/pdf_a_api.rb
315
- - lib/pdf4me/api/split_api.rb
316
- - lib/pdf4me/api/stamp_api.rb
317
- - lib/pdf4me/api_client.rb
318
- - lib/pdf4me/api_error.rb
183
+ - lib/pdf4me/actions/complex_action.rb
184
+ - lib/pdf4me/actions/convert_file_to_pdf.rb
185
+ - lib/pdf4me/actions/convert_to_pdf.rb
186
+ - lib/pdf4me/actions/create_pdf_a.rb
187
+ - lib/pdf4me/actions/create_thumbnail.rb
188
+ - lib/pdf4me/actions/extract_pages.rb
189
+ - lib/pdf4me/actions/merge_two_pdfs.rb
190
+ - lib/pdf4me/actions/optimize.rb
191
+ - lib/pdf4me/actions/optimize_by_profile.rb
192
+ - lib/pdf4me/actions/split_by_page_nr.rb
193
+ - lib/pdf4me/actions/text_stamp.rb
194
+ - lib/pdf4me/actions/wrapper_action.rb
195
+ - lib/pdf4me/client.rb
319
196
  - lib/pdf4me/configuration.rb
320
- - lib/pdf4me/models/action_flow.rb
321
- - lib/pdf4me/models/api_usage_res.rb
322
- - lib/pdf4me/models/archive_config.rb
323
- - lib/pdf4me/models/archive_job_req.rb
324
- - lib/pdf4me/models/archive_job_res.rb
325
- - lib/pdf4me/models/color.rb
326
- - lib/pdf4me/models/convert_to_pdf.rb
197
+ - lib/pdf4me/exceptions.rb
198
+ - lib/pdf4me/models/base.rb
327
199
  - lib/pdf4me/models/convert_to_pdf_action.rb
328
200
  - lib/pdf4me/models/convert_to_pdf_res.rb
329
- - lib/pdf4me/models/create_images.rb
330
- - lib/pdf4me/models/create_images_res.rb
331
- - lib/pdf4me/models/create_pdf_a.rb
332
- - lib/pdf4me/models/create_pdf_a_res.rb
333
- - lib/pdf4me/models/custom_cms_config.rb
334
- - lib/pdf4me/models/doc_action.rb
335
201
  - lib/pdf4me/models/doc_log.rb
336
202
  - lib/pdf4me/models/doc_metadata.rb
337
203
  - lib/pdf4me/models/document.rb
338
- - lib/pdf4me/models/drop_document_req.rb
339
- - lib/pdf4me/models/drop_document_res.rb
340
- - lib/pdf4me/models/execution_trigger.rb
341
- - lib/pdf4me/models/extract.rb
342
- - lib/pdf4me/models/extract_action.rb
343
- - lib/pdf4me/models/extract_res.rb
344
- - lib/pdf4me/models/get_document_list_res.rb
345
- - lib/pdf4me/models/get_document_req.rb
346
- - lib/pdf4me/models/get_document_res.rb
347
- - lib/pdf4me/models/i_form_file.rb
348
- - lib/pdf4me/models/image.rb
349
- - lib/pdf4me/models/image_action.rb
350
- - lib/pdf4me/models/job.rb
351
- - lib/pdf4me/models/job_config.rb
352
- - lib/pdf4me/models/job_config_res.rb
353
- - lib/pdf4me/models/key_value_pair_string_object.rb
354
- - lib/pdf4me/models/key_value_pair_string_string.rb
355
- - lib/pdf4me/models/merge.rb
356
- - lib/pdf4me/models/merge_action.rb
357
- - lib/pdf4me/models/merge_res.rb
358
204
  - lib/pdf4me/models/notification.rb
359
- - lib/pdf4me/models/ocr_action.rb
360
- - lib/pdf4me/models/optimize.rb
361
205
  - lib/pdf4me/models/optimize_action.rb
362
206
  - lib/pdf4me/models/optimize_res.rb
363
207
  - lib/pdf4me/models/page.rb
364
- - lib/pdf4me/models/page_selection.rb
365
- - lib/pdf4me/models/pdf4me_action.rb
366
- - lib/pdf4me/models/pdf4me_document.rb
367
- - lib/pdf4me/models/pdf4me_exception.rb
368
- - lib/pdf4me/models/pdf_a_action.rb
369
- - lib/pdf4me/models/pdf_font.rb
370
- - lib/pdf4me/models/pricing.rb
371
- - lib/pdf4me/models/produce_documents.rb
372
- - lib/pdf4me/models/produce_documents_res.rb
373
- - lib/pdf4me/models/produce_output.rb
374
- - lib/pdf4me/models/recognize_document.rb
375
- - lib/pdf4me/models/recognize_document_res.rb
376
- - lib/pdf4me/models/rectangle.rb
377
- - lib/pdf4me/models/rgb_set.rb
378
- - lib/pdf4me/models/rotate.rb
379
- - lib/pdf4me/models/run_job_res.rb
380
- - lib/pdf4me/models/signature_config.rb
381
- - lib/pdf4me/models/split.rb
382
- - lib/pdf4me/models/split_action.rb
383
- - lib/pdf4me/models/split_res.rb
384
- - lib/pdf4me/models/stamp.rb
385
- - lib/pdf4me/models/stamp_action.rb
386
- - lib/pdf4me/models/stamp_res.rb
387
- - lib/pdf4me/models/storage_folder.rb
388
- - lib/pdf4me/models/text.rb
389
- - lib/pdf4me/models/transform.rb
390
- - lib/pdf4me/models/translate.rb
391
- - lib/pdf4me/models/user_fingerprint.rb
392
- - lib/pdf4me/models/version_res.rb
208
+ - lib/pdf4me/utils/assigner.rb
209
+ - lib/pdf4me/utils/serializer.rb
393
210
  - lib/pdf4me/version.rb
394
- - pdf4me.gemspec
395
- - spec/api/convert_api_spec.rb
396
- - spec/api/document_api_spec.rb
397
- - spec/api/extract_api_spec.rb
398
- - spec/api/image_api_spec.rb
399
- - spec/api/job_api_spec.rb
400
- - spec/api/management_api_spec.rb
401
- - spec/api/merge_api_spec.rb
402
- - spec/api/ocr_api_spec.rb
403
- - spec/api/optimize_api_spec.rb
404
- - spec/api/pdf_a_api_spec.rb
405
- - spec/api/split_api_spec.rb
406
- - spec/api/stamp_api_spec.rb
407
- - spec/api_client_spec.rb
408
- - spec/configuration_spec.rb
409
- - spec/models/action_flow_spec.rb
410
- - spec/models/api_usage_res_spec.rb
411
- - spec/models/archive_config_spec.rb
412
- - spec/models/archive_job_req_spec.rb
413
- - spec/models/archive_job_res_spec.rb
414
- - spec/models/color_spec.rb
415
- - spec/models/convert_to_pdf_action_spec.rb
416
- - spec/models/convert_to_pdf_res_spec.rb
417
- - spec/models/convert_to_pdf_spec.rb
418
- - spec/models/create_images_res_spec.rb
419
- - spec/models/create_images_spec.rb
420
- - spec/models/create_pdf_a_res_spec.rb
421
- - spec/models/create_pdf_a_spec.rb
422
- - spec/models/custom_cms_config_spec.rb
423
- - spec/models/doc_action_spec.rb
424
- - spec/models/doc_log_spec.rb
425
- - spec/models/doc_metadata_spec.rb
426
- - spec/models/document_spec.rb
427
- - spec/models/drop_document_req_spec.rb
428
- - spec/models/drop_document_res_spec.rb
429
- - spec/models/execution_trigger_spec.rb
430
- - spec/models/extract_action_spec.rb
431
- - spec/models/extract_res_spec.rb
432
- - spec/models/extract_spec.rb
433
- - spec/models/get_document_list_res_spec.rb
434
- - spec/models/get_document_req_spec.rb
435
- - spec/models/get_document_res_spec.rb
436
- - spec/models/i_form_file_spec.rb
437
- - spec/models/image_action_spec.rb
438
- - spec/models/image_spec.rb
439
- - spec/models/job_config_res_spec.rb
440
- - spec/models/job_config_spec.rb
441
- - spec/models/job_spec.rb
442
- - spec/models/key_value_pair_string_object_spec.rb
443
- - spec/models/key_value_pair_string_string_spec.rb
444
- - spec/models/merge_action_spec.rb
445
- - spec/models/merge_res_spec.rb
446
- - spec/models/merge_spec.rb
447
- - spec/models/notification_spec.rb
448
- - spec/models/ocr_action_spec.rb
449
- - spec/models/optimize_action_spec.rb
450
- - spec/models/optimize_res_spec.rb
451
- - spec/models/optimize_spec.rb
452
- - spec/models/page_selection_spec.rb
453
- - spec/models/page_spec.rb
454
- - spec/models/pdf4me_action_spec.rb
455
- - spec/models/pdf4me_document_spec.rb
456
- - spec/models/pdf4me_exception_spec.rb
457
- - spec/models/pdf_a_action_spec.rb
458
- - spec/models/pdf_font_spec.rb
459
- - spec/models/pricing_spec.rb
460
- - spec/models/produce_documents_res_spec.rb
461
- - spec/models/produce_documents_spec.rb
462
- - spec/models/produce_output_spec.rb
463
- - spec/models/recognize_document_res_spec.rb
464
- - spec/models/recognize_document_spec.rb
465
- - spec/models/rectangle_spec.rb
466
- - spec/models/rgb_set_spec.rb
467
- - spec/models/rotate_spec.rb
468
- - spec/models/run_job_res_spec.rb
469
- - spec/models/signature_config_spec.rb
470
- - spec/models/split_action_spec.rb
471
- - spec/models/split_res_spec.rb
472
- - spec/models/split_spec.rb
473
- - spec/models/stamp_action_spec.rb
474
- - spec/models/stamp_res_spec.rb
475
- - spec/models/stamp_spec.rb
476
- - spec/models/storage_folder_spec.rb
477
- - spec/models/text_spec.rb
478
- - spec/models/transform_spec.rb
479
- - spec/models/translate_spec.rb
480
- - spec/models/user_fingerprint_spec.rb
481
- - spec/models/version_res_spec.rb
211
+ - spec/actions/create_pdf_a_spec.rb
212
+ - spec/actions/wrapper_action_spec.rb
213
+ - spec/files/4.pdf
482
214
  - spec/spec_helper.rb
483
215
  homepage: http://pdf4me.com/
484
- licenses: []
216
+ licenses:
217
+ - MIT
485
218
  metadata: {}
486
219
  post_install_message:
487
220
  rdoc_options: []
@@ -491,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
491
224
  requirements:
492
225
  - - ">="
493
226
  - !ruby/object:Gem::Version
494
- version: '2.0'
227
+ version: '2.1'
495
228
  required_rubygems_version: !ruby/object:Gem::Requirement
496
229
  requirements:
497
230
  - - ">="
@@ -499,96 +232,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
499
232
  version: '0'
500
233
  requirements: []
501
234
  rubyforge_project:
502
- rubygems_version: 2.5.1
235
+ rubygems_version: 2.6.11
503
236
  signing_key:
504
237
  specification_version: 4
505
- summary: DmsApi Ruby Gem
238
+ summary: Pdf4Me Ruby Gem
506
239
  test_files:
507
- - spec/api/convert_api_spec.rb
508
- - spec/api/document_api_spec.rb
509
- - spec/api/extract_api_spec.rb
510
- - spec/api/image_api_spec.rb
511
- - spec/api/job_api_spec.rb
512
- - spec/api/management_api_spec.rb
513
- - spec/api/merge_api_spec.rb
514
- - spec/api/ocr_api_spec.rb
515
- - spec/api/optimize_api_spec.rb
516
- - spec/api/pdf_a_api_spec.rb
517
- - spec/api/split_api_spec.rb
518
- - spec/api/stamp_api_spec.rb
519
- - spec/api_client_spec.rb
520
- - spec/configuration_spec.rb
521
- - spec/models/action_flow_spec.rb
522
- - spec/models/api_usage_res_spec.rb
523
- - spec/models/archive_config_spec.rb
524
- - spec/models/archive_job_req_spec.rb
525
- - spec/models/archive_job_res_spec.rb
526
- - spec/models/color_spec.rb
527
- - spec/models/convert_to_pdf_action_spec.rb
528
- - spec/models/convert_to_pdf_res_spec.rb
529
- - spec/models/convert_to_pdf_spec.rb
530
- - spec/models/create_images_res_spec.rb
531
- - spec/models/create_images_spec.rb
532
- - spec/models/create_pdf_a_res_spec.rb
533
- - spec/models/create_pdf_a_spec.rb
534
- - spec/models/custom_cms_config_spec.rb
535
- - spec/models/doc_action_spec.rb
536
- - spec/models/doc_log_spec.rb
537
- - spec/models/doc_metadata_spec.rb
538
- - spec/models/document_spec.rb
539
- - spec/models/drop_document_req_spec.rb
540
- - spec/models/drop_document_res_spec.rb
541
- - spec/models/execution_trigger_spec.rb
542
- - spec/models/extract_action_spec.rb
543
- - spec/models/extract_res_spec.rb
544
- - spec/models/extract_spec.rb
545
- - spec/models/get_document_list_res_spec.rb
546
- - spec/models/get_document_req_spec.rb
547
- - spec/models/get_document_res_spec.rb
548
- - spec/models/i_form_file_spec.rb
549
- - spec/models/image_action_spec.rb
550
- - spec/models/image_spec.rb
551
- - spec/models/job_config_res_spec.rb
552
- - spec/models/job_config_spec.rb
553
- - spec/models/job_spec.rb
554
- - spec/models/key_value_pair_string_object_spec.rb
555
- - spec/models/key_value_pair_string_string_spec.rb
556
- - spec/models/merge_action_spec.rb
557
- - spec/models/merge_res_spec.rb
558
- - spec/models/merge_spec.rb
559
- - spec/models/notification_spec.rb
560
- - spec/models/ocr_action_spec.rb
561
- - spec/models/optimize_action_spec.rb
562
- - spec/models/optimize_res_spec.rb
563
- - spec/models/optimize_spec.rb
564
- - spec/models/page_selection_spec.rb
565
- - spec/models/page_spec.rb
566
- - spec/models/pdf4me_action_spec.rb
567
- - spec/models/pdf4me_document_spec.rb
568
- - spec/models/pdf4me_exception_spec.rb
569
- - spec/models/pdf_a_action_spec.rb
570
- - spec/models/pdf_font_spec.rb
571
- - spec/models/pricing_spec.rb
572
- - spec/models/produce_documents_res_spec.rb
573
- - spec/models/produce_documents_spec.rb
574
- - spec/models/produce_output_spec.rb
575
- - spec/models/recognize_document_res_spec.rb
576
- - spec/models/recognize_document_spec.rb
577
- - spec/models/rectangle_spec.rb
578
- - spec/models/rgb_set_spec.rb
579
- - spec/models/rotate_spec.rb
580
- - spec/models/run_job_res_spec.rb
581
- - spec/models/signature_config_spec.rb
582
- - spec/models/split_action_spec.rb
583
- - spec/models/split_res_spec.rb
584
- - spec/models/split_spec.rb
585
- - spec/models/stamp_action_spec.rb
586
- - spec/models/stamp_res_spec.rb
587
- - spec/models/stamp_spec.rb
588
- - spec/models/storage_folder_spec.rb
589
- - spec/models/text_spec.rb
590
- - spec/models/transform_spec.rb
591
- - spec/models/translate_spec.rb
592
- - spec/models/user_fingerprint_spec.rb
593
- - spec/models/version_res_spec.rb
240
+ - spec/actions/create_pdf_a_spec.rb
241
+ - spec/actions/wrapper_action_spec.rb
242
+ - spec/files/4.pdf
594
243
  - spec/spec_helper.rb