Skip to content

Commit

Permalink
Merge pull request #9 from bvadnai/master
Browse files Browse the repository at this point in the history
Compatibility with the new CocoaPods Spec layout
  • Loading branch information
jcampbell05 committed May 28, 2017
2 parents 900e4bc f729e40 commit 1a8de1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/cocoapods-deploy/deploy_transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 3,12 @@ class DeployTransformer

attr_accessor :lockfile
attr_accessor :sandbox
attr_accessor :metadata

def initialize(lockfile, sandbox)
@lockfile = lockfile
@sandbox = sandbox
@metadata = Source::Metadata.new({'prefix_lengths' => [1, 1, 1]})
end

def transform_podfile(podfile)
Expand Down Expand Up @@ -64,7 66,8 @@ def parse_dependency(name_or_hash)
end

def podspec_url(pod, version)
"{root-url}/#{pod}/#{version}/#{pod}"
path_fragment = metadata.path_fragment(pod)
"{root-url}/#{path_fragment}/#{version}/#{pod}"
end

def collect_podspec_dependencies(name_or_hash)
Expand Down

0 comments on commit 1a8de1a

Please sign in to comment.