cocoapods-localzedLoader 0.1.1 → 0.1.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: 4e1adfbe18a0ab61631028fbfb160cbdd9a68c5f363b2d33e52e132a701f845b
4
- data.tar.gz: baf34df02655976e699afddeefaf175d4ca483182b4c93403df0ff0e6dac277d
3
+ metadata.gz: 35da642dbe713c4432282321be4a088ccc8e2506b6be79cb8379565ceb0096cf
4
+ data.tar.gz: 42d8236a2c31a5a99a2dd8d9dea3a8cbb4b4dcd8c8ebbe531c3b92c67e2a3a63
5
5
  SHA512:
6
- metadata.gz: 95b18128410916003488e6dbaeb36882e83a7ae8ddc51b6aa073c5fc9dd218f2f1f84eec606b7d63e411e8560a22c74831991279005b6157d4d8f93dd3a8902f
7
- data.tar.gz: 35d01e3c95d386a1900e88dcd7a6da73d07b5c7b491d8c0db6d37eea94c3935caa329dac40bef90576e3d427d8d2ca1fbcf89a373d471a148f3ff2b439c2690f
6
+ metadata.gz: adbcd572073abab951f26d0771c6b132056ed963f47d9b75637d056eb35abb251eb214c43f83361e9ab2479aa40ea64a39b9d295dfee4021090118964b3b4435
7
+ data.tar.gz: cb66b6149919c1d74bc41f169340d26a5d26a10b9d765b74be0fe4a8a21fe5e9664e32ce8f2bd40221fb3af08f4be63f8ee9475449d5603446187f40f8bb663f
@@ -6,27 +6,29 @@ require 'colored2'
6
6
 
7
7
  class LanguageDownloader
8
8
 
9
- HeaderString = %Q{accept: application/json, text/plain, */*
10
- accept-encoding: gzip, deflate, br
11
- accept-language: zh
12
- content-length: 182
13
- content-type: application/json
14
- cookie: sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%221859aeaeae8ac6-062e0ea9cca7ea-17525635-2073600-1859aeaeae9f16%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%7D%2C%22%24device_id%22%3A%221859aeaeae8ac6-062e0ea9cca7ea-17525635-2073600-1859aeaeae9f16%22%7D; Token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0OTAyODA1ZjNlYTQxODgyLjY5Mjg0MTEzMjM5Mjc5MjA2NSIsImlzcyI6Imh0dHBzOi8vYWlvdC1ycGMuYXFhcmEuY24iLCJhY2NvdW50IjoiamluZ3lhLmx1LWExMDc5QGFxYXJhLmNvbSIsImlhdEdtdDgiOjE2NzQ5ODM4MTMsImp0aSI6IjYxMTE3MDY3ZTRmNDQ2Mzg5YzI3Y2IxNDNjYTk5ZTRlMDdiMGZjNThmOWZlNGJjNjg5MjI2NjMxNWYwMzIxZDUifQ.AA90VKxT6zjlxnkFpaOMO9ujTXrssEXxuRp0WRhliGM; Userid=4902805f3ea41882.692841132392792065; currentSid=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0OTAyODA1ZjNlYTQxODgyLjY5Mjg0MTEzMjM5Mjc5MjA2NSIsImlzcyI6Imh0dHBzOi8vYWlvdC1ycGMuYXFhcmEuY24iLCJpYXRHbXQ4IjoxNjc0OTgzODEzLCJqdGkiOiIwZTY3NThjMjM3NGY0YmJiOWE3NjBmYzI0ZmZkY2NmODYzNGI4ODRjZGM1NTRjM2NiNTU1YzNkZjdmN2NjNWNhIn0.r7cBEpWVHWSpHH6zDX32FXNjMQ6IZN0DFBc3Oa8Tb5w; currentAccount=jingya.lu-a1079@aqara.com; userInfo=%7B%22accountCategory%22%3A%220%22%2C%22company%22%3A%7B%22companyId%22%3A1%2C%22companyName%22%3A%22%E7%BB%BF%E7%B1%B3%E8%81%94%E5%88%9B%22%7D%2C%22user%22%3A%7B%22avatarUrl%22%3A%22%22%2C%22companyId%22%3A1%2C%22email%22%3A%22jingya.lu-a1079%40aqara.com%22%2C%22nickName%22%3A%22%22%2C%22userName%22%3A%22%E9%B2%81%E9%9D%99%E4%BA%9A%22%2C%22userType%22%3A0%7D%7D; sidebarStatus=0lang: zh
15
- nonce: k9a7yh3vjjyd6vb47ktmcyh50bv3m3c2
16
- operate-platform: 40
17
- origin: https://intl-lang.aqara.com
18
- projectid: 5
19
- referer: https://intl-lang.aqara.com/
20
- sec-ch-ua: "Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
21
- sec-ch-ua-mobile: ?0
22
- sec-ch-ua-platform: "macOS"
23
- sec-fetch-dest: empty
24
- sec-fetch-mode: cors
25
- sec-fetch-site: same-origin
26
- time: 1668061116811
27
- timestamp: 1668061116811
28
- user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
9
+ HeaderString = %Q{Accept:application/json, text/plain, */*
10
+ Accept-Encoding:gzip, deflate, br
11
+ Accept-Language:zh
12
+ Content-Length:194
13
+ Content-Type:application/json
14
+ Cookie:_ga=GA1.2.1025116346.1676013076; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%224902805f3ea41882.692841132392792065%22%2C%22first_id%22%3A%221859aeaeae8ac6-062e0ea9cca7ea-17525635-2073600-1859aeaeae9f16%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E5%BC%95%E8%8D%90%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC%22%2C%22%24latest_referrer%22%3A%22https%3A%2F%2Fuc.aqara.cn%2F%22%7D%2C%22%24device_id%22%3A%221859aeaeae8ac6-062e0ea9cca7ea-17525635-2073600-1859aeaeae9f16%22%7D; Token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0OTAyODA1ZjNlYTQxODgyLjY5Mjg0MTEzMjM5Mjc5MjA2NSIsImlzcyI6Imh0dHBzOi8vYWlvdC1ycGMuYXFhcmEuY24iLCJhY2NvdW50IjoiamluZ3lhLmx1LWExMDc5QGFxYXJhLmNvbSIsImlhdEdtdDgiOjE2OTM1NzE0MDksImp0aSI6ImU4Y2YzNGMyNGRlYzQ0YWZiNzM5ODg3YzhiMGI3ZWE0YWM2OWFhNjViZmFjNDcxNWFlM2M1NmFkOGVhNDJlZGUifQ.INPHQkRwwRpXyRYpbRpNm6MfoYKUm7O4QjW7sOGNd6I; Userid=4902805f3ea41882.692841132392792065; currentSid=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0OTAyODA1ZjNlYTQxODgyLjY5Mjg0MTEzMjM5Mjc5MjA2NSIsImlzcyI6Imh0dHBzOi8vYWlvdC1ycGMuYXFhcmEuY24iLCJpYXRHbXQ4IjoxNjkzNTcxNDA5LCJqdGkiOiI4M2JmOWRkNDlmZDU0ZTUwOWVmODFjNjJhZjMwYTg4NmVjN2E1N2QzMGVkYTQ3ZTM5MDEzMGVhNWI5MWUxZTBkIn0.wHuZsMUkvTg4i-C4nHDhCpAiq-1acfl_G6KeycekIiw; currentAccount=jingya.lu-a1079@aqara.com; userInfo=%7B%22accountCategory%22%3A%220%22%2C%22company%22%3A%7B%22companyId%22%3A1%2C%22companyName%22%3A%22%E7%BB%BF%E7%B1%B3%E8%81%94%E5%88%9B%22%7D%2C%22user%22%3A%7B%22avatarUrl%22%3A%22%22%2C%22companyId%22%3A1%2C%22email%22%3A%22jingya.lu-a1079%40aqara.com%22%2C%22nickName%22%3A%22%22%2C%22userName%22%3A%22%E9%B2%81%E9%9D%99%E4%BA%9A%22%2C%22userType%22%3A0%7D%7D
15
+ Lang:zh
16
+ Nonce:980m43cn1qezpnplek4ovr8ahkg2enq1
17
+ Operate-Platform:40
18
+ Origin:https://intl-lang.aqara.com
19
+ Projectid:5
20
+ Referer:https://intl-lang.aqara.com/
21
+ Sec-Ch-Ua:"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"
22
+ Sec-Ch-Ua-Mobile:?0
23
+ Sec-Ch-Ua-Platform:"macOS"
24
+ Sec-Fetch-Dest:empty
25
+ Sec-Fetch-Mode:cors
26
+ Sec-Fetch-Site:same-origin
27
+ Time:1693571557934
28
+ Timestamp:1693571557934
29
+ User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
29
30
  }
31
+
30
32
  def self.makeHeader
31
33
  headerArray = HeaderString.split("\n")
32
34
  header = {}
@@ -41,7 +43,7 @@ user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (
41
43
 
42
44
  #下载文件
43
45
 
44
- params = {"projectIdList":[5],"langIds":[1,2,3,9,10,11,12,13,14,15,16],"fileTypeList":["excel"],"auditState":1,"valueState":0,"userId":"","value":"","tagIds":nil,"bizUseTagIds":nil,"pkeys":[]}
46
+ params = {"projectIdList":[5],"langIds":[1,2,3,9,10,11,12,13,14,15,16,17,18],"fileTypeList":["excel"],"auditState":1,"valueState":0,"userId":"","value":"","tagIds":nil,"bizUseTagIds":nil,"pkeys":[]}
45
47
  response = HTTParty.post('https://intl-lang.aqara.com/v1.0/lumi/language/file/export', body: JSON.generate(params), headers:LanguageDownloader.makeHeader)
46
48
  # puts response.body
47
49
  unless response.body["code"] == nil
@@ -80,4 +82,4 @@ user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (
80
82
 
81
83
  end
82
84
 
83
-
85
+ #LanguageDownloader.download
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLocalzedloader
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -52,7 +52,9 @@ class BundleGenerater
52
52
  end
53
53
 
54
54
  #如果是infoplist里的key,就写入指定的文件
55
- if key === "NSAppleMusicUsageDescription" || key === "NSLocalNetworkUsageDescription"
55
+ if key === nil
56
+ puts "key值为空,#{stringElement.ios_list}"
57
+ elsif key === "NSAppleMusicUsageDescription" || key === "NSLocalNetworkUsageDescription"
56
58
  file = "./#{lang}.lproj/InfoPlist.strings"
57
59
  File.open(file, "a") do |io|
58
60
  io.write str
@@ -158,4 +160,4 @@ end
158
160
  # end
159
161
  #
160
162
  # p str
161
- # puts "111".green
163
+ # puts "111".green
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-localzedLoader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeremylu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty