cocoapods-sync-podspecs 0.1.10 → 0.2.1

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 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bc4299d0cf481c90f94ce883854a33422a784fe7198839d73d3aea38cc9c484
4
- data.tar.gz: d728a82ab94e78bc206e02f68dad9c5aa64d8c3852f4542a191835db55885249
3
+ metadata.gz: f0de672055103fbe0dcfbf3403e20ffa9fd813bc1f38dd5b2b23a6e8dfecb682
4
+ data.tar.gz: 635efb0ad6c7ffca1acc1ae81e4cbec295e11378266eda1c24bf4ca399d2a529
5
5
  SHA512:
6
- metadata.gz: 3404d5303a94a6747df3d4678805ac6e14e27c051e6731310335cf1ad9fd5d3b9c8b3bdf243899f55a01d834159499f059aaaf42bd562a47452584a1ef5133e5
7
- data.tar.gz: f2094f2d8f1234db3f820cab0a21cec3e7e6866a019847e6b1f662c18ec35a17051868cb8dc9ac651eb1ae17d12fb93e6f2a8aafe7c79581a96cb76a9a865134
6
+ metadata.gz: 4b1faf7947b048860d32af8aff454bbcaa3bcae643220e7a29044dd7204a801438d123bf88aad75998a1a9d6b16f09b18c5f11956102efbe590c1bbda5d0e862
7
+ data.tar.gz: ae17ba30a36e14d6ba36fde922748f2aa59c3ab034a6b55475a4929fd8585af39c6328cf622b928f8425ed12def267262056832233eb827a4d5f8ff90e3ba6c8
@@ -15,16 +15,16 @@ module Pod
15
15
 
16
16
  def self.options
17
17
  [
18
- ['--local-only', 'Does not perform the step of pushing REPO to its remote'],
19
- ['--ignore-exists', 'Ignore exists tag'],
20
- ['--force', 'Force create new tag'],
18
+ ['--push-remote', 'Perform the step of pushing REPO to its remote'],
19
+ ['--stop-on-exists', 'Stop running when tag is existed'],
20
+ ['--tag-on-change', 'Just push tag when podspec is changed'],
21
21
  ].concat(super)
22
22
  end
23
23
 
24
24
  def initialize(argv)
25
- @force_create_tag = argv.flag?('force')
26
- @ignore_exists = argv.flag?('ignore-exists')
27
- @local_only = argv.flag?('local-only')
25
+ @tag_on_change = argv.flag?('tag-on-change', false)
26
+ @stop_on_exists = argv.flag?('stop-on-exists', false)
27
+ @push_remote = argv.flag?('push-remote', false)
28
28
  @tag_version = argv.shift_argument
29
29
  @current_repo_dir = ''
30
30
  super
@@ -51,7 +51,7 @@ module Pod
51
51
  # update_repo(spec.name, Pathname(spec_file).dirname)
52
52
 
53
53
  exists_tag = pod_repo_git('tag').include?(@tag_version)
54
- if exists_tag && !@ignore_exists
54
+ if exists_tag && @stop_on_exists
55
55
  raise Informative, "#{spec.name}: tag #{@tag_version} already exists"
56
56
  end
57
57
 
@@ -69,11 +69,11 @@ module Pod
69
69
  if pod_repo_git('status', '--porcelain').include?(podspec_name)
70
70
  pod_repo_git('add', '*.podspec')
71
71
  pod_repo_git('commit', '--no-verify', '-m', message)
72
- push_pod_repo(name) unless @local_only
72
+ push_pod_repo(name) unless !@push_remote
73
73
 
74
74
  pod_repo_git('tag', '-a', @tag_version, '-m', message)
75
75
  push_tag_repo
76
- elsif @force_create_tag
76
+ elsif !@tag_on_change
77
77
  check_repo_status(name, @current_repo_dir)
78
78
  update_repo(name, @current_repo_dir)
79
79
 
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.1.10
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - quangmv