fastlane-plugin-simple_loco 2.1.0 → 2.1.1

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: 844ab3c4b812ce21bf7c1c5e976274df9f3c686732ddf400b583fbe0dd966a0d
4
- data.tar.gz: c874a42be6f84cbf2139ebcfb55ea417d830b3b98cf8a750c57195486dd6ec7d
3
+ metadata.gz: 0a813ed407a1329832a80a7123412ab38f0bae212baf5a357c728c232e9c1b78
4
+ data.tar.gz: a6574282b739b64614c79784433c02220fdd2178e9878e77cda31d5c03679b96
5
5
  SHA512:
6
- metadata.gz: f8a1e0d7f8dd205b5ee694b71d3b763bcaea3564510939f56d6cac539069d0c7527322e8446d08470c8387f67d7730b2c9465068a9e66dfb6089d7050c57d2ef
7
- data.tar.gz: 350c895be615aacba9457fbec678465ad5b11ebfa93672bea8c76ff19347cf9c2e42b3a1426b350c9450b6e2fdd13969a6cea38c62fcf487f01b6d0e134ece86
6
+ metadata.gz: b70f807b1edd729b105ac0e8c9d16b81419c81c8cf73e668a20384ea378d4efb25c2b616db8a88074f9487c2f9f75a547fce60ff123c46595791fcabe2a321c4
7
+ data.tar.gz: 41146de5bc8e3e3afb1c7581445d8990a156631435f1bcffd4205a9a63628a59bcac25e97391a31b6f46ec447d81f342d0bf203247d72bcb1c972c07ee241db6
@@ -227,13 +227,9 @@ module Fastlane
227
227
  raise "Unsupported config file format #{extension}, only JSON and YAML files are supported."
228
228
  end
229
229
 
230
- if extension == ".json"
231
- json = JSON.parse(File.read(path))
232
- return Config.new(json.each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; })
233
- end
234
-
235
- yaml = YAML.safe_load(File.read(path))
236
- return Config.new(yaml.each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; })
230
+ data = YAML.safe_load(File.read(path))
231
+ config = data.each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; }
232
+ return Config.new(**config)
237
233
  end
238
234
  end
239
235
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SimpleLoco
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-simple_loco
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Delcoigne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-09 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.157.1
139
- description:
139
+ description:
140
140
  email: yves_delcoigne@hotmail.com
141
141
  executables: []
142
142
  extensions: []
@@ -152,7 +152,7 @@ homepage: https://github.com/DelcoigneYves/fastlane-plugin-simple_loco
152
152
  licenses:
153
153
  - MIT
154
154
  metadata: {}
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - lib
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.3
171
- signing_key:
170
+ rubygems_version: 3.2.3
171
+ signing_key:
172
172
  specification_version: 4
173
173
  summary: A simple implementation for exporting translations from Loco.
174
174
  test_files: []