-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SRUBY-6 Task_id for Translation, code updates (#13)
- Loading branch information
Showing
10 changed files
with
51 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
language: ruby | ||
|
||
rvm: | ||
- 2.5.8 | ||
- 2.6.6 | ||
- 2.7.2 | ||
- 3.0.0 | ||
- 2.6.7 | ||
- 2.7.3 | ||
- 3.0.1 | ||
|
||
install: bundle install --retry=3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,6 @@ def base_class_name | |
end | ||
|
||
def remove_trailing_slash | ||
gsub %r{/\z}, '' | ||
delete_suffix '/' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Lokalise | ||
VERSION = '4.1.0' | ||
VERSION = '4.2.0' | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,26 +59,27 @@ | |
|
||
specify '#translation' do | ||
translation = VCR.use_cassette('translation') do | ||
test_client.translation project_id, translation_id | ||
test_client.translation project_id, 304_581_218 | ||
end | ||
|
||
expect(translation.translation_id).to eq(translation_id) | ||
expect(translation.key_id).to eq(15_571_975) | ||
expect(translation.language_iso).to eq('en') | ||
expect(translation.modified_at).to eq('2019-03-26 16:41:31 (Etc/UTC)') | ||
expect(translation.modified_at_timestamp).to eq(1_553_618_491) | ||
expect(translation.translation_id).to eq(304_581_218) | ||
expect(translation.key_id).to eq(44_596_059) | ||
expect(translation.language_iso).to eq('ru') | ||
expect(translation.modified_at).to eq('2020-05-15 10:44:42 (Etc/UTC)') | ||
expect(translation.modified_at_timestamp).to eq(1_589_539_482) | ||
expect(translation.modified_by).to eq(20_181) | ||
expect(translation.modified_by_email).to eq('[email protected]') | ||
expect(translation.translation).to eq('RSpec is a testing suite') | ||
expect(translation.translation).to eq('Сообщение') | ||
expect(translation.is_fuzzy).to eq(false) | ||
expect(translation.is_reviewed).to eq(false) | ||
expect(translation.words).to eq(5) | ||
expect(translation.words).to eq(1) | ||
expect(translation.custom_translation_statuses).to eq([]) | ||
expect(translation.task_id).to be_nil | ||
end | ||
|
||
specify '#reload_data' do | ||
translation = VCR.use_cassette('translation') do | ||
test_client.translation project_id, translation_id | ||
test_client.translation project_id, 304_581_218 | ||
end | ||
|
||
reloaded_translation = VCR.use_cassette('translation') do | ||
|