pixab 1.2.2 → 1.2.4

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: 8cfd06e937c68ec8fd6c665ac2060fd3a460b1a5a745d87a7644f0a543e1fffe
4
- data.tar.gz: a2011617a26f2e28b5b45f178fd1c4335b68b0b5035af2a780273933e8828a52
3
+ metadata.gz: 20698dc28360fe95c08e470453daeec73c795a38da5e0f30e681afec3677d74d
4
+ data.tar.gz: eabcdc600ecf3f7cd0555017fa4a652c30032d120171a8b8c17de7b530ccb03f
5
5
  SHA512:
6
- metadata.gz: 398e2af51db09f877e1a5110bd0164ab1293831fb9d903c2201e4498fd57a4a1866e46d5e6de8a6a821080e5fbe96c7da926b44ff08400f8a74286681620adfd
7
- data.tar.gz: 9d071439c49927a78a09a4b498b71d2252656f5fae0093f50055ed481e485b826ad2239d845e0199d26bad7fa1f86bc510928dd9deb324203a4f4019dd39d4cf
6
+ metadata.gz: 779681266061199dbcd1affd9dbffad72add588641d3985803f72f6c52a09d99b5d4ad95a013b0de9c3cd1247ccb3433ed74ea8e5388c2dfd081f45e3a05e98e
7
+ data.tar.gz: e4c2fcae3b70e1278a7f1918a666770ad37ccbce4b7da5e8cb38103f43d90374d96d1e7a420a6275f02c51c1ea1feaf3b6bd4abf5118e98b64e9d434cafbee45
@@ -11,13 +11,14 @@ module Pixab
11
11
 
12
12
  class ComponentSynchronizer
13
13
 
14
- attr_accessor :is_need_build, :is_need_remote_repo
14
+ attr_accessor :is_need_build, :is_need_remote_repo, :is_need_pod_install
15
15
  attr_reader :repo_manager, :repos, :main_repo_name, :updated_repo_names
16
16
 
17
17
  def initialize(repo_manager = RepoManager.new, commands = nil)
18
18
  @repo_manager = repo_manager
19
19
  @is_need_build = false
20
20
  @is_need_remote_repo = false
21
+ @is_need_pod_install = true
21
22
  if commands.nil?
22
23
  return
23
24
  end
@@ -28,6 +29,8 @@ module Pixab
28
29
  @is_need_build = true
29
30
  when "--remote-repo"
30
31
  @is_need_remote_repo = true
32
+ when "--no-pod-install"
33
+ @is_need_pod_install = false
31
34
  else
32
35
  end
33
36
  end
@@ -145,9 +148,11 @@ module Pixab
145
148
  end
146
149
  end
147
150
 
148
- system "mbox pod install --repo-update"
149
- Utilities.check_shell_result("Error: execute `mbox pod install --repo-update` failed")
150
-
151
+ if is_need_pod_install
152
+ system "mbox pod install --repo-update"
153
+ Utilities.check_shell_result("Error: execute `mbox pod install --repo-update` failed")
154
+ end
155
+
151
156
  @updated_repo_names = updated_repo_names
152
157
  end
153
158
 
@@ -108,7 +108,8 @@ module Pixab
108
108
  file.syswrite("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n")
109
109
  file.syswrite("<resources>\n")
110
110
  localized_infos.each do |localized_info|
111
- file.syswrite(" <string name=\"#{localized_info['key']}\">#{localized_info['value']}</string>\n")
111
+ value = localized_info['value'].gsub(/['"\\]/, '\\\\\0')
112
+ file.syswrite(" <string name=\"#{localized_info['key']}\">#{value}</string>\n")
112
113
  end
113
114
  file.syswrite("</resources>\n")
114
115
  end
data/lib/pixab/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pixab
4
- VERSION = "1.2.2"
4
+ VERSION = "1.2.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 廖再润
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2