cocoapods-sync-podspecs 0.2.1 → 0.2.2
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 +4 -2
- 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: f26259b60b12d37487fb3f5eed55e8425cb0536a12be09978700511be0899300
|
4
|
+
data.tar.gz: 3392666245c85972d731603e9e74c2acc3695d20c2df8943dbed280da65826ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c3e91eda44a7ec63a422b9c3b57965e80f8b512038b07a9bcef23050f8d8d67c72023c8709cb1d97576b8b170f1b5977eb1a4108a668da75a05b8acba97b06
|
7
|
+
data.tar.gz: 93da4d5eb7bd46239183212cf86ecc75e065286642ca09200d5eefae7cca54c4d7ae8d416a95e8256c997a3c6eda9236f4faac2cd3cec14f1285e9921b29b8b5
|
data/lib/pod/command/push-tag.rb
CHANGED
@@ -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)
|