cocoapods-dependency 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +4 -4
- data/README.md +9 -10
- data/cocoapods-dependency.gemspec +1 -1
- data/lib/cocoapods-dependency/analyze.rb +6 -1
- data/lib/cocoapods-dependency/version.rb +1 -1
- 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: 06e9d2cc3603dedcc65d3a511dde130db41c6052
|
4
|
+
data.tar.gz: ea3881bbb48de4e9bed95d7f08ceda78a3c7b72d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aac99fbc541750009f178773f236d952af61adb75436fc9417e839c6860a63456269d2f7b2d1aee2c5684720beda04a7bf787917621aab71d26649fcab6f158a
|
7
|
+
data.tar.gz: 9bba5cc80b8f117a84f3af79e46a05a562d8b3cd569f49acc7140290ecf3386e9b76c1cc4313263eee1ef4f9dccf7f39ecdeba80698cfc03345fd95cb09a471b
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-dependency (0.1.
|
4
|
+
cocoapods-dependency (0.1.1)
|
5
5
|
cocoapods (~> 1.5)
|
6
6
|
|
7
7
|
GEM
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
fuzzy_match (~> 2.0.4)
|
40
40
|
nap (~> 1.0)
|
41
41
|
cocoapods-deintegrate (1.0.2)
|
42
|
-
cocoapods-downloader (1.2.
|
42
|
+
cocoapods-downloader (1.2.2)
|
43
43
|
cocoapods-plugins (1.0.0)
|
44
44
|
nap
|
45
45
|
cocoapods-search (1.0.0)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
85
|
rspec-support (~> 3.7.0)
|
86
86
|
rspec-support (3.7.1)
|
87
|
-
ruby-macho (1.
|
87
|
+
ruby-macho (1.3.1)
|
88
88
|
simplecov (0.16.1)
|
89
89
|
docile (~> 1.1)
|
90
90
|
json (>= 1.8, < 3)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
tins (1.16.3)
|
98
98
|
tzinfo (1.2.5)
|
99
99
|
thread_safe (~> 0.1)
|
100
|
-
xcodeproj (1.
|
100
|
+
xcodeproj (1.7.0)
|
101
101
|
CFPropertyList (>= 2.3.3, < 4.0)
|
102
102
|
atomos (~> 0.1.3)
|
103
103
|
claide (>= 1.0.2, < 2.0)
|
data/README.md
CHANGED
@@ -2,23 +2,22 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/X140Yu/cocoapods-dependency.svg?branch=master)](https://travis-ci.org/X140Yu/cocoapods-dependency)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/github/X140Yu/cocoapods-dependency/badge.svg?branch=master)](https://coveralls.io/github/X140Yu/cocoapods-dependency?branch=master)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/cocoapods-dependency.svg)](https://badge.fury.io/rb/cocoapods-dependency)
|
5
6
|
|
6
7
|
|
7
|
-
A
|
8
|
+
A CocoaPods plugin which analyzes the dependencies of any cocoapods projects. Subspecs are properly handled.
|
8
9
|
|
9
10
|
## [中文说明](https://zhaoxinyu.me/2018-08-20-analyze-pods-dependecy/)
|
10
11
|
|
11
|
-
## Installation
|
12
|
+
## Installation
|
12
13
|
|
13
|
-
|
14
|
+
$ gem install cocoapods-dependency
|
14
15
|
|
15
|
-
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
$ pod dependency
|
16
19
|
|
17
|
-
|
18
|
-
$ bundle
|
19
|
-
$ bin/analyze /path/to/podfile_dir
|
20
|
-
|
21
|
-
Note: the argument has to be a absolute path to the podfile directory.
|
20
|
+
The command should be executed in directory that contains podfile.
|
22
21
|
|
23
22
|
You will get a result like this,
|
24
23
|
|
@@ -49,8 +48,8 @@ It seems like this project has just a single dependency, but behind this pod, it
|
|
49
48
|
|
50
49
|
## TODO
|
51
50
|
|
51
|
+
- [X] Lift it to a cocoapods-plugin
|
52
52
|
- [ ] Pretty printed result
|
53
|
-
- [ ] Lift it to a cocoapods-plugin
|
54
53
|
|
55
54
|
## License
|
56
55
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = 'Analyzes the dependencies of any cocoapods projects.'
|
12
12
|
spec.description = 'Analyzes the dependencies of any cocoapods projects. Subspecs are properly handled.'
|
13
|
-
spec.homepage = 'https://
|
13
|
+
spec.homepage = 'https://github.com/X140Yu/cocoapods-dependency'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -40,8 +40,13 @@ module CocoapodsDependency
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.analyze_with_podfile(_podfile_dir_path, podfile, lockfile = nil)
|
43
|
+
if _podfile_dir_path
|
44
|
+
sandbox = Dir.mktmpdir
|
45
|
+
else
|
46
|
+
sandbox = Dir.pwd + '/Pods'
|
47
|
+
end
|
43
48
|
analyzer = Pod::Installer::Analyzer.new(
|
44
|
-
Pod::Sandbox.new(
|
49
|
+
Pod::Sandbox.new(sandbox),
|
45
50
|
podfile,
|
46
51
|
lockfile
|
47
52
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-dependency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xinyu Zhao
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,7 +108,7 @@ files:
|
|
108
108
|
- lib/cocoapods-dependency/command/dependency.rb
|
109
109
|
- lib/cocoapods-dependency/version.rb
|
110
110
|
- lib/cocoapods_plugin.rb
|
111
|
-
homepage: https://
|
111
|
+
homepage: https://github.com/X140Yu/cocoapods-dependency
|
112
112
|
licenses:
|
113
113
|
- MIT
|
114
114
|
metadata: {}
|