cocoapods-dependencies 1.1.0 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 508ecb388a3c6d9329a1f0a697eaa88f6c6b2d64ecde8c9c25e8f1a562f22c45
4
- data.tar.gz: 5d6fbb58d015dc076e2f3404796ca323d0797753b0a573aba198c4ac95025bfb
3
+ metadata.gz: a2976669ac6c0073c47f9aa8dc23682f96bc6094ce7e7ab085372d6cc447bfe6
4
+ data.tar.gz: b20351c49307f27fa098310a6563d1e086296c0c9753a1174331c9af377039c1
5
5
  SHA512:
6
- metadata.gz: 9d249f057d4ed2eb1f50bf73fc738e3d501af1f54d4a0ac76420c71839956bc09a1e220c3dd68ee5848808ee0c3b8bdeb1f299b7105439ce4b85d7c1d64b9270
7
- data.tar.gz: 59018e354d56bdb9ac85426e1a78be3a9da1679521a082f6063d7093c8528d70c7745f71cdc2bc835e55dd4dddddb289b7ef70f7bbc6ef3ba7482791194701cb
6
+ metadata.gz: 4e84343b21452464d23a188abecf79a2a8fb467ddaa6140380f9d4b038ecbab363c339d879b2087f5a1c289105f71fdf746561b5b3376cd52138f1ae558128ff
7
+ data.tar.gz: ac4cd22684755e411d083d6f90922c3c47e03cf929bf6d3d1809f2588842fdb4052041c5ed70e7a665ecc6cdaadaba0595f28ff1aadea73904e237a4cfcea35d
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # CocoaPods Dependencies Changelog
2
+
3
+ ## 1.2.0 (2018-07-16)
4
+
5
+ ##### Enhancements
6
+
7
+ * Skip going through the analyzer when it will just spit out the existing Lockfile.
8
+ [Samuel Giddins](https://github.com/segiddins)
9
+ [#16](https://github.com/segiddins/cocoapods-dependencies/issues/16)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-dependencies (1.1.0)
4
+ cocoapods-dependencies (1.2.0)
5
5
  ruby-graphviz (~> 1.2)
6
6
 
7
7
  GEM
@@ -82,4 +82,4 @@ DEPENDENCIES
82
82
  rake
83
83
 
84
84
  BUNDLED WITH
85
- 1.16.0.pre.3
85
+ 1.16.2
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ task :spec do
4
+ # TODO: add specs?
5
+ end
@@ -8,7 +8,6 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Pod::Dependencies::VERSION
9
9
  spec.authors = ["Samuel E. Giddins"]
10
10
  spec.email = ["segiddins@segiddins.me"]
11
- spec.description = %q{Shows a project's CocoaPods dependency graph.}
12
11
  spec.summary = %q{Shows a project's CocoaPods dependency graph.}
13
12
  spec.homepage = "https://github.com/segiddins/cocoapods-dependencies"
14
13
  spec.license = "MIT"
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Dependencies
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -68,17 +68,22 @@ module Pod
68
68
 
69
69
  def dependencies
70
70
  @dependencies ||= begin
71
- analyzer = Installer::Analyzer.new(
72
- sandbox,
73
- podfile,
74
- @ignore_lockfile || @podspec ? nil : config.lockfile
75
- )
76
-
77
- specs = config.with_changes(skip_repo_update: !@repo_update) do
78
- analyzer.analyze(@repo_update || @podspec).specs_by_target.values.flatten(1)
71
+ lockfile = config.lockfile unless @ignore_lockfile || @podspec
72
+
73
+ if !lockfile || @repo_update
74
+ analyzer = Installer::Analyzer.new(
75
+ sandbox,
76
+ podfile,
77
+ lockfile
78
+ )
79
+
80
+ specs = config.with_changes(skip_repo_update: !@repo_update) do
81
+ analyzer.analyze(@repo_update || @podspec).specs_by_target.values.flatten(1)
82
+ end
83
+
84
+ lockfile = Lockfile.generate(podfile, specs, {})
79
85
  end
80
86
 
81
- lockfile = Lockfile.generate(podfile, specs, {})
82
87
  lockfile.to_hash['PODS']
83
88
  end
84
89
  end
@@ -161,7 +166,7 @@ module Pod
161
166
 
162
167
  def yaml_output
163
168
  UI.title 'Dependencies' do
164
- UI.puts YAML.dump(dependencies)
169
+ UI.puts YAMLHelper.convert(dependencies)
165
170
  end
166
171
  end
167
172
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel E. Giddins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-20 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
- description: Shows a project's CocoaPods dependency graph.
55
+ description:
56
56
  email:
57
57
  - segiddins@segiddins.me
58
58
  executables: []
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
+ - CHANGELOG.md
63
64
  - Gemfile
64
65
  - Gemfile.lock
65
66
  - LICENSE.txt
@@ -89,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
90
  version: '0'
90
91
  requirements: []
91
92
  rubyforge_project:
92
- rubygems_version: 2.6.13
93
+ rubygems_version: 2.7.7
93
94
  signing_key:
94
95
  specification_version: 4
95
96
  summary: Shows a project's CocoaPods dependency graph.