cocoapods-developing-folder 0.5.1 → 0.5.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fec3c4079e85da225639a17557a343bf2f10279c5d583d06483f7e9338eb32b
|
4
|
+
data.tar.gz: 6a3323ba035c43dd613022107e9c226ee0ad3505f61ee015059f71b29c013bbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f9dc9ccfb023dbcf8fe4a59c410965f4ef5a66e81c61425dea4a8469b74039c0c246bec35c6bff12fb8f30dafc5936a59f3cb6e5f8744c2ba750cfc4ae7ac23
|
7
|
+
data.tar.gz: f041955f6f22fd47fb35585bb233d45e898922a5f525c04af5fb63a786fda48743749eecfc842895b503ac06e471d8341eafb2badfbf0a418fcfa367992deee3
|
data/README.md
CHANGED
@@ -28,6 +28,12 @@ Use `local_pod` just like `pod` keyword. No need to adding path. E.g.
|
|
28
28
|
local_pod "Evangelion" # no need for `:path => "modules/Evangelion"`
|
29
29
|
```
|
30
30
|
|
31
|
+
It will search your project root path. If you want smaller or larger search range, set `local_pod_searching_root`, e.g.
|
32
|
+
``` ruby
|
33
|
+
# in the podfile
|
34
|
+
local_pod_searching_root "../Libs"
|
35
|
+
```
|
36
|
+
|
31
37
|
#### 🔸 Import all local pods in specific folder
|
32
38
|
|
33
39
|
Use `folder` just like `pod` keyword. (In fact, they are just ruby functions)
|
@@ -1,6 +1,20 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
require_relative 'utiltiy'
|
3
3
|
|
4
|
+
module Pod
|
5
|
+
|
6
|
+
class_attr_accessor :local_pod_DSL_root_path
|
7
|
+
|
8
|
+
class Podfile
|
9
|
+
|
10
|
+
def local_pod_searching_root(path)
|
11
|
+
Pod.local_pod_DSL_root_path = path
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
|
4
18
|
module Pod
|
5
19
|
class Podfile
|
6
20
|
module DSL
|
@@ -8,7 +22,7 @@ module Pod
|
|
8
22
|
def local_pod(name, *requirements)
|
9
23
|
options = requirements.last
|
10
24
|
|
11
|
-
rootPath = "./"
|
25
|
+
rootPath = Pod.local_pod_DSL_root_path || "./"
|
12
26
|
if options and options.kind_of? Hash and options[:root_path] != nil
|
13
27
|
rootPath = options[:root_path]
|
14
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-developing-folder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- leavez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|