pixab 1.2.1 → 1.2.3

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: 465c3b05af7e8d11f5fd4b439052fa3dbe29f4e3bc8c16e1299d19fb7dc278e7
4
- data.tar.gz: 4c3dd3ef7d60511a00bb9fc57df5ff35e40b9faf3686e1c4d4f131d6d6aefd34
3
+ metadata.gz: 75b41e526eaa8661b19aa105b30f54cde414045030fd7ce756dbe8957186ce08
4
+ data.tar.gz: 0f03c1ef21361608206c35a7a52e1e0ef8a78794e1e3f456cff546205377fea6
5
5
  SHA512:
6
- metadata.gz: 78ca01d716329db426c40ff7103b03ebee3cbb4b09b9c8467ccd822cc60de4a48b4b9473516cbdfcd3bee824963425b1104669fa82ed5b94d1ae991643edc5c6
7
- data.tar.gz: cdc919b196b24c97040c8cde8118a09aeae0f27be69cc8d2e5e07ff73f5c062aea70469e82c5a288e793ba700ae5b083415c23be10354f8eff5476a5a30eec12
6
+ metadata.gz: 112c92eaf0c27d607739db54617be7083cdf1c62720a5349007b7727bc4e9d1b647f3be57d0f339667a4a71171d04ce424e6820f6246def79cd5371e6556e473
7
+ data.tar.gz: acee40bab2f9b27eb2b89aa5151c6f3373eb0fc90e5bc2c45f5cad5c0894b5b1a25ce7a5b444f404a6531b86f58cdb3e98c3f2fcb6cfb59747293c5a6c6cdbdd
@@ -11,20 +11,26 @@ module Pixab
11
11
 
12
12
  class ComponentSynchronizer
13
13
 
14
- attr_accessor :is_need_build
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
+ @is_need_remote_repo = false
21
+ @is_need_pod_install = true
20
22
  if commands.nil?
21
23
  return
22
24
  end
23
25
  commands.each_index do |index|
24
26
  command = commands[index]
25
27
  case command
26
- when "--build"
28
+ when "--build"
27
29
  @is_need_build = true
30
+ when "--remote-repo"
31
+ @is_need_remote_repo = true
32
+ when "--no-pod-install"
33
+ @is_need_pod_install = false
28
34
  else
29
35
  end
30
36
  end
@@ -32,14 +38,24 @@ module Pixab
32
38
 
33
39
  def run
34
40
  read_repo_infos
35
- puts "\n》》》》》正在将本地调试仓替换为远程仓 》》》》》》》》》》\n".green
36
- active_repo_names = replace_local_to_remote
41
+
42
+ active_repo_names = nil
43
+ if is_need_remote_repo
44
+ puts "\n》》》》》正在将本地调试仓替换为远程仓 》》》》》》》》》》\n".green
45
+ active_repo_names = replace_local_to_remote
46
+ end
47
+
37
48
  puts "\n》》》》》正在合并主工程代码 》》》》》》》》》》》》》》》\n".green
38
49
  merge_and_check
50
+
39
51
  puts "\n》》》》》正在读取最新提交,并更新pod 》》》》》》》》》》\n".green
40
52
  replace_podfile
41
- puts "\n》》》》》正在将远程仓复原为本地调试仓 》》》》》》》》》》\n".green
42
- reset_remote_to_local(active_repo_names)
53
+
54
+ if is_need_remote_repo
55
+ puts "\n》》》》》正在将远程仓复原为本地调试仓 》》》》》》》》》》\n".green
56
+ reset_remote_to_local(active_repo_names)
57
+ end
58
+
43
59
  if is_need_build
44
60
  puts "\n》》》》》正在进行Xcode编译 》》》》》》》》》》》》》》》\n".green
45
61
  FileUtils.cd("#{repo_manager.root_path}/#{main_repo_name}")
@@ -132,9 +148,11 @@ module Pixab
132
148
  end
133
149
  end
134
150
 
135
- system "mbox pod install --repo-update"
136
- Utilities.check_shell_result("Error: execute `mbox pod install --repo-update` failed")
137
-
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
+
138
156
  @updated_repo_names = updated_repo_names
139
157
  end
140
158
 
data/lib/Localization.rb CHANGED
@@ -9,7 +9,7 @@ module Pixab
9
9
 
10
10
  class Localization
11
11
 
12
- ACCESS_TOKEN = '4f5379d0d26b9a2ef167b3fc84fb47f1fe2b4e87b1f95d8f5fc15269132051ef'
12
+ ACCESS_TOKEN = 'bdbda2cc022951235808a4f6c7a7330d4de7dcf719650d7d2ceee260e07d3f01'
13
13
  Project_AirBrush = '546ed49bfca9d3a4f51ccf2c8c279d0f'
14
14
  Project_AirBrush_Video = 'fcb3e858aa1d991e8c21222f3696ce67'
15
15
 
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.1"
4
+ VERSION = "1.2.3"
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.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 廖再润
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-13 00:00:00.000000000 Z
11
+ date: 2023-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2