podfileDep 2.1.1 → 2.1.2
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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +8 -6
- 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: 98e0473afab8ed38d19dd5fe2f1483ba2d8bb592d364b9c29bceda3314c65d46
|
4
|
+
data.tar.gz: 37f8f5306318c471f98052415912563c397515f573aa4cde506343959bc0ee57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27250cce3354cc8af046c4a3c410ad6ef9e9b181973d8a6a00ed780af64871a710df85231e6ec1f3fafbbfc7c75663a67a55e890ed28cca25244aad4172775ed
|
7
|
+
data.tar.gz: 6cc16f12cd5690f8508f6b4949e6c45d272d7965a69927fcabda0dc65fa75a542d5a3504a2d395f38a88737c8860f8fb97291e34d1f7b4ab9144f8e9d9d42ec7
|
data/CHANGELOG.md
CHANGED
data/lib/podfileDep/version.rb
CHANGED
@@ -44,12 +44,10 @@ module Pod
|
|
44
44
|
end
|
45
45
|
class YamlManager
|
46
46
|
|
47
|
-
|
48
|
-
# {{"module_nameA":["module_nameA", module_nameB]},}
|
49
|
-
attr_accessor :local_yaml_dependencies
|
47
|
+
attr_accessor :local_yaml_deps
|
50
48
|
|
51
49
|
def initialize
|
52
|
-
@
|
50
|
+
@local_yaml_deps = []
|
53
51
|
end
|
54
52
|
|
55
53
|
# 单例方法
|
@@ -84,7 +82,6 @@ module Pod
|
|
84
82
|
# 读取yaml依赖
|
85
83
|
yaml_dependencies = {}
|
86
84
|
read_yaml_dependencies(podfile_third_party_yaml,false ,yaml_dependencies)
|
87
|
-
local_yaml_dependencies = yaml_dependencies #这里记录下
|
88
85
|
read_yaml_dependencies(podfile_module_yaml,false ,yaml_dependencies)
|
89
86
|
read_yaml_dependencies(podfile_local_yaml,true ,yaml_dependencies)
|
90
87
|
|
@@ -296,6 +293,11 @@ module Pod
|
|
296
293
|
binary = dependency['binary'] ? !!dependency['binary'] : true
|
297
294
|
version = (dependency['path'] or dependency['podspec']) ? nil :dependency['version']
|
298
295
|
|
296
|
+
# 记录
|
297
|
+
if yaml_name == Constants::PODFILE_LOCAL_YAML
|
298
|
+
self.local_yaml_deps << dependency['pod']
|
299
|
+
end
|
300
|
+
|
299
301
|
# 生成依赖对象
|
300
302
|
dependency = YamlRely.new(module_name = dependency['module'],
|
301
303
|
pod = dependency['pod'],
|
@@ -367,7 +369,7 @@ module Pod
|
|
367
369
|
end
|
368
370
|
|
369
371
|
def local_yaml_contain(module_name)
|
370
|
-
|
372
|
+
local_yaml_deps.include?(module_name)
|
371
373
|
end
|
372
374
|
|
373
375
|
# 是否需要快速编译
|