DYAutomate 1.0.2 → 1.0.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
- SHA1:
3
- metadata.gz: 8cece690d31b9c48e92f8d2fbed11fde2acd5fd7
4
- data.tar.gz: 187b6d0fde6816001bf9cfb720f705ba78c404cd
2
+ SHA256:
3
+ metadata.gz: eee9ab638bb3f94d5f418cd1ed9f8576f3f627a175db34563940336d0052c131
4
+ data.tar.gz: ef5f2d200b78279663aeee72dca7cdc319e213e12d082321e93a65b888c882a6
5
5
  SHA512:
6
- metadata.gz: 91ec377a56e5c67bb1af469d3016847001571d120ba6ba4f5b1f545db51b5690b0c85c93f50633a117d42fea1af6b7e02b7035140e91d4a59fc6bca452332334
7
- data.tar.gz: d2eb99d791b057c03dd569daa97ea1fbd316b823901cc0f7a94c80f1d3769b8a329465d5d886edcccce9c34cb25b1755d19044d7e8bc4981280315d514054c66
6
+ metadata.gz: 99f860caef424bd3503649bdd98ea03a12d7664e447b75eb3e57e4288aee507c812b7c69c05baca78735f87347b365b133e1dce4b31ea8a61f19000e4a0c92dd
7
+ data.tar.gz: f951592fd69c67e4a9ca2ad67513a41bfccd5f6b9e53397b1a60a97b7dd119da37e41f01a4e16756ba525940726b03edc84f9c3a339691ade73a9f39c101ef01
@@ -0,0 +1,7 @@
1
+
2
+ module CoreConfig
3
+ Core_previte_repo_name = 'dy_repo_private_pods'
4
+ Core_previte_repo_url = 'git@code.aliyun.com:iOSPodRepos/dy_repo_private_pods.git#####https://github.com/CocoaPods/Specs.git'
5
+ Core_pod_git_url = "git@code.aliyun.com:iOSPrivatePods"
6
+ Core_env_str = "Core_pod_git_url=#{Core_pod_git_url} Core_previte_repo_url=#{Core_previte_repo_url}"
7
+ end
@@ -75,7 +75,11 @@ module DYAutomate
75
75
  if isTagOk
76
76
  #push 到repo仓库
77
77
  dy_update_repo
78
- isok = system "pod repo push #{@repoName} \
78
+
79
+ pp('私有库repo ->' + @repoName,1)
80
+ pp("环境变量 -->"+@env_str,1)
81
+
82
+ isok = system "#{@env_str} pod repo push #{@repoName} \
79
83
  --sources='master',#{@repoName} \
80
84
  --use-libraries \
81
85
  --allow-warnings \
@@ -6,15 +6,13 @@ module DYAutomate
6
6
 
7
7
  # self.abstract_command = true
8
8
  self.command = 'ver'
9
- self.summary = '''
10
- 修改podspec文件版本号
11
- 用法:
12
- `dj pod ver 1` 只升级一个小版本0.1.0 --> 0.1.1
13
- `dj pod ver 1 1` 升级一个小版本和一个大版本 0.1.0 --> 0.2.1
14
- `dj pod ver 0 1` 只升级一个大版本 0.1.0 --> 0.2.0
15
- '''
9
+ self.summary = "
10
+ 修改podspec文件版本号 `dj pod ver 1` 0.1.0 --> 0.1.1
11
+ `dj pod ver 1 1` 0.1.0 --> 0.2.1
12
+ `dj pod ver 0 1` 0.1.0 --> 0.2.0
13
+ "
16
14
  self.arguments = [
17
- CLAide::Argument.new('addVersion', false),
15
+ CLAide::Argument.new('addVersion', false,'升级一个小版本'),
18
16
  CLAide::Argument.new('addBigVersion', false)
19
17
  ]
20
18
 
@@ -42,7 +40,7 @@ module DYAutomate
42
40
  if @addBig.to_i > 0
43
41
  pp('增加一个大版本',1)
44
42
  new_v = get_version_big_new
45
- new_v = '0.14.0'
43
+
46
44
  fix_pod_version(new_v)
47
45
  end
48
46
  end
@@ -42,9 +42,7 @@ module DYAutomate
42
42
  end
43
43
 
44
44
  def do_install
45
- # system "rm -rf Podfile.lock"
46
- # system "rm -rf Pods/*"
47
- isOk = system "pod update --no-repo-update"
45
+ isOk = system "#{@env_str} pod update --no-repo-update"
48
46
  if isOk
49
47
  pp("pod install 成功",1)
50
48
  else
@@ -25,9 +25,6 @@ module DYAutomate
25
25
 
26
26
  def initialize(argv)
27
27
  @path = Dir.pwd
28
- # @path = '/Users/cdd/Documents/Dy/podsDemo/DYPodDemoA'
29
- # @repoName = CoreConfig::Core_previte_repo_name
30
- @repoName = 'dy_repo_private_pods'
31
28
  super
32
29
  end
33
30
 
@@ -150,7 +147,7 @@ module DYAutomate
150
147
  Dir.entries(path).each do |subDir|
151
148
  puts subDir
152
149
  unless excludeFiles.include?(subDir)
153
- system "pod repo update #{subDir}"
150
+ system "#{@env_str} pod repo update #{subDir}"
154
151
  end
155
152
  end
156
153
  end
@@ -81,7 +81,7 @@ module DYAutomate
81
81
  Dir.entries(path).each do |subDir|
82
82
  puts subDir
83
83
  unless excludeFiles.include?(subDir)
84
- system "pod repo update #{subDir}"
84
+ system "#{@evn_str} pod repo update #{subDir}"
85
85
  end
86
86
  end
87
87
  end
@@ -1,13 +1,12 @@
1
1
  require 'DYAutomate.rb'
2
2
  require 'version'
3
- # require 'CoreConfig'
3
+ require 'Core/CoreConfig'
4
4
 
5
5
  module DYAutomate
6
- # include CoreConfig
7
6
  require 'CLAide'
8
7
 
9
8
  class Command < CLAide::Command
10
-
9
+ include CoreConfig
11
10
  require 'Command/pod.rb'
12
11
  require 'Command/workspace.rb'
13
12
  # require 'Command/dgit.rb'
@@ -22,6 +21,8 @@ module DYAutomate
22
21
 
23
22
  def initialize(argv)
24
23
  super
24
+ @repoName = CoreConfig::Core_previte_repo_name
25
+ @env_str = CoreConfig::Core_env_str
25
26
  end
26
27
 
27
28
  def self.options
@@ -1,3 +1,3 @@
1
1
  module DYAutomate
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.4"
3
3
  end
data/lib/DYAutomate.rb CHANGED
@@ -4,5 +4,4 @@ require 'DYAutomate/Command'
4
4
  module DYAutomate
5
5
  autoload :Command ,'DYAutomate/Command'
6
6
  require 'colored2'
7
-
8
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DYAutomate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 陈冬冬
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-24 00:00:00.000000000 Z
11
+ date: 2019-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,14 +104,14 @@ dependencies:
104
104
  name: cocoapods
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
107
+ - - '='
108
108
  - !ruby/object:Gem::Version
109
109
  version: 1.6.1
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - '='
115
115
  - !ruby/object:Gem::Version
116
116
  version: 1.6.1
117
117
  - !ruby/object:Gem::Dependency
@@ -138,6 +138,7 @@ extra_rdoc_files: []
138
138
  files:
139
139
  - README.md
140
140
  - bin/dj
141
+ - lib/Core/CoreConfig.rb
141
142
  - lib/DYAutomate.rb
142
143
  - lib/DYAutomate/Command.rb
143
144
  - lib/DYAutomate/Command/Git/tagAdd.rb
@@ -157,6 +158,7 @@ rdoc_options: []
157
158
  require_paths:
158
159
  - lib
159
160
  - lib/DYAutomate
161
+ - lib/Core
160
162
  required_ruby_version: !ruby/object:Gem::Requirement
161
163
  requirements:
162
164
  - - ">="
@@ -169,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
171
  version: '0'
170
172
  requirements: []
171
173
  rubyforge_project:
172
- rubygems_version: 2.6.14
174
+ rubygems_version: 2.7.8
173
175
  signing_key:
174
176
  specification_version: 4
175
177
  summary: 自动化工具