yk_command 0.4.7 → 0.4.8

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
  SHA256:
3
- metadata.gz: c4e0f782818c147f0402b8b7139842c8030065818391319fb53c0ae57d544c67
4
- data.tar.gz: f5f010db87a2ba242658d18728cbb9575e3a9f0d027a21b9c67e3ac006eb1f09
3
+ metadata.gz: b3654de283b134a3c4b10360a4872c22fafb987fe4b6e12a0b6683fd6ba8dad3
4
+ data.tar.gz: 06c0b726090008493cf5a466ae0fc3a94f2b3a4c1b4b306fa14df061f84755a7
5
5
  SHA512:
6
- metadata.gz: cda7886d0ae837cab8f503bd3c58f1390c5cd96d4d62feeb94bb744c266e11674ae28740f27a95b0ff24253189428f6f2d42a1fdb1053f5b552c145341b302cd
7
- data.tar.gz: 86533c9b168b527136667553289b170feaf23b049699ab7035f32b08e68b8186cb8ee1708f2982141b93e01eba897be11285c293fa76523e28b19a3069152eaf
6
+ metadata.gz: 554f47a3b5379fc22018f91b5c495877edc68ca1c11bd0b88acb4bb175468701115f59345438c996dc921c2ce9fd1cec8a9001f6e9e743824fc6d9ac456c1bc8
7
+ data.tar.gz: 153460163019b43b36f5cf4ea2dd060c96a9b7efe2a32a39e75919733e29efb6d8cbeee8314a1c6ac51cbd04e258c492a00fb97c4aa7d92eb27915f2cbefec55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yk_command (0.4.7)
4
+ yk_command (0.4.8)
5
5
  bundler
6
6
  colored
7
7
  colored2
@@ -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 = is_pod_from_local pod_name
41
- is_yk_dependency = is_yk_dependency pod_name
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} ,yeahka:#{is_yk_dependency},git_commit: #{is_install_from_git_commit}"
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"] = is_local_dependency
48
- map["is_yk_dependency"] = is_yk_dependency
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
- def is_pod_from_local(name)
83
- tag = false
84
- @pod_lock.dependencies.each do |dep|
85
- next unless dep.name == name && !dep.external_source.nil?
86
- tag = dep.external_source.include?(:path)
87
- end
88
- tag
89
- end
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 = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YkCommand
4
- VERSION = '0.4.7'.freeze
4
+ VERSION = '0.4.8'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yk_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Major Tom