ios_polyglot_cli 2.5.0 → 2.5.1
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 +4 -4
- data/.gitignore +1 -1
- data/Gemfile.lock +1 -1
- data/lib/ios_polyglot_cli/api/base.rb +1 -2
- data/lib/ios_polyglot_cli/commands/login.rb +2 -2
- data/lib/ios_polyglot_cli/commands/projects.rb +1 -1
- data/lib/ios_polyglot_cli/commands/pull.rb +2 -2
- data/lib/ios_polyglot_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a28da6027422897aaf071d3f6d1a4f5dc569f3669c8f5e3ccdf6188260c02eb
|
|
4
|
+
data.tar.gz: 1f1746b9383063d36a932f7e509cb417a4b6ac608dcde8278c2913ab7c4f25a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d9b465ed705ad0c0d6eba37d4aa2179353fd327eee8babc7ebadb033b5cb4754de573bf0de2dd33b690984861adbe4464b1a50183ff329ed9ada961fc7bcd68
|
|
7
|
+
data.tar.gz: 181d35960b6bf13327689d57e0074440a2b1a4b1a7874756a2dd089d15c6d008a190feb7beff98a7ccdab1d168379ef58ef7e260026a0bca7e8ce46be3503e89
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -6,7 +6,7 @@ module PolyglotIos
|
|
|
6
6
|
def self.init(options = Commander::Command::Options.new)
|
|
7
7
|
new(options).call
|
|
8
8
|
end
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
def initialize(options = Commander::Command::Options.new)
|
|
11
11
|
@options = options
|
|
12
12
|
end
|
|
@@ -31,7 +31,7 @@ module PolyglotIos
|
|
|
31
31
|
WARN
|
|
32
32
|
)
|
|
33
33
|
prompt.say('Logging into API...')
|
|
34
|
-
@data = PolyglotIos::Resource::Session.
|
|
34
|
+
@data = PolyglotIos::Resource::Session.api_url(option_site_url).create(email: email, password: password)
|
|
35
35
|
@data.token
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -30,7 +30,7 @@ module PolyglotIos
|
|
|
30
30
|
|
|
31
31
|
def projects
|
|
32
32
|
prompt.say('Getting projects...')
|
|
33
|
-
PolyglotIos::Resource::Project.
|
|
33
|
+
PolyglotIos::Resource::Project.api_url(option_site_url).token(option_token).depaginate.each_with_object({}) do |r, hash|
|
|
34
34
|
hash[r.name] = r.id
|
|
35
35
|
end
|
|
36
36
|
end
|
|
@@ -80,14 +80,14 @@ module PolyglotIos
|
|
|
80
80
|
|
|
81
81
|
def pull_languages(project_id)
|
|
82
82
|
PolyglotIos::Resource::Language
|
|
83
|
-
.
|
|
83
|
+
.api_url(option_site_url)
|
|
84
84
|
.token(option_token)
|
|
85
85
|
.depaginate(project_id: project_id)
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
def pull_translation_keys(project_id)
|
|
89
89
|
PolyglotIos::Resource::TranslationKey
|
|
90
|
-
.
|
|
90
|
+
.api_url(option_site_url)
|
|
91
91
|
.token(option_token)
|
|
92
92
|
.depaginate(project_id: project_id)
|
|
93
93
|
.sort_by { |key| key.name.downcase }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ios_polyglot_cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.5.
|
|
4
|
+
version: 2.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Filip Gulan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-03-
|
|
11
|
+
date: 2024-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|