cocoapods-aqara-localzedLoader 0.0.4 → 0.0.5

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: 65fde2314089ca7c92e7e54a8d14aa5187814c88910dd32253c68a9c88e39b50
4
- data.tar.gz: 1d473cf4218ccece175364fc75d5163dcf3b79269af71892cd1af2e3144626a9
3
+ metadata.gz: d6ae3bb2dbb5f0716f879f9b3cd442f2137a209b58987e0a87c3ca89836b8543
4
+ data.tar.gz: d35e272f1084b9880d61ee55d7d879645571485968e169b7f3fe0f9afcffd505
5
5
  SHA512:
6
- metadata.gz: 110d8909dcd64309485e7f598e1cf16d9e421caae29cbdc37f78b511ef641ebeac17981da07657e647a511b59ba8648689bfd8307e0438e6323b16aa03186e62
7
- data.tar.gz: 0a164564d635693b193270ea003121ce67d44f5dd4749711fbe6dc32a14fa0c8170cfbeb591001e6d0f2b57341b92157db2b77a397a54a1e7e59a17253f86af5
6
+ metadata.gz: d2ba3247e8831e72097e71f22a6c600aede067d83ebad9c918f4737a7e8ae54a8493e18a6413f15974116a42381cf49eace85eaa73368ab3a7d638edba18b1c6
7
+ data.tar.gz: f86bea3700e97c57596c83c4aa218dcd11ad7f2132489dc073a00870d05e5444d7fd4785bec3144a84df7671754a4f180b22a81e125041c0160d34cbf30fd384
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-aqara-localzedLoader (0.0.4)
4
+ cocoapods-aqara-localzedLoader (0.0.5)
5
5
  claide (>= 1.0.2, < 2.0)
6
6
  colored2
7
7
  fileutils
@@ -1,3 +1,3 @@
1
1
  module Localzedloader
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -139,6 +139,7 @@ class BundleGenerater
139
139
  #对多语言的value进行处理
140
140
  def self.handleValue(value='',stringElement = nil)
141
141
  #替换{=}
142
+ value = self.replace_placeholders value
142
143
  value = value.gsub(/{#}/,"%@")
143
144
  value = value.gsub(/""/,'"')
144
145
  value = value.gsub(/\\"/,'"')
@@ -154,6 +155,10 @@ class BundleGenerater
154
155
  value
155
156
  end
156
157
 
158
+ def self.replace_placeholders(str='')
159
+ return str.gsub(/%(\d+)\$s/, '%\1$@')
160
+ end
161
+
157
162
  end
158
163
 
159
164
 
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhaoxifan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-19 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler