dep_check 0.2.3 → 0.2.5

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: e048d339c0ad2f1ef8185bfb4bcddb6ea83ee6e6
4
- data.tar.gz: 36ea315d7c4ff354dfc955c6749cf0fa78a89edf
3
+ metadata.gz: 27d5b99e073cb81244b65916f7595bb5a22d6231
4
+ data.tar.gz: 876c563e0109b8b2781c55b627aced9dbbaf89df
5
5
  SHA512:
6
- metadata.gz: bc71450552368d233dd6882671eb41656b9aea7d2c47396fd91c9f050229a212740526af20f000b033c72ccb9a38eeee1941705db35fdb1bbea5ec1f12017958
7
- data.tar.gz: 4cfeacb7d35ecb885fd3bdc53ee600f8e3097ecd5c0e6a1d753884a3610654b7d0241cf8a70476c90ea10cf0ca9c5a85a69c7e1aad6058e368a074d498477513
6
+ metadata.gz: a0a86aefe285f94bc4b4e96e48f6472d7f8d90d96c20f7468c6a4fdaff26f342c619cbe58645074c85c30517096013653f5234ae80866198587bdf9a24932075
7
+ data.tar.gz: b2f065c45252f11fe3916a83a87051c5c808501428e663488491fec0a9c01d46f5c56cc34bf9ab512e37631f38e26a0cb9af9f1ad79535db6238356ed543350c
data/dep_check.gemspec CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_dependency "ruby-graphviz", "~> 1.2"
24
24
  spec.add_development_dependency "minitest", "~> 5.0"
25
- spec.add_dependency "cocoapods"
25
+ spec.add_dependency "cocoapods", "~> 1.0"
26
26
 
27
27
  end
@@ -42,9 +42,9 @@ module DepCheck
42
42
  @produce_graphviz_output = argv.flag?('graphviz', false)
43
43
  @produce_image_output = argv.flag?('image', false)
44
44
  if @repo_name
45
- @repo = Pod::SourcesManager.sources([@repo_name]).first
45
+ @repo = Pod::Config.instance.sources_manager.sources([@repo_name]).first
46
46
  else
47
- @repo = Pod::SourcesManager.sources(['master']).first
47
+ @repo = Pod::Config.instance.sources_manager.sources(['master']).first
48
48
  end
49
49
  super
50
50
  end
@@ -53,11 +53,11 @@ module DepCheck
53
53
  super
54
54
  if @podspec_name
55
55
  require 'pathname'
56
- path = Pathname.new(@podspec_name)
56
+ path = Pathname.new("#{@podspec_name}.podspec")
57
57
  if path.exist?
58
58
  @podspec = Pod::Specification.from_file(path)
59
59
  else
60
- @podspec = Pod::SourcesManager.search(Pod::Dependency.new(@podspec_name)).specification.subspec_by_name(@podspec_name)
60
+ @podspec = Pod::Config.instance.sources_manager.search(Pod::Dependency.new(@podspec_name)).specification.subspec_by_name(@podspec_name)
61
61
  end
62
62
  Pod::UI.puts "Analyzing #{@podspec} (in repo #{@repo})..."
63
63
  else
@@ -108,6 +108,7 @@ module DepCheck
108
108
  graph_dot_output(graphviz_data(builded,@podspec_name),@podspec_name) if @produce_graphviz_output
109
109
  Pod::UI.puts "Done. \n".blue
110
110
  {"circular" => !!circular_found ,
111
+ "root_spec_name" => @podspec_name,
111
112
  "circular_from" => circular_from ? circular_from : '' ,
112
113
  "circular_to" => circular_to ? circular_to : '' ,
113
114
  "circular_path" => circular_path ? circular_path : '',
@@ -120,7 +121,7 @@ module DepCheck
120
121
  #通过模块名称或者模块podspec文件路径 得到一个spec[Specification]对象
121
122
  def podspec_with_name(repo, name)
122
123
  if name
123
- path = Pathname.new(name)
124
+ path = Pathname.new("#{name}.podspec")
124
125
  if path.exist?
125
126
  podspec = Pod::Specification.from_file(path)
126
127
  else
@@ -1,3 +1,3 @@
1
1
  module DepCheck
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dep_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 卡迩
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-13 00:00:00.000000000 Z
11
+ date: 2016-10-08 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
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-graphviz
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cocoapods
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '1.0'
83
83
  description: Circular depency checker for cocoapods based project. Use Graphviz for
84
84
  visualize the dependency graph.
85
85
  email:
@@ -89,8 +89,8 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
93
- - .travis.yml
92
+ - ".gitignore"
93
+ - ".travis.yml"
94
94
  - CODE_OF_CONDUCT.md
95
95
  - Gemfile
96
96
  - LICENSE.txt
@@ -113,12 +113,12 @@ require_paths:
113
113
  - lib
114
114
  required_ruby_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []