gct 0.2.4 → 0.2.5

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: c64f6034ca2b00823e3686f280f4369c14a1dec01e5fe434a47484e6bf9e78e9
4
- data.tar.gz: bc8df2192929fe0b8b533bcf1917c23fcd8c1c0daf6302d8739759c416553684
3
+ metadata.gz: 53c7ada5071bbd9de394ab1ea7a2ea4abc3c4c41c4ff396082d69d132f0c1759
4
+ data.tar.gz: 85fbcd6384cc4b83e7a2c5773e5935b1f857e85aa752be3d4c82afb37c92d6c5
5
5
  SHA512:
6
- metadata.gz: 692f42d5380b36f7fba667a61e806edf9216e8e0bfd71c9c62d52da73e53ebcaaa1cc549eee8caa928e46fc8ac45a64050d4969d04cafa835b6fa4c41cfa6bd3
7
- data.tar.gz: d801d97670c0a915ddd670453aaadfa223e0c6c86e18b2d7bf8793d0bf72b361d587516706a69e2ba79c3916ee624302cada67dd49b5d1c1dc8fd28c96f2c099
6
+ metadata.gz: eff41d2c1e874150d59d86b37960d5a363d1f7ee05e66c1eef9ab917b1f03dca4722bf35b170481bd115de8e58943223b11e30201c6e9a186552b722492b2433
7
+ data.tar.gz: 0254aa3ecd8276b0d17023fc86ea1ad9f7b6a6e1e3718e12eba9d791a8e7e6cedbfe6145cd006de1f4675b9a976be818ed9d344c7e4b17e8d388115ef0aa383d
@@ -0,0 +1,33 @@
1
+ module Gct
2
+ class Command
3
+ class Repo < Command
4
+ class Add < Repo
5
+
6
+ self.summary = '添加repo'
7
+ self.description = <<-DESC
8
+ 添加repo到/Users/用户名/.cocoapods/repos/文件下
9
+ DESC
10
+
11
+ self.arguments = [
12
+ ]
13
+
14
+ def initialize(argv)
15
+ super
16
+ end
17
+
18
+ def validate!
19
+ super
20
+ end
21
+
22
+ def run
23
+ addRepo
24
+ end
25
+
26
+ def addRepo
27
+ puts "pod命令为:pod repo add iOSCRGTPodSource https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git".green
28
+ system "pod repo add iOSCRGTPodSource https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git"
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,33 @@
1
+ module Gct
2
+ class Command
3
+ class Repo < Command
4
+ class Push < Repo
5
+
6
+ self.summary = '推送podspec文件到私有repo'
7
+ self.description = <<-DESC
8
+ 推送podspec文件到私有repo
9
+ DESC
10
+
11
+ self.arguments = [
12
+ ]
13
+
14
+ def initialize(argv)
15
+ super
16
+ end
17
+
18
+ def validate!
19
+ super
20
+ end
21
+
22
+ def run
23
+ pushRepo
24
+ end
25
+
26
+ def pushRepo
27
+ puts "pod 命令为:pod repo push iOSCRGTPodSource --sources=#{Constant.GitURL}iOSCRGTPodSource.git --verbose --skip-import-validation --use-libraries --allow-warnings".green
28
+ system "pod repo push iOSCRGTPodSource --sources=#{Constant.GitURL}iOSCRGTPodSource.git --verbose --skip-import-validation --use-libraries --allow-warnings"
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,34 @@
1
+ module Gct
2
+ class Command
3
+ class Repo < Command
4
+ class Update < Repo
5
+
6
+ self.summary = '更新repo'
7
+ self.description = <<-DESC
8
+ 更新私有repo
9
+ DESC
10
+
11
+ self.arguments = [
12
+ ]
13
+
14
+ def initialize(argv)
15
+ super
16
+ end
17
+
18
+ def validate!
19
+ super
20
+ end
21
+
22
+ def run
23
+ updateRepo
24
+ end
25
+
26
+ def updateRepo
27
+ puts "pod命令为:pod repo update iOSCRGTPodSource".green
28
+ system "pod repo update iOSCRGTPodSource"
29
+ puts "如果找不到 iOSCRGTPodSource 文件,先执行gct repo add".green
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,15 @@
1
+ require 'gct/command/repo/add'
2
+ require 'gct/command/repo/update'
3
+ require 'gct/command/repo/push'
4
+
5
+ module Gct
6
+ class Command
7
+ class Repo < Command
8
+ self.abstract_command = true
9
+ self.summary = 'repo相关操作'
10
+ self.description = <<-DESC
11
+ 更新、添加repo
12
+ DESC
13
+ end
14
+ end
15
+ end
data/lib/gct/command.rb CHANGED
@@ -22,6 +22,7 @@ module Gct
22
22
  require 'gct/command/op'
23
23
  require 'gct/command/build'
24
24
  require 'gct/command/spec'
25
+ require 'gct/command/repo'
25
26
 
26
27
  self.abstract_command = true
27
28
  self.command = 'gct'
data/lib/gct/version.rb CHANGED
@@ -2,5 +2,5 @@ module Gct
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.2.4".freeze unless defined? Gct::VERSION
5
+ VERSION = "0.2.5".freeze unless defined? Gct::VERSION
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-12 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -135,6 +135,10 @@ files:
135
135
  - lib/gct/command/op/gems.rb
136
136
  - lib/gct/command/op/gitconf.rb
137
137
  - lib/gct/command/op/xcache.rb
138
+ - lib/gct/command/repo.rb
139
+ - lib/gct/command/repo/add.rb
140
+ - lib/gct/command/repo/push.rb
141
+ - lib/gct/command/repo/update.rb
138
142
  - lib/gct/command/spec.rb
139
143
  - lib/gct/command/spec/lint.rb
140
144
  - lib/gct/constant.rb