cocoapods-dependencies-list 1.0.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 +7 -0
- data/.rubocop.yml +12 -0
- data/.ruby-version +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +146 -0
- data/LICENSE +21 -0
- data/README.md +69 -0
- data/Rakefile +22 -0
- data/lib/cocoapods_dependencies_list/pod/command/dependencies.rb +73 -0
- data/lib/cocoapods_dependencies_list/version.rb +5 -0
- data/lib/cocoapods_dependencies_list.rb +4 -0
- data/lib/cocoapods_plugin.rb +3 -0
- data/test/cocoapods_dependencies_list/pod/command/dependencies_test.rb +77 -0
- data/test/cocoapods_dependencies_list/version_test.rb +9 -0
- metadata +131 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0067dbe2db9cd3947c5f9a9af3d77aec99d2dfc8e4fa6cec126b4b8cec514a0a
|
|
4
|
+
data.tar.gz: 708f745b4f0be3f30387d59e0b4d3c40aaaebff35c8826723b9e898564c2f268
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 0d84e6cbb823f7d5202ec9125df308308edafbc50a000e271aff42240dae96e28c55787a8f0cb015f4d6b998504a9debf759f828acde315240a9642b5f4dca48
|
|
7
|
+
data.tar.gz: abb9968b5e36aa88b9c3b0948f91f81e92db16bbe4e408b197846e9d17073b094b611cec65699d4881444b13b9b2f01c7ce9408aa0a08c8144ccad57e69b2c44
|
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.3
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
cocoapods-dependencies-list (1.0.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
CFPropertyList (3.0.6)
|
|
10
|
+
rexml
|
|
11
|
+
activesupport (7.0.4.2)
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
i18n (>= 1.6, < 2)
|
|
14
|
+
minitest (>= 5.1)
|
|
15
|
+
tzinfo (~> 2.0)
|
|
16
|
+
addressable (2.8.1)
|
|
17
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
18
|
+
algoliasearch (1.27.5)
|
|
19
|
+
httpclient (~> 2.8, >= 2.8.3)
|
|
20
|
+
json (>= 1.5.1)
|
|
21
|
+
ast (2.4.2)
|
|
22
|
+
atomos (0.1.3)
|
|
23
|
+
claide (1.1.0)
|
|
24
|
+
cocoapods (1.12.0)
|
|
25
|
+
addressable (~> 2.8)
|
|
26
|
+
claide (>= 1.0.2, < 2.0)
|
|
27
|
+
cocoapods-core (= 1.12.0)
|
|
28
|
+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
29
|
+
cocoapods-downloader (>= 1.6.0, < 2.0)
|
|
30
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
31
|
+
cocoapods-search (>= 1.0.0, < 2.0)
|
|
32
|
+
cocoapods-trunk (>= 1.6.0, < 2.0)
|
|
33
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
|
34
|
+
colored2 (~> 3.1)
|
|
35
|
+
escape (~> 0.0.4)
|
|
36
|
+
fourflusher (>= 2.3.0, < 3.0)
|
|
37
|
+
gh_inspector (~> 1.0)
|
|
38
|
+
molinillo (~> 0.8.0)
|
|
39
|
+
nap (~> 1.0)
|
|
40
|
+
ruby-macho (>= 2.3.0, < 3.0)
|
|
41
|
+
xcodeproj (>= 1.21.0, < 2.0)
|
|
42
|
+
cocoapods-core (1.12.0)
|
|
43
|
+
activesupport (>= 5.0, < 8)
|
|
44
|
+
addressable (~> 2.8)
|
|
45
|
+
algoliasearch (~> 1.0)
|
|
46
|
+
concurrent-ruby (~> 1.1)
|
|
47
|
+
fuzzy_match (~> 2.0.4)
|
|
48
|
+
nap (~> 1.0)
|
|
49
|
+
netrc (~> 0.11)
|
|
50
|
+
public_suffix (~> 4.0)
|
|
51
|
+
typhoeus (~> 1.0)
|
|
52
|
+
cocoapods-deintegrate (1.0.5)
|
|
53
|
+
cocoapods-downloader (1.6.3)
|
|
54
|
+
cocoapods-plugins (1.0.0)
|
|
55
|
+
nap
|
|
56
|
+
cocoapods-search (1.0.1)
|
|
57
|
+
cocoapods-trunk (1.6.0)
|
|
58
|
+
nap (>= 0.8, < 2.0)
|
|
59
|
+
netrc (~> 0.11)
|
|
60
|
+
cocoapods-try (1.2.0)
|
|
61
|
+
colored2 (3.1.2)
|
|
62
|
+
concurrent-ruby (1.2.2)
|
|
63
|
+
debug (1.7.1)
|
|
64
|
+
irb (>= 1.5.0)
|
|
65
|
+
reline (>= 0.3.1)
|
|
66
|
+
escape (0.0.4)
|
|
67
|
+
ethon (0.16.0)
|
|
68
|
+
ffi (>= 1.15.0)
|
|
69
|
+
ffi (1.15.5)
|
|
70
|
+
fourflusher (2.3.1)
|
|
71
|
+
fuzzy_match (2.0.4)
|
|
72
|
+
gh_inspector (1.1.3)
|
|
73
|
+
httpclient (2.8.3)
|
|
74
|
+
i18n (1.12.0)
|
|
75
|
+
concurrent-ruby (~> 1.0)
|
|
76
|
+
io-console (0.6.0)
|
|
77
|
+
irb (1.6.3)
|
|
78
|
+
reline (>= 0.3.0)
|
|
79
|
+
json (2.6.3)
|
|
80
|
+
minitest (5.18.0)
|
|
81
|
+
molinillo (0.8.0)
|
|
82
|
+
nanaimo (0.3.0)
|
|
83
|
+
nap (1.1.0)
|
|
84
|
+
netrc (0.11.0)
|
|
85
|
+
parallel (1.22.1)
|
|
86
|
+
parser (3.2.1.1)
|
|
87
|
+
ast (~> 2.4.1)
|
|
88
|
+
public_suffix (4.0.7)
|
|
89
|
+
rack (3.0.5)
|
|
90
|
+
rainbow (3.1.1)
|
|
91
|
+
rake (13.0.6)
|
|
92
|
+
regexp_parser (2.7.0)
|
|
93
|
+
reline (0.3.2)
|
|
94
|
+
io-console (~> 0.5)
|
|
95
|
+
rexml (3.2.5)
|
|
96
|
+
rubocop (1.48.0)
|
|
97
|
+
json (~> 2.3)
|
|
98
|
+
parallel (~> 1.10)
|
|
99
|
+
parser (>= 3.2.0.0)
|
|
100
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
101
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
102
|
+
rexml (>= 3.2.5, < 4.0)
|
|
103
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
|
104
|
+
ruby-progressbar (~> 1.7)
|
|
105
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
106
|
+
rubocop-ast (1.27.0)
|
|
107
|
+
parser (>= 3.2.1.0)
|
|
108
|
+
rubocop-github (0.20.0)
|
|
109
|
+
rubocop (>= 1.37)
|
|
110
|
+
rubocop-performance (>= 1.15)
|
|
111
|
+
rubocop-rails (>= 2.17)
|
|
112
|
+
rubocop-performance (1.16.0)
|
|
113
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
114
|
+
rubocop-ast (>= 0.4.0)
|
|
115
|
+
rubocop-rails (2.18.0)
|
|
116
|
+
activesupport (>= 4.2.0)
|
|
117
|
+
rack (>= 1.1)
|
|
118
|
+
rubocop (>= 1.33.0, < 2.0)
|
|
119
|
+
ruby-macho (2.5.1)
|
|
120
|
+
ruby-progressbar (1.13.0)
|
|
121
|
+
typhoeus (1.4.0)
|
|
122
|
+
ethon (>= 0.9.0)
|
|
123
|
+
tzinfo (2.0.6)
|
|
124
|
+
concurrent-ruby (~> 1.0)
|
|
125
|
+
unicode-display_width (2.4.2)
|
|
126
|
+
xcodeproj (1.22.0)
|
|
127
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
|
128
|
+
atomos (~> 0.1.3)
|
|
129
|
+
claide (>= 1.0.2, < 2.0)
|
|
130
|
+
colored2 (~> 3.1)
|
|
131
|
+
nanaimo (~> 0.3.0)
|
|
132
|
+
rexml (~> 3.2.4)
|
|
133
|
+
|
|
134
|
+
PLATFORMS
|
|
135
|
+
ruby
|
|
136
|
+
|
|
137
|
+
DEPENDENCIES
|
|
138
|
+
cocoapods (~> 1.0)
|
|
139
|
+
cocoapods-dependencies-list!
|
|
140
|
+
debug
|
|
141
|
+
minitest (~> 5.0)
|
|
142
|
+
rake (~> 13.0)
|
|
143
|
+
rubocop-github (~> 0.20)
|
|
144
|
+
|
|
145
|
+
BUNDLED WITH
|
|
146
|
+
2.3.26
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Jon Ruskin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Cocoapods plugin to list dependencies with metadata
|
|
2
|
+
|
|
3
|
+
The cocoapods-dependencies-list enumerates dependencies from the current directory's `Podfile` and `Podfile.lock`, outputting metadata for all dependencies to the console.
|
|
4
|
+
|
|
5
|
+
This plugin was built primarily to support enumerating dependencies for [github/licensed](https://github.com/github/licensed). Dependencies are output in JSON format to make parsing and reading data easier for non-human callers.
|
|
6
|
+
|
|
7
|
+
Dependencies are output as a JSON map of Podfile targets to an array of dependencies for that target.
|
|
8
|
+
|
|
9
|
+
## Options
|
|
10
|
+
|
|
11
|
+
1. `--targets=<comma delimited list of Podfile targets>`'
|
|
12
|
+
- Default: none
|
|
13
|
+
- Description: The `targets` option is used to filter enumerated dependencies to only the specified targets.
|
|
14
|
+
1. `--fields=<comma delimited list of specification fields>`
|
|
15
|
+
- Default: `"name,version,summary,homepage,license"`
|
|
16
|
+
- Description: The `fields` option specifies which specification fields should be included in the JSON output.
|
|
17
|
+
1. `--include-path`, `--no-include-path`
|
|
18
|
+
- Default: `--no-include-path`
|
|
19
|
+
- Description: Whether to include the path to the dependency in the installation sandbox in the JSON output.
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
➜ cocoapods-dependencies-list ✗ (cd test/fixtures && bundle exec pod dependencies | jq)
|
|
25
|
+
{
|
|
26
|
+
"Pods": [],
|
|
27
|
+
"Pods-ios": [
|
|
28
|
+
{
|
|
29
|
+
"name": "Alamofire",
|
|
30
|
+
"version": "5.4.3",
|
|
31
|
+
"summary": "Elegant HTTP Networking in Swift",
|
|
32
|
+
"homepage": "https://github.com/Alamofire/Alamofire",
|
|
33
|
+
"license": {
|
|
34
|
+
"type": "MIT"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Chatto",
|
|
39
|
+
"version": "4.1.0",
|
|
40
|
+
"summary": "Chat framework in Swift",
|
|
41
|
+
"homepage": "https://github.com/badoo/Chatto",
|
|
42
|
+
"license": {
|
|
43
|
+
"type": "MIT"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
...
|
|
47
|
+
],
|
|
48
|
+
"Pods-iosTests": [
|
|
49
|
+
{
|
|
50
|
+
"name": "lottie-ios",
|
|
51
|
+
"version": "3.3.0",
|
|
52
|
+
"summary": "A library to render native animations from bodymovin json",
|
|
53
|
+
"homepage": "https://github.com/airbnb/lottie-ios",
|
|
54
|
+
"license": {
|
|
55
|
+
"type": "Apache",
|
|
56
|
+
"file": "LICENSE"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Contributing
|
|
64
|
+
|
|
65
|
+
Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org/) code of conduct.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "bundler/gem_tasks"
|
|
4
|
+
require "rake/testtask"
|
|
5
|
+
|
|
6
|
+
Rake::TestTask.new(:test) do |t|
|
|
7
|
+
# TODO: currently cocoapods-core, nanaimo and addressable emit many
|
|
8
|
+
# "warning: character class has duplicated range" warnings.
|
|
9
|
+
# silence them with the `-W0` ruby CLI option until dependent gems are
|
|
10
|
+
# updated to no longer emit these warnings
|
|
11
|
+
t.ruby_opts = %w{-W0}
|
|
12
|
+
|
|
13
|
+
t.libs << "test"
|
|
14
|
+
t.libs << "lib"
|
|
15
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
require "rubocop/rake_task"
|
|
19
|
+
|
|
20
|
+
RuboCop::RakeTask.new
|
|
21
|
+
|
|
22
|
+
task default: %i[test rubocop]
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "cocoapods"
|
|
4
|
+
|
|
5
|
+
module Pod
|
|
6
|
+
class Command
|
|
7
|
+
# A cocoapods plugin command `pod project dependencies` that outputs project dependency metadata
|
|
8
|
+
class Dependencies < Command
|
|
9
|
+
include Pod::Command::Options::ProjectDirectory
|
|
10
|
+
|
|
11
|
+
DEFAULT_FIELDS = %w{name version summary homepage license}
|
|
12
|
+
|
|
13
|
+
self.summary = "List cocoapod project dependencies with metadata."
|
|
14
|
+
|
|
15
|
+
self.description = <<-DESC
|
|
16
|
+
List cocoapod project dependencies with metadata.
|
|
17
|
+
DESC
|
|
18
|
+
|
|
19
|
+
def self.options
|
|
20
|
+
[
|
|
21
|
+
["--targets", "A comma-delimited list of podfile targets"],
|
|
22
|
+
["--fields", "A comma-delimited list of podspec fields to include"],
|
|
23
|
+
["--include-path", "Include the pod installation path in the installation sandbox"]
|
|
24
|
+
].concat(super)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
attr_reader :targets, :fields, :include_path
|
|
28
|
+
alias :include_path? :include_path
|
|
29
|
+
|
|
30
|
+
def initialize(argv)
|
|
31
|
+
@targets = argv.option("targets", "").split(",").map(&:strip)
|
|
32
|
+
@fields = argv.option("fields", "").split(",").map(&:strip)
|
|
33
|
+
@fields = DEFAULT_FIELDS if !@fields.any?
|
|
34
|
+
@include_path = argv.flag?("include-path", false)
|
|
35
|
+
|
|
36
|
+
super
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def run
|
|
40
|
+
verify_podfile_exists!
|
|
41
|
+
|
|
42
|
+
require "json"
|
|
43
|
+
UI.puts specs_by_target.to_json
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def specs_by_target
|
|
47
|
+
analyzer = Installer::Analyzer.new(config.sandbox, config.podfile, config.lockfile)
|
|
48
|
+
specs_by_target = config.with_changes(silent: true) { analyzer.analyze(false).specs_by_target }
|
|
49
|
+
|
|
50
|
+
if @targets.any?
|
|
51
|
+
specs_by_target = specs_by_target.select { |target, _| @targets.include? target.label }
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
specs_by_target.each do |target, specs|
|
|
55
|
+
specs.map! do |spec|
|
|
56
|
+
fields = requested_fields_from_spec(spec)
|
|
57
|
+
fields[:path] = config.sandbox.pod_dir(spec.name).to_s if include_path?
|
|
58
|
+
|
|
59
|
+
fields
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def requested_fields_from_spec(spec)
|
|
65
|
+
@fields.reduce({}) do |accum, field|
|
|
66
|
+
field = field.to_sym
|
|
67
|
+
accum[field] = spec.respond_to?(field) ? spec.send(field) : nil
|
|
68
|
+
accum
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "test_helper"
|
|
4
|
+
require "json"
|
|
5
|
+
|
|
6
|
+
class Pod::Command::DependenciesTest < Minitest::Test
|
|
7
|
+
def run_plugin(raw: false, options: [])
|
|
8
|
+
io = StringIO.new
|
|
9
|
+
Pod::UI.output_io = io
|
|
10
|
+
|
|
11
|
+
argv = CLAide::ARGV.new(["--project-directory=#{FIXTURES_DIRECTORY}", *options])
|
|
12
|
+
command = Pod::Command::Dependencies.new(argv)
|
|
13
|
+
command.run
|
|
14
|
+
|
|
15
|
+
io.pos = 0
|
|
16
|
+
result = io.read
|
|
17
|
+
raw ? result : JSON.parse(result)
|
|
18
|
+
ensure
|
|
19
|
+
io.close
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def test_it_prints_content_as_json_string_to_the_ui
|
|
23
|
+
content = run_plugin(raw: true)
|
|
24
|
+
assert content.is_a?(String)
|
|
25
|
+
|
|
26
|
+
assert JSON.parse(content).any?
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def test_it_lists_dependencies_by_target_with_default_fields
|
|
30
|
+
dependencies_by_target = run_plugin
|
|
31
|
+
assert dependencies_by_target
|
|
32
|
+
|
|
33
|
+
pods_ios_dependencies = dependencies_by_target["Pods-ios"]
|
|
34
|
+
assert pods_ios_dependencies
|
|
35
|
+
|
|
36
|
+
dependency = pods_ios_dependencies.find { |dep| dep["name"] == "Alamofire" }
|
|
37
|
+
assert dependency
|
|
38
|
+
|
|
39
|
+
assert_equal Pod::Command::Dependencies::DEFAULT_FIELDS.length, dependency.keys.length
|
|
40
|
+
Pod::Command::Dependencies::DEFAULT_FIELDS.each do |field|
|
|
41
|
+
assert dependency.has_key?(field)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def test_it_filters_targets_with_targets_option
|
|
46
|
+
dependencies_by_target = run_plugin(options: ["--targets=Pods,Pods-iosTests"])
|
|
47
|
+
|
|
48
|
+
assert dependencies_by_target.has_key?("Pods")
|
|
49
|
+
assert dependencies_by_target.has_key?("Pods-iosTests")
|
|
50
|
+
refute dependencies_by_target.has_key?("Pods-ios")
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def test_it_filters_targets_with_fields_option
|
|
54
|
+
dependencies_by_target = run_plugin(options: ["--fields=name,version"])
|
|
55
|
+
|
|
56
|
+
pods_ios_dependencies = dependencies_by_target["Pods-ios"]
|
|
57
|
+
assert pods_ios_dependencies
|
|
58
|
+
|
|
59
|
+
dependency = pods_ios_dependencies.find { |dep| dep["name"] == "Alamofire" }
|
|
60
|
+
assert dependency
|
|
61
|
+
|
|
62
|
+
assert_equal 2, dependency.keys.length
|
|
63
|
+
assert dependency.has_key?("name")
|
|
64
|
+
assert dependency.has_key?("version")
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def test_it_includes_pod_installation_paths_with_include_path_option
|
|
68
|
+
dependencies_by_target = run_plugin(options: ["--include-path"])
|
|
69
|
+
|
|
70
|
+
pods_ios_dependencies = dependencies_by_target["Pods-ios"]
|
|
71
|
+
assert pods_ios_dependencies
|
|
72
|
+
|
|
73
|
+
dependency = pods_ios_dependencies.find { |dep| dep["name"] == "Alamofire" }
|
|
74
|
+
assert dependency
|
|
75
|
+
assert dependency.has_key?("path")
|
|
76
|
+
end
|
|
77
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cocoapods-dependencies-list
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jon Ruskin
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: cocoapods
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: debug
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: minitest
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '5.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '5.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rake
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '13.0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '13.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rubocop-github
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0.20'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0.20'
|
|
83
|
+
description:
|
|
84
|
+
email:
|
|
85
|
+
- jon.ruskin@gmail.com
|
|
86
|
+
executables: []
|
|
87
|
+
extensions: []
|
|
88
|
+
extra_rdoc_files: []
|
|
89
|
+
files:
|
|
90
|
+
- ".rubocop.yml"
|
|
91
|
+
- ".ruby-version"
|
|
92
|
+
- Gemfile
|
|
93
|
+
- Gemfile.lock
|
|
94
|
+
- LICENSE
|
|
95
|
+
- README.md
|
|
96
|
+
- Rakefile
|
|
97
|
+
- lib/cocoapods_dependencies_list.rb
|
|
98
|
+
- lib/cocoapods_dependencies_list/pod/command/dependencies.rb
|
|
99
|
+
- lib/cocoapods_dependencies_list/version.rb
|
|
100
|
+
- lib/cocoapods_plugin.rb
|
|
101
|
+
- test/cocoapods_dependencies_list/pod/command/dependencies_test.rb
|
|
102
|
+
- test/cocoapods_dependencies_list/version_test.rb
|
|
103
|
+
homepage: https://github.com/jonabc/cocoapods-dependencies-list
|
|
104
|
+
licenses:
|
|
105
|
+
- MIT
|
|
106
|
+
metadata:
|
|
107
|
+
homepage_uri: https://github.com/jonabc/cocoapods-dependencies-list
|
|
108
|
+
source_code_uri: https://github.com/jonabc/cocoapods-dependencies-list
|
|
109
|
+
changelog_uri: https://github.com/jonabc/cocoapods-dependencies-list/releases
|
|
110
|
+
post_install_message:
|
|
111
|
+
rdoc_options: []
|
|
112
|
+
require_paths:
|
|
113
|
+
- lib
|
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
|
+
requirements:
|
|
116
|
+
- - ">="
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: 2.7.0
|
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '0'
|
|
124
|
+
requirements: []
|
|
125
|
+
rubygems_version: 3.3.26
|
|
126
|
+
signing_key:
|
|
127
|
+
specification_version: 4
|
|
128
|
+
summary: List dependencies from cocoapods in an easily parseable format.
|
|
129
|
+
test_files:
|
|
130
|
+
- test/cocoapods_dependencies_list/pod/command/dependencies_test.rb
|
|
131
|
+
- test/cocoapods_dependencies_list/version_test.rb
|