orientepodspecpush 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orientepodspecpush.rb +14 -7
- data/lib/orientepodspecpush/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df5099322774a7afbc58be5f2767f7348ca73fe34235a50444106bca7ec34001
|
4
|
+
data.tar.gz: e07b1fd67b38a773e830e46a0d64ceaecce0e7d794d9c9321607982d1bef0710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67444ac9352f505d03a2da8e4b8a7cb13e67459f6d7b5359b4bb215ca737b2c2e1833fa7e6475202b4dd53ba328b6b0b740a427a79425022844a3cba7def1369
|
7
|
+
data.tar.gz: 19447c5582f2eebc331a52c8da2103eaf7b71f5b6e5fe1378953870459daeaa635c0ee352a249aa2aebb5edd1e8310e70d1f85f3466fb8e8f3bea308d7f009e2
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -170,15 +170,22 @@ module Orientepodspecpush
|
|
170
170
|
#
|
171
171
|
# @podVersion = opts[:tag]
|
172
172
|
# @podVersionMessage = opts[:tagCommitMsg]
|
173
|
+
flag = true
|
173
174
|
if @podVersionMessage == nil
|
174
|
-
|
175
|
+
flag = system "git tag -a #{@podVersion} -m 'add new tag'"
|
175
176
|
else
|
176
|
-
|
177
|
+
flag = system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
177
178
|
end
|
179
|
+
if flag == false
|
180
|
+
puts "tag 已经存在"
|
181
|
+
exit
|
182
|
+
end
|
183
|
+
|
178
184
|
# system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
179
185
|
flag = system "git push --tags"
|
180
186
|
if flag == false
|
181
187
|
system "git tag -d #{@podVersion}"
|
188
|
+
puts "远程推送tag 失败"
|
182
189
|
exit
|
183
190
|
|
184
191
|
end
|
@@ -266,11 +273,11 @@ module Orientepodspecpush
|
|
266
273
|
opt :noPackage, "If set, no need to package"
|
267
274
|
end
|
268
275
|
|
269
|
-
puts "lint:#{opts[:lint]}"
|
270
|
-
puts "package:#{opts[:package]}"
|
271
|
-
puts "push:#{opts[:push]}"
|
272
|
-
puts "noPackage:#{opts[:noPackage]}"
|
273
|
-
puts "tag:#{opts[:tag]}"
|
276
|
+
# puts "lint:#{opts[:lint]}"
|
277
|
+
# puts "package:#{opts[:package]}"
|
278
|
+
# puts "push:#{opts[:push]}"
|
279
|
+
# puts "noPackage:#{opts[:noPackage]}"
|
280
|
+
# puts "tag:#{opts[:tag]}"
|
274
281
|
# Need these two
|
275
282
|
# Trollop::die :specRepo, "Spec Repo must be provided" if opts[:specRepo] == nil
|
276
283
|
Trollop::die :workspace, "Workspace path must be provided" if opts[:workspace] == nil
|