cocoapods-sync-podspecs 0.2.2 → 0.2.3
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.
- checksums.yaml +4 -4
- data/lib/pod/command/push-tag.rb +9 -3
- 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: 148f916d6953be84369f617a1374967dd88df17cd2974bbaf426cbcc49a45493
|
4
|
+
data.tar.gz: c29cba13bae55991fe02e9546f8d0a35bd682c2ba129d3792052a0ee0be9fdb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 022e140345753ad8ebaa9fe3a95654aa669b6ce39a5932740d9a020c71f96b77b92bce05c98d68020ac82810d81a6a8178fd60314529e1bcccd6f96460a8379f
|
7
|
+
data.tar.gz: 6bcf88f9265d7e9e1452c5f9c30107174fd613da45c5e5a2f04bb9069eb2e2b10c22b03270ff192b9d0fdab837337666361e019b99062eebb46fea659bdf4bdc
|
data/lib/pod/command/push-tag.rb
CHANGED
@@ -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
|
-
['--
|
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
|
-
@
|
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 &&
|
62
|
+
if exists_tag && !@continue_if_exists
|
57
63
|
raise Informative, "#{spec.name}: tag #{@tag_version} already exists"
|
58
64
|
end
|
59
65
|
|