groupdocs_editor_cloud 23.5 → 23.11
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5abfd6d158653027b68e65c8d1242300739c138b760f6b7c016e78c28c23f6b5
|
|
4
|
+
data.tar.gz: 6fc251faad252edd26e8fb7ade9a647483b37b8a5fa48b0e46d3a03ea1707f3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df77772dc764ecb5d28507f7db9e4529834a86be4b07c3bc994788e0fac9e79961343a689e41c8a51080a6cc0427e45bd651e6ba0f9c1c5e0f2e894aa8caf337
|
|
7
|
+
data.tar.gz: 5ccd575cae3025a5545a47bde67d8eef5d44381e72efd3e2b667005e7d71161c58ca216a924a2a8c8659e7b93f2ed029670cf04c18d777c77c7c268c0db7c515
|
|
@@ -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 '
|
|
33
|
+
require_relative 'api_client_error'
|
|
35
34
|
|
|
36
35
|
module GroupDocsEditorCloud
|
|
37
36
|
#
|
|
@@ -69,7 +68,7 @@ module GroupDocsEditorCloud
|
|
|
69
68
|
end
|
|
70
69
|
|
|
71
70
|
unless response.success?
|
|
72
|
-
raise
|
|
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]
|
|
@@ -281,7 +280,7 @@ module GroupDocsEditorCloud
|
|
|
281
280
|
form_params.each do |key, value|
|
|
282
281
|
case value
|
|
283
282
|
when ::File
|
|
284
|
-
data[key] = Faraday::UploadIO.new(value.path,
|
|
283
|
+
data[key] = Faraday::UploadIO.new(value.path, "application/octet-stream", key)
|
|
285
284
|
when ::Array, nil
|
|
286
285
|
data[key] = value
|
|
287
286
|
else
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
|
|
26
26
|
module GroupDocsEditorCloud
|
|
27
27
|
#
|
|
28
|
-
#
|
|
28
|
+
# ApiClientError class for error handling
|
|
29
29
|
#
|
|
30
|
-
class
|
|
30
|
+
class ApiClientError < StandardError
|
|
31
31
|
attr_reader :code
|
|
32
32
|
attr_reader :message
|
|
33
33
|
|
|
34
34
|
# Usage examples:
|
|
35
|
-
#
|
|
36
|
-
#
|
|
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,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
# Common files
|
|
27
27
|
require_relative 'groupdocs_editor_cloud/api_client'
|
|
28
|
-
require_relative 'groupdocs_editor_cloud/
|
|
28
|
+
require_relative 'groupdocs_editor_cloud/api_client_error'
|
|
29
29
|
require_relative 'groupdocs_editor_cloud/version'
|
|
30
30
|
require_relative 'groupdocs_editor_cloud/configuration'
|
|
31
31
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groupdocs_editor_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '23.
|
|
4
|
+
version: '23.11'
|
|
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-
|
|
11
|
+
date: 2023-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -78,7 +78,7 @@ files:
|
|
|
78
78
|
- lib/groupdocs_editor_cloud/api/license_api.rb
|
|
79
79
|
- lib/groupdocs_editor_cloud/api/storage_api.rb
|
|
80
80
|
- lib/groupdocs_editor_cloud/api_client.rb
|
|
81
|
-
- lib/groupdocs_editor_cloud/
|
|
81
|
+
- lib/groupdocs_editor_cloud/api_client_error.rb
|
|
82
82
|
- lib/groupdocs_editor_cloud/configuration.rb
|
|
83
83
|
- lib/groupdocs_editor_cloud/models/consumption_result.rb
|
|
84
84
|
- lib/groupdocs_editor_cloud/models/delimited_text_load_options.rb
|
|
@@ -118,7 +118,7 @@ licenses:
|
|
|
118
118
|
- MIT
|
|
119
119
|
metadata:
|
|
120
120
|
source_code_uri: https://github.com/groupdocs-editor-cloud/groupdocs-editor-cloud-ruby
|
|
121
|
-
post_install_message:
|
|
121
|
+
post_install_message:
|
|
122
122
|
rdoc_options: []
|
|
123
123
|
require_paths:
|
|
124
124
|
- lib
|
|
@@ -126,16 +126,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
126
126
|
requirements:
|
|
127
127
|
- - "~>"
|
|
128
128
|
- !ruby/object:Gem::Version
|
|
129
|
-
version: '2.
|
|
129
|
+
version: '2.3'
|
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements:
|
|
132
132
|
- - ">="
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
135
|
requirements: []
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
signing_key:
|
|
136
|
+
rubygems_version: 3.1.6
|
|
137
|
+
signing_key:
|
|
139
138
|
specification_version: 4
|
|
140
139
|
summary: GroupDocs.Editor Cloud Ruby SDK
|
|
141
140
|
test_files: []
|