cocoapods-sync-podspecs 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pod/command/push-tag.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0de672055103fbe0dcfbf3403e20ffa9fd813bc1f38dd5b2b23a6e8dfecb682
4
- data.tar.gz: 635efb0ad6c7ffca1acc1ae81e4cbec295e11378266eda1c24bf4ca399d2a529
3
+ metadata.gz: f26259b60b12d37487fb3f5eed55e8425cb0536a12be09978700511be0899300
4
+ data.tar.gz: 3392666245c85972d731603e9e74c2acc3695d20c2df8943dbed280da65826ad
5
5
  SHA512:
6
- metadata.gz: 4b1faf7947b048860d32af8aff454bbcaa3bcae643220e7a29044dd7204a801438d123bf88aad75998a1a9d6b16f09b18c5f11956102efbe590c1bbda5d0e862
7
- data.tar.gz: ae17ba30a36e14d6ba36fde922748f2aa59c3ab034a6b55475a4929fd8585af39c6328cf622b928f8425ed12def267262056832233eb827a4d5f8ff90e3ba6c8
6
+ metadata.gz: 94c3e91eda44a7ec63a422b9c3b57965e80f8b512038b07a9bcef23050f8d8d67c72023c8709cb1d97576b8b170f1b5977eb1a4108a668da75a05b8acba97b06
7
+ data.tar.gz: 93da4d5eb7bd46239183212cf86ecc75e065286642ca09200d5eefae7cca54c4d7ae8d416a95e8256c997a3c6eda9236f4faac2cd3cec14f1285e9921b29b8b5
@@ -15,6 +15,7 @@ module Pod
15
15
 
16
16
  def self.options
17
17
  [
18
+ ['--commit-local', 'Make commit for bump version'],
18
19
  ['--push-remote', 'Perform the step of pushing REPO to its remote'],
19
20
  ['--stop-on-exists', 'Stop running when tag is existed'],
20
21
  ['--tag-on-change', 'Just push tag when podspec is changed'],
@@ -22,6 +23,7 @@ module Pod
22
23
  end
23
24
 
24
25
  def initialize(argv)
26
+ @commit_local = argv.flag?('commit-local', false)
25
27
  @tag_on_change = argv.flag?('tag-on-change', false)
26
28
  @stop_on_exists = argv.flag?('stop-on-exists', false)
27
29
  @push_remote = argv.flag?('push-remote', false)
@@ -67,8 +69,8 @@ module Pod
67
69
 
68
70
  # only commit if modified
69
71
  if pod_repo_git('status', '--porcelain').include?(podspec_name)
70
- pod_repo_git('add', '*.podspec')
71
- pod_repo_git('commit', '--no-verify', '-m', message)
72
+ pod_repo_git('add', '*.podspec') unless !@commit_local
73
+ pod_repo_git('commit', '--no-verify', '-m', message) unless !@commit_local
72
74
  push_pod_repo(name) unless !@push_remote
73
75
 
74
76
  pod_repo_git('tag', '-a', @tag_version, '-m', message)
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - quangmv