groupdocs_comparison_cloud 22.4 → 23.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +5 -5
  2. data/lib/groupdocs_comparison_cloud/api/compare_api.rb +4 -4
  3. data/lib/groupdocs_comparison_cloud/api/file_api.rb +6 -6
  4. data/lib/groupdocs_comparison_cloud/api/folder_api.rb +6 -6
  5. data/lib/groupdocs_comparison_cloud/api/info_api.rb +2 -2
  6. data/lib/groupdocs_comparison_cloud/api/license_api.rb +1 -1
  7. data/lib/groupdocs_comparison_cloud/api/review_api.rb +3 -3
  8. data/lib/groupdocs_comparison_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_comparison_cloud/api_client.rb +6 -5
  10. data/lib/groupdocs_comparison_cloud/{api_error.rb → api_client_error.rb} +5 -5
  11. data/lib/groupdocs_comparison_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_comparison_cloud/models/apply_revisions_options.rb +1 -1
  13. data/lib/groupdocs_comparison_cloud/models/change_info.rb +5 -3
  14. data/lib/groupdocs_comparison_cloud/models/comparison_options.rb +3 -2
  15. data/lib/groupdocs_comparison_cloud/models/consumption_result.rb +1 -1
  16. data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +1 -1
  17. data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +1 -1
  18. data/lib/groupdocs_comparison_cloud/models/error.rb +1 -1
  19. data/lib/groupdocs_comparison_cloud/models/error_details.rb +1 -1
  20. data/lib/groupdocs_comparison_cloud/models/file_info.rb +1 -1
  21. data/lib/groupdocs_comparison_cloud/models/file_version.rb +1 -1
  22. data/lib/groupdocs_comparison_cloud/models/file_versions.rb +1 -1
  23. data/lib/groupdocs_comparison_cloud/models/files_list.rb +1 -1
  24. data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +1 -1
  25. data/lib/groupdocs_comparison_cloud/models/format.rb +1 -1
  26. data/lib/groupdocs_comparison_cloud/models/formats_result.rb +1 -1
  27. data/lib/groupdocs_comparison_cloud/models/info_result.rb +1 -1
  28. data/lib/groupdocs_comparison_cloud/models/items_style.rb +1 -1
  29. data/lib/groupdocs_comparison_cloud/models/link.rb +1 -1
  30. data/lib/groupdocs_comparison_cloud/models/metadata.rb +1 -1
  31. data/lib/groupdocs_comparison_cloud/models/object_exist.rb +1 -1
  32. data/lib/groupdocs_comparison_cloud/models/page_info.rb +1 -1
  33. data/lib/groupdocs_comparison_cloud/models/rectangle.rb +1 -1
  34. data/lib/groupdocs_comparison_cloud/models/revision_info.rb +5 -3
  35. data/lib/groupdocs_comparison_cloud/models/settings.rb +9 -5
  36. data/lib/groupdocs_comparison_cloud/models/size.rb +1 -1
  37. data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +1 -1
  38. data/lib/groupdocs_comparison_cloud/models/storage_file.rb +1 -1
  39. data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +1 -1
  40. data/lib/groupdocs_comparison_cloud/models/updates_options.rb +3 -2
  41. data/lib/groupdocs_comparison_cloud/version.rb +2 -2
  42. data/lib/groupdocs_comparison_cloud.rb +2 -2
  43. metadata +11 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aee72995cf61181f0f3601100efd1e030efbdd8e
4
- data.tar.gz: cc648f889c6c984c9f38f0eec460b3e4095e5a98
2
+ SHA256:
3
+ metadata.gz: 5ba6f5592fd1ab67c7f0d4c00371ffd3600f5c756ffdafb4a641ce2e5c123a10
4
+ data.tar.gz: d7504d7aa2ce81578f12ea51b3b47f4c68ce8d7773451dac4c3bfa92e181e858
5
5
  SHA512:
6
- metadata.gz: 7086e8a6c2d4fa8bc31b41f16b6f455f8bc12569f58d8d914e238a876ffe69331cf96d8804dac42d08faf96a4b767c64f11b8c56fbd81fe46c623b06501aecdb
7
- data.tar.gz: 50875ff18322f9af17eb9aebff894374733389d2a90e3d0ea4a175df29813de411dd6c9c99e88865058b61804db52f1bd1e81d9d9a894301b06e37103bc11dc9
6
+ metadata.gz: 955756e7e4b2bcb71c91491fdcc5e4a7a9bb5b96e92bcf8325179ba947251e967f1ba3688b6f5482d2f53b6a1206cd67e83a4473004b7f74e86d249a831719e9
7
+ data.tar.gz: 588157f82e1ff7911bfa33a95f8a6bc5184408e86b9e2417a704781a5a887fef80f8fbd34b39e20f51ffde2ae245170e54cbfe58eefb330a14dab4f71375a9dc
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="compare.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -277,7 +277,7 @@ end
277
277
  #
278
278
  # --------------------------------------------------------------------------------------------------------------------
279
279
  # <copyright company="Aspose Pty Ltd" file="comparisons_request.rb">
280
- # Copyright (c) 2003-2022 Aspose Pty Ltd
280
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
281
281
  # </copyright>
282
282
  # <summary>
283
283
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -322,7 +322,7 @@ end
322
322
  #
323
323
  # --------------------------------------------------------------------------------------------------------------------
324
324
  # <copyright company="Aspose Pty Ltd" file="post_changes_request.rb">
325
- # Copyright (c) 2003-2022 Aspose Pty Ltd
325
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
326
326
  # </copyright>
327
327
  # <summary>
328
328
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -367,7 +367,7 @@ end
367
367
  #
368
368
  # --------------------------------------------------------------------------------------------------------------------
369
369
  # <copyright company="Aspose Pty Ltd" file="put_changes_document_request.rb">
370
- # Copyright (c) 2003-2022 Aspose Pty Ltd
370
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
371
371
  # </copyright>
372
372
  # <summary>
373
373
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="file.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -449,7 +449,7 @@ end
449
449
  #
450
450
  # --------------------------------------------------------------------------------------------------------------------
451
451
  # <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
452
- # Copyright (c) 2003-2022 Aspose Pty Ltd
452
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
453
453
  # </copyright>
454
454
  # <summary>
455
455
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -510,7 +510,7 @@ end
510
510
  #
511
511
  # --------------------------------------------------------------------------------------------------------------------
512
512
  # <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
513
- # Copyright (c) 2003-2022 Aspose Pty Ltd
513
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
514
514
  # </copyright>
515
515
  # <summary>
516
516
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -563,7 +563,7 @@ end
563
563
  #
564
564
  # --------------------------------------------------------------------------------------------------------------------
565
565
  # <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
566
- # Copyright (c) 2003-2022 Aspose Pty Ltd
566
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
567
567
  # </copyright>
568
568
  # <summary>
569
569
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -616,7 +616,7 @@ end
616
616
  #
617
617
  # --------------------------------------------------------------------------------------------------------------------
618
618
  # <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
619
- # Copyright (c) 2003-2022 Aspose Pty Ltd
619
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
620
620
  # </copyright>
621
621
  # <summary>
622
622
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -677,7 +677,7 @@ end
677
677
  #
678
678
  # --------------------------------------------------------------------------------------------------------------------
679
679
  # <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
680
- # Copyright (c) 2003-2022 Aspose Pty Ltd
680
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
681
681
  # </copyright>
682
682
  # <summary>
683
683
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="folder.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -430,7 +430,7 @@ end
430
430
  #
431
431
  # --------------------------------------------------------------------------------------------------------------------
432
432
  # <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
433
- # Copyright (c) 2003-2022 Aspose Pty Ltd
433
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
434
434
  # </copyright>
435
435
  # <summary>
436
436
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -487,7 +487,7 @@ end
487
487
  #
488
488
  # --------------------------------------------------------------------------------------------------------------------
489
489
  # <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
490
- # Copyright (c) 2003-2022 Aspose Pty Ltd
490
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
491
491
  # </copyright>
492
492
  # <summary>
493
493
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -536,7 +536,7 @@ end
536
536
  #
537
537
  # --------------------------------------------------------------------------------------------------------------------
538
538
  # <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
539
- # Copyright (c) 2003-2022 Aspose Pty Ltd
539
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
540
540
  # </copyright>
541
541
  # <summary>
542
542
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -589,7 +589,7 @@ end
589
589
  #
590
590
  # --------------------------------------------------------------------------------------------------------------------
591
591
  # <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
592
- # Copyright (c) 2003-2022 Aspose Pty Ltd
592
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
593
593
  # </copyright>
594
594
  # <summary>
595
595
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -638,7 +638,7 @@ end
638
638
  #
639
639
  # --------------------------------------------------------------------------------------------------------------------
640
640
  # <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
641
- # Copyright (c) 2003-2022 Aspose Pty Ltd
641
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
642
642
  # </copyright>
643
643
  # <summary>
644
644
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="info.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -222,7 +222,7 @@ end
222
222
  #
223
223
  # --------------------------------------------------------------------------------------------------------------------
224
224
  # <copyright company="Aspose Pty Ltd" file="get_document_info_request.rb">
225
- # Copyright (c) 2003-2022 Aspose Pty Ltd
225
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
226
226
  # </copyright>
227
227
  # <summary>
228
228
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="license.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="review.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -225,7 +225,7 @@ end
225
225
  #
226
226
  # --------------------------------------------------------------------------------------------------------------------
227
227
  # <copyright company="Aspose Pty Ltd" file="apply_revisions_request.rb">
228
- # Copyright (c) 2003-2022 Aspose Pty Ltd
228
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
229
229
  # </copyright>
230
230
  # <summary>
231
231
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -270,7 +270,7 @@ end
270
270
  #
271
271
  # --------------------------------------------------------------------------------------------------------------------
272
272
  # <copyright company="Aspose Pty Ltd" file="get_revisions_request.rb">
273
- # Copyright (c) 2003-2022 Aspose Pty Ltd
273
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
274
274
  # </copyright>
275
275
  # <summary>
276
276
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="storage.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -350,7 +350,7 @@ end
350
350
  #
351
351
  # --------------------------------------------------------------------------------------------------------------------
352
352
  # <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
353
- # Copyright (c) 2003-2022 Aspose Pty Ltd
353
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
354
354
  # </copyright>
355
355
  # <summary>
356
356
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -395,7 +395,7 @@ end
395
395
  #
396
396
  # --------------------------------------------------------------------------------------------------------------------
397
397
  # <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
398
- # Copyright (c) 2003-2022 Aspose Pty Ltd
398
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
399
399
  # </copyright>
400
400
  # <summary>
401
401
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -444,7 +444,7 @@ end
444
444
  #
445
445
  # --------------------------------------------------------------------------------------------------------------------
446
446
  # <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
447
- # Copyright (c) 2003-2022 Aspose Pty Ltd
447
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
448
448
  # </copyright>
449
449
  # <summary>
450
450
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -497,7 +497,7 @@ end
497
497
  #
498
498
  # --------------------------------------------------------------------------------------------------------------------
499
499
  # <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
500
- # Copyright (c) 2003-2022 Aspose Pty Ltd
500
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
501
501
  # </copyright>
502
502
  # <summary>
503
503
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="api_client.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -28,10 +28,9 @@ require 'json'
28
28
  require 'logger'
29
29
  require 'tempfile'
30
30
  require 'faraday'
31
- require 'mimemagic'
32
31
  require 'addressable'
33
32
  require_relative 'version'
34
- require_relative 'api_error'
33
+ require_relative 'api_client_error'
35
34
 
36
35
  module GroupDocsComparisonCloud
37
36
  #
@@ -69,7 +68,7 @@ module GroupDocsComparisonCloud
69
68
  end
70
69
 
71
70
  unless response.success?
72
- raise ApiError.new(:code => response.status, :response_body => response.body)
71
+ raise ApiClientError.new(:code => response.status, :response_body => response.body)
73
72
  end
74
73
 
75
74
  data = deserialize(response, opts[:return_type]) if opts[:return_type]
@@ -117,6 +116,8 @@ module GroupDocsComparisonCloud
117
116
  f.adapter Faraday.default_adapter
118
117
  end
119
118
 
119
+ conn.options.timeout = 30
120
+
120
121
  case http_method
121
122
  when :post
122
123
  return conn.post url, req_opts[:body]
@@ -281,7 +282,7 @@ module GroupDocsComparisonCloud
281
282
  form_params.each do |key, value|
282
283
  case value
283
284
  when ::File
284
- data[key] = Faraday::UploadIO.new(value.path, MimeMagic.by_magic(value).to_s, key)
285
+ data[key] = Faraday::UploadIO.new(value.path, "application/octet-stream", key)
285
286
  when ::Array, nil
286
287
  data[key] = value
287
288
  else
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="api_error.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,15 +25,15 @@
25
25
 
26
26
  module GroupDocsComparisonCloud
27
27
  #
28
- # ApiError class for error handling
28
+ # ApiClientError class for error handling
29
29
  #
30
- class ApiError < StandardError
30
+ class ApiClientError < StandardError
31
31
  attr_reader :code
32
32
  attr_reader :message
33
33
 
34
34
  # Usage examples:
35
- # ApiError.new
36
- # ApiError.new(:code => 500, :response_body => "")
35
+ # ApiClientError.new
36
+ # ApiClientError.new(:code => 500, :response_body => "")
37
37
  def initialize(arg = nil)
38
38
  if arg.is_a? Hash
39
39
 
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="configuration.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="apply_revisions_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="change_info.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -202,7 +202,8 @@ module GroupDocsComparisonCloud
202
202
  validator = EnumAttributeValidator.new('String', ["None", "Accept", "Reject"])
203
203
  if comparison_action.to_i == 0
204
204
  unless validator.valid?(comparison_action)
205
- raise ArgumentError, "invalid value for 'comparison_action', must be one of #{validator.allowable_values}."
205
+ # raise ArgumentError, "invalid value for 'comparison_action', must be one of #{validator.allowable_values}."
206
+ @comparison_action = validator.allowable_values[comparison_action.to_i]
206
207
  end
207
208
  @comparison_action = comparison_action
208
209
  else
@@ -216,7 +217,8 @@ module GroupDocsComparisonCloud
216
217
  validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
217
218
  if type.to_i == 0
218
219
  unless validator.valid?(type)
219
- raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
220
+ # raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
221
+ @type = validator.allowable_values[type.to_i]
220
222
  end
221
223
  @type = type
222
224
  else
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="comparison_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -147,7 +147,8 @@ module GroupDocsComparisonCloud
147
147
  validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
148
148
  if change_type.to_i == 0
149
149
  unless validator.valid?(change_type)
150
- raise ArgumentError, "invalid value for 'change_type', must be one of #{validator.allowable_values}."
150
+ # raise ArgumentError, "invalid value for 'change_type', must be one of #{validator.allowable_values}."
151
+ @change_type = validator.allowable_values[change_type.to_i]
151
152
  end
152
153
  @change_type = change_type
153
154
  else
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="consumption_result.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="diagram_master_setting.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="disc_usage.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="error.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="error_details.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="file_info.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="file_version.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="file_versions.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="files_list.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="files_upload_result.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="format.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="formats_result.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="info_result.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="items_style.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="link.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="metadata.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="object_exist.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_info.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="rectangle.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="revision_info.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -157,7 +157,8 @@ module GroupDocsComparisonCloud
157
157
  validator = EnumAttributeValidator.new('String', ["None", "Accept", "Reject"])
158
158
  if action.to_i == 0
159
159
  unless validator.valid?(action)
160
- raise ArgumentError, "invalid value for 'action', must be one of #{validator.allowable_values}."
160
+ # raise ArgumentError, "invalid value for 'action', must be one of #{validator.allowable_values}."
161
+ @action = validator.allowable_values[action.to_i]
161
162
  end
162
163
  @action = action
163
164
  else
@@ -171,7 +172,8 @@ module GroupDocsComparisonCloud
171
172
  validator = EnumAttributeValidator.new('String', ["Insertion", "Deletion", "FormatChange", "StyleDefinitionChange", "Moving"])
172
173
  if type.to_i == 0
173
174
  unless validator.valid?(type)
174
- raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
175
+ # raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
176
+ @type = validator.allowable_values[type.to_i]
175
177
  end
176
178
  @type = type
177
179
  else
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="settings.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -371,7 +371,8 @@ module GroupDocsComparisonCloud
371
371
  validator = EnumAttributeValidator.new('String', ["Low", "Middle", "High"])
372
372
  if details_level.to_i == 0
373
373
  unless validator.valid?(details_level)
374
- raise ArgumentError, "invalid value for 'details_level', must be one of #{validator.allowable_values}."
374
+ # raise ArgumentError, "invalid value for 'details_level', must be one of #{validator.allowable_values}."
375
+ @details_level = validator.allowable_values[details_level.to_i]
375
376
  end
376
377
  @details_level = details_level
377
378
  else
@@ -385,7 +386,8 @@ module GroupDocsComparisonCloud
385
386
  validator = EnumAttributeValidator.new('String', ["Default", "Source", "Target", "FileAuthor"])
386
387
  if clone_metadata.to_i == 0
387
388
  unless validator.valid?(clone_metadata)
388
- raise ArgumentError, "invalid value for 'clone_metadata', must be one of #{validator.allowable_values}."
389
+ # raise ArgumentError, "invalid value for 'clone_metadata', must be one of #{validator.allowable_values}."
390
+ @clone_metadata = validator.allowable_values[clone_metadata.to_i]
389
391
  end
390
392
  @clone_metadata = clone_metadata
391
393
  else
@@ -399,7 +401,8 @@ module GroupDocsComparisonCloud
399
401
  validator = EnumAttributeValidator.new('String', ["None", "Source", "Target", "User"])
400
402
  if password_save_option.to_i == 0
401
403
  unless validator.valid?(password_save_option)
402
- raise ArgumentError, "invalid value for 'password_save_option', must be one of #{validator.allowable_values}."
404
+ # raise ArgumentError, "invalid value for 'password_save_option', must be one of #{validator.allowable_values}."
405
+ @password_save_option = validator.allowable_values[password_save_option.to_i]
403
406
  end
404
407
  @password_save_option = password_save_option
405
408
  else
@@ -413,7 +416,8 @@ module GroupDocsComparisonCloud
413
416
  validator = EnumAttributeValidator.new('String', ["Default", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8"])
414
417
  if paper_size.to_i == 0
415
418
  unless validator.valid?(paper_size)
416
- raise ArgumentError, "invalid value for 'paper_size', must be one of #{validator.allowable_values}."
419
+ # raise ArgumentError, "invalid value for 'paper_size', must be one of #{validator.allowable_values}."
420
+ @paper_size = validator.allowable_values[paper_size.to_i]
417
421
  end
418
422
  @paper_size = paper_size
419
423
  else
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="size.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_file.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="style_change_info.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="updates_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -158,7 +158,8 @@ module GroupDocsComparisonCloud
158
158
  validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
159
159
  if change_type.to_i == 0
160
160
  unless validator.valid?(change_type)
161
- raise ArgumentError, "invalid value for 'change_type', must be one of #{validator.allowable_values}."
161
+ # raise ArgumentError, "invalid value for 'change_type', must be one of #{validator.allowable_values}."
162
+ @change_type = validator.allowable_values[change_type.to_i]
162
163
  end
163
164
  @change_type = change_type
164
165
  else
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="version.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsComparisonCloud
28
- VERSION = "22.4".freeze
28
+ VERSION = "23.12".freeze
29
29
  end
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="groupdocs_comparison_cloud.rb">
3
- # Copyright (c) 2003-2022 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,7 +25,7 @@
25
25
 
26
26
  # Common files
27
27
  require_relative 'groupdocs_comparison_cloud/api_client'
28
- require_relative 'groupdocs_comparison_cloud/api_error'
28
+ require_relative 'groupdocs_comparison_cloud/api_client_error'
29
29
  require_relative 'groupdocs_comparison_cloud/version'
30
30
  require_relative 'groupdocs_comparison_cloud/configuration'
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_comparison_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '22.4'
4
+ version: '23.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-14 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,20 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.5.0
33
+ version: 2.8.4
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 2.5.0
36
+ version: 2.8.4
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: 2.5.0
43
+ version: 2.8.4
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.5.0
46
+ version: 2.8.4
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +79,7 @@ files:
79
79
  - lib/groupdocs_comparison_cloud/api/review_api.rb
80
80
  - lib/groupdocs_comparison_cloud/api/storage_api.rb
81
81
  - lib/groupdocs_comparison_cloud/api_client.rb
82
- - lib/groupdocs_comparison_cloud/api_error.rb
82
+ - lib/groupdocs_comparison_cloud/api_client_error.rb
83
83
  - lib/groupdocs_comparison_cloud/configuration.rb
84
84
  - lib/groupdocs_comparison_cloud/models/apply_revisions_options.rb
85
85
  - lib/groupdocs_comparison_cloud/models/change_info.rb
@@ -116,7 +116,7 @@ licenses:
116
116
  - MIT
117
117
  metadata:
118
118
  source_code_uri: https://github.com/groupdocs-comparison-cloud/groupdocs-comparison-cloud-ruby
119
- post_install_message:
119
+ post_install_message:
120
120
  rdoc_options: []
121
121
  require_paths:
122
122
  - lib
@@ -131,9 +131,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubyforge_project:
135
- rubygems_version: 2.6.14.1
136
- signing_key:
134
+ rubygems_version: 3.1.6
135
+ signing_key:
137
136
  specification_version: 4
138
137
  summary: GroupDocs.Comparison Cloud Ruby SDK
139
138
  test_files: []