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: 076c2f0771afcc30bcf6830086785a232fbad874f119066adb73e6d29ff61302
4
- data.tar.gz: 7cec8254563cba9d9a80682f753af2494ee13ba863b39b5be1292cdf8243e7a6
3
+ metadata.gz: 8fec3c4079e85da225639a17557a343bf2f10279c5d583d06483f7e9338eb32b
4
+ data.tar.gz: 6a3323ba035c43dd613022107e9c226ee0ad3505f61ee015059f71b29c013bbf
5
5
  SHA512:
6
- metadata.gz: 365422271574b8a6dcf2308d1af4f0368705216d5ae568f03fb87191157234d476b5bee921aec8d643fe45cc36cc1d769701d4c87eb84adf184b29f8cae99b5a
7
- data.tar.gz: 195aeab661f127567b8a4bc02b2d7227d9cf19aff27b4807742d7a80cf26b168a430772b7a28e694fc514ce215598077d6ca8535613cf0429289cb3719716541
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,3 +1,3 @@
1
1
  module CocoapodsDevelopingFolder
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -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
@@ -1,3 +1,7 @@
1
1
  def unify_path(path)
2
2
  path.realpath.relative_path_from (Pathname.new "./").realpath
3
+ end
4
+
5
+ def class_attr_accessor(symbol)
6
+ self.class.send(:attr_accessor, symbol)
3
7
  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.1
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-06-11 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler