cocoapods-dependencies 1.0.0 → 1.1.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
- SHA1:
3
- metadata.gz: 3f5767100172d89085e18f7773ca61a3c4b4712b
4
- data.tar.gz: cb7afd15a19843ec95d0e2469df8293f693f8f4a
2
+ SHA256:
3
+ metadata.gz: 508ecb388a3c6d9329a1f0a697eaa88f6c6b2d64ecde8c9c25e8f1a562f22c45
4
+ data.tar.gz: 5d6fbb58d015dc076e2f3404796ca323d0797753b0a573aba198c4ac95025bfb
5
5
  SHA512:
6
- metadata.gz: 6acf1c18b41f1866f512547a63350bbd252de81568079eb7a0becf7c9b33cc1ef83686d6fc068b1a512c7f65f86e5e5a78e3a623c27e9571306a29638577c0b2
7
- data.tar.gz: f139bc06c6faa9615edf6cd2ed61a874068a77b7ca6af93373b4bf92352e3c58e2bcd13d9b7793f601f0c6923e7a4b6cb24a3662d421b8f16927c1ed150226bf
6
+ metadata.gz: 9d249f057d4ed2eb1f50bf73fc738e3d501af1f54d4a0ac76420c71839956bc09a1e220c3dd68ee5848808ee0c3b8bdeb1f299b7105439ce4b85d7c1d64b9270
7
+ data.tar.gz: 59018e354d56bdb9ac85426e1a78be3a9da1679521a082f6063d7093c8528d70c7745f71cdc2bc835e55dd4dddddb289b7ef70f7bbc6ef3ba7482791194701cb
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in cocoapods-dependencies.gemspec
4
3
  gemspec
4
+
5
+ gem 'cocoapods', '~> 1.0'
data/Gemfile.lock CHANGED
@@ -1,22 +1,85 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-dependencies (1.0.0)
4
+ cocoapods-dependencies (1.1.0)
5
5
  ruby-graphviz (~> 1.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
+ CFPropertyList (2.3.5)
11
+ activesupport (4.2.10)
12
+ i18n (~> 0.7)
13
+ minitest (~> 5.1)
14
+ thread_safe (~> 0.3, >= 0.3.4)
15
+ tzinfo (~> 1.1)
16
+ claide (1.0.2)
17
+ cocoapods (1.3.1)
18
+ activesupport (>= 4.0.2, < 5)
19
+ claide (>= 1.0.2, < 2.0)
20
+ cocoapods-core (= 1.3.1)
21
+ cocoapods-deintegrate (>= 1.0.1, < 2.0)
22
+ cocoapods-downloader (>= 1.1.3, < 2.0)
23
+ cocoapods-plugins (>= 1.0.0, < 2.0)
24
+ cocoapods-search (>= 1.0.0, < 2.0)
25
+ cocoapods-stats (>= 1.0.0, < 2.0)
26
+ cocoapods-trunk (>= 1.2.0, < 2.0)
27
+ cocoapods-try (>= 1.1.0, < 2.0)
28
+ colored2 (~> 3.1)
29
+ escape (~> 0.0.4)
30
+ fourflusher (~> 2.0.1)
31
+ gh_inspector (~> 1.0)
32
+ molinillo (~> 0.5.7)
33
+ nap (~> 1.0)
34
+ ruby-macho (~> 1.1)
35
+ xcodeproj (>= 1.5.1, < 2.0)
36
+ cocoapods-core (1.3.1)
37
+ activesupport (>= 4.0.2, < 6)
38
+ fuzzy_match (~> 2.0.4)
39
+ nap (~> 1.0)
40
+ cocoapods-deintegrate (1.0.1)
41
+ cocoapods-downloader (1.1.3)
42
+ cocoapods-plugins (1.0.0)
43
+ nap
44
+ cocoapods-search (1.0.0)
45
+ cocoapods-stats (1.0.0)
46
+ cocoapods-trunk (1.3.0)
47
+ nap (>= 0.8, < 2.0)
48
+ netrc (~> 0.11)
49
+ cocoapods-try (1.1.0)
50
+ colored2 (3.1.2)
51
+ concurrent-ruby (1.0.5)
52
+ escape (0.0.4)
53
+ fourflusher (2.0.1)
54
+ fuzzy_match (2.0.4)
55
+ gh_inspector (1.0.3)
56
+ i18n (0.9.0)
57
+ concurrent-ruby (~> 1.0)
58
+ minitest (5.10.3)
59
+ molinillo (0.5.7)
60
+ nanaimo (0.2.3)
61
+ nap (1.1.0)
62
+ netrc (0.11.0)
10
63
  rake (10.4.2)
11
- ruby-graphviz (1.2.2)
64
+ ruby-graphviz (1.2.3)
65
+ ruby-macho (1.1.0)
66
+ thread_safe (0.3.6)
67
+ tzinfo (1.2.3)
68
+ thread_safe (~> 0.1)
69
+ xcodeproj (1.5.2)
70
+ CFPropertyList (~> 2.3.3)
71
+ claide (>= 1.0.2, < 2.0)
72
+ colored2 (~> 3.1)
73
+ nanaimo (~> 0.2.3)
12
74
 
13
75
  PLATFORMS
14
76
  ruby
15
77
 
16
78
  DEPENDENCIES
17
79
  bundler (~> 1.3)
80
+ cocoapods (~> 1.0)
18
81
  cocoapods-dependencies!
19
82
  rake
20
83
 
21
84
  BUNDLED WITH
22
- 1.13.1
85
+ 1.16.0.pre.3
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Dependencies
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ module Pod
14
14
  ['--ignore-lockfile', 'Whether the lockfile should be ignored when calculating the dependency graph'],
15
15
  ['--repo-update', 'Fetch external podspecs and run `pod repo update` before calculating the dependency graph'],
16
16
  ['--graphviz', 'Outputs the dependency graph in Graphviz format to <podspec name>.gv or Podfile.gv'],
17
- ['--image', 'Outputs the dependency graph as an image to <podsepc name>.png or Podfile.png'],
17
+ ['--image', 'Outputs the dependency graph as an image to <podspec name>.png or Podfile.png'],
18
18
  ].concat(super)
19
19
  end
20
20
 
@@ -38,13 +38,16 @@ module Pod
38
38
  if @podspec_name
39
39
  require 'pathname'
40
40
  path = Pathname.new(@podspec_name)
41
- if path.exist?
41
+ if path.file?
42
42
  @podspec = Specification.from_file(path)
43
43
  else
44
- @podspec = SourcesManager.
45
- search(Dependency.new(@podspec_name)).
46
- specification.
47
- subspec_by_name(@podspec_name)
44
+ sets = Config.
45
+ instance.
46
+ sources_manager.
47
+ search(Dependency.new(@podspec_name))
48
+ spec = sets && sets.specification
49
+ @podspec = spec && spec.subspec_by_name(@podspec_name)
50
+ raise Informative, "Cannot find `#{@podspec_name}`." unless @podspec
48
51
  end
49
52
  end
50
53
  if (@produce_image_output || @produce_graphviz_output) && Executable.which('dot').nil?
@@ -55,6 +58,9 @@ module Pod
55
58
 
56
59
  def run
57
60
  require 'yaml'
61
+ UI.title "Calculating dependencies" do
62
+ dependencies
63
+ end
58
64
  graphviz_image_output if @produce_image_output
59
65
  graphviz_dot_output if @produce_graphviz_output
60
66
  yaml_output
@@ -73,7 +79,7 @@ module Pod
73
79
  end
74
80
 
75
81
  lockfile = Lockfile.generate(podfile, specs, {})
76
- pods = lockfile.to_hash['PODS']
82
+ lockfile.to_hash['PODS']
77
83
  end
78
84
  end
79
85
 
@@ -81,13 +87,15 @@ module Pod
81
87
  @podfile ||= begin
82
88
  if podspec = @podspec
83
89
  platform = podspec.available_platforms.first
84
- platform_name, platform_version = platform.name, platform.deployment_target.to_s
85
- sources = SourcesManager.all.map(&:url)
90
+ platform_name = platform.name
91
+ platform_version = platform.deployment_target.to_s
92
+ source_urls = Config.instance.sources_manager.all.map(&:url).compact
86
93
  Podfile.new do
87
- install! :cocoapods, integrate_targets: false
88
- sources.each { |s| source s }
94
+ install! 'cocoapods', integrate_targets: false, warn_for_multiple_pod_sources: false
95
+ source_urls.each { |u| source(u) }
89
96
  platform platform_name, platform_version
90
97
  pod podspec.name, podspec: podspec.defined_in_file
98
+ target 'Dependencies'
91
99
  end
92
100
  else
93
101
  verify_podfile_exists!
@@ -140,11 +148,6 @@ module Pod
140
148
  Set.new(podfile.target_definitions.values.map { |t| t.dependencies.map { |d| d.name } }.flatten)
141
149
  end
142
150
 
143
- # Returns a [String] of the names of dependencies specified in the podspec.
144
- def podspec_dependencies
145
- @podspec.all_dependencies.map { |d| d.name }
146
- end
147
-
148
151
  # Returns a [String: [String]] containing resolved mappings from the name of a pod to an array of the names of its dependencies.
149
152
  def pod_to_dependencies
150
153
  dependencies.map { |d| d.is_a?(Hash) ? d : { d => [] } }.reduce({}) { |combined, individual| combined.merge!(individual) }
@@ -158,7 +161,7 @@ module Pod
158
161
 
159
162
  def yaml_output
160
163
  UI.title 'Dependencies' do
161
- UI.puts dependencies.to_yaml
164
+ UI.puts YAML.dump(dependencies)
162
165
  end
163
166
  end
164
167
 
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.0.0
4
+ version: 1.1.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: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2017-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.6.7
92
+ rubygems_version: 2.6.13
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Shows a project's CocoaPods dependency graph.