cocoapods-aomi-bin 0.1.9 → 0.1.10

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: 8fc461c5e823740442cc8c083a408a4acb93360fc6363a183a5679d070c79df0
4
- data.tar.gz: '0397bd469fb875c69681e7c5739439a923bf31ef7846386f6d07f2f63952c122'
3
+ metadata.gz: 64f241532f973a1e5903475c7b395bda5e20c234aae56f570785f68e3e6f7911
4
+ data.tar.gz: 10b05f2cf2f632d8db9fa4298ee76f6df6b11f4eca036dded2e6c4890e4aaee9
5
5
  SHA512:
6
- metadata.gz: c963ee1a10a974416d2cd5525f539a905e79439bbf8680a9fe2cf44bf531de1782bfbe40e96fb0aeafe911ac833d2c7a88223cbaec1ff0dfca06803004e6fcdd
7
- data.tar.gz: 171b50fc4a031baf5414c3a9641665e790d46c5a7bf0ea530ef45ab633ad50ee5035295d2b14e8f36d015b60cac0f35749aa6c2b709aa8da66a9feb80af4276b
6
+ metadata.gz: ffb72bdc8ae5cd1f604e4ccd03f98710f180dd15ae1a96ceb02c273f07dcf783f4a40da828ac124faafa6b234cfe81820a1ad3541d42ec8a45ebb9f0a0ce5ac1
7
+ data.tar.gz: 2a0cd1ca1db7712681c6b626f5ef87e1c5c0db90c7c0557e16670af5fd013d35e9b732b9c35e26f9f1f918569671a617f9e8c897e70608a9bdfac95389b226c6
@@ -45,8 +45,8 @@ module Pod
45
45
  read_csv_file
46
46
  if @key_map.keys.length.positive?
47
47
  write_en_strings
48
- write_zh_cn_strings if CBin::LocalConfig.instance.config['gen_zh_cn']
49
48
  write_zh_hk_strings
49
+ write_zh_cn_strings
50
50
  handle_modify_source if @modify_source_flag
51
51
  else
52
52
  UI.puts "获取中英文映射文件失败, 检查参数--read-csv-file=xx是否正常\n".red
@@ -229,6 +229,14 @@ module Pod
229
229
  end
230
230
 
231
231
  def write_zh_cn_strings
232
+ if CBin::LocalConfig.instance.config['gen_zh_cn']
233
+ gen_zh_cn_strings_file
234
+ else
235
+ copy_hk_to_cn_file
236
+ end
237
+ end
238
+
239
+ def gen_zh_cn_strings_file
232
240
  file = File.join(@current_path, zh_cn_dir_name, generate_file_name)
233
241
  area = :origin
234
242
  area = :cn if CBin::LocalConfig.instance.config['trans_zh_cn']
@@ -237,6 +245,13 @@ module Pod
237
245
  UI.puts "生成简体中文配置完成.文件路径:#{File.absolute_path(file)}\n".green
238
246
  end
239
247
 
248
+ def copy_hk_to_cn_file
249
+ source_file = File.join(@current_path, zh_hk_dir_name, generate_file_name)
250
+ dest_file = File.join(@current_path, zh_cn_dir_name, generate_file_name)
251
+ FileUtils.cp source_file, dest_file
252
+ UI.puts "繁体中文配置覆盖简体中文配置\n".green
253
+ end
254
+
240
255
  def write_zh_hk_strings
241
256
  file = File.join(@current_path, zh_hk_dir_name, generate_file_name)
242
257
  area = :origin
@@ -1,5 +1,5 @@
1
1
  module CBin
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
4
4
 
5
5
  module Pod
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-aomi-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian