cocoapods-developing-folder 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d04c93c96d60458e3bda533c82082253ac0204babf17aa964683dcc927602760
4
- data.tar.gz: c6e28449839dd827df1ed1401e5f16587df41caa4ba9a2a3c95095c0418ec895
3
+ metadata.gz: 076c2f0771afcc30bcf6830086785a232fbad874f119066adb73e6d29ff61302
4
+ data.tar.gz: 7cec8254563cba9d9a80682f753af2494ee13ba863b39b5be1292cdf8243e7a6
5
5
  SHA512:
6
- metadata.gz: 2f385807d83cb6d2ab69b270f2d638bcb2f00e3eefaa639c7781f780a7e2e0999f8ea7a5645c02db4435179b94b89ee1fd685f99333059d03f8bd9cd12be6b54
7
- data.tar.gz: 401b1baa76efa7bfe3e83ee7279f470e28f408ea75080a619be22e0e5bd386803fd968e3b026fdb6419df82e35e9675f0f06cb2e971bbf0d934726ceb5315961
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,3 +1,3 @@
1
1
  module CocoapodsDevelopingFolder
2
- VERSION = "0.5"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -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
- basePath = Pathname.new "./"
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
- options = requirements.last
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.to_s
33
+ options[:path] = path
25
34
  pod(name, *requirements)
26
35
  else
27
- pod(name, *requirements, :path => path.to_s)
36
+ pod(name, *requirements, :path => path)
28
37
  end
29
38
  end
30
39
 
@@ -0,0 +1,3 @@
1
+ def unify_path(path)
2
+ path.realpath.relative_path_from (Pathname.new "./").realpath
3
+ 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.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-05-09 00:00:00.000000000 Z
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.6
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