cocoapods-use-latest-tag 1.0.0 → 1.0.1
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/README.md +2 -2
- data/lib/cocoapods_use_latest_tag.rb +1 -1
- data/lib/pod/command/use_latest_tag.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a7c314ec3c88141a9e0dd994d1726446b3b26b9
|
4
|
+
data.tar.gz: c0cd7ddee1563b98d83be30e1b7b701fbe86d838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b0dab9022ae7d057f486be9ffe04528a57e5bdce3f8b15a9cf27cd37f61c496402f3a118556c635862390644e793a8e64a946f6943c802d444ce556d9e02a92
|
7
|
+
data.tar.gz: 455fc666ccce3a622f0b4b0778984502006dc66870f48e28a8e0d195d5628c76939ea99ac3b4e76a77f2ee2fb743b95cff384a32428d4a7bba0b0d071ccb4a9c
|
data/README.md
CHANGED
@@ -19,8 +19,8 @@ The symbol before each Pod name indicates the status of the Pod. A `~` indicates
|
|
19
19
|
Verbose mode shows a bit more detail:
|
20
20
|
|
21
21
|
$ pod use-latest-tag --verbose
|
22
|
-
KNConvergeBill
|
23
|
-
SuiNetworking
|
22
|
+
KNConvergeBill current_branch: master -> latest_tag: 2.0.3
|
23
|
+
SuiNetworking current_tag: 3.1.0 -> latest_tag: 3.1.3
|
24
24
|
[!] 2 Pods has been changed to use the latest tag. Please double check the Podfile's changes.
|
25
25
|
|
26
26
|
If no Pods are out of date, then the output looks like:
|
@@ -51,16 +51,16 @@ module Pod
|
|
51
51
|
next if latest_tag.empty?
|
52
52
|
|
53
53
|
exp = ""
|
54
|
-
|
54
|
+
current_version = ""
|
55
55
|
latest_version = "latest_tag: #{latest_tag}"
|
56
56
|
if target_pods[spec_name][:tag] != nil && target_pods[spec_name][:tag] != latest_tag
|
57
57
|
# preview use tag
|
58
58
|
exp = "/#{git_path}/s/:tag[ ]*=>[ ]*'[^']*'/:tag => '#{latest_tag}'/"
|
59
|
-
|
59
|
+
current_version = "current_tag: #{target_pods[spec_name][:tag]}"
|
60
60
|
elsif target_pods[spec_name][:branch] != nil
|
61
61
|
# preview use branch
|
62
62
|
exp = %(/#{git_path}/s/:branch[ ]*=>[ ]*'[^']*'/:tag => '#{latest_tag}'/)
|
63
|
-
|
63
|
+
current_version = "current_branch: #{target_pods[spec_name][:branch]}"
|
64
64
|
end
|
65
65
|
next if exp.empty?
|
66
66
|
|
@@ -72,7 +72,7 @@ module Pod
|
|
72
72
|
`#{command}`
|
73
73
|
|
74
74
|
# cache changed result
|
75
|
-
changed_result(spec_name,
|
75
|
+
changed_result(spec_name, current_version, latest_version)
|
76
76
|
end.compact
|
77
77
|
end
|
78
78
|
|
@@ -85,9 +85,9 @@ module Pod
|
|
85
85
|
return latest_tag
|
86
86
|
end
|
87
87
|
|
88
|
-
def changed_result(spec_name,
|
88
|
+
def changed_result(spec_name, current_version, latest_version)
|
89
89
|
if @check_command_verbose
|
90
|
-
"#{spec_name} #{
|
90
|
+
"#{spec_name} #{current_version} -> #{latest_version}"
|
91
91
|
else
|
92
92
|
"~#{spec_name}"
|
93
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-use-latest-tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- htxs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|