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.
- checksums.yaml +4 -4
- data/lib/pod/command/push-tag.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae877a1d3ef35b5d178b455a22b872b0f5c839b3d45f2656c0ed427d7f0b7240
|
4
|
+
data.tar.gz: 0226fd6c81608a45fe4afc7761819e0061e7be7f7d77daea91b7a998c941aa19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdc83403e0034b61a89c9c2c45d123c5f96239ba8f7e81ae7d207fafede0aa2ae7ccbfc813ea113c50d3070042aa0b16fcf799c82e3adb315593902b640460ce
|
7
|
+
data.tar.gz: 0e9ab8479df3b55e7b45c97e11ce076cdee301b244361b8d7038a4aa6bad46c0890548643f70a080a7a6cb3ca66fa05ec2240c58f3e980a5be457da843ebb637
|
data/lib/pod/command/push-tag.rb
CHANGED
@@ -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
|