groupdocs_comparison_cloud 23.4 → 23.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b31fce3bdf80813b6b50d2b34c448af056333a6f
4
- data.tar.gz: cc2b44c49d3464bd916f1c1d6f68e7e169a27291
2
+ SHA256:
3
+ metadata.gz: 5ba6f5592fd1ab67c7f0d4c00371ffd3600f5c756ffdafb4a641ce2e5c123a10
4
+ data.tar.gz: d7504d7aa2ce81578f12ea51b3b47f4c68ce8d7773451dac4c3bfa92e181e858
5
5
  SHA512:
6
- metadata.gz: 48d00fe5c102356c031dcc84a637edf3a2be6bce8e094d16ed2ece9b8ccb311be59982551276f683697a8ea74d84793529a2f8759811be8adec74052ef6995ce
7
- data.tar.gz: 7743bc7dfe52d2eb3931c0f1fd9370c0eb1658f111629945122fc6a3a2d5653b56ec9b6536927518b0cb127129f052ba4900bee199aafbd5a86ff907ee1fcce0
6
+ metadata.gz: 955756e7e4b2bcb71c91491fdcc5e4a7a9bb5b96e92bcf8325179ba947251e967f1ba3688b6f5482d2f53b6a1206cd67e83a4473004b7f74e86d249a831719e9
7
+ data.tar.gz: 588157f82e1ff7911bfa33a95f8a6bc5184408e86b9e2417a704781a5a887fef80f8fbd34b39e20f51ffde2ae245170e54cbfe58eefb330a14dab4f71375a9dc
@@ -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
@@ -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
 
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsComparisonCloud
28
- VERSION = "23.4".freeze
28
+ VERSION = "23.12".freeze
29
29
  end
@@ -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: '23.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: 2023-05-04 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: []