yk_command 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/yk_command/analyze/dependency_result.rb +40 -29
- data/lib/yk_command/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3654de283b134a3c4b10360a4872c22fafb987fe4b6e12a0b6683fd6ba8dad3
|
4
|
+
data.tar.gz: 06c0b726090008493cf5a466ae0fc3a94f2b3a4c1b4b306fa14df061f84755a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 554f47a3b5379fc22018f91b5c495877edc68ca1c11bd0b88acb4bb175468701115f59345438c996dc921c2ce9fd1cec8a9001f6e9e743824fc6d9ac456c1bc8
|
7
|
+
data.tar.gz: 153460163019b43b36f5cf4ea2dd060c96a9b7efe2a32a39e75919733e29efb6d8cbeee8314a1c6ac51cbd04e258c492a00fb97c4aa7d92eb27915f2cbefec55
|
data/Gemfile.lock
CHANGED
@@ -23,6 +23,28 @@ module YkCommand
|
|
23
23
|
@specifications = specifications
|
24
24
|
@pod_lock = pod_lock
|
25
25
|
@result = []
|
26
|
+
|
27
|
+
@local_pods = []
|
28
|
+
@yk_git_source_pods = []
|
29
|
+
@other_git_source_pods = []
|
30
|
+
@pod_lock.dependencies.each do |dep|
|
31
|
+
|
32
|
+
next unless !dep.external_source.nil?
|
33
|
+
|
34
|
+
if dep.external_source.include?(:path)
|
35
|
+
@local_pods.push dep.name
|
36
|
+
end
|
37
|
+
|
38
|
+
if dep.external_source.include?(:git)
|
39
|
+
if dep.external_source[:git].include?(YK)
|
40
|
+
@yk_git_source_pods.push dep.name
|
41
|
+
else
|
42
|
+
@other_git_source_pods.push dep.name
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
26
48
|
end
|
27
49
|
|
28
50
|
def find_info_in_lokfile
|
@@ -37,16 +59,14 @@ module YkCommand
|
|
37
59
|
map = {}
|
38
60
|
version = @pod_lock.version(pod_name).version
|
39
61
|
spec_repo_name = @pod_lock.spec_repo(pod_name)
|
40
|
-
is_local_dependency =
|
41
|
-
|
42
|
-
is_install_from_git_commit = !@pod_lock.checkout_options_for_pod_named(pod_name).nil?
|
62
|
+
is_local_dependency = @local_pods.include? pod_name
|
63
|
+
is_install_from_git_commit = @yk_git_source_pods.include? pod_name
|
43
64
|
dep_attribute_in_pod_file = find_info_in_specifications pod_name
|
44
|
-
pp "#{pod_name} #{spec_repo_name} #{version} local:#{is_local_dependency} ,
|
65
|
+
# pp "#{pod_name} #{spec_repo_name} #{version} local:#{is_local_dependency} ,git_commit: #{is_install_from_git_commit}"
|
45
66
|
map["name"] = pod_name
|
46
67
|
map["version"] = version
|
47
|
-
map["is_local_dependency"] =
|
48
|
-
map["
|
49
|
-
map["is_install_from_git_commit"] = is_install_from_git_commit.nil?
|
68
|
+
map["is_local_dependency"] = is_local_dependency
|
69
|
+
map["is_install_from_git_commit"] = is_install_from_git_commit
|
50
70
|
dep_attribute_in_pod_file.each do |k, v|
|
51
71
|
if SPECIFICATION_FILTER_KEYS.include?(k)
|
52
72
|
map[k] = v
|
@@ -64,29 +84,20 @@ module YkCommand
|
|
64
84
|
@result.to_json
|
65
85
|
end
|
66
86
|
|
67
|
-
def is_yk_dependency(name)
|
68
|
-
tag = false
|
69
|
-
|
70
|
-
@pod_lock.dependencies.each do |dep|
|
71
|
-
next unless dep.name == name && !dep.external_source.nil?
|
72
|
-
|
73
|
-
dep.external_source.each do |k, v|
|
74
|
-
tag = if dep.external_source.include?(:git)
|
75
|
-
dep.external_source[:git].include?(YK)
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
tag
|
80
|
-
end
|
81
87
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
88
|
+
#
|
89
|
+
#
|
90
|
+
# def is_pod_from_local(name)
|
91
|
+
# local_pods = []
|
92
|
+
# @pod_lock.dependencies.each do |dep|
|
93
|
+
# next unless dep.name == name && !dep.external_source.nil?
|
94
|
+
# if dep.external_source.include?(:path)
|
95
|
+
# local_pods.push dep.name
|
96
|
+
# end
|
97
|
+
#
|
98
|
+
# end
|
99
|
+
# local_pods.include? name
|
100
|
+
# end
|
90
101
|
|
91
102
|
def find_info_in_specifications(name)
|
92
103
|
map = {}
|
data/lib/yk_command/version.rb
CHANGED