cocoapods-dongjia 1.1.2 → 1.1.7
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/lib/cocoapods-dongjia/command.rb +1 -0
- data/lib/cocoapods-dongjia/command/install.rb +0 -6
- data/lib/cocoapods-dongjia/command/open.rb +0 -6
- data/lib/cocoapods-dongjia/command/reinstall.rb +8 -1
- data/lib/cocoapods-dongjia/command/release.rb +40 -0
- data/lib/cocoapods-dongjia/command/strip.rb +9 -8
- data/lib/cocoapods-dongjia/gem_version.rb +3 -3
- data/lib/cocoapods_plugin.rb +18 -16
- data/lib/dongjia_binarization.rb +642 -0
- data/lib/dongjia_pods_iterator.rb +50 -22
- data/lib/dongjia_router.rb +2 -0
- data/lib/helper/Core/podfile/dsl.rb +16 -0
- data/lib/helper/{podfile_warnings.rb → installer.rb} +17 -3
- data/lib/helper/podfile.rb +60 -0
- metadata +41 -12
- data/lib/dongjia_branch_inspector.rb +0 -43
- data/lib/dongjia_scheme_manager.rb +0 -58
- data/lib/helper/podfile_local_importer.rb +0 -34
@@ -1,34 +0,0 @@
|
|
1
|
-
require_relative 'pod'
|
2
|
-
|
3
|
-
module Pod
|
4
|
-
|
5
|
-
class Podfile
|
6
|
-
|
7
|
-
# 导入工程目录下相对位置的 pod
|
8
|
-
@local_spec_importing = false
|
9
|
-
@local_spec_path = nil
|
10
|
-
def import_relative_in(path = './')
|
11
|
-
@local_spec_importing = true
|
12
|
-
@local_spec_path = path
|
13
|
-
yield if block_given?
|
14
|
-
@local_spec_path = nil
|
15
|
-
@local_spec_importing = false
|
16
|
-
end
|
17
|
-
|
18
|
-
original_pod = instance_method(:pod)
|
19
|
-
define_method(:pod) do |name = nil, *requirements|
|
20
|
-
if @local_spec_importing
|
21
|
-
path_cfg = { :path => "#{@local_spec_path}/#{Pod::repo_name(name)}" }
|
22
|
-
if requirements.length == 0
|
23
|
-
requirements = [path_cfg]
|
24
|
-
else
|
25
|
-
cfg = requirements.first
|
26
|
-
cfg.merge!(path_cfg) unless cfg.has_key?(:path)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
original_pod.bind(self).(name, *requirements)
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|