ruby-lokalise-api 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -0
- data/README.md +1 -0
- data/Rakefile +6 -1
- data/lib/ruby-lokalise-api.rb +2 -0
- data/lib/ruby-lokalise-api/client.rb +2 -0
- data/lib/ruby-lokalise-api/collections/base.rb +2 -0
- data/lib/ruby-lokalise-api/collections/branch.rb +3 -1
- data/lib/ruby-lokalise-api/collections/contributor.rb +2 -0
- data/lib/ruby-lokalise-api/collections/custom_translation_status.rb +3 -1
- data/lib/ruby-lokalise-api/collections/file.rb +2 -0
- data/lib/ruby-lokalise-api/collections/key.rb +2 -0
- data/lib/ruby-lokalise-api/collections/key_comment.rb +2 -0
- data/lib/ruby-lokalise-api/collections/order.rb +2 -0
- data/lib/ruby-lokalise-api/collections/payment_card.rb +2 -0
- data/lib/ruby-lokalise-api/collections/project.rb +2 -0
- data/lib/ruby-lokalise-api/collections/project_comment.rb +2 -0
- data/lib/ruby-lokalise-api/collections/project_language.rb +2 -0
- data/lib/ruby-lokalise-api/collections/screenshot.rb +2 -0
- data/lib/ruby-lokalise-api/collections/snapshot.rb +2 -0
- data/lib/ruby-lokalise-api/collections/system_language.rb +2 -0
- data/lib/ruby-lokalise-api/collections/task.rb +2 -0
- data/lib/ruby-lokalise-api/collections/team.rb +2 -0
- data/lib/ruby-lokalise-api/collections/team_user.rb +2 -0
- data/lib/ruby-lokalise-api/collections/team_user_group.rb +3 -1
- data/lib/ruby-lokalise-api/collections/translation.rb +2 -0
- data/lib/ruby-lokalise-api/collections/translation_provider.rb +2 -0
- data/lib/ruby-lokalise-api/collections/webhook.rb +2 -0
- data/lib/ruby-lokalise-api/connection.rb +3 -1
- data/lib/ruby-lokalise-api/error.rb +2 -0
- data/lib/ruby-lokalise-api/json_handler.rb +4 -0
- data/lib/ruby-lokalise-api/request.rb +2 -0
- data/lib/ruby-lokalise-api/resources/base.rb +2 -0
- data/lib/ruby-lokalise-api/resources/branch.rb +2 -0
- data/lib/ruby-lokalise-api/resources/contributor.rb +3 -1
- data/lib/ruby-lokalise-api/resources/custom_translation_status.rb +3 -1
- data/lib/ruby-lokalise-api/resources/file.rb +2 -0
- data/lib/ruby-lokalise-api/resources/key.rb +2 -0
- data/lib/ruby-lokalise-api/resources/key_comment.rb +4 -2
- data/lib/ruby-lokalise-api/resources/order.rb +2 -0
- data/lib/ruby-lokalise-api/resources/payment_card.rb +2 -0
- data/lib/ruby-lokalise-api/resources/project.rb +2 -0
- data/lib/ruby-lokalise-api/resources/project_comment.rb +3 -1
- data/lib/ruby-lokalise-api/resources/project_language.rb +4 -2
- data/lib/ruby-lokalise-api/resources/screenshot.rb +2 -0
- data/lib/ruby-lokalise-api/resources/snapshot.rb +2 -0
- data/lib/ruby-lokalise-api/resources/system_language.rb +3 -1
- data/lib/ruby-lokalise-api/resources/task.rb +2 -0
- data/lib/ruby-lokalise-api/resources/team.rb +2 -0
- data/lib/ruby-lokalise-api/resources/team_user.rb +3 -1
- data/lib/ruby-lokalise-api/resources/team_user_group.rb +4 -2
- data/lib/ruby-lokalise-api/resources/translation.rb +2 -0
- data/lib/ruby-lokalise-api/resources/translation_provider.rb +2 -0
- data/lib/ruby-lokalise-api/resources/webhook.rb +2 -0
- data/lib/ruby-lokalise-api/rest/branches.rb +2 -0
- data/lib/ruby-lokalise-api/rest/comments.rb +2 -0
- data/lib/ruby-lokalise-api/rest/contributors.rb +2 -0
- data/lib/ruby-lokalise-api/rest/custom_translation_statuses.rb +2 -0
- data/lib/ruby-lokalise-api/rest/files.rb +2 -0
- data/lib/ruby-lokalise-api/rest/keys.rb +2 -0
- data/lib/ruby-lokalise-api/rest/languages.rb +2 -0
- data/lib/ruby-lokalise-api/rest/orders.rb +2 -0
- data/lib/ruby-lokalise-api/rest/payment_cards.rb +2 -0
- data/lib/ruby-lokalise-api/rest/projects.rb +2 -0
- data/lib/ruby-lokalise-api/rest/screenshots.rb +2 -0
- data/lib/ruby-lokalise-api/rest/snapshots.rb +2 -0
- data/lib/ruby-lokalise-api/rest/tasks.rb +2 -0
- data/lib/ruby-lokalise-api/rest/team_user_group.rb +2 -0
- data/lib/ruby-lokalise-api/rest/team_users.rb +2 -0
- data/lib/ruby-lokalise-api/rest/teams.rb +2 -0
- data/lib/ruby-lokalise-api/rest/translation_providers.rb +2 -0
- data/lib/ruby-lokalise-api/rest/translations.rb +2 -0
- data/lib/ruby-lokalise-api/rest/webhooks.rb +2 -0
- data/lib/ruby-lokalise-api/utils/attribute_helpers.rb +2 -0
- data/lib/ruby-lokalise-api/utils/endpoint_helpers.rb +2 -0
- data/lib/ruby-lokalise-api/utils/string_utils.rb +2 -0
- data/lib/ruby-lokalise-api/version.rb +3 -1
- data/ruby-lokalise-api.gemspec +7 -2
- data/spec/lib/ruby-lokalise-api/connection_spec.rb +10 -7
- data/spec/lib/ruby-lokalise-api/custom_json_parser_spec.rb +9 -5
- data/spec/lib/ruby-lokalise-api/error_spec.rb +7 -4
- data/spec/lib/ruby-lokalise-api/rest/branches_spec.rb +7 -5
- data/spec/lib/ruby-lokalise-api/rest/comments_spec.rb +7 -5
- data/spec/lib/ruby-lokalise-api/rest/contributors_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/files_spec.rb +4 -2
- data/spec/lib/ruby-lokalise-api/rest/keys_spec.rb +8 -6
- data/spec/lib/ruby-lokalise-api/rest/languages_spec.rb +8 -6
- data/spec/lib/ruby-lokalise-api/rest/orders_spec.rb +4 -2
- data/spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb +5 -3
- data/spec/lib/ruby-lokalise-api/rest/projects_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/tasks_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/team_user_groups_spec.rb +8 -6
- data/spec/lib/ruby-lokalise-api/rest/team_users_spec.rb +6 -4
- data/spec/lib/ruby-lokalise-api/rest/teams_spec.rb +2 -0
- data/spec/lib/ruby-lokalise-api/rest/translation_providers_spec.rb +4 -2
- data/spec/lib/ruby-lokalise-api/rest/translations_spec.rb +8 -6
- data/spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb +4 -2
- data/spec/lib/ruby-lokalise-api/utils/snakecase_spec.rb +2 -0
- data/spec/lib/ruby-lokalise-api_spec.rb +12 -9
- data/spec/spec_helper.rb +8 -1
- data/spec/support/test_client.rb +2 -0
- data/spec/support/vcr.rb +2 -0
- metadata +49 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 213522b81ea68100e13e4c615c0e0644430d41d71eb53c1d5ba1302d8b39b6f9
|
4
|
+
data.tar.gz: b874f6d28f9b203329223941f04ef152db3ea70861f481471000f76cb37a23c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bf506059ee97e1dcfb54652d3f045aa9b6b0219f42cc09a50cf411539e821a44c39eb8237c44d9ffe6586c216762b95e4bc8495950aa18485bd7f39a1781d34
|
7
|
+
data.tar.gz: a70ab61cf44444c94fffda756d58dcf9a5b8f813db65d0c93a5ac64d7ab7eb3f509cddd4f162bc7b3ec2591cce7ac059b09667a5a1e915b34ccfa0e8f280862f
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/ruby-lokalise-api.svg)](https://badge.fury.io/rb/ruby-lokalise-api)
|
4
4
|
[![Build Status](https://travis-ci.org/lokalise/ruby-lokalise-api.svg?branch=master)](https://travis-ci.org/lokalise/ruby-lokalise-api)
|
5
|
+
[![Test Coverage](https://codecov.io/gh/lokalise/ruby-lokalise-api/graph/badge.svg)](https://codecov.io/gh/lokalise/ruby-lokalise-api)
|
5
6
|
|
6
7
|
Official opinionated Ruby interface for the [Lokalise API](https://lokalise.com/api2docs/curl/) that represents returned data as Ruby objects.
|
7
8
|
|
data/Rakefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rake'
|
2
4
|
|
3
5
|
begin
|
@@ -13,4 +15,7 @@ require 'rspec/core/rake_task'
|
|
13
15
|
RSpec::Core::RakeTask.new(:spec)
|
14
16
|
|
15
17
|
require 'rubocop/rake_task'
|
16
|
-
RuboCop::RakeTask.new
|
18
|
+
RuboCop::RakeTask.new do |task|
|
19
|
+
task.requires << 'rubocop-performance'
|
20
|
+
task.requires << 'rubocop-rspec'
|
21
|
+
end
|
data/lib/ruby-lokalise-api.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Lokalise
|
2
4
|
module Collections
|
3
5
|
class CustomTranslationStatus < Base
|
4
|
-
DATA_KEY_PLURAL = 'CustomTranslationStatuses'
|
6
|
+
DATA_KEY_PLURAL = 'CustomTranslationStatuses'
|
5
7
|
|
6
8
|
class << self
|
7
9
|
def endpoint(project_id, *_args)
|
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Lokalise
|
2
4
|
module Resources
|
3
5
|
class TeamUserGroup < Base
|
4
|
-
DATA_KEY = 'Group'
|
5
|
-
ID_KEY = 'group'
|
6
|
+
DATA_KEY = 'Group'
|
7
|
+
ID_KEY = 'group'
|
6
8
|
supports :update, :destroy,
|
7
9
|
[:add_projects, '/projects/add', :update],
|
8
10
|
[:remove_projects, '/projects/remove', :update],
|