cocoapods-dependencies 0.0.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7c202218ea4aafd5b6efa9edf137ecb28e329d9
4
- data.tar.gz: 7c194e877a225af6f1433ad88d68ba3323526700
3
+ metadata.gz: 6c9c19bc3bf97c7d35f2e09189a3f5bab0bf4925
4
+ data.tar.gz: f75bcc3403b74a815d2fc83984759ff0911b8887
5
5
  SHA512:
6
- metadata.gz: 9c5ee9d5c77563bbe438f484ed6444aba514d903257d6883e04082eea06aefeb83fc93ccc06f037a5bf374fab94d0ee57f399336ef51e48170a9cf551dd27c0b
7
- data.tar.gz: 92d63cc47b33007ea3d99cf858e6c946a96a6946f93c0341908917d7c48a0c34786b2e64c159cfe9b85ae599d378ea85dd910ef7af99b08bba3cbb6d84fd9c10
6
+ metadata.gz: ad4920b1094fe247efea0cd3baa37f86d977a8788c3ece29a2023a002c7b32994ff7ec674b24fc8e4d665b82701027358f2afad5f517b725b61988d25479f2d6
7
+ data.tar.gz: 3bb0888f0226d4fa65d262b5194f4118ecf127ffc9dd392a413f1221d5645e6107605a0811bb4bfcfc5f48bc94ada80109d89ebbc503cc76786767c166488ce2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-dependencies (0.0.1)
4
+ cocoapods-dependencies (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # cocoapods-dependencies
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/cocoapods-dependencies.svg)](http://badge.fury.io/rb/cocoapods-dependencies)
4
+ [![Code Climate](https://codeclimate.com/github/segiddins/cocoapods-dependencies.png)](https://codeclimate.com/github/segiddins/cocoapods-dependencies)
5
+
3
6
  Shows a project's CocoaPod dependency graph.
4
7
 
5
8
  ## Installation
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Dependencies
3
- VERSION = "0.0.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -7,8 +7,18 @@ module Pod
7
7
  Shows the project's dependency graph.
8
8
  DESC
9
9
 
10
+ def self.options
11
+ [
12
+ ['--ignore-lockfile', 'whether the lockfile should be ignored when calculating the dependency graph'],
13
+ ].concat(super)
14
+ end
15
+
16
+ def initialize(argv)
17
+ @ignore_lockfile = argv.flag?('ignore-lockfile', false)
18
+ super
19
+ end
20
+
10
21
  def run
11
- verify_podfile_exists!
12
22
  UI.section 'Project Dependencies' do
13
23
  STDOUT.puts dependencies.to_yaml
14
24
  end
@@ -16,10 +26,14 @@ module Pod
16
26
 
17
27
  def dependencies
18
28
  @dependencies ||= begin
19
- podfile = config.podfile
20
- resolver = Resolver.new(config.sandbox, podfile, config.lockfile.dependencies)
21
- specs = resolver.resolve.values.flatten(1).uniq
22
- lockfile = Lockfile.generate(podfile, specs)
29
+ verify_podfile_exists!
30
+ analyzer = Installer::Analyzer.new(
31
+ config.sandbox,
32
+ config.podfile,
33
+ @ignore_lockfile ? nil : config.lockfile
34
+ )
35
+ specs = analyzer.analyze(false).specs_by_target.values.flatten(1)
36
+ lockfile = Lockfile.generate(config.podfile, specs)
23
37
  pods = lockfile.to_hash['PODS']
24
38
  end
25
39
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.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: 2014-04-14 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Shows a project's CocoaPod dependency graph.
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - Gemfile.lock
51
51
  - LICENSE.txt
@@ -65,18 +65,19 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.14
78
+ rubygems_version: 2.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Shows a project's CocoaPod dependency graph.
82
82
  test_files: []
83
+ has_rdoc: