onlyoffice-docs_integration_sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/onlyoffice/docs_integration_sdk/document_editor/config.rb +1479 -0
- data/lib/onlyoffice/docs_integration_sdk/document_editor/config_test.rb +1713 -0
- data/lib/onlyoffice/docs_integration_sdk/document_editor.rb +29 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/command.rb +417 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/command_test.rb +672 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/conversion.rb +477 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/conversion_test.rb +682 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck.rb +101 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck_test.rb +209 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb +116 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/jwt_test.rb +70 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb +73 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/response_test.rb +49 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/service.rb +44 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/ua.rb +31 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client/ua_test.rb +35 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client.rb +321 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server/client_test.rb +1259 -0
- data/lib/onlyoffice/docs_integration_sdk/document_server.rb +29 -0
- data/lib/onlyoffice/docs_integration_sdk/document_storage/callback.rb +276 -0
- data/lib/onlyoffice/docs_integration_sdk/document_storage/callback_test.rb +291 -0
- data/lib/onlyoffice/docs_integration_sdk/document_storage.rb +29 -0
- data/lib/onlyoffice/docs_integration_sdk/jwt.rb +448 -0
- data/lib/onlyoffice/docs_integration_sdk/jwt_test.rb +598 -0
- data/lib/onlyoffice/docs_integration_sdk/test_test.rb +113 -0
- data/lib/onlyoffice/docs_integration_sdk/version.rb +26 -0
- data/lib/onlyoffice/docs_integration_sdk/version_test.rb +33 -0
- data/lib/onlyoffice/docs_integration_sdk.rb +31 -0
- data/lib/onlyoffice.rb +21 -0
- metadata +283 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
#
|
2
|
+
# (c) Copyright Ascensio System SIA 2025
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
# typed: strict
|
18
|
+
# frozen_string_literal: true
|
19
|
+
|
20
|
+
require "sorbet-runtime"
|
21
|
+
|
22
|
+
module Onlyoffice
|
23
|
+
module DocsIntegrationSdk
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#
|
2
|
+
# (c) Copyright Ascensio System SIA 2025
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
# typed: true
|
18
|
+
# frozen_string_literal: true
|
19
|
+
|
20
|
+
require "test/unit"
|
21
|
+
require_relative "version"
|
22
|
+
|
23
|
+
module Onlyoffice
|
24
|
+
module DocsIntegrationSdk
|
25
|
+
class VersionTest < ::Test::Unit::TestCase
|
26
|
+
extend T::Sig
|
27
|
+
|
28
|
+
def test
|
29
|
+
assert_equal(VERSION, "0.1.0")
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# (c) Copyright Ascensio System SIA 2025
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
# typed: strict
|
18
|
+
# frozen_string_literal: true
|
19
|
+
|
20
|
+
require "sorbet-runtime"
|
21
|
+
|
22
|
+
module Onlyoffice
|
23
|
+
# @since 0.1.0
|
24
|
+
module DocsIntegrationSdk; end
|
25
|
+
end
|
26
|
+
|
27
|
+
require_relative "docs_integration_sdk/document_editor"
|
28
|
+
require_relative "docs_integration_sdk/document_server"
|
29
|
+
require_relative "docs_integration_sdk/document_storage"
|
30
|
+
require_relative "docs_integration_sdk/jwt"
|
31
|
+
require_relative "docs_integration_sdk/version"
|
data/lib/onlyoffice.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#
|
2
|
+
# (c) Copyright Ascensio System SIA 2025
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
# typed: strict
|
18
|
+
# frozen_string_literal: true
|
19
|
+
|
20
|
+
require "sorbet-runtime"
|
21
|
+
require_relative "onlyoffice/docs_integration_sdk"
|
metadata
ADDED
@@ -0,0 +1,283 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: onlyoffice-docs_integration_sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ascensio System SIA
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 2025-02-28 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: jwt
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - '='
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 2.10.1
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - '='
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 2.10.1
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: sorbet-runtime
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - '='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.5.11766
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - '='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.5.11766
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: rake
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 13.2.1
|
47
|
+
type: :development
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 13.2.1
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: rdoc
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - '='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 6.11.0
|
61
|
+
type: :development
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 6.11.0
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: rubocop
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - '='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.70.0
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 1.70.0
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rubocop-rake
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 0.6.0
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - '='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 0.6.0
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: rubocop-sorbet
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.8.0
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - '='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.8.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: simplecov
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - '='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.22.0
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.22.0
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: sorbet
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - '='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.5.11766
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - '='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 0.5.11766
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: tapioca
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - '='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 0.11.8
|
145
|
+
type: :development
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - '='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.11.8
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: test-unit
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - '='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 3.6.7
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - '='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 3.6.7
|
166
|
+
- !ruby/object:Gem::Dependency
|
167
|
+
name: webrick
|
168
|
+
requirement: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - '='
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 1.9.1
|
173
|
+
type: :development
|
174
|
+
prerelease: false
|
175
|
+
version_requirements: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - '='
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: 1.9.1
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: yard
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - '='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.9.37
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - '='
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 0.9.37
|
194
|
+
- !ruby/object:Gem::Dependency
|
195
|
+
name: yard-sorbet
|
196
|
+
requirement: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - '='
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.8.1
|
201
|
+
type: :development
|
202
|
+
prerelease: false
|
203
|
+
version_requirements: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - '='
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 0.8.1
|
208
|
+
description: ONLYOFFICE Docs Integration Ruby SDK provides common interfaces and default
|
209
|
+
implementations for integrating ONLYOFFICE Document Server into your own website
|
210
|
+
or application on Ruby.
|
211
|
+
email:
|
212
|
+
- integration@onlyoffice.com
|
213
|
+
executables: []
|
214
|
+
extensions: []
|
215
|
+
extra_rdoc_files: []
|
216
|
+
files:
|
217
|
+
- lib/onlyoffice.rb
|
218
|
+
- lib/onlyoffice/docs_integration_sdk.rb
|
219
|
+
- lib/onlyoffice/docs_integration_sdk/document_editor.rb
|
220
|
+
- lib/onlyoffice/docs_integration_sdk/document_editor/config.rb
|
221
|
+
- lib/onlyoffice/docs_integration_sdk/document_editor/config_test.rb
|
222
|
+
- lib/onlyoffice/docs_integration_sdk/document_server.rb
|
223
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client.rb
|
224
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/command.rb
|
225
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/command_test.rb
|
226
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/conversion.rb
|
227
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/conversion_test.rb
|
228
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck.rb
|
229
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck_test.rb
|
230
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb
|
231
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/jwt_test.rb
|
232
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/response.rb
|
233
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/response_test.rb
|
234
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/service.rb
|
235
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/ua.rb
|
236
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/ua_test.rb
|
237
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client_test.rb
|
238
|
+
- lib/onlyoffice/docs_integration_sdk/document_storage.rb
|
239
|
+
- lib/onlyoffice/docs_integration_sdk/document_storage/callback.rb
|
240
|
+
- lib/onlyoffice/docs_integration_sdk/document_storage/callback_test.rb
|
241
|
+
- lib/onlyoffice/docs_integration_sdk/jwt.rb
|
242
|
+
- lib/onlyoffice/docs_integration_sdk/jwt_test.rb
|
243
|
+
- lib/onlyoffice/docs_integration_sdk/test_test.rb
|
244
|
+
- lib/onlyoffice/docs_integration_sdk/version.rb
|
245
|
+
- lib/onlyoffice/docs_integration_sdk/version_test.rb
|
246
|
+
homepage: https://github.com/onlyoffice/docs-integration-sdk-ruby/
|
247
|
+
licenses:
|
248
|
+
- Apache-2.0
|
249
|
+
metadata:
|
250
|
+
bug_tracker_uri: https://github.com/onlyoffice/docs-integration-sdk-ruby/issues/
|
251
|
+
changelog_uri: https://github.com/onlyoffice/docs-integration-sdk-ruby/blob/master/CHANGELOG.md/
|
252
|
+
documentation_uri: https://onlyoffice.github.io/docs-integration-sdk-ruby/
|
253
|
+
source_code_uri: https://github.com/onlyoffice/docs-integration-sdk-ruby/
|
254
|
+
rdoc_options: []
|
255
|
+
require_paths:
|
256
|
+
- lib
|
257
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - ">="
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: 2.7.0
|
262
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
|
+
requirements:
|
264
|
+
- - ">="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: '0'
|
267
|
+
requirements: []
|
268
|
+
rubygems_version: 3.6.2
|
269
|
+
specification_version: 4
|
270
|
+
summary: ONLYOFFICE Docs Integration SDK
|
271
|
+
test_files:
|
272
|
+
- lib/onlyoffice/docs_integration_sdk/document_editor/config_test.rb
|
273
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/command_test.rb
|
274
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/conversion_test.rb
|
275
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck_test.rb
|
276
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/jwt_test.rb
|
277
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/response_test.rb
|
278
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client/ua_test.rb
|
279
|
+
- lib/onlyoffice/docs_integration_sdk/document_server/client_test.rb
|
280
|
+
- lib/onlyoffice/docs_integration_sdk/document_storage/callback_test.rb
|
281
|
+
- lib/onlyoffice/docs_integration_sdk/jwt_test.rb
|
282
|
+
- lib/onlyoffice/docs_integration_sdk/test_test.rb
|
283
|
+
- lib/onlyoffice/docs_integration_sdk/version_test.rb
|