cocoapods-check 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods_check.rb +1 -1
- data/lib/pod/command/check.rb +18 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65464185b4b96b6ed6cff7e611af525cf4940cb3
|
4
|
+
data.tar.gz: 62f7b4173ac497518a69b73abca28c37cfccdffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb65304c8bd1877758e34ff09ae91574ce9dc2b0c7813bfeeac0a891c9213f0e5f64e34505cacc48445ea734c4a29fbfeafb7822a31e8915b3aee15185fc446
|
7
|
+
data.tar.gz: ad5f1aa90c307db7a9b67a3f5190c99886cca458e9b99503d9b255f258fd03bb8c2c4df6c9ef384f58e694b1213cd60a9255bfa8977149f9c1a3563692424c51
|
data/lib/cocoapods_check.rb
CHANGED
data/lib/pod/command/check.rb
CHANGED
@@ -35,7 +35,18 @@ module Pod
|
|
35
35
|
|
36
36
|
development_pods = find_development_pods(config.podfile)
|
37
37
|
results = find_differences(config, development_pods)
|
38
|
-
|
38
|
+
has_same_manifests = check_manifests(config)
|
39
|
+
print_results(results, has_same_manifests)
|
40
|
+
end
|
41
|
+
|
42
|
+
def check_manifests(config)
|
43
|
+
# Bail if the first time
|
44
|
+
return true unless config.sandbox.manifest
|
45
|
+
|
46
|
+
root_lockfile = config.lockfile.defined_in_file
|
47
|
+
pods_manifest = config.sandbox.manifest_path
|
48
|
+
|
49
|
+
File.read(root_lockfile) == File.read(pods_manifest)
|
39
50
|
end
|
40
51
|
|
41
52
|
def find_development_pods(podfile)
|
@@ -161,8 +172,12 @@ module Pod
|
|
161
172
|
end
|
162
173
|
end
|
163
174
|
|
164
|
-
def print_results(results)
|
165
|
-
return UI.puts "The Podfile's dependencies are satisfied" if results.empty?
|
175
|
+
def print_results(results, same_manifests)
|
176
|
+
return UI.puts "The Podfile's dependencies are satisfied" if results.empty? && same_manifests
|
177
|
+
|
178
|
+
unless same_manifests
|
179
|
+
raise Informative, 'The Podfile.lock does not match the Pods/Manifest.lock.'
|
180
|
+
end
|
166
181
|
|
167
182
|
if @check_command_verbose
|
168
183
|
UI.puts results.join("\n")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Di Iorio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.5.2
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: "'check' plugin for CocoaPods"
|