cocoapods-aqara-localzedLoader 0.1.6 → 0.1.7

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: 795d106ed32e894b1e09d27b5ea84afda20ba23d4e8e11f8ae0fe6a6fe1ec1e5
4
- data.tar.gz: 3da5d0f1c604a3c805dbcc3fbdb9ef127199778c9e74899407d785dd958b366e
3
+ metadata.gz: 1425f2176025a5e31074240b6e1566174a504c1b350b1bd05b02fbd8adb61891
4
+ data.tar.gz: 6485256251c05bc2dc22efcdbe8c9a3eadd9a2fe792ea4bfc0c77e8367b18c0e
5
5
  SHA512:
6
- metadata.gz: 312c90c5f9bfa427d653eba01c8345f05457b16ab2527987991cf19427b5f0deacaf88a08a37c7485a270eaed2ccbeeab96fa6ce28821f1a5816bd8e6bfd123b
7
- data.tar.gz: 6331e59b66c6f13d7a35eb0a55a2087cf608be23a609422dd2d1b85318d9ed4d49581a8448699568777d6493f6a5750e873fc7ecfa414b4ad49db86ad1806e2e
6
+ metadata.gz: d95812a3ffc7300fb79f55c5e78d48f73f73bf984a9ecd512207258e559be926f5ea99e7d663a0542d7033e1f7852819f5ae197b73690c8fd63201573bec4cd3
7
+ data.tar.gz: 2b1a320136a23036c4caf748f4c7f2776e50c45eb3ec1d2462d0b9ab7e9758e487c28852c8a2cf4b4cfff5ab090ca39c22766708537384b0e0f0ba2b782fb881
@@ -309,9 +309,15 @@ DEFAULT_TARGET_FILE_NAME = "APP.xlsx"
309
309
 
310
310
  ############################
311
311
 
312
+ def str_to_bool(v: str) -> bool:
313
+ return v.lower() in ("1", "true", "yes", "y", "on")
314
+
312
315
  if __name__ == '__main__':
313
316
  localizable_path = sys.argv[1]
314
- crowdin = sys.argv[2]
317
+ crowdin = False
318
+ if len(sys.argv) > 2:
319
+ crowdin = str_to_bool(sys.argv[2])
320
+
315
321
  if crowdin:
316
322
  platform = CrowdinPlatform(DEFAULT_ACCESS_TOKEN, DEFAULT_PROJECT_ID)
317
323
  target_path = f"{localizable_path}/APP/APP.xlsx"
@@ -1,3 +1,3 @@
1
1
  module Localzedloader
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -63,7 +63,8 @@ class BundleGenerater
63
63
  sleep sleep_time
64
64
  end
65
65
  puts "当前进行第#{@@download_Count}次尝试下载多语言文件"
66
- system "cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path} #{crowdin}"
66
+ crowdin_arg = crowdin ? "true" : "false"
67
+ system "cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path} #{crowdin_arg}"
67
68
  @@download_Count = @@download_Count + 1
68
69
  end
69
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-aqara-localzedLoader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhaoxifan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-30 00:00:00.000000000 Z
11
+ date: 2025-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -202,7 +202,7 @@ homepage: https://github.com/LuckZXF/cocoapods-aqara-localzedLoader
202
202
  licenses:
203
203
  - MIT
204
204
  metadata: {}
205
- post_install_message:
205
+ post_install_message:
206
206
  rdoc_options: []
207
207
  require_paths:
208
208
  - lib
@@ -217,8 +217,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubygems_version: 3.2.22
221
- signing_key:
220
+ rubygems_version: 3.0.3.1
221
+ signing_key:
222
222
  specification_version: 4
223
223
  summary: Aqara 多语言从云端多语言平台下载并处理解析成Xcode需要的多语言文件
224
224
  test_files: