ios_polyglot_cli 2.7.2 → 2.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb1b3ba2e4c4b1f8428e37df7c6d4376a96d2b2bec2c06730d73653d12e458e9
4
- data.tar.gz: 561db605ad8a02dfb72bd2a55923888a5074d519451aceb49a35937681332b73
3
+ metadata.gz: 2c3f5f451aad61270e152edb7e0e104ce17bd653874f1e17a69b6ed3b15ffcfd
4
+ data.tar.gz: ef3a215374315b8b6df0711d58b6d908ee3d85ffbd1f23b4861ba16c648ed04d
5
5
  SHA512:
6
- metadata.gz: f73b9b822d1f882fa3112ed1806a700972ee0bc4d986db3816cbfac4e51882bc1d09160c2f0d8e506c95c0076fdfc361d6ee44c9293ce682e2f13eb656766e5b
7
- data.tar.gz: 8b46ceb5299a0655b902c8a009da44c0cd127cf377d9c06940d34a25e5eedadf83d3a8ca933d2aa47510924045035f90cea72bfaf14b11869a27d1c286509573
6
+ metadata.gz: 8e2a1184ca447875f1565ed2f1dde11c8faf1e9462973f89af226b7fe4358a4202f840514f628ce03cccd7fb71d816976b6ef4fb2b2210590ab50bb91f586bd6
7
+ data.tar.gz: 03aa40f87fbcb2b78c40c6a99e9ced29343eeefcd54ee7ded19ac3976ad860976e1b79aa5d92c0b1fcc3ef93068ab0d6fe295c94c3dfa9da4fa1ae427205b3cc
@@ -14,6 +14,10 @@ module PolyglotIos
14
14
  clean_variable_name(name)
15
15
  end
16
16
 
17
+ def [](key)
18
+ @attributes[key.to_s]
19
+ end
20
+
17
21
  end
18
22
  end
19
23
  end
@@ -104,7 +104,7 @@ module PolyglotIos
104
104
  def find_default_language(default_language, languages)
105
105
  #find default language
106
106
  prompt.say("Find default_language with id: = #{default_language}")
107
- language = languages.find { |language| language[:id] == default_language }
107
+ language = languages.find { |language| language[:id].to_i == default_language }
108
108
  if language.nil?
109
109
  prompt.say('Default language not found using first language')
110
110
  # use first language
@@ -1,3 +1,3 @@
1
1
  module PolyglotIos
2
- VERSION = '2.7.2'
2
+ VERSION = '2.7.3'
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.7.2
4
+ version: 2.7.3
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-12-02 00:00:00.000000000 Z
11
+ date: 2025-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler