cocoapods-aqara-localzedLoader 0.0.5 → 0.0.7

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: d6ae3bb2dbb5f0716f879f9b3cd442f2137a209b58987e0a87c3ca89836b8543
4
- data.tar.gz: d35e272f1084b9880d61ee55d7d879645571485968e169b7f3fe0f9afcffd505
3
+ metadata.gz: e1c8b35a21944c2257f6cda58ccde6d3e70c1c7a8cb59fb296f57da48624985f
4
+ data.tar.gz: bc46aaae6ccc4d1d9690879a5749ee0f78c070d10452411c81268c6303cb5894
5
5
  SHA512:
6
- metadata.gz: d2ba3247e8831e72097e71f22a6c600aede067d83ebad9c918f4737a7e8ae54a8493e18a6413f15974116a42381cf49eace85eaa73368ab3a7d638edba18b1c6
7
- data.tar.gz: f86bea3700e97c57596c83c4aa218dcd11ad7f2132489dc073a00870d05e5444d7fd4785bec3144a84df7671754a4f180b22a81e125041c0160d34cbf30fd384
6
+ metadata.gz: a472db5098379de9440faf436dd9157620fa07d920c77beab9762daab3f9f5897b1c93b0d784ce7d9a1435077273b5ea3dc5d41fdd6e3dbf259435eb5bbfa70b
7
+ data.tar.gz: f4a581688db6c60c35766ddb01c1cb6c577331e194531083d974d13ccb726a336b47c570659b2ec39de7577bad2eea7f8e783cd106fbedf39a8f1989af9b71ea
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-aqara-localzedLoader (0.0.5)
4
+ cocoapods-aqara-localzedLoader (0.0.7)
5
5
  claide (>= 1.0.2, < 2.0)
6
6
  colored2
7
7
  fileutils
@@ -48,6 +48,7 @@ def MakeHeader(headerText):
48
48
  return s
49
49
 
50
50
  def DownLatestLocalizableSource(downloadPath):
51
+ print("开始发送下载请求...")
51
52
  iam_service = IamService()
52
53
  ak123 = 'AKLTMjQ5NzU0YWY0ODU1NGVjOGIwMmVlYzk3ZGVhMjgzZmM'
53
54
  sk = 'TkRZeE9UazRNVEl4TW1JNU5HSTRZV0U0TUdRNU1HTmxNMk5pWVRJMU1EYw=='
@@ -77,6 +78,7 @@ def DownLatestLocalizableSource(downloadPath):
77
78
  code.write(resp.content)
78
79
  code.close()
79
80
  else:
81
+ print(resp.text)
80
82
  raise Exception(resp.text)
81
83
 
82
84
 
@@ -1,3 +1,3 @@
1
1
  module Localzedloader
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -8,13 +8,32 @@ class BundleGenerater
8
8
 
9
9
  # INFO_PLIST_ARRAY = [NSAppleMusicUsageDescription","NSLocalNetworkUsageDescription"]
10
10
  INFO_PLIST_MAP = {:common_app_name=>["CFBundleDisplayName"],other_perm_camera_permission_description:["NSCameraUsageDescription"],other_perm_location_permission_description:["NSLocationAlwaysAndWhenInUseUsageDescription","NSLocationWhenInUseUsageDescription","NSLocationAlwaysUsageDescription"],other_perm_bluetooth_permission_description:["NSBluetoothPeripheralUsageDescription","NSBluetoothAlwaysUsageDescription"],access_content_permssion_storage:["NSPhotoLibraryUsageDescription"],other_perm_mic_permission_description:["NSMicrophoneUsageDescription"],other_set_permissions_homedata_desc:["NSHomeKitUsageDescription"],other_set_permissions_asr_text:["NSSpeechRecognitionUsageDescription"],device_add_device:["Add_Device_Title"],automation_add:["Add_Automation_Title"],device_create_scene:["Add_Scene_Title"]}
11
+
12
+ #定义类变量记录下载次数
13
+
14
+ @@download_Count = 1
15
+
16
+ def self.downloadxls(project_path)
17
+ if @@download_Count > 1
18
+ sleep 10
19
+ end
20
+ puts "当前进行第#{@@download_Count}次尝试下载多语言文件"
21
+ #Open3.capture3("cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path}")
22
+ system "cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path}"
23
+ @@download_Count = @@download_Count + 1
24
+ end
25
+
11
26
  def self.generate(project_path)
12
27
  # 下载excel
13
28
  puts "开始下载多语言文件...".green
14
- Open3.capture3("cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path}")
15
- # system "cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path}"
29
+
30
+
16
31
  f_path = "#{project_path}/download.xlsx"
17
- print(f_path)
32
+ printf(f_path)
33
+
34
+ until File.exist?(f_path)
35
+ self.downloadxls(project_path)
36
+ end
18
37
 
19
38
  # 读取excel到内存
20
39
  file_til = File_util.new
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.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhaoxifan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler