cocoapods-sync-podspecs 0.1.7 → 0.1.8

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 +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfc8e42e680dd38829c65f59424181ca505c9fc3e7f052c8bc93a84dee0b4609
4
- data.tar.gz: c3296f5cb47eda5c14f5107413b0d6b1edd79ad58c938875d63eb332769c16df
3
+ metadata.gz: ae877a1d3ef35b5d178b455a22b872b0f5c839b3d45f2656c0ed427d7f0b7240
4
+ data.tar.gz: 0226fd6c81608a45fe4afc7761819e0061e7be7f7d77daea91b7a998c941aa19
5
5
  SHA512:
6
- metadata.gz: db993638153b0c4215666eacaae095784462dcf7b79d521e4e312ba4fb4d20c07ecfcd9b9944b1a55320b9fea8c55d5f4ee355b1584c30996a579bbadd7087bc
7
- data.tar.gz: f733256a0f7d53759555df4ffc1b64818572a6208c572f71dba84691f983ff481486875c939c3326cdcf72d6b0cc382d7837b2bd73dffccec1672328dd35dffc
6
+ metadata.gz: bdc83403e0034b61a89c9c2c45d123c5f96239ba8f7e81ae7d207fafede0aa2ae7ccbfc813ea113c50d3070042aa0b16fcf799c82e3adb315593902b640460ce
7
+ data.tar.gz: 0e9ab8479df3b55e7b45c97e11ce076cdee301b244361b8d7038a4aa6bad46c0890548643f70a080a7a6cb3ca66fa05ec2240c58f3e980a5be457da843ebb637
@@ -17,10 +17,12 @@ module Pod
17
17
  [
18
18
  ['--local-only', 'Does not perform the step of pushing REPO to its remote'],
19
19
  ['--ignore-exists', 'Ignore exists tag'],
20
+ ['--force-tag', 'Force create new tag'],
20
21
  ].concat(super)
21
22
  end
22
23
 
23
24
  def initialize(argv)
25
+ @force_tag = argv.flag?('force-tag')
24
26
  @ignore_exists = argv.flag?('ignore-exists')
25
27
  @local_only = argv.flag?('local-only')
26
28
  @tag_version = argv.shift_argument
@@ -69,6 +71,12 @@ module Pod
69
71
  pod_repo_git('commit', '--no-verify', '-m', message)
70
72
  push_pod_repo(name) unless @local_only
71
73
 
74
+ pod_repo_git('tag', '-a', @tag_version, '-m', message)
75
+ push_tag_repo
76
+ elsif @force_tag
77
+ check_repo_status(spec.name, @current_repo_dir)
78
+ update_repo(spec.name, @current_repo_dir)
79
+
72
80
  pod_repo_git('tag', '-a', @tag_version, '-m', message)
73
81
  push_tag_repo
74
82
  else
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - quangmv