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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6120b82dc53784ed6591a19d4da06d4a5be60f4
4
- data.tar.gz: c4a9df738438adc3d243ad35994ff7238135f659
3
+ metadata.gz: 65464185b4b96b6ed6cff7e611af525cf4940cb3
4
+ data.tar.gz: 62f7b4173ac497518a69b73abca28c37cfccdffe
5
5
  SHA512:
6
- metadata.gz: 61a17070955b956b1a28be48aee80db137a5c0b147eaef6d8fdce7952609f675139d3f45f14d21b67c3bb29367808a3bb1f417d6eddeb3c992e413a45e1de476
7
- data.tar.gz: 557070813bbe0f5dbe79f7dd95a58499ea3c8fac7dd24118b557295c8fc614df06e95b7b1f68f8bd8ca8a9a791fb60d25bab69c1e30f622cf11a11c215005b79
6
+ metadata.gz: cbb65304c8bd1877758e34ff09ae91574ce9dc2b0c7813bfeeac0a891c9213f0e5f64e34505cacc48445ea734c4a29fbfeafb7822a31e8915b3aee15185fc446
7
+ data.tar.gz: ad5f1aa90c307db7a9b67a3f5190c99886cca458e9b99503d9b255f258fd03bb8c2c4df6c9ef384f58e694b1213cd60a9255bfa8977149f9c1a3563692424c51
@@ -1,3 +1,3 @@
1
1
  module CocoapodsCheck
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -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
- print_results(results)
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.1
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: 2016-12-08 00:00:00.000000000 Z
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.6.8
106
+ rubygems_version: 2.5.2
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: "'check' plugin for CocoaPods"