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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d9c1b88f95d9b4f4c33dece658b01a6c7e2d2ffbc461869a3819839aac429b3
4
- data.tar.gz: 61f1542565c028960d8019ab038fb4b5059990f4260830440a320f21c1e7d2cc
3
+ metadata.gz: 3a28da6027422897aaf071d3f6d1a4f5dc569f3669c8f5e3ccdf6188260c02eb
4
+ data.tar.gz: 1f1746b9383063d36a932f7e509cb417a4b6ac608dcde8278c2913ab7c4f25a4
5
5
  SHA512:
6
- metadata.gz: c3d367f02210d83a4275830d7291648e355440d574f4aac6b0309a97ca944289d19d9e4a665f927489d5dd8738938cf92c5ff8133a43602be1dfab41add6ae07
7
- data.tar.gz: e9a6f661ff7569af162bda8a6ee3289e1afa036ddc924ef74c844b7d2c6c389a80137ecb1c4e6e1eae2d08c8443a5dae81f91070bfc6680608ae30c6cc3a67bd
6
+ metadata.gz: 7d9b465ed705ad0c0d6eba37d4aa2179353fd327eee8babc7ebadb033b5cb4754de573bf0de2dd33b690984861adbe4464b1a50183ff329ed9ada961fc7bcd68
7
+ data.tar.gz: 181d35960b6bf13327689d57e0074440a2b1a4b1a7874756a2dd089d15c6d008a190feb7beff98a7ccdab1d168379ef58ef7e260026a0bca7e8ce46be3503e89
data/.gitignore CHANGED
@@ -126,4 +126,4 @@ DerivedData/
126
126
  /*.gcno
127
127
  **/xcshareddata/WorkspaceSettings.xcsettings
128
128
 
129
- # End of https://www.gitignore.io/api/ruby,xcode,macos,visualstudiocode
129
+ polyglot.yml
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ios_polyglot_cli (2.5.0)
4
+ ios_polyglot_cli (2.5.1)
5
5
  activesupport
6
6
  commander
7
7
  json_api_client
@@ -3,7 +3,7 @@ module PolyglotIos
3
3
  class Base < JsonApiClient::Resource
4
4
  extend PolyglotIos::Helper::Depaginate
5
5
 
6
- def self.site(url)
6
+ def self.api_url(url)
7
7
  self.site = url
8
8
  self
9
9
  end
@@ -19,4 +19,3 @@ module PolyglotIos
19
19
  end
20
20
  end
21
21
  end
22
-
@@ -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.site(option_site_url).create(email: email, password: password)
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.site(option_site_url).token(option_token).depaginate.each_with_object({}) do |r, hash|
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
- .site(option_site_url)
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
- .site(option_site_url)
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 }
@@ -1,3 +1,3 @@
1
1
  module PolyglotIos
2
- VERSION = '2.5.0'
2
+ VERSION = '2.5.1'
3
3
  end
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler