cocoapods-dependency 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 3137ba3775705b9ef046dbe2660825ba27b8b194
4
- data.tar.gz: 1c09338b49757a6f47de41042504f8229e844dec
3
+ metadata.gz: 06e9d2cc3603dedcc65d3a511dde130db41c6052
4
+ data.tar.gz: ea3881bbb48de4e9bed95d7f08ceda78a3c7b72d
5
5
  SHA512:
6
- metadata.gz: 66ce4904c06df521456c93553a41f6bf21523ba10765b1dca13037104c907701f7105257066d1eb2a40ee00408707841a7e9be3af26ca02c8db936eb55290be5
7
- data.tar.gz: c5531128b6d8c1e256d12c3d290487f6e9ecb6b823c2cc74dd7c6c50d05fc99dffe95f49a1f488b8979d3729f9fb9c22a4d7ff835f48099d599e42e98fba0fad
6
+ metadata.gz: aac99fbc541750009f178773f236d952af61adb75436fc9417e839c6860a63456269d2f7b2d1aee2c5684720beda04a7bf787917621aab71d26649fcab6f158a
7
+ data.tar.gz: 9bba5cc80b8f117a84f3af79e46a05a562d8b3cd569f49acc7140290ecf3386e9b76c1cc4313263eee1ef4f9dccf7f39ecdeba80698cfc03345fd95cb09a471b
data/.gitignore CHANGED
@@ -11,3 +11,5 @@
11
11
 
12
12
  # rspec failure tracking
13
13
  .rspec_status
14
+
15
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-dependency (0.1.0)
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.1)
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.2.0)
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.6.0)
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 ruby gem which analyzes the dependencies of any cocoapods projects. Subspecs are properly handled.
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 & Usage
12
+ ## Installation
12
13
 
13
- Clone this repo,
14
+ $ gem install cocoapods-dependency
14
15
 
15
- And then execute:
16
+ ## Usage
17
+
18
+ $ pod dependency
16
19
 
17
- $ cd cocoapods-dependency
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://zhaoxinyu.me'
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(Dir.mktmpdir),
49
+ Pod::Sandbox.new(sandbox),
45
50
  podfile,
46
51
  lockfile
47
52
  )
@@ -1,4 +1,4 @@
1
1
  # :nocov:
2
2
  module CocoapodsDependency
3
- VERSION = "0.1.0"
3
+ VERSION = '0.1.1'
4
4
  end
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.0
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-09-14 00:00:00.000000000 Z
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://zhaoxinyu.me
111
+ homepage: https://github.com/X140Yu/cocoapods-dependency
112
112
  licenses:
113
113
  - MIT
114
114
  metadata: {}