cocoapods-sync-podspecs 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pod/command/push-tag.rb +9 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f26259b60b12d37487fb3f5eed55e8425cb0536a12be09978700511be0899300
4
- data.tar.gz: 3392666245c85972d731603e9e74c2acc3695d20c2df8943dbed280da65826ad
3
+ metadata.gz: 148f916d6953be84369f617a1374967dd88df17cd2974bbaf426cbcc49a45493
4
+ data.tar.gz: c29cba13bae55991fe02e9546f8d0a35bd682c2ba129d3792052a0ee0be9fdb9
5
5
  SHA512:
6
- metadata.gz: 94c3e91eda44a7ec63a422b9c3b57965e80f8b512038b07a9bcef23050f8d8d67c72023c8709cb1d97576b8b170f1b5977eb1a4108a668da75a05b8acba97b06
7
- data.tar.gz: 93da4d5eb7bd46239183212cf86ecc75e065286642ca09200d5eefae7cca54c4d7ae8d416a95e8256c997a3c6eda9236f4faac2cd3cec14f1285e9921b29b8b5
6
+ metadata.gz: 022e140345753ad8ebaa9fe3a95654aa669b6ce39a5932740d9a020c71f96b77b92bce05c98d68020ac82810d81a6a8178fd60314529e1bcccd6f96460a8379f
7
+ data.tar.gz: 6bcf88f9265d7e9e1452c5f9c30107174fd613da45c5e5a2f04bb9069eb2e2b10c22b03270ff192b9d0fdab837337666361e019b99062eebb46fea659bdf4bdc
@@ -17,7 +17,7 @@ module Pod
17
17
  [
18
18
  ['--commit-local', 'Make commit for bump version'],
19
19
  ['--push-remote', 'Perform the step of pushing REPO to its remote'],
20
- ['--stop-on-exists', 'Stop running when tag is existed'],
20
+ ['--continue-if-exists', 'Continues running when tag is existed'],
21
21
  ['--tag-on-change', 'Just push tag when podspec is changed'],
22
22
  ].concat(super)
23
23
  end
@@ -25,7 +25,7 @@ module Pod
25
25
  def initialize(argv)
26
26
  @commit_local = argv.flag?('commit-local', false)
27
27
  @tag_on_change = argv.flag?('tag-on-change', false)
28
- @stop_on_exists = argv.flag?('stop-on-exists', false)
28
+ @continue_if_exists = argv.flag?('continue-if-exists', false)
29
29
  @push_remote = argv.flag?('push-remote', false)
30
30
  @tag_version = argv.shift_argument
31
31
  @current_repo_dir = ''
@@ -43,17 +43,23 @@ module Pod
43
43
  end
44
44
 
45
45
  def run
46
+ processedPaths = Array.new
47
+
46
48
  podspec_files.each do |spec_file|
47
49
  spec = Pod::Specification.from_file(spec_file)
48
50
 
49
51
  @tag_version = spec.version.to_s unless !@tag_version.nil?
50
52
  @current_repo_dir = Pathname(spec_file).dirname
51
53
 
54
+ next if processedPaths.include?(@current_repo_dir)
55
+
56
+ processedPaths.push(@current_repo_dir)
57
+
52
58
  # check_repo_status(spec.name, Pathname(spec_file).dirname)
53
59
  # update_repo(spec.name, Pathname(spec_file).dirname)
54
60
 
55
61
  exists_tag = pod_repo_git('tag').include?(@tag_version)
56
- if exists_tag && @stop_on_exists
62
+ if exists_tag && !@continue_if_exists
57
63
  raise Informative, "#{spec.name}: tag #{@tag_version} already exists"
58
64
  end
59
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-sync-podspecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - quangmv