podsorz 0.0.15 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 022ce6fd33aecf81ad9d8ba51d9d8f11b89474f7006d878c52282915f0d1a72e
4
- data.tar.gz: a0e815198dcd4c8f84b9c4f8f092686fa06fcede62e0cf1659cd330a4b6205fc
3
+ metadata.gz: 2f9a1be896ca26ca6fa5d77c136e1c3b27a5add1f1e9b881865d3bb934ecb7b6
4
+ data.tar.gz: 0300d610bd8baf518e6a1f669ac6c181cdfcbb822f0d786b623df63a0e80dcc0
5
5
  SHA512:
6
- metadata.gz: 7a8e91ceb713fbd15f05e0050b38a2dc253ff74597506ea979ff2ee326ee6c65e4d328ae5a3d60ce54fac7a896cb9991663b5d9ab21ea02c3aa3f47859d08a85
7
- data.tar.gz: 9f69b4f781d23ade25e4abf3448b413691c398d7b95a74393bd5fd0e76abd0033bd73f9003e27c5c6c23c3951e9b7a262f752d8414af0d72a7a6d1595e54fc25
6
+ metadata.gz: 2793f97127fa2e654753a188543d9dee46f6c66e3ff9b081f4266e77b1a842f1a45025b2434261b65c5697807d0cd563a122d2ff84d0ea40d2456df5860a13e8
7
+ data.tar.gz: dcc5abc81395accba5aeae6654e369265a8916d84c7cb6e08c8a3d08578da2b369da4c755691adf39a636bb2eb87cb9b04e658e3800d7a5804941dc618970e09
@@ -9,9 +9,11 @@ module PodsOrz
9
9
  attr_accessor :repo_name, :repo_url, :binary_server
10
10
 
11
11
  def initialize(main_path)
12
- @repo_name = "kuxiu_binary_specs"
13
- @repo_url = "git@gitlab.91banban.com:ios_pods/binary-specs.git"
14
12
  @orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
13
+
14
+ @repo_name = @orzconfig_parse.file_binaryrepo_name
15
+ @repo_url = @orzconfig_parse.remote_url_binaryspec
16
+
15
17
  # 替换成config配置参数
16
18
  # @source_code_repo_url = "git@gitlab.91banban.com:ios_pods/Specs.git"
17
19
  @source_code_repo_url = @orzconfig_parse.remote_url_codespec
@@ -4,64 +4,66 @@
4
4
 
5
5
  #想要开发修改的的Pod
6
6
  $FIX_POD_LIST = [
7
- # "KXModuleOrz",
8
- # "KXModuleQuestionRepo",
9
- ]
10
-
11
-
12
- module GitConfig
13
- #App 当前版本
14
- APP_RELEASE_VERSION = "2.1.2"
15
-
16
- #作者姓名xiangqi简写
17
- BRANCH_AUTHOR_SUFFIX = "yyt"
18
-
19
-
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'
7
+ # "AFNetworking",
8
+ ]
29
9
 
30
- end
31
-
32
- module FileConfig
33
- #开发pods组件时仓库名称(需要与主工程同一级文件夹)
34
- FILE_DEVPODS_NAME = 'zt_pods'
35
-
36
- #ztPods/kxPods下的Pod源码库打包成二进制库相关 需要用到该行标识注释
37
- FILE_PACKAGE_FILTER_MARK = 'ztPods'
38
10
 
39
- #与cocoapods同一级的私有repo仓库文件夹名称
40
- FILE_CODEREPO_NAME = "ZhuiTaRepo"
11
+ module GitConfig
12
+ #App 当前版本
13
+ APP_RELEASE_VERSION = "1.1.4"
41
14
 
42
- #与cocoapods同一级的私有二进制 repo仓库文件夹名称
43
- FILE_BINARYREPO_NAME = "ZhuiTaRepo"
15
+ #作者姓名xiangqi简写
16
+ BRANCH_AUTHOR_SUFFIX = "xq"
44
17
 
45
- end
46
18
 
47
19
 
48
-
49
-
50
-
51
- #############
52
- #打包人员专用
53
- #############
54
-
55
- #------Binary Static library ------#
56
- #是否全部Pod以二进制静态库加载,false代表以源码显示【打包机】请用源码
57
- $is_all_binary = false
58
- #当is_all_binary = false 所有pod即将显示源码时,仍然希望部分Pod二进制静态库加载
59
- $static_lib_list = [
60
- # "AFNetworking",
61
- ]
62
-
63
- #------Package Action------#
64
- #当is_all_binary = false 并不是针对所有pod 打binary包,仍然希望部分pod打包成二进制静态库的Pod
65
- $will_package_list = [
66
- # "AFNetworking",
67
- ]
20
+ #App pods的远端仓库地址 源码
21
+ REMOTE_URL_SOURCECODE = 'git@gitlab.91banban.com:zhuita-ios/pod_group/pods'
22
+ #App podspec的发布地址仓库
23
+ REMOTE_URL_CODESPEC = 'git@gitlab.91banban.com:zhuita-ios/pod_group/specs.git'
24
+
25
+
26
+ #App 二进制存放地址 service
27
+ REMOTE_URL_SOURCEBINARY = 'http://192.168.6.127:8899'
28
+ #App 二进制 podspec的发布地址仓库
29
+ REMOTE_URL_BINARYSPEC = 'git@gitlab.91banban.com:zhuita-ios/pod_group/binary_specs.git'
30
+
31
+ end
32
+
33
+ module FileConfig
34
+ #开发pods组件时仓库名称(需要与主工程同一级文件夹)
35
+ FILE_DEVPODS_NAME = 'zt_pods'
36
+
37
+ #ztPods/kxPods下的Pod源码库打包成二进制库相关 需要用到该行标识注释
38
+ FILE_PACKAGE_FILTER_MARK = 'ztPods'
39
+
40
+ #与cocoapods同一级的私有repo仓库文件夹名称
41
+ FILE_CODEREPO_NAME = "zhuita_specs"
42
+
43
+ #与cocoapods同一级的私有二进制 repo仓库文件夹名称
44
+ FILE_BINARYREPO_NAME = "zhuita_binary_specs"
45
+
46
+ end
47
+
48
+
49
+
50
+
51
+
52
+ #############
53
+ #打包人员专用
54
+ #############
55
+
56
+ #------Binary Static library ------#
57
+ #是否全部Pod以二进制静态库加载,false代表以源码显示【打包机】请用源码
58
+ $is_all_binary = false
59
+ #当is_all_binary = false 所有pod即将显示源码时,仍然希望部分Pod二进制静态库加载
60
+ $static_lib_list = [
61
+ # "AFNetworking",
62
+ ]
63
+
64
+ #------Package Action------#
65
+ #当is_all_binary = false 并不是针对所有pod 打binary包,仍然希望部分pod打包成二进制静态库的Pod
66
+ $will_package_list = [
67
+ # "AFNetworking",
68
+ ]
69
+
@@ -3,7 +3,15 @@ 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,:remote_url_sourcecode,:remote_url_codespec,:file_devpods_name, :file_package_filter_mark, :file_coderepo_name,:file_binaryrepo_name
6
+ #Git Config
7
+ attr_accessor :fix_pod_list, :app_release_version, :branch_author_suffix
8
+ attr_accessor :remote_url_sourcecode,:remote_url_codespec, :remote_url_binary, :remote_url_binaryspec
9
+
10
+ #File Config
11
+ attr_accessor :file_devpods_name, :file_package_filter_mark, :file_coderepo_name,:file_binaryrepo_name
12
+
13
+ #Package
14
+ attr_accessor :is_all_binary, :static_lib_list, :will_package_list
7
15
 
8
16
  def initialize(main_path)
9
17
  orzconfig_path = File.expand_path("PodsOrzConfig.rb", main_path)
@@ -16,41 +24,25 @@ module PodsOrz
16
24
 
17
25
  require orzconfig_path
18
26
 
27
+ #GitConfig
28
+ @fix_pod_list = $FIX_POD_LIST
19
29
  @app_release_version = GitConfig::APP_RELEASE_VERSION
20
- @app_release_version = "" if @app_release_version.nil?
21
-
22
30
  @branch_author_suffix = GitConfig::BRANCH_AUTHOR_SUFFIX
23
- @branch_author_suffix = "" if @branch_author_suffix.nil?
24
-
25
31
  @remote_url_sourcecode = GitConfig::REMOTE_URL_SOURCECODE
26
- @remote_url_sourcecode = "" if @remote_url_sourcecode.nil?
27
-
28
32
  @remote_url_codespec = GitConfig::REMOTE_URL_CODESPEC
29
- @remote_url_codespec = "" if @remote_url_codespec.nil?
33
+ @remote_url_binary = GitConfig::REMOTE_URL_SOURCEBINARY;
34
+ @remote_url_binaryspec = GitConfig::REMOTE_URL_BINARYSPEC;
30
35
 
36
+ #FileConfig
31
37
  @file_devpods_name = FileConfig::FILE_DEVPODS_NAME
32
- @file_devpods_name = "" if @file_devpods_name.nil?
33
-
34
38
  @file_package_filter_mark = FileConfig::FILE_PACKAGE_FILTER_MARK
35
- @file_package_filter_mark = "" if @file_package_filter_mark.nil?
36
-
37
39
  @file_coderepo_name = FileConfig::FILE_CODEREPO_NAME
38
- @file_coderepo_name = "" if @file_coderepo_name.nil?
39
-
40
40
  @file_binaryrepo_name = FileConfig::FILE_BINARYREPO_NAME
41
- @file_binaryrepo_name = "" if @file_binaryrepo_name.nil?
42
-
43
- @fix_pod_list = $FIX_POD_LIST
44
- @fix_pod_list = [] if @fix_pod_list.nil?
45
41
 
42
+ #Package
46
43
  @is_all_binary = $is_all_binary
47
- @is_all_binary = false if @is_all_binary.nil?
48
-
49
44
  @static_lib_list = $static_lib_list
50
- @static_lib_list = [] if @static_lib_list.nil?
51
-
52
45
  @will_package_list = $will_package_list
53
- @will_package_list = [] if @will_package_list.nil?
54
46
  end
55
47
  end
56
48
  end
@@ -321,7 +321,7 @@ module PodsOrz
321
321
  is_release = current_branch.include? "release"
322
322
 
323
323
  if is_develop || is_release
324
-
324
+ return is_push_success
325
325
  end
326
326
 
327
327
  #feature
@@ -371,6 +371,7 @@ module PodsOrz
371
371
  merge_cmd_list = []
372
372
  merge_cmd_list << "cd #{pod_file_path}"
373
373
  merge_cmd_list << "git checkout #{base_on_branch}"
374
+ merge_cmd_list << "git pull --rebase"
374
375
  merge_cmd_list << "git merge #{current_branch} --no-ff --no-squash --no-edit"
375
376
  merge_cmd_list << "git push -u origin #{base_on_branch}"
376
377
  IO.popen(merge_cmd_list.join(";")) do |io|
@@ -8,8 +8,6 @@ module PodsOrz
8
8
  attr_accessor :repo_name, :repo_url
9
9
 
10
10
  def initialize(main_path)
11
- # @repo_name = "kuxiu_specs"
12
- # 替换成config配置参数
13
11
  @orzconfig_parse = PodsOrz::PodOrzconfigParse.new(main_path)
14
12
  @repo_url = @orzconfig_parse.remote_url_codespec
15
13
  @repo_name = @orzconfig_parse.file_coderepo_name
@@ -36,7 +36,8 @@ module PodsOrz
36
36
  has_branch = false
37
37
  IO.popen("cd '#{path}';git fetch --all;git branch -a") do |io|
38
38
  io.each do |line|
39
- has_branch = true if line.strip.eql? branch_name
39
+ # has_branch = true if line.strip.eql? branch_name
40
+ has_branch = true if line.to_s.chomp.strip.end_with? branch_name
40
41
  end
41
42
 
42
43
  io.close
@@ -1,3 +1,3 @@
1
1
  module PodsOrz
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.18"
3
3
  end
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.15
4
+ version: 0.0.18
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-29 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli