cocoapods-aqara-localzedLoader 0.0.3 → 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: 043dab4e49c95b7029800c2ae30f24c39f04a8a6fb88cd8a8303b94ece75d1ef
4
- data.tar.gz: 502c17dbf070aa3ed55fe991ff88d9a71cbe7a0d28a33aa9ecd915cffcd09e23
3
+ metadata.gz: d6ae3bb2dbb5f0716f879f9b3cd442f2137a209b58987e0a87c3ca89836b8543
4
+ data.tar.gz: d35e272f1084b9880d61ee55d7d879645571485968e169b7f3fe0f9afcffd505
5
5
  SHA512:
6
- metadata.gz: 2bdc3b207825defbfabcc7b1dca6bebb76af9fcb3678976191d747db6c8022db05d5f84142b7d36bc2892fcc4026613678ed0c660c4927052ce63694211fbbb4
7
- data.tar.gz: c853960b8a2b8e14da4e4b42656fdecb9130b19c40502c568368a3a158ec024b58ffcf17777acb4ba74e98cd116578ed76665a6b063ce09abcb25420707ca1aa
6
+ metadata.gz: d2ba3247e8831e72097e71f22a6c600aede067d83ebad9c918f4737a7e8ae54a8493e18a6413f15974116a42381cf49eace85eaa73368ab3a7d638edba18b1c6
7
+ data.tar.gz: f86bea3700e97c57596c83c4aa218dcd11ad7f2132489dc073a00870d05e5444d7fd4785bec3144a84df7671754a4f180b22a81e125041c0160d34cbf30fd384
data/Gemfile CHANGED
@@ -15,5 +15,5 @@ group :development do
15
15
  gem 'rubyzip'
16
16
  gem 'httparty'
17
17
  gem 'rubyXL'
18
- gem 'Open3'
18
+ gem 'open3'
19
19
  end
data/Gemfile.lock CHANGED
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-aqara-localzedLoader (0.0.2)
4
+ cocoapods-aqara-localzedLoader (0.0.5)
5
5
  claide (>= 1.0.2, < 2.0)
6
6
  colored2
7
7
  fileutils
8
8
  httparty
9
+ open3
9
10
  rubyXL
10
11
  rubyzip
11
12
 
@@ -105,6 +106,7 @@ GEM
105
106
  netrc (0.11.0)
106
107
  nokogiri (1.14.0-arm64-darwin)
107
108
  racc (~> 1.4)
109
+ open3 (0.1.0)
108
110
  prettybacon (0.0.2)
109
111
  bacon (~> 1.2)
110
112
  public_suffix (4.0.7)
@@ -168,6 +170,7 @@ DEPENDENCIES
168
170
  httparty
169
171
  mocha
170
172
  mocha-on-bacon
173
+ open3
171
174
  prettybacon
172
175
  rake (>= 10.0)
173
176
  rspec (>= 3.0)
@@ -1,3 +1,3 @@
1
1
  module Localzedloader
2
- VERSION = "0.0.3"
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.3
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