Skip to content

Commit

Permalink
Support local pods
Browse files Browse the repository at this point in the history
  • Loading branch information
manuyavuz committed Jun 3, 2016
1 parent 4acf966 commit 5882611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/cocoapods-packager/pod_utils.rb
Expand Up @@ -41,7 +41,7 @@ def install_pod(platform_name, sandbox)
def podfile_from_spec(path, spec_name, platform_name, deployment_target, subspecs, sources)
options = {}
if path
options[:podspec] = path
options[:path] = path
else
options[:path] = '.'
end
Expand All @@ -59,10 +59,10 @@ def podfile_from_spec(path, spec_name, platform_name, deployment_target, subspec
if path
if subspecs
subspecs.each do |subspec|
pod spec_name + '/' + subspec, :podspec => path
pod spec_name + '/' + subspec, :path => path
end
else
pod spec_name, :podspec => path
pod spec_name, :path => path
end
elsif subspecs
subspecs.each do |subspec|
Expand Down
3 changes: 2 additions & 1 deletion lib/pod/command/package.rb
Expand Up @@ -122,7 +122,8 @@ def create_working_directory

work_dir = Dir.tmpdir + '/cocoapods-' + Array.new(8) { rand(36).to_s(36) }.join
Pathname.new(work_dir).mkdir
`cp #{@path} #{work_dir}`
full_path = Pathname.new(@path)
`cp -r #{full_path.parent} #{work_dir}`
Dir.chdir(work_dir)

[target_dir, work_dir]
Expand Down

0 comments on commit 5882611

Please sign in to comment.