pixab 2.2.2 → 2.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 +4 -4
- data/lib/gitlab/GitlabMRManager.rb +12 -8
- data/lib/pixab/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f09a9844dc68dff860b089c152670840bebb8847446fed524c4090f44382fd7
|
4
|
+
data.tar.gz: c4f4db1ade058dfae0a4d7d45cf83f21920a5664ea307e545a4b1e6b6b3bfc5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54c1b12ffb4c692064d945ed26ea9b054055563240d0fada93adfda1b628feaf2a1dcfcdcede3064f5cfea0893ab49a2b7092b3eadcf122d7fa6a8fb22d996c
|
7
|
+
data.tar.gz: 6d841b0e5773e8f24e141ca893c248b3d871d7c11a46028ef63769c09c0ce6cdf7a1823d117cd660a794ce3ff8f7d41b1836a4ea571b91bf9e8acb3a1a3d3f8b
|
@@ -10,12 +10,16 @@ module Pixab
|
|
10
10
|
|
11
11
|
def run(commands = nil)
|
12
12
|
platform = nil
|
13
|
+
sub_repos_path = nil
|
14
|
+
|
13
15
|
if not commands.nil?
|
14
16
|
commands.each_index do |index|
|
15
17
|
command = commands[index]
|
16
18
|
case command
|
17
19
|
when '--android'
|
18
20
|
platform = Platform.new('android')
|
21
|
+
parent_dir = File.dirname(Dir.pwd)
|
22
|
+
sub_repos_path = File.join(parent_dir, 'pixab_libraries')
|
19
23
|
when '--iOS'
|
20
24
|
platform = Platform.new('iOS')
|
21
25
|
when '--token'
|
@@ -37,8 +41,14 @@ module Pixab
|
|
37
41
|
return
|
38
42
|
end
|
39
43
|
|
40
|
-
git_repos =
|
41
|
-
|
44
|
+
git_repos = GitUtils.find_git_repos(Dir.pwd)
|
45
|
+
unless sub_repos_path.nil?
|
46
|
+
sub_git_repos = GitUtils.find_git_repos(sub_repos_path)
|
47
|
+
unless sub_git_repos.nil?
|
48
|
+
git_repos.concat(sub_git_repos)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
42
52
|
if git_repos.empty?
|
43
53
|
puts "No Git repositories found.".red
|
44
54
|
return
|
@@ -71,12 +81,6 @@ module Pixab
|
|
71
81
|
|
72
82
|
end
|
73
83
|
|
74
|
-
# 查找包含 Git 仓库的目录
|
75
|
-
def find_git_repos(root_dir)
|
76
|
-
# 使用 Dir.glob 匹配所有包含 .git 子目录的目录
|
77
|
-
Dir.glob("#{root_dir}/**/.git").map { |git_dir| File.dirname(File.expand_path(git_dir)) }
|
78
|
-
end
|
79
|
-
|
80
84
|
end
|
81
85
|
|
82
86
|
end
|
data/lib/pixab/version.rb
CHANGED
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: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 廖再润
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|