gct 0.1.7 → 0.1.8

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: a0146fb8d76545e805d5f3bc870a46ffd874aba5e6f82876b58d3b63ef849912
4
- data.tar.gz: 42095d713f0925e994fd615476ba8135308ef944dcacb3fcb21bc3937774301b
3
+ metadata.gz: 6e18bb9c83c63a7d74ae25f4daad3c587bfefa34b075f5ca86d4215364a5b439
4
+ data.tar.gz: 1d042cfe7f8e377d80dfe519edde7ea234a146335e545b09d460c661126031ca
5
5
  SHA512:
6
- metadata.gz: d5bef220dfea7cbd294a080e92ac777725c299dc54508f6a20ef3c5716fb7315cccadc70ccf7cafde5f82e4abdbdb221d80ef8d98d566599cc9259afd3ab3012
7
- data.tar.gz: 1d650cf0bcba9c6b28236d499b16856247d8ba9b23247701208c4a37661d365a0bd96efedf82d737ce437c366c9ce493ebf05e91692db10d92b115e4ee466cc1
6
+ metadata.gz: a46115162428815439183e1c394568553cb35ee695819f6b800b89e0899ed3bf7dc5707ea317ed83867e1146c62464b68a302ee3081d237f3a672a5a30db2fe3
7
+ data.tar.gz: 4c9b1c2717007e576ab04e1a3293c8c0fef91e504a8d56d04ee88094477ab02641e9575614cfffeffc2165d8ab47e730445f612fe279aebbe9b9a9af71026393
@@ -0,0 +1,32 @@
1
+ module Gct
2
+ class Command
3
+ class Spec < Command
4
+ class Lint < Spec
5
+
6
+ self.summary = '校验podspec文件的准确性'
7
+ self.description = <<-DESC
8
+ 校验podspec文件的准确性
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
+ check_pod_spec
24
+ end
25
+
26
+ def check_pod_spec
27
+ system "pod spec lint --sources='https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git' --use-libraries --allow-warnings"
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,13 @@
1
+ require 'gct/command/spec/lint'
2
+
3
+ module Gct
4
+ class Command
5
+ class Spec < Command
6
+ self.abstract_command = true
7
+ self.summary = 'podspec 相关操作'
8
+ self.description = <<-DESC
9
+ 提供校验podspec等功能
10
+ DESC
11
+ end
12
+ end
13
+ end
data/lib/gct/command.rb CHANGED
@@ -21,6 +21,7 @@ module Gct
21
21
  require 'gct/command/analyze'
22
22
  require 'gct/command/op'
23
23
  require 'gct/command/build'
24
+ require 'gct/command/spec'
24
25
 
25
26
  self.abstract_command = true
26
27
  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.1.7".freeze unless defined? Gct::VERSION
5
+ VERSION = "0.1.8".freeze unless defined? Gct::VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming
@@ -135,6 +135,8 @@ 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/spec.rb
139
+ - lib/gct/command/spec/lint.rb
138
140
  - lib/gct/constant.rb
139
141
  - lib/gct/version.rb
140
142
  homepage: https://gi-dev.ccrgt.com/ios-thirdpart/gct