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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b607ec3b8f686bb9a11aa47b4ac83304012fd29fc8650f20c772a3c089eeef87
4
- data.tar.gz: ae5fb9b3a4e5925cf5da07a5483436fa806c0c394c90d7b249df9b032b6a9cb0
3
+ metadata.gz: df5099322774a7afbc58be5f2767f7348ca73fe34235a50444106bca7ec34001
4
+ data.tar.gz: e07b1fd67b38a773e830e46a0d64ceaecce0e7d794d9c9321607982d1bef0710
5
5
  SHA512:
6
- metadata.gz: ebf1e099a6e0c73c45e33c064cf824996c954c8d12ac03ac55afdf2aff1c8642dc161b19447436aaae6c5272868e36de51af417b2acc32b03b8f4a386f68e340
7
- data.tar.gz: 99a43f3cf02ac14b1c72e80eee3dee3c7a96b792866dfcda7032a68f40910abdcfbc2573b838fde77d0d6cfbaa485774ac9c612135e3f8b0448e675690c58770
6
+ metadata.gz: 67444ac9352f505d03a2da8e4b8a7cb13e67459f6d7b5359b4bb215ca737b2c2e1833fa7e6475202b4dd53ba328b6b0b740a427a79425022844a3cba7def1369
7
+ data.tar.gz: 19447c5582f2eebc331a52c8da2103eaf7b71f5b6e5fe1378953870459daeaa635c0ee352a249aa2aebb5edd1e8310e70d1f85f3466fb8e8f3bea308d7f009e2
@@ -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
- system "git tag -a #{@podVersion} -m 'add new tag'"
175
+ flag = system "git tag -a #{@podVersion} -m 'add new tag'"
175
176
  else
176
- system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
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
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientepodspecpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang