cocoapods-developing-folder 0.5 → 0.5.1
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: 076c2f0771afcc30bcf6830086785a232fbad874f119066adb73e6d29ff61302
|
4
|
+
data.tar.gz: 7cec8254563cba9d9a80682f753af2494ee13ba863b39b5be1292cdf8243e7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 365422271574b8a6dcf2308d1af4f0368705216d5ae568f03fb87191157234d476b5bee921aec8d643fe45cc36cc1d769701d4c87eb84adf184b29f8cae99b5a
|
7
|
+
data.tar.gz: 195aeab661f127567b8a4bc02b2d7227d9cf19aff27b4807742d7a80cf26b168a430772b7a28e694fc514ce215598077d6ca8535613cf0429289cb3719716541
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require_relative 'utiltiy'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
class Podfile
|
@@ -12,7 +13,7 @@ module Pod
|
|
12
13
|
end
|
13
14
|
if podspec != nil
|
14
15
|
options = (requirements.last || {}).clone
|
15
|
-
options[:path] = path.to_path
|
16
|
+
options[:path] = unify_path(path).to_path
|
16
17
|
pod(podspec.basename(".podspec").to_s, options)
|
17
18
|
end
|
18
19
|
path.children.each do |p|
|
@@ -1,11 +1,18 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require_relative 'utiltiy'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
class Podfile
|
5
6
|
module DSL
|
6
7
|
|
7
8
|
def local_pod(name, *requirements)
|
8
|
-
|
9
|
+
options = requirements.last
|
10
|
+
|
11
|
+
rootPath = "./"
|
12
|
+
if options and options.kind_of? Hash and options[:root_path] != nil
|
13
|
+
rootPath = options[:root_path]
|
14
|
+
end
|
15
|
+
basePath = Pathname.new rootPath
|
9
16
|
|
10
17
|
path = nil
|
11
18
|
basePath.find do |p|
|
@@ -19,12 +26,14 @@ module Pod
|
|
19
26
|
raise "\ncannot find local pod: #{name}"
|
20
27
|
return
|
21
28
|
end
|
22
|
-
|
29
|
+
path = unify_path(path.parent)
|
30
|
+
path = path.to_s
|
31
|
+
|
23
32
|
if options and options.kind_of? Hash
|
24
|
-
options[:path] = path
|
33
|
+
options[:path] = path
|
25
34
|
pod(name, *requirements)
|
26
35
|
else
|
27
|
-
pod(name, *requirements, :path => path
|
36
|
+
pod(name, *requirements, :path => path)
|
28
37
|
end
|
29
38
|
end
|
30
39
|
|
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:
|
4
|
+
version: 0.5.1
|
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-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/cocoapods-developing-folder/inhibit_warnings_with_condition.rb
|
60
60
|
- lib/cocoapods-developing-folder/local_pod_DSL.rb
|
61
61
|
- lib/cocoapods-developing-folder/preserve_folder.rb
|
62
|
+
- lib/cocoapods-developing-folder/utiltiy.rb
|
62
63
|
- lib/cocoapods_plugin.rb
|
63
64
|
- spec/command/folder_spec.rb
|
64
65
|
- spec/spec_helper.rb
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
requirements: []
|
84
85
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.7.
|
86
|
+
rubygems_version: 2.7.4
|
86
87
|
signing_key:
|
87
88
|
specification_version: 4
|
88
89
|
summary: a branch of tools for who heavily use development pods
|