ruby-lokalise-api 5.0.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +7 -5
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/base_request.rb +4 -4
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/client.rb +24 -24
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/base.rb +10 -10
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/branch.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/contributor.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/custom_translation_status.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/file.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/key.rb +2 -2
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/key_comment.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/order.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/payment_card.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/project.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/project_comment.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/project_language.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/queued_process.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/screenshot.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/segment.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/snapshot.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/system_language.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/task.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/team.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/team_user.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/team_user_group.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/translation.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/translation_provider.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/collections/webhook.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/connection.rb +2 -2
- data/lib/ruby_lokalise_api/data/attributes.yml +235 -0
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/error.rb +14 -14
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/json_handler.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/oauth2/auth.rb +2 -2
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/oauth2/connection.rb +2 -2
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/oauth2/request.rb +3 -3
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/oauth2_client.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/request.rb +3 -3
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/base.rb +16 -8
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/branch.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/contributor.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/custom_translation_status.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/file.rb +2 -2
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/key.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/key_comment.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/order.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/payment_card.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/project.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/project_comment.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/project_language.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/queued_process.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/screenshot.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/segment.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/snapshot.rb +2 -2
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/system_language.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/task.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/team.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/team_user.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/team_user_billing_details.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/team_user_group.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/translation.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/translation_provider.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/resources/webhook.rb +1 -1
- data/lib/ruby_lokalise_api/rest/branches.rb +69 -0
- data/lib/ruby_lokalise_api/rest/comments.rb +61 -0
- data/lib/ruby_lokalise_api/rest/contributors.rb +58 -0
- data/lib/ruby_lokalise_api/rest/custom_translation_statuses.rb +67 -0
- data/lib/ruby_lokalise_api/rest/files.rb +49 -0
- data/lib/ruby_lokalise_api/rest/keys.rb +79 -0
- data/lib/ruby_lokalise_api/rest/languages.rb +67 -0
- data/lib/ruby_lokalise_api/rest/orders.rb +37 -0
- data/lib/ruby_lokalise_api/rest/payment_cards.rb +43 -0
- data/lib/ruby_lokalise_api/rest/projects.rb +62 -0
- data/lib/ruby_lokalise_api/rest/queued_processes.rb +28 -0
- data/lib/ruby_lokalise_api/rest/screenshots.rb +58 -0
- data/lib/ruby_lokalise_api/rest/segments.rb +45 -0
- data/lib/ruby_lokalise_api/rest/snapshots.rb +47 -0
- data/lib/ruby_lokalise_api/rest/tasks.rb +58 -0
- data/lib/ruby_lokalise_api/rest/team_user_billing_details.rb +36 -0
- data/lib/ruby_lokalise_api/rest/team_user_groups.rb +109 -0
- data/lib/ruby_lokalise_api/rest/team_users.rb +48 -0
- data/lib/ruby_lokalise_api/rest/teams.rb +16 -0
- data/lib/ruby_lokalise_api/rest/translation_providers.rb +27 -0
- data/lib/ruby_lokalise_api/rest/translations.rb +39 -0
- data/lib/ruby_lokalise_api/rest/webhooks.rb +69 -0
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/utils/attribute_helpers.rb +7 -7
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/utils/endpoint_helpers.rb +1 -1
- data/lib/{ruby-lokalise-api → ruby_lokalise_api}/utils/string_utils.rb +1 -1
- data/lib/ruby_lokalise_api/version.rb +5 -0
- data/lib/ruby_lokalise_api.rb +50 -0
- data/ruby-lokalise-api.gemspec +8 -7
- metadata +125 -157
- data/lib/ruby-lokalise-api/data/attributes.json +0 -259
- data/lib/ruby-lokalise-api/rest/branches.rb +0 -67
- data/lib/ruby-lokalise-api/rest/comments.rb +0 -59
- data/lib/ruby-lokalise-api/rest/contributors.rb +0 -56
- data/lib/ruby-lokalise-api/rest/custom_translation_statuses.rb +0 -65
- data/lib/ruby-lokalise-api/rest/files.rb +0 -36
- data/lib/ruby-lokalise-api/rest/keys.rb +0 -77
- data/lib/ruby-lokalise-api/rest/languages.rb +0 -65
- data/lib/ruby-lokalise-api/rest/orders.rb +0 -35
- data/lib/ruby-lokalise-api/rest/payment_cards.rb +0 -41
- data/lib/ruby-lokalise-api/rest/projects.rb +0 -60
- data/lib/ruby-lokalise-api/rest/queued_processes.rb +0 -26
- data/lib/ruby-lokalise-api/rest/screenshots.rb +0 -56
- data/lib/ruby-lokalise-api/rest/segments.rb +0 -43
- data/lib/ruby-lokalise-api/rest/snapshots.rb +0 -45
- data/lib/ruby-lokalise-api/rest/tasks.rb +0 -56
- data/lib/ruby-lokalise-api/rest/team_user_billing_details.rb +0 -34
- data/lib/ruby-lokalise-api/rest/team_user_group.rb +0 -107
- data/lib/ruby-lokalise-api/rest/team_users.rb +0 -46
- data/lib/ruby-lokalise-api/rest/teams.rb +0 -14
- data/lib/ruby-lokalise-api/rest/translation_providers.rb +0 -25
- data/lib/ruby-lokalise-api/rest/translations.rb +0 -37
- data/lib/ruby-lokalise-api/rest/webhooks.rb +0 -67
- data/lib/ruby-lokalise-api/version.rb +0 -5
- data/lib/ruby-lokalise-api.rb +0 -111
- data/spec/lib/ruby-lokalise-api/connection_spec.rb +0 -68
- data/spec/lib/ruby-lokalise-api/custom_json_parser_spec.rb +0 -81
- data/spec/lib/ruby-lokalise-api/error_spec.rb +0 -41
- data/spec/lib/ruby-lokalise-api/oauth2/auth_spec.rb +0 -73
- data/spec/lib/ruby-lokalise-api/rest/branches_spec.rb +0 -140
- data/spec/lib/ruby-lokalise-api/rest/comments_spec.rb +0 -118
- data/spec/lib/ruby-lokalise-api/rest/contributors_spec.rb +0 -132
- data/spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb +0 -131
- data/spec/lib/ruby-lokalise-api/rest/files_spec.rb +0 -66
- data/spec/lib/ruby-lokalise-api/rest/keys_spec.rb +0 -199
- data/spec/lib/ruby-lokalise-api/rest/languages_spec.rb +0 -134
- data/spec/lib/ruby-lokalise-api/rest/orders_spec.rb +0 -113
- data/spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb +0 -92
- data/spec/lib/ruby-lokalise-api/rest/projects_spec.rb +0 -150
- data/spec/lib/ruby-lokalise-api/rest/queued_processes_spec.rb +0 -57
- data/spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb +0 -127
- data/spec/lib/ruby-lokalise-api/rest/segments_spec.rb +0 -106
- data/spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb +0 -117
- data/spec/lib/ruby-lokalise-api/rest/tasks_spec.rb +0 -145
- data/spec/lib/ruby-lokalise-api/rest/team_user_billing_details_spec.rb +0 -48
- data/spec/lib/ruby-lokalise-api/rest/team_user_groups_spec.rb +0 -278
- data/spec/lib/ruby-lokalise-api/rest/team_users_spec.rb +0 -95
- data/spec/lib/ruby-lokalise-api/rest/teams_spec.rb +0 -25
- data/spec/lib/ruby-lokalise-api/rest/translation_providers_spec.rb +0 -48
- data/spec/lib/ruby-lokalise-api/rest/translations_spec.rb +0 -118
- data/spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb +0 -126
- data/spec/lib/ruby-lokalise-api_spec.rb +0 -47
- data/spec/spec_helper.rb +0 -22
- data/spec/support/test_client.rb +0 -15
- data/spec/support/vcr.rb +0 -15
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lokalise-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Ilya
|
7
|
+
- Ilya Krukowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02
|
11
|
+
date: 2022-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -56,16 +56,30 @@ dependencies:
|
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: zeitwerk
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: '2.4'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: '2.4'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: codecov
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,6 +220,20 @@ dependencies:
|
|
206
220
|
- - "~>"
|
207
221
|
- !ruby/object:Gem::Version
|
208
222
|
version: '6.0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: webmock
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '3.14'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '3.14'
|
209
237
|
description: Opinionated Ruby client for the Lokalise platform API allowing to work
|
210
238
|
with translations, projects, users and other resources as with Ruby objects.
|
211
239
|
email:
|
@@ -223,124 +251,94 @@ files:
|
|
223
251
|
- LICENSE
|
224
252
|
- README.md
|
225
253
|
- Rakefile
|
226
|
-
- lib/
|
227
|
-
- lib/
|
228
|
-
- lib/
|
229
|
-
- lib/
|
230
|
-
- lib/
|
231
|
-
- lib/
|
232
|
-
- lib/
|
233
|
-
- lib/
|
234
|
-
- lib/
|
235
|
-
- lib/
|
236
|
-
- lib/
|
237
|
-
- lib/
|
238
|
-
- lib/
|
239
|
-
- lib/
|
240
|
-
- lib/
|
241
|
-
- lib/
|
242
|
-
- lib/
|
243
|
-
- lib/
|
244
|
-
- lib/
|
245
|
-
- lib/
|
246
|
-
- lib/
|
247
|
-
- lib/
|
248
|
-
- lib/
|
249
|
-
- lib/
|
250
|
-
- lib/
|
251
|
-
- lib/
|
252
|
-
- lib/
|
253
|
-
- lib/
|
254
|
-
- lib/
|
255
|
-
- lib/
|
256
|
-
- lib/
|
257
|
-
- lib/
|
258
|
-
- lib/
|
259
|
-
- lib/
|
260
|
-
- lib/
|
261
|
-
- lib/
|
262
|
-
- lib/
|
263
|
-
- lib/
|
264
|
-
- lib/
|
265
|
-
- lib/
|
266
|
-
- lib/
|
267
|
-
- lib/
|
268
|
-
- lib/
|
269
|
-
- lib/
|
270
|
-
- lib/
|
271
|
-
- lib/
|
272
|
-
- lib/
|
273
|
-
- lib/
|
274
|
-
- lib/
|
275
|
-
- lib/
|
276
|
-
- lib/
|
277
|
-
- lib/
|
278
|
-
- lib/
|
279
|
-
- lib/
|
280
|
-
- lib/
|
281
|
-
- lib/
|
282
|
-
- lib/
|
283
|
-
- lib/
|
284
|
-
- lib/
|
285
|
-
- lib/
|
286
|
-
- lib/
|
287
|
-
- lib/
|
288
|
-
- lib/
|
289
|
-
- lib/
|
290
|
-
- lib/
|
291
|
-
- lib/
|
292
|
-
- lib/
|
293
|
-
- lib/
|
294
|
-
- lib/
|
295
|
-
- lib/
|
296
|
-
- lib/
|
297
|
-
- lib/
|
298
|
-
- lib/
|
299
|
-
- lib/
|
300
|
-
- lib/
|
301
|
-
- lib/
|
302
|
-
- lib/
|
303
|
-
- lib/
|
304
|
-
- lib/
|
305
|
-
- lib/
|
306
|
-
- lib/
|
307
|
-
- lib/
|
308
|
-
- lib/
|
309
|
-
- lib/
|
310
|
-
- lib/
|
311
|
-
- lib/
|
312
|
-
- lib/
|
254
|
+
- lib/ruby_lokalise_api.rb
|
255
|
+
- lib/ruby_lokalise_api/base_request.rb
|
256
|
+
- lib/ruby_lokalise_api/client.rb
|
257
|
+
- lib/ruby_lokalise_api/collections/base.rb
|
258
|
+
- lib/ruby_lokalise_api/collections/branch.rb
|
259
|
+
- lib/ruby_lokalise_api/collections/contributor.rb
|
260
|
+
- lib/ruby_lokalise_api/collections/custom_translation_status.rb
|
261
|
+
- lib/ruby_lokalise_api/collections/file.rb
|
262
|
+
- lib/ruby_lokalise_api/collections/key.rb
|
263
|
+
- lib/ruby_lokalise_api/collections/key_comment.rb
|
264
|
+
- lib/ruby_lokalise_api/collections/order.rb
|
265
|
+
- lib/ruby_lokalise_api/collections/payment_card.rb
|
266
|
+
- lib/ruby_lokalise_api/collections/project.rb
|
267
|
+
- lib/ruby_lokalise_api/collections/project_comment.rb
|
268
|
+
- lib/ruby_lokalise_api/collections/project_language.rb
|
269
|
+
- lib/ruby_lokalise_api/collections/queued_process.rb
|
270
|
+
- lib/ruby_lokalise_api/collections/screenshot.rb
|
271
|
+
- lib/ruby_lokalise_api/collections/segment.rb
|
272
|
+
- lib/ruby_lokalise_api/collections/snapshot.rb
|
273
|
+
- lib/ruby_lokalise_api/collections/system_language.rb
|
274
|
+
- lib/ruby_lokalise_api/collections/task.rb
|
275
|
+
- lib/ruby_lokalise_api/collections/team.rb
|
276
|
+
- lib/ruby_lokalise_api/collections/team_user.rb
|
277
|
+
- lib/ruby_lokalise_api/collections/team_user_group.rb
|
278
|
+
- lib/ruby_lokalise_api/collections/translation.rb
|
279
|
+
- lib/ruby_lokalise_api/collections/translation_provider.rb
|
280
|
+
- lib/ruby_lokalise_api/collections/webhook.rb
|
281
|
+
- lib/ruby_lokalise_api/connection.rb
|
282
|
+
- lib/ruby_lokalise_api/data/attributes.yml
|
283
|
+
- lib/ruby_lokalise_api/error.rb
|
284
|
+
- lib/ruby_lokalise_api/json_handler.rb
|
285
|
+
- lib/ruby_lokalise_api/oauth2/auth.rb
|
286
|
+
- lib/ruby_lokalise_api/oauth2/connection.rb
|
287
|
+
- lib/ruby_lokalise_api/oauth2/request.rb
|
288
|
+
- lib/ruby_lokalise_api/oauth2_client.rb
|
289
|
+
- lib/ruby_lokalise_api/request.rb
|
290
|
+
- lib/ruby_lokalise_api/resources/base.rb
|
291
|
+
- lib/ruby_lokalise_api/resources/branch.rb
|
292
|
+
- lib/ruby_lokalise_api/resources/contributor.rb
|
293
|
+
- lib/ruby_lokalise_api/resources/custom_translation_status.rb
|
294
|
+
- lib/ruby_lokalise_api/resources/file.rb
|
295
|
+
- lib/ruby_lokalise_api/resources/key.rb
|
296
|
+
- lib/ruby_lokalise_api/resources/key_comment.rb
|
297
|
+
- lib/ruby_lokalise_api/resources/order.rb
|
298
|
+
- lib/ruby_lokalise_api/resources/payment_card.rb
|
299
|
+
- lib/ruby_lokalise_api/resources/project.rb
|
300
|
+
- lib/ruby_lokalise_api/resources/project_comment.rb
|
301
|
+
- lib/ruby_lokalise_api/resources/project_language.rb
|
302
|
+
- lib/ruby_lokalise_api/resources/queued_process.rb
|
303
|
+
- lib/ruby_lokalise_api/resources/screenshot.rb
|
304
|
+
- lib/ruby_lokalise_api/resources/segment.rb
|
305
|
+
- lib/ruby_lokalise_api/resources/snapshot.rb
|
306
|
+
- lib/ruby_lokalise_api/resources/system_language.rb
|
307
|
+
- lib/ruby_lokalise_api/resources/task.rb
|
308
|
+
- lib/ruby_lokalise_api/resources/team.rb
|
309
|
+
- lib/ruby_lokalise_api/resources/team_user.rb
|
310
|
+
- lib/ruby_lokalise_api/resources/team_user_billing_details.rb
|
311
|
+
- lib/ruby_lokalise_api/resources/team_user_group.rb
|
312
|
+
- lib/ruby_lokalise_api/resources/translation.rb
|
313
|
+
- lib/ruby_lokalise_api/resources/translation_provider.rb
|
314
|
+
- lib/ruby_lokalise_api/resources/webhook.rb
|
315
|
+
- lib/ruby_lokalise_api/rest/branches.rb
|
316
|
+
- lib/ruby_lokalise_api/rest/comments.rb
|
317
|
+
- lib/ruby_lokalise_api/rest/contributors.rb
|
318
|
+
- lib/ruby_lokalise_api/rest/custom_translation_statuses.rb
|
319
|
+
- lib/ruby_lokalise_api/rest/files.rb
|
320
|
+
- lib/ruby_lokalise_api/rest/keys.rb
|
321
|
+
- lib/ruby_lokalise_api/rest/languages.rb
|
322
|
+
- lib/ruby_lokalise_api/rest/orders.rb
|
323
|
+
- lib/ruby_lokalise_api/rest/payment_cards.rb
|
324
|
+
- lib/ruby_lokalise_api/rest/projects.rb
|
325
|
+
- lib/ruby_lokalise_api/rest/queued_processes.rb
|
326
|
+
- lib/ruby_lokalise_api/rest/screenshots.rb
|
327
|
+
- lib/ruby_lokalise_api/rest/segments.rb
|
328
|
+
- lib/ruby_lokalise_api/rest/snapshots.rb
|
329
|
+
- lib/ruby_lokalise_api/rest/tasks.rb
|
330
|
+
- lib/ruby_lokalise_api/rest/team_user_billing_details.rb
|
331
|
+
- lib/ruby_lokalise_api/rest/team_user_groups.rb
|
332
|
+
- lib/ruby_lokalise_api/rest/team_users.rb
|
333
|
+
- lib/ruby_lokalise_api/rest/teams.rb
|
334
|
+
- lib/ruby_lokalise_api/rest/translation_providers.rb
|
335
|
+
- lib/ruby_lokalise_api/rest/translations.rb
|
336
|
+
- lib/ruby_lokalise_api/rest/webhooks.rb
|
337
|
+
- lib/ruby_lokalise_api/utils/attribute_helpers.rb
|
338
|
+
- lib/ruby_lokalise_api/utils/endpoint_helpers.rb
|
339
|
+
- lib/ruby_lokalise_api/utils/string_utils.rb
|
340
|
+
- lib/ruby_lokalise_api/version.rb
|
313
341
|
- ruby-lokalise-api.gemspec
|
314
|
-
- spec/lib/ruby-lokalise-api/connection_spec.rb
|
315
|
-
- spec/lib/ruby-lokalise-api/custom_json_parser_spec.rb
|
316
|
-
- spec/lib/ruby-lokalise-api/error_spec.rb
|
317
|
-
- spec/lib/ruby-lokalise-api/oauth2/auth_spec.rb
|
318
|
-
- spec/lib/ruby-lokalise-api/rest/branches_spec.rb
|
319
|
-
- spec/lib/ruby-lokalise-api/rest/comments_spec.rb
|
320
|
-
- spec/lib/ruby-lokalise-api/rest/contributors_spec.rb
|
321
|
-
- spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb
|
322
|
-
- spec/lib/ruby-lokalise-api/rest/files_spec.rb
|
323
|
-
- spec/lib/ruby-lokalise-api/rest/keys_spec.rb
|
324
|
-
- spec/lib/ruby-lokalise-api/rest/languages_spec.rb
|
325
|
-
- spec/lib/ruby-lokalise-api/rest/orders_spec.rb
|
326
|
-
- spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb
|
327
|
-
- spec/lib/ruby-lokalise-api/rest/projects_spec.rb
|
328
|
-
- spec/lib/ruby-lokalise-api/rest/queued_processes_spec.rb
|
329
|
-
- spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb
|
330
|
-
- spec/lib/ruby-lokalise-api/rest/segments_spec.rb
|
331
|
-
- spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb
|
332
|
-
- spec/lib/ruby-lokalise-api/rest/tasks_spec.rb
|
333
|
-
- spec/lib/ruby-lokalise-api/rest/team_user_billing_details_spec.rb
|
334
|
-
- spec/lib/ruby-lokalise-api/rest/team_user_groups_spec.rb
|
335
|
-
- spec/lib/ruby-lokalise-api/rest/team_users_spec.rb
|
336
|
-
- spec/lib/ruby-lokalise-api/rest/teams_spec.rb
|
337
|
-
- spec/lib/ruby-lokalise-api/rest/translation_providers_spec.rb
|
338
|
-
- spec/lib/ruby-lokalise-api/rest/translations_spec.rb
|
339
|
-
- spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb
|
340
|
-
- spec/lib/ruby-lokalise-api_spec.rb
|
341
|
-
- spec/spec_helper.rb
|
342
|
-
- spec/support/test_client.rb
|
343
|
-
- spec/support/vcr.rb
|
344
342
|
homepage: https://github.com/lokalise/ruby-lokalise-api
|
345
343
|
licenses:
|
346
344
|
- BSD-3-Clause
|
@@ -354,45 +352,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
354
352
|
requirements:
|
355
353
|
- - ">="
|
356
354
|
- !ruby/object:Gem::Version
|
357
|
-
version: 2.
|
355
|
+
version: '2.7'
|
358
356
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
359
357
|
requirements:
|
360
358
|
- - ">="
|
361
359
|
- !ruby/object:Gem::Version
|
362
360
|
version: '0'
|
363
361
|
requirements: []
|
364
|
-
rubygems_version: 3.3.
|
362
|
+
rubygems_version: 3.3.19
|
365
363
|
signing_key:
|
366
364
|
specification_version: 4
|
367
365
|
summary: Ruby interface to the Lokalise API
|
368
|
-
test_files:
|
369
|
-
- spec/lib/ruby-lokalise-api/connection_spec.rb
|
370
|
-
- spec/lib/ruby-lokalise-api/custom_json_parser_spec.rb
|
371
|
-
- spec/lib/ruby-lokalise-api/error_spec.rb
|
372
|
-
- spec/lib/ruby-lokalise-api/oauth2/auth_spec.rb
|
373
|
-
- spec/lib/ruby-lokalise-api/rest/branches_spec.rb
|
374
|
-
- spec/lib/ruby-lokalise-api/rest/comments_spec.rb
|
375
|
-
- spec/lib/ruby-lokalise-api/rest/contributors_spec.rb
|
376
|
-
- spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb
|
377
|
-
- spec/lib/ruby-lokalise-api/rest/files_spec.rb
|
378
|
-
- spec/lib/ruby-lokalise-api/rest/keys_spec.rb
|
379
|
-
- spec/lib/ruby-lokalise-api/rest/languages_spec.rb
|
380
|
-
- spec/lib/ruby-lokalise-api/rest/orders_spec.rb
|
381
|
-
- spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb
|
382
|
-
- spec/lib/ruby-lokalise-api/rest/projects_spec.rb
|
383
|
-
- spec/lib/ruby-lokalise-api/rest/queued_processes_spec.rb
|
384
|
-
- spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb
|
385
|
-
- spec/lib/ruby-lokalise-api/rest/segments_spec.rb
|
386
|
-
- spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb
|
387
|
-
- spec/lib/ruby-lokalise-api/rest/tasks_spec.rb
|
388
|
-
- spec/lib/ruby-lokalise-api/rest/team_user_billing_details_spec.rb
|
389
|
-
- spec/lib/ruby-lokalise-api/rest/team_user_groups_spec.rb
|
390
|
-
- spec/lib/ruby-lokalise-api/rest/team_users_spec.rb
|
391
|
-
- spec/lib/ruby-lokalise-api/rest/teams_spec.rb
|
392
|
-
- spec/lib/ruby-lokalise-api/rest/translation_providers_spec.rb
|
393
|
-
- spec/lib/ruby-lokalise-api/rest/translations_spec.rb
|
394
|
-
- spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb
|
395
|
-
- spec/lib/ruby-lokalise-api_spec.rb
|
396
|
-
- spec/spec_helper.rb
|
397
|
-
- spec/support/test_client.rb
|
398
|
-
- spec/support/vcr.rb
|
366
|
+
test_files: []
|
@@ -1,259 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"branch": [
|
3
|
-
"branch_id",
|
4
|
-
"name",
|
5
|
-
"created_at",
|
6
|
-
"created_at_timestamp",
|
7
|
-
"created_by",
|
8
|
-
"created_by_email"
|
9
|
-
],
|
10
|
-
"comment": [
|
11
|
-
"comment_id",
|
12
|
-
"key_id",
|
13
|
-
"comment",
|
14
|
-
"added_by",
|
15
|
-
"added_by_email",
|
16
|
-
"added_at",
|
17
|
-
"added_at_timestamp"
|
18
|
-
],
|
19
|
-
"contributor": [
|
20
|
-
"user_id",
|
21
|
-
"email",
|
22
|
-
"fullname",
|
23
|
-
"created_at",
|
24
|
-
"created_at_timestamp",
|
25
|
-
"is_admin",
|
26
|
-
"is_reviewer",
|
27
|
-
"languages",
|
28
|
-
"admin_rights"
|
29
|
-
],
|
30
|
-
"custom_translation_status": [
|
31
|
-
"status_id",
|
32
|
-
"title",
|
33
|
-
"color"
|
34
|
-
],
|
35
|
-
"file": [
|
36
|
-
"filename",
|
37
|
-
"key_count"
|
38
|
-
],
|
39
|
-
"key": [
|
40
|
-
"key_id",
|
41
|
-
"created_at",
|
42
|
-
"created_at_timestamp",
|
43
|
-
"key_name",
|
44
|
-
"filenames",
|
45
|
-
"description",
|
46
|
-
"platforms",
|
47
|
-
"tags",
|
48
|
-
"comments",
|
49
|
-
"screenshots",
|
50
|
-
"translations",
|
51
|
-
"is_plural",
|
52
|
-
"plural_name",
|
53
|
-
"is_hidden",
|
54
|
-
"is_archived",
|
55
|
-
"context",
|
56
|
-
"base_words",
|
57
|
-
"char_limit",
|
58
|
-
"custom_attributes",
|
59
|
-
"modified_at",
|
60
|
-
"modified_at_timestamp",
|
61
|
-
"translations_modified_at",
|
62
|
-
"translations_modified_at_timestamp"
|
63
|
-
],
|
64
|
-
"language": [
|
65
|
-
"lang_id",
|
66
|
-
"lang_iso",
|
67
|
-
"lang_name",
|
68
|
-
"is_rtl",
|
69
|
-
"plural_forms"
|
70
|
-
],
|
71
|
-
"order": [
|
72
|
-
"order_id",
|
73
|
-
"project_id",
|
74
|
-
"card_id",
|
75
|
-
"status",
|
76
|
-
"created_at",
|
77
|
-
"created_at_timestamp",
|
78
|
-
"created_by",
|
79
|
-
"created_by_email",
|
80
|
-
"source_language_iso",
|
81
|
-
"target_language_isos",
|
82
|
-
"keys",
|
83
|
-
"source_words",
|
84
|
-
"provider_slug",
|
85
|
-
"translation_style",
|
86
|
-
"translation_tier",
|
87
|
-
"translation_tier_name",
|
88
|
-
"briefing",
|
89
|
-
"total",
|
90
|
-
"payment_method",
|
91
|
-
"dry_run"
|
92
|
-
],
|
93
|
-
"payment_card": [
|
94
|
-
"card_id",
|
95
|
-
"last4",
|
96
|
-
"brand",
|
97
|
-
"created_at",
|
98
|
-
"created_at_timestamp"
|
99
|
-
],
|
100
|
-
"project": [
|
101
|
-
"project_id",
|
102
|
-
"name",
|
103
|
-
"description",
|
104
|
-
"created_at",
|
105
|
-
"created_at_timestamp",
|
106
|
-
"created_by",
|
107
|
-
"created_by_email",
|
108
|
-
"team_id",
|
109
|
-
"base_language_id",
|
110
|
-
"base_language_iso",
|
111
|
-
"settings",
|
112
|
-
"statistics"
|
113
|
-
],
|
114
|
-
"queued_process": [
|
115
|
-
"process_id",
|
116
|
-
"type",
|
117
|
-
"status",
|
118
|
-
"message",
|
119
|
-
"created_by",
|
120
|
-
"created_by_email",
|
121
|
-
"created_at",
|
122
|
-
"created_at_timestamp",
|
123
|
-
"details"
|
124
|
-
],
|
125
|
-
"screenshot": [
|
126
|
-
"screenshot_id",
|
127
|
-
"key_ids",
|
128
|
-
"url",
|
129
|
-
"title",
|
130
|
-
"description",
|
131
|
-
"screenshot_tags",
|
132
|
-
"width",
|
133
|
-
"height",
|
134
|
-
"created_at",
|
135
|
-
"created_at_timestamp"
|
136
|
-
],
|
137
|
-
"segment": [
|
138
|
-
"segment_number",
|
139
|
-
"language_iso",
|
140
|
-
"modified_at",
|
141
|
-
"modified_at_timestamp",
|
142
|
-
"modified_by",
|
143
|
-
"modified_by_email",
|
144
|
-
"value",
|
145
|
-
"is_fuzzy",
|
146
|
-
"is_reviewed",
|
147
|
-
"reviewed_by",
|
148
|
-
"words",
|
149
|
-
"custom_translation_statuses"
|
150
|
-
],
|
151
|
-
"snapshot": [
|
152
|
-
"snapshot_id",
|
153
|
-
"title",
|
154
|
-
"created_at",
|
155
|
-
"created_at_timestamp",
|
156
|
-
"created_by",
|
157
|
-
"created_by_email"
|
158
|
-
],
|
159
|
-
"task": [
|
160
|
-
"task_id",
|
161
|
-
"title",
|
162
|
-
"description",
|
163
|
-
"status",
|
164
|
-
"progress",
|
165
|
-
"due_date",
|
166
|
-
"due_date_timestamp",
|
167
|
-
"keys_count",
|
168
|
-
"words_count",
|
169
|
-
"created_at",
|
170
|
-
"created_at_timestamp",
|
171
|
-
"created_by",
|
172
|
-
"created_by_email",
|
173
|
-
"can_be_parent",
|
174
|
-
"task_type",
|
175
|
-
"parent_task_id",
|
176
|
-
"closing_tags",
|
177
|
-
"do_lock_translations",
|
178
|
-
"languages",
|
179
|
-
"auto_close_languages",
|
180
|
-
"auto_close_task",
|
181
|
-
"auto_close_items",
|
182
|
-
"completed_at",
|
183
|
-
"completed_at_timestamp",
|
184
|
-
"completed_by",
|
185
|
-
"completed_by_email",
|
186
|
-
"custom_translation_status_ids"
|
187
|
-
],
|
188
|
-
"team": [
|
189
|
-
"team_id",
|
190
|
-
"name",
|
191
|
-
"created_at",
|
192
|
-
"created_at_timestamp",
|
193
|
-
"plan",
|
194
|
-
"quota_usage",
|
195
|
-
"quota_allowed"
|
196
|
-
],
|
197
|
-
"team_user": [
|
198
|
-
"user_id",
|
199
|
-
"email",
|
200
|
-
"fullname",
|
201
|
-
"created_at",
|
202
|
-
"created_at_timestamp",
|
203
|
-
"role"
|
204
|
-
],
|
205
|
-
"team_user_billing_details": [
|
206
|
-
"billing_email",
|
207
|
-
"country_code",
|
208
|
-
"zip",
|
209
|
-
"state_code",
|
210
|
-
"address1",
|
211
|
-
"address2",
|
212
|
-
"city",
|
213
|
-
"phone",
|
214
|
-
"company",
|
215
|
-
"vatnumber"
|
216
|
-
],
|
217
|
-
"team_user_group": [
|
218
|
-
"group_id",
|
219
|
-
"name",
|
220
|
-
"permissions",
|
221
|
-
"created_at",
|
222
|
-
"created_at_timestamp",
|
223
|
-
"team_id",
|
224
|
-
"projects",
|
225
|
-
"members"
|
226
|
-
],
|
227
|
-
"translation": [
|
228
|
-
"translation_id",
|
229
|
-
"key_id",
|
230
|
-
"language_iso",
|
231
|
-
"modified_at",
|
232
|
-
"modified_at_timestamp",
|
233
|
-
"modified_by",
|
234
|
-
"modified_by_email",
|
235
|
-
"translation",
|
236
|
-
"is_fuzzy",
|
237
|
-
"is_reviewed",
|
238
|
-
"words",
|
239
|
-
"custom_translation_statuses",
|
240
|
-
"task_id"
|
241
|
-
],
|
242
|
-
"translation_provider": [
|
243
|
-
"provider_id",
|
244
|
-
"name",
|
245
|
-
"slug",
|
246
|
-
"price_pair_min",
|
247
|
-
"website_url",
|
248
|
-
"description",
|
249
|
-
"tiers",
|
250
|
-
"pairs"
|
251
|
-
],
|
252
|
-
"webhook": [
|
253
|
-
"webhook_id",
|
254
|
-
"url",
|
255
|
-
"secret",
|
256
|
-
"events",
|
257
|
-
"event_lang_map"
|
258
|
-
]
|
259
|
-
}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Lokalise
|
4
|
-
class Client
|
5
|
-
# Returns all branches for the given project
|
6
|
-
#
|
7
|
-
# @see https://lokalise.com/api2docs/curl/#transition-list-all-branches-get
|
8
|
-
# @return [Lokalise::Collection::Branch<Lokalise::Resources::Branch>]
|
9
|
-
# @param project_id [String]
|
10
|
-
# @param params [Hash]
|
11
|
-
def branches(project_id, params = {})
|
12
|
-
c_r Lokalise::Collections::Branch, :all, project_id, params
|
13
|
-
end
|
14
|
-
|
15
|
-
# Creates a new branch inside the given project
|
16
|
-
#
|
17
|
-
# @see https://lokalise.com/api2docs/curl/#transition-create-a-branch-post
|
18
|
-
# @return [Lokalise::Resources::Branch]
|
19
|
-
# @param project_id [String]
|
20
|
-
# @param params [Hash]
|
21
|
-
def create_branch(project_id, params)
|
22
|
-
c_r Lokalise::Resources::Branch, :create, project_id, params
|
23
|
-
end
|
24
|
-
|
25
|
-
# Returns a single branch for the given project
|
26
|
-
#
|
27
|
-
# @see https://lokalise.com/api2docs/curl/#transition-retrieve-a-branch-get
|
28
|
-
# @return [Lokalise::Resources::Branch]
|
29
|
-
# @param project_id [String]
|
30
|
-
# @param branch_id [String, Integer]
|
31
|
-
def branch(project_id, branch_id)
|
32
|
-
c_r Lokalise::Resources::Branch, :find, [project_id, branch_id]
|
33
|
-
end
|
34
|
-
|
35
|
-
# Updates the given branch inside the given project
|
36
|
-
#
|
37
|
-
# @see https://lokalise.com/api2docs/curl/#transition-update-a-branch-put
|
38
|
-
# @return [Lokalise::Resources::Branch]
|
39
|
-
# @param project_id [String]
|
40
|
-
# @param branch_id [String, Integer]
|
41
|
-
# @param params [Hash]
|
42
|
-
def update_branch(project_id, branch_id, params)
|
43
|
-
c_r Lokalise::Resources::Branch, :update, [project_id, branch_id], params
|
44
|
-
end
|
45
|
-
|
46
|
-
# Deletes branch inside the given project
|
47
|
-
#
|
48
|
-
# @see https://lokalise.com/api2docs/curl/#transition-delete-a-branch-delete
|
49
|
-
# @return [Hash]
|
50
|
-
# @param project_id [String]
|
51
|
-
# @param branch_id [String, Integer]
|
52
|
-
def destroy_branch(project_id, branch_id)
|
53
|
-
c_r Lokalise::Resources::Branch, :destroy, [project_id, branch_id]
|
54
|
-
end
|
55
|
-
|
56
|
-
# Merges a branch in the project
|
57
|
-
#
|
58
|
-
# @see https://lokalise.com/api2docs/curl/#transition-merge-a-branch-post
|
59
|
-
# @return [Hash]
|
60
|
-
# @param project_id [String]
|
61
|
-
# @param branch_id [String, Integer]
|
62
|
-
# @param params [Hash]
|
63
|
-
def merge_branch(project_id, branch_id, params = {})
|
64
|
-
c_r Lokalise::Resources::Branch, :merge, [project_id, branch_id, :merge], params
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|