gct 0.3.0 → 0.3.1

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: 234020953df6dd3d1f9a2844c5fdd7b06129f901aac392e6d8a1695add614678
4
- data.tar.gz: 25d52ea8b3467f69db9865169d033fa042f46136b32dd25681e8ee16555ecc43
3
+ metadata.gz: a84196fa8fc576ea6565f0bf1b6610e8ae1a30169159897f7973759550ee8ab5
4
+ data.tar.gz: f33580c415c60c45c0ea316df746c08ec9679dec82cf65ead350edb2f8568204
5
5
  SHA512:
6
- metadata.gz: 6f2b677246254294754e4b8b25c15ba44df16e87abb513adeb9515463fc72f6bb523360d14608d7aebb83110511b31cf28357e4a731bc64df7b9f520a40985e3
7
- data.tar.gz: 12ecd76daed4b90b7ef2d29da084d7658fc33fed7282e486f3519db0962e78cfff6422c684cb7960f9a8eff50e6c57f0044e452ae15691e0a83f3122ccbebff6
6
+ metadata.gz: d5c3d8edd82716b9ef105fb83f44e9de5596994b4728bbb1b82708cefec3ae9de740cb4f3f7cffb2b906a2cb86ddc853068fb742759247cd4a09f7d1359fc895
7
+ data.tar.gz: 14e33ccafe4f6b76a711df5b7d80eba92f4239bd006692cee2eb22708b6817568fa27f2ac2fa0ad5907faa76d010a189535a1803a38decb8a1a3299fab868d42
@@ -9,25 +9,20 @@ module Gct
9
9
  DESC
10
10
 
11
11
  self.arguments = [
12
- CLAide::Argument.new('NAME', true),
13
12
  ]
14
13
 
15
14
  def initialize(argv)
16
- @name = argv.shift_argument
17
15
  super
18
- @additional_args = argv.remainder!
19
16
  end
20
17
 
21
18
  def validate!
22
19
  super
23
- help! 'A name for the Pod is required.' unless @name
24
- help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
25
- help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
26
- help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
27
20
  end
28
21
 
29
22
  def run
30
- puts "new ci".green
23
+ puts "init ci".green
24
+ cp_path = Pathname.new(__FILE__).parent + 'gitlab-ci.rb'
25
+ system "cp #{cp_path} .gitlab-ci.yml"
31
26
  end
32
27
  end
33
28
  end
@@ -0,0 +1,14 @@
1
+ stages:
2
+ - push
3
+
4
+ push_pod:
5
+ stage: push
6
+ script:
7
+ - echo "Starting lint and push podspec ..."
8
+ - gct repo update
9
+ - gct repo push
10
+ - echo "ending ..."
11
+ only:
12
+ - master
13
+ tags:
14
+ - gct
data/lib/gct/command.rb CHANGED
@@ -16,7 +16,7 @@ module Gct
16
16
 
17
17
  class Command < CLAide::Command
18
18
  require 'gct/command/create'
19
- # require 'gct/command/init'
19
+ require 'gct/command/init'
20
20
  # require 'gct/command/config'
21
21
  require 'gct/command/analyze'
22
22
  require 'gct/command/op'
data/lib/gct/version.rb CHANGED
@@ -2,5 +2,5 @@ module Gct
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.3.0".freeze unless defined? Gct::VERSION
5
+ VERSION = "0.3.1".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.3.0
4
+ version: 0.3.1
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-20 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,6 +130,7 @@ files:
130
130
  - lib/gct/command/create/third.rb
131
131
  - lib/gct/command/init.rb
132
132
  - lib/gct/command/init/ci.rb
133
+ - lib/gct/command/init/gitlab-ci.rb
133
134
  - lib/gct/command/init/unit.rb
134
135
  - lib/gct/command/op.rb
135
136
  - lib/gct/command/op/gems.rb
@@ -163,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
164
  - !ruby/object:Gem::Version
164
165
  version: '0'
165
166
  requirements: []
166
- rubyforge_project:
167
- rubygems_version: 2.7.7
167
+ rubygems_version: 3.0.3
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: '"gct ios 自动化脚本工具"'