podsorz 0.0.12 → 0.0.13
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/.vscode/launch.json +17 -0
- data/lib/podsorz/command/binary.rb +6 -6
- data/lib/podsorz/command/check.rb +4 -1
- data/lib/podsorz/command/install.rb +1 -1
- data/lib/podsorz/command/sort.rb +2 -1
- data/lib/podsorz/core/Binary/binary_builder.rb +1 -1
- data/lib/podsorz/core/Binary/binary_manager.rb +1 -1
- data/lib/podsorz/core/Binary/binary_repo.rb +7 -2
- data/lib/podsorz/core/Binary/binary_server.rb +10 -3
- data/lib/podsorz/core/Config/orz_config_templet.rb +50 -17
- data/lib/podsorz/core/Config/orz_env_detector.rb +20 -2
- data/lib/podsorz/core/Config/pod_orzconfig_parse.rb +16 -1
- data/lib/podsorz/core/PodFile/podfile_io.rb +7 -4
- data/lib/podsorz/core/PodsOrz/pods_check_merge.rb +0 -1
- data/lib/podsorz/core/PodsOrz/pods_detector.rb +7 -6
- data/lib/podsorz/core/PodsOrz/pods_git_manager.rb +3 -3
- data/lib/podsorz/core/PodsOrz/pods_repo.rb +8 -3
- data/lib/podsorz/core/PodsOrz/pods_version.rb +3 -1
- data/lib/podsorz/version.rb +1 -1
- metadata +10 -3
- data/Podfile +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd62dd4556e53831b2b078c24ea852a7c756288385a316ac86e38b3f4ae3a2be
|
4
|
+
data.tar.gz: 4d12c63701b3ea89a5096a7f440061940424b8e2ddc33fe1b7ef65200078b8cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216b722dbe1466edbc93c9051ea2e0f4a57324774d201c90f11b44c9adaed803fc49e9f381fb336dc60c817824290075ff673369098ad04e4e42a1a94a3ee386
|
7
|
+
data.tar.gz: da69be9b603987f84ff1a951f1582afefc8a0e647472d3dc89ae6924886823ac15088b3f0fe736e643b8a9ddbe6e65f8d217ebbda9a1facec677478ab09dc451
|
data/.vscode/launch.json
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
3
|
+
// Hover to view descriptions of existing attributes.
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5
|
+
"version": "0.2.0",
|
6
|
+
"configurations": [
|
7
|
+
{
|
8
|
+
"name": "Listen for rdebug-ide",
|
9
|
+
"type": "Ruby",
|
10
|
+
"request": "attach",
|
11
|
+
"cwd": "${workspaceRoot}",
|
12
|
+
"remoteHost": "127.0.0.1",
|
13
|
+
"remotePort": "1234",
|
14
|
+
"remoteWorkspaceRoot": "${workspaceRoot}"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
@@ -14,7 +14,7 @@ module PodsOrz
|
|
14
14
|
prepare_work(dir_path)
|
15
15
|
|
16
16
|
git_manager = PodsOrz::PodsGitManager.new(dir_path)
|
17
|
-
result_hash = filter_binary_pods_list(git_manager, :package)
|
17
|
+
result_hash = filter_binary_pods_list(dir_path,git_manager, :package)
|
18
18
|
package_list = result_hash[:package]
|
19
19
|
|
20
20
|
binary_manager = PodsOrz::BinaryManager.new(dir_path)
|
@@ -32,7 +32,7 @@ module PodsOrz
|
|
32
32
|
prepare_work(dir_path)
|
33
33
|
|
34
34
|
git_manager = PodsOrz::PodsGitManager.new(dir_path)
|
35
|
-
filter_binary_pods_list(git_manager, :show)
|
35
|
+
filter_binary_pods_list(dir_path,git_manager, :show)
|
36
36
|
end
|
37
37
|
|
38
38
|
end
|
@@ -45,7 +45,7 @@ module PodsOrz
|
|
45
45
|
prepare_work(dir_path)
|
46
46
|
|
47
47
|
git_manager = PodsOrz::PodsGitManager.new(dir_path)
|
48
|
-
result_hash = filter_binary_pods_list(git_manager, :package)
|
48
|
+
result_hash = filter_binary_pods_list(dir_path,git_manager, :package)
|
49
49
|
package_list = result_hash[:package]
|
50
50
|
|
51
51
|
binary_manager = PodsOrz::BinaryManager.new(dir_path)
|
@@ -59,12 +59,12 @@ module PodsOrz
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def self.prepare_work(dir_path)
|
62
|
-
pods_repo = PodsOrz::PodsRepo.new()
|
62
|
+
pods_repo = PodsOrz::PodsRepo.new(dir_path)
|
63
63
|
pods_repo.check_repo_exist()
|
64
64
|
end
|
65
65
|
|
66
66
|
|
67
|
-
def self.filter_binary_pods_list(git_manager, cmd_type)
|
67
|
+
def self.filter_binary_pods_list(dir_path,git_manager, cmd_type)
|
68
68
|
result_hash = {
|
69
69
|
:binary => [],
|
70
70
|
:package => []
|
@@ -104,7 +104,7 @@ module PodsOrz
|
|
104
104
|
can_package_list = []
|
105
105
|
|
106
106
|
#2.查询Podfile_orz是否为已发版本状态
|
107
|
-
binary_repo = PodsOrz::BinaryRepo.new()
|
107
|
+
binary_repo = PodsOrz::BinaryRepo.new(dir_path)
|
108
108
|
binary_repo.check_binary_repo_exist()
|
109
109
|
|
110
110
|
origin_binary_list.each do |pod|
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# require "podsorz/core/PodsOrz/pods_check_merge"
|
2
2
|
# require "../../PodsOrz/lib/podsorz/core/PodsOrz/pods_check_merge.rb"
|
3
3
|
require "podsorz/core/PodsOrz/pods_check_merge"
|
4
|
+
require "podsorz/core/Config/pod_orzconfig_parse"
|
5
|
+
|
4
6
|
|
5
7
|
module PodsOrz
|
6
8
|
def self.check_command
|
@@ -16,7 +18,8 @@ module PodsOrz
|
|
16
18
|
exit()
|
17
19
|
end
|
18
20
|
|
19
|
-
|
21
|
+
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(dir_path)
|
22
|
+
kx_pods_path = File.expand_path("../#{@orzconfig_parse.file_devpods_name}", dir_path)
|
20
23
|
# puts "kx_pods_path #{kx_pods_path}"
|
21
24
|
checkManger = PodsOrz::PodsCheckMerge.new()
|
22
25
|
checkManger.branchList(kx_pods_path)
|
@@ -18,7 +18,7 @@ module PodsOrz
|
|
18
18
|
exit() unless is_same
|
19
19
|
|
20
20
|
#获取binary 列表
|
21
|
-
list_hash = PodsOrz.filter_binary_pods_list(git_manager, :binary)
|
21
|
+
list_hash = PodsOrz.filter_binary_pods_list(dir_path,git_manager, :binary)
|
22
22
|
|
23
23
|
git_manager.install_pod(dir_path, list_hash[:binary])
|
24
24
|
end
|
data/lib/podsorz/command/sort.rb
CHANGED
@@ -15,8 +15,9 @@ module PodsOrz
|
|
15
15
|
exit()
|
16
16
|
end
|
17
17
|
|
18
|
-
|
18
|
+
|
19
19
|
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(dir_path)
|
20
|
+
kx_pods_path = File.expand_path("../#{@orzconfig_parse.file_devpods_name}", dir_path)
|
20
21
|
pods_list = @orzconfig_parse.fix_pod_list
|
21
22
|
if pods_list.empty?
|
22
23
|
Logger.warning("fix_pods is empty nothing to do")
|
@@ -13,7 +13,7 @@ module PodsOrz
|
|
13
13
|
@kx_binary_path = File.expand_path("../kx_binary", main_path)
|
14
14
|
|
15
15
|
@podfile_io = podfile_io
|
16
|
-
@pod_repo = PodsOrz::PodsRepo.new()
|
16
|
+
@pod_repo = PodsOrz::PodsRepo.new(main_path)
|
17
17
|
|
18
18
|
@http_host = "http://192.168.6.127:8899"
|
19
19
|
@remote_binary_directory = "binary_pod"
|
@@ -11,7 +11,7 @@ module PodsOrz
|
|
11
11
|
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
12
12
|
@podfile_io = PodsOrz::PodfileIO.new(main_path)
|
13
13
|
|
14
|
-
@binary_repo = PodsOrz::BinaryRepo.new()
|
14
|
+
@binary_repo = PodsOrz::BinaryRepo.new(main_path)
|
15
15
|
@binary_repo.check_binary_repo_exist()
|
16
16
|
|
17
17
|
@binary_builder = PodsOrz::BinaryBuilder.new(main_path, @podfile_io)
|
@@ -1,15 +1,20 @@
|
|
1
1
|
require "podsorz/util/logger"
|
2
2
|
require 'open3'
|
3
3
|
require "podsorz/core/Binary/binary_server"
|
4
|
+
require "podsorz/core/Config/pod_orzconfig_parse"
|
5
|
+
|
4
6
|
|
5
7
|
module PodsOrz
|
6
8
|
class BinaryRepo
|
7
9
|
attr_accessor :repo_name, :repo_url, :binary_server
|
8
10
|
|
9
|
-
def initialize()
|
11
|
+
def initialize(main_path)
|
10
12
|
@repo_name = "kuxiu_binary_specs"
|
11
13
|
@repo_url = "git@gitlab.91banban.com:ios_pods/binary-specs.git"
|
12
|
-
@
|
14
|
+
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
15
|
+
# 替换成config配置参数
|
16
|
+
# @source_code_repo_url = "git@gitlab.91banban.com:ios_pods/Specs.git"
|
17
|
+
@source_code_repo_url = @orzconfig_parse.remote_url_codespec
|
13
18
|
@binary_server = PodsOrz::BinaryServer.new()
|
14
19
|
end
|
15
20
|
|
@@ -51,15 +51,22 @@ module PodsOrz
|
|
51
51
|
|
52
52
|
Logger.warning("upload #{file_name}...\n #{upload_cmd}")
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
io_lines.each do |line|
|
54
|
+
Open3.popen3(cmd_list.join(";")) do |stdin , stdout , stderr, wait_thr|
|
55
|
+
while line = stdout.gets
|
57
56
|
puts line
|
58
57
|
if line.include? "\"success\":"
|
59
58
|
is_upload_success = true if line.include? "true"
|
60
59
|
condition_var.signal
|
61
60
|
end
|
62
61
|
end
|
62
|
+
end
|
63
|
+
|
64
|
+
IO.popen(upload_cmd) do |io|
|
65
|
+
io_lines = io.readlines
|
66
|
+
io_lines.each do |line|
|
67
|
+
puts line
|
68
|
+
|
69
|
+
end
|
63
70
|
io.close
|
64
71
|
end
|
65
72
|
}
|
@@ -1,31 +1,64 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
#作者姓名xiangqi简写
|
6
|
-
BRANCH_AUTHOR_SUFFIX = "xq"
|
7
|
-
end
|
1
|
+
#############
|
2
|
+
#开发人员专用
|
3
|
+
#############
|
8
4
|
|
9
5
|
#想要开发修改的的Pod
|
10
|
-
|
6
|
+
$FIX_POD_LIST = [
|
11
7
|
# "KXModuleOrz",
|
12
8
|
# "KXModuleQuestionRepo",
|
13
|
-
|
9
|
+
]
|
10
|
+
|
11
|
+
|
12
|
+
module GitConfig
|
13
|
+
#App 当前版本
|
14
|
+
APP_RELEASE_VERSION = "2.1.2"
|
15
|
+
|
16
|
+
#作者姓名xiangqi简写
|
17
|
+
BRANCH_AUTHOR_SUFFIX = "yyt"
|
18
|
+
|
14
19
|
|
15
20
|
|
21
|
+
#App pods的远端仓库地址 源码
|
22
|
+
REMOTE_URL_SOURCECODE = 'git@gitlab.91banban.com:zhuita-ios/pod_group/pods'
|
23
|
+
#App podspec的发布地址仓库
|
24
|
+
REMOTE_URL_CODESPEC = 'git@gitlab.91banban.com:zhuita-ios/pod_group/specs.git'
|
25
|
+
#App 二进制存放地址 service
|
26
|
+
REMOTE_URL_SOURCEBINARY = 'http://192.168.6.127:8899'
|
27
|
+
#App 二进制 podspec的发布地址仓库
|
28
|
+
REMOTE_URL_BINARYSPEC = 'git@gitlab.91banban.com:zhuita-ios/pod_group/specs.git'
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
module FileConfig
|
33
|
+
#开发pods组件时仓库名称(需要与主工程同一级文件夹)
|
34
|
+
FILE_DEVPODS_NAME = 'zt_pods'
|
35
|
+
|
36
|
+
#与cocoapods同一级的私有repo仓库文件夹名称
|
37
|
+
FILE_CODEREPO_NAME = "ZhuiTaRepo"
|
38
|
+
|
39
|
+
#与cocoapods同一级的私有二进制 repo仓库文件夹名称
|
40
|
+
FILE_BINARYREPO_NAME = "ZhuiTaRepo"
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
|
16
46
|
|
17
|
-
|
47
|
+
|
48
|
+
#############
|
49
|
+
#打包人员专用
|
50
|
+
#############
|
51
|
+
|
52
|
+
#------Binary Static library ------#
|
18
53
|
#是否全部Pod以二进制静态库加载,false代表以源码显示【打包机】请用源码
|
19
|
-
|
54
|
+
$is_all_binary = false
|
20
55
|
#当is_all_binary = false 所有pod即将显示源码时,仍然希望部分Pod二进制静态库加载
|
21
|
-
|
56
|
+
$static_lib_list = [
|
22
57
|
# "AFNetworking",
|
23
|
-
|
58
|
+
]
|
24
59
|
|
25
60
|
#------Package Action------#
|
26
61
|
#当is_all_binary = false 并不是针对所有pod 打binary包,仍然希望部分pod打包成二进制静态库的Pod
|
27
|
-
|
62
|
+
$will_package_list = [
|
28
63
|
# "AFNetworking",
|
29
|
-
|
30
|
-
|
31
|
-
#
|
64
|
+
]
|
@@ -15,7 +15,7 @@ module PodsOrz
|
|
15
15
|
result = File.exist?(podfile_path)
|
16
16
|
unless result
|
17
17
|
Logger.warning("Podfile not exist, create empty Podfile")
|
18
|
-
IO.popen("cd #{directoryPath};
|
18
|
+
IO.popen("cd #{directoryPath};pod init")
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -23,12 +23,30 @@ module PodsOrz
|
|
23
23
|
podfile_path = File.expand_path("Podfile_orz.rb", directoryPath)
|
24
24
|
result = File.exist?(podfile_path)
|
25
25
|
unless result
|
26
|
-
Logger.error("Podfile_orz.rb not exist,
|
26
|
+
Logger.error("Podfile_orz.rb not exist,auto generate one which content is copy from origin Podfile")
|
27
|
+
IO.popen("cd #{directoryPath};touch Podfile_orz.rb")
|
28
|
+
copy_content_from_podfile(directoryPath)
|
27
29
|
end
|
28
30
|
|
29
31
|
result
|
30
32
|
end
|
31
33
|
|
34
|
+
def copy_content_from_podfile(directoryPath)
|
35
|
+
podfile_path = File.expand_path("Podfile", directoryPath)
|
36
|
+
total_sentences = []
|
37
|
+
File.open(podfile_path, "r") { |io|
|
38
|
+
total_sentences = io.readlines
|
39
|
+
}
|
40
|
+
|
41
|
+
dest_path = File.expand_path("Podfile_orz.rb", directoryPath)
|
42
|
+
File.open(dest_path, "w+") {|io|
|
43
|
+
total_sentences.each do |sentence|
|
44
|
+
io.write(sentence)
|
45
|
+
end
|
46
|
+
}
|
47
|
+
|
48
|
+
end
|
49
|
+
|
32
50
|
def detect_PodsOrzConfig(directoryPath)
|
33
51
|
orzconfig_path = File.expand_path("PodsOrzConfig.rb", directoryPath)
|
34
52
|
orzconfig_result = File.exist?(orzconfig_path)
|
@@ -3,7 +3,7 @@ require "podsorz/util/logger"
|
|
3
3
|
|
4
4
|
module PodsOrz
|
5
5
|
class PodOrzconfigParse
|
6
|
-
attr_accessor :app_release_version, :branch_author_suffix, :fix_pod_list, :is_all_binary, :static_lib_list, :will_package_list
|
6
|
+
attr_accessor :app_release_version, :branch_author_suffix, :fix_pod_list, :is_all_binary, :static_lib_list, :will_package_list,:remote_url_sourcecode,:remote_url_codespec,:file_devpods_name,:file_coderepo_name,:file_binaryrepo_name
|
7
7
|
|
8
8
|
def initialize(main_path)
|
9
9
|
orzconfig_path = File.expand_path("PodsOrzConfig.rb", main_path)
|
@@ -22,6 +22,21 @@ module PodsOrz
|
|
22
22
|
@branch_author_suffix = GitConfig::BRANCH_AUTHOR_SUFFIX
|
23
23
|
@branch_author_suffix = "" if @branch_author_suffix.nil?
|
24
24
|
|
25
|
+
@remote_url_sourcecode = GitConfig::REMOTE_URL_SOURCECODE
|
26
|
+
@remote_url_sourcecode = "" if @remote_url_sourcecode.nil?
|
27
|
+
|
28
|
+
@remote_url_codespec = GitConfig::REMOTE_URL_CODESPEC
|
29
|
+
@remote_url_codespec = "" if @remote_url_codespec.nil?
|
30
|
+
|
31
|
+
@file_devpods_name = FileConfig::FILE_DEVPODS_NAME
|
32
|
+
@file_devpods_name = "" if @file_devpods_name.nil?
|
33
|
+
|
34
|
+
@file_coderepo_name = FileConfig::FILE_CODEREPO_NAME
|
35
|
+
@file_coderepo_name = "" if @file_coderepo_name.nil?
|
36
|
+
|
37
|
+
@file_binaryrepo_name = FileConfig::FILE_BINARYREPO_NAME
|
38
|
+
@file_binaryrepo_name = "" if @file_binaryrepo_name.nil?
|
39
|
+
|
25
40
|
@fix_pod_list = $FIX_POD_LIST
|
26
41
|
@fix_pod_list = [] if @fix_pod_list.nil?
|
27
42
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require "podsorz/util/logger"
|
2
2
|
require "podsorz/core/PodFile/podfile_model"
|
3
|
+
require "podsorz/core/Config/pod_orzconfig_parse"
|
4
|
+
|
3
5
|
|
4
6
|
module PodsOrz
|
5
7
|
|
@@ -10,14 +12,14 @@ module PodsOrz
|
|
10
12
|
@main_path = main_path
|
11
13
|
@http_host = "http://192.168.6.127:8899"
|
12
14
|
@remote_binary_directory = "binary_pod"
|
13
|
-
|
15
|
+
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
14
16
|
self.parse_podfile_orz
|
15
17
|
end
|
16
18
|
|
17
19
|
def filter_binary_pod_models()
|
18
20
|
filter_result_models = []
|
19
21
|
|
20
|
-
filter_strings = ["sourceVendorPods", "subspecPods", "
|
22
|
+
filter_strings = ["sourceVendorPods", "subspecPods", "ztPods"]
|
21
23
|
|
22
24
|
result_lines = []
|
23
25
|
|
@@ -104,7 +106,7 @@ module PodsOrz
|
|
104
106
|
pod_name_list.each do |podname|
|
105
107
|
@total_pod_models.map { |model|
|
106
108
|
if model.name.start_with? podname.to_s
|
107
|
-
model.path = "
|
109
|
+
model.path = "../#{@orzconfig_parse.file_devpods_name}/" + podname.to_s
|
108
110
|
end
|
109
111
|
}
|
110
112
|
end
|
@@ -115,7 +117,8 @@ module PodsOrz
|
|
115
117
|
pod_name_list.each do |podname|
|
116
118
|
@total_pod_models.map { |model|
|
117
119
|
if model.name.start_with? podname.to_s
|
118
|
-
|
120
|
+
# 替换为config参数
|
121
|
+
model.git = "#{@orzconfig_parse.remote_url_sourcecode}/" + podname.to_s + ".git"
|
119
122
|
model.branch = branch_name.to_s
|
120
123
|
end
|
121
124
|
}
|
@@ -6,10 +6,10 @@ module PodsOrz
|
|
6
6
|
attr_accessor :kx_pods_path, :orzconfig_parse
|
7
7
|
|
8
8
|
def initialize(main_path)
|
9
|
-
|
10
|
-
|
11
|
-
detect_kx_pods(main_path)
|
9
|
+
|
12
10
|
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
11
|
+
@kx_pods_path = File.expand_path("../#{@orzconfig_parse.file_devpods_name}", main_path)
|
12
|
+
detect_kx_pods(main_path)
|
13
13
|
end
|
14
14
|
|
15
15
|
def check_directory(main_path)
|
@@ -26,7 +26,7 @@ module PodsOrz
|
|
26
26
|
if result
|
27
27
|
pods_result = File.directory?(@kx_pods_path)
|
28
28
|
unless pods_result
|
29
|
-
Logger.warning("
|
29
|
+
Logger.warning("#{@orzconfig_parse.file_devpods_name} directory not exist, generate default directory")
|
30
30
|
FileUtils.mkdir_p(@kx_pods_path, :mode => 0777)
|
31
31
|
end
|
32
32
|
end
|
@@ -63,7 +63,7 @@ module PodsOrz
|
|
63
63
|
result = false if file_entries.empty?
|
64
64
|
result = false unless file_entries.include?(".git")
|
65
65
|
|
66
|
-
Logger.error("【#{pod}】 at #{pod_path} exist, but .git not work success, please manual check.")
|
66
|
+
Logger.error("【#{pod}】 at #{pod_path} exist, but .git not work success, please manual check.") unless result
|
67
67
|
else
|
68
68
|
result = clone_orz_pod(pod)
|
69
69
|
end
|
@@ -77,7 +77,8 @@ module PodsOrz
|
|
77
77
|
|
78
78
|
Logger.default("Start clone 【#{pod}】 Project...")
|
79
79
|
git_clone_content = ""
|
80
|
-
|
80
|
+
# 替换为config参数
|
81
|
+
IO.popen("git clone #{@orzconfig_parse.remote_url_sourcecode}/#{pod}.git #{pod_directory}", :err=>[:child, :out]) {|io|
|
81
82
|
git_clone_content = io.read
|
82
83
|
puts(git_clone_content)
|
83
84
|
is_clone_success = false if git_clone_content.to_s.include? "fatal"
|
@@ -13,7 +13,7 @@ module PodsOrz
|
|
13
13
|
def initialize(main_path)
|
14
14
|
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
15
15
|
|
16
|
-
kx_pods_path = File.expand_path("
|
16
|
+
kx_pods_path = File.expand_path("../#{@orzconfig_parse.file_devpods_name}", main_path)
|
17
17
|
@pods_git_operator = PodsOrz::PodsGitOperator.new(kx_pods_path, @orzconfig_parse.app_release_version, @orzconfig_parse.branch_author_suffix)
|
18
18
|
|
19
19
|
@podfile_io = PodsOrz::PodfileIO.new(main_path)
|
@@ -21,7 +21,7 @@ module PodsOrz
|
|
21
21
|
|
22
22
|
@pods_version = PodsOrz::PodsVersion.new(main_path)
|
23
23
|
|
24
|
-
@pods_repo = PodsOrz::PodsRepo.new()
|
24
|
+
@pods_repo = PodsOrz::PodsRepo.new(main_path)
|
25
25
|
end
|
26
26
|
|
27
27
|
#Switch Command --
|
@@ -477,7 +477,7 @@ module PodsOrz
|
|
477
477
|
command.join
|
478
478
|
|
479
479
|
command = Thread.new do
|
480
|
-
Open3.popen3("cd #{main_path};pod update
|
480
|
+
Open3.popen3("cd #{main_path};pod update") do |stdin , stdout , stderr, wait_thr|
|
481
481
|
while line = stdout.gets
|
482
482
|
puts line
|
483
483
|
end
|
@@ -1,13 +1,18 @@
|
|
1
1
|
require "podsorz/util/logger"
|
2
2
|
require 'open3'
|
3
|
+
require "podsorz/core/Config/pod_orzconfig_parse"
|
4
|
+
|
3
5
|
|
4
6
|
module PodsOrz
|
5
7
|
class PodsRepo
|
6
8
|
attr_accessor :repo_name, :repo_url
|
7
9
|
|
8
|
-
def initialize()
|
9
|
-
@repo_name = "kuxiu_specs"
|
10
|
-
|
10
|
+
def initialize(main_path)
|
11
|
+
# @repo_name = "kuxiu_specs"
|
12
|
+
# 替换成config配置参数
|
13
|
+
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
14
|
+
@repo_url = @orzconfig_parse.remote_url_codespec
|
15
|
+
@repo_name = @orzconfig_parse.file_coderepo_name
|
11
16
|
end
|
12
17
|
|
13
18
|
def check_repo_exist
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "podsorz/util/logger"
|
2
|
+
require "podsorz/core/Config/pod_orzconfig_parse"
|
2
3
|
|
3
4
|
|
4
5
|
module PodsOrz
|
@@ -6,7 +7,8 @@ module PodsOrz
|
|
6
7
|
attr_accessor :kx_pods_path
|
7
8
|
|
8
9
|
def initialize(main_path)
|
9
|
-
@
|
10
|
+
@orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
|
11
|
+
@kx_pods_path = File.expand_path("../#{@orzconfig_parse.file_devpods_name}", main_path)
|
10
12
|
end
|
11
13
|
|
12
14
|
def increase_pod_version(pod)
|
data/lib/podsorz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podsorz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xiangqi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -76,12 +76,13 @@ executables:
|
|
76
76
|
extensions: []
|
77
77
|
extra_rdoc_files: []
|
78
78
|
files:
|
79
|
+
- ".bundle/config"
|
79
80
|
- ".gitignore"
|
80
81
|
- ".rspec"
|
82
|
+
- ".vscode/launch.json"
|
81
83
|
- Gemfile
|
82
84
|
- Gemfile.lock
|
83
85
|
- LICENSE.txt
|
84
|
-
- Podfile
|
85
86
|
- README.md
|
86
87
|
- Rakefile
|
87
88
|
- bin/podsorz
|
@@ -116,6 +117,12 @@ files:
|
|
116
117
|
- lib/podsorz/util/logger.rb
|
117
118
|
- lib/podsorz/util/process_operator.rb
|
118
119
|
- lib/podsorz/version.rb
|
120
|
+
- pkg/podsorz-0.0.10.gem
|
121
|
+
- pkg/podsorz-0.0.11.gem
|
122
|
+
- pkg/podsorz-0.0.12.gem
|
123
|
+
- pkg/podsorz-0.0.7.gem
|
124
|
+
- pkg/podsorz-0.0.8.gem
|
125
|
+
- pkg/podsorz-0.0.9.gem
|
119
126
|
- podsorz.gemspec
|
120
127
|
homepage: https://github.com/XiangqiTu
|
121
128
|
licenses:
|
data/Podfile
DELETED
File without changes
|