Commit cb854fa9 authored by Fabio Pelosin's avatar Fabio Pelosin

[Lockfile] Return multiple dependencies to lock a Pod

parent c4774bc5
......@@ -60,7 +60,7 @@ GIT
GIT
remote: https://github.com/CocoaPods/Core.git
revision: 9d9842612c254900fbf515bab5ec3eec32f34947
revision: 85ef1bf5917c853def368d6ca5a5ab955486b4d7
branch: fabio/specs-sources
specs:
cocoapods-core (0.33.1)
......
......@@ -150,7 +150,8 @@ module Pod
UI.section 'Finding Podfile changes' do
pods_by_state = lockfile.detect_changes_with_podfile(podfile)
pods_by_state.dup.each do |state, full_names|
pods_by_state[state] = full_names.map { |fn| Specification.root_name(fn) }
pods = full_names.map { |fn| Specification.root_name(fn) }.uniq
pods_by_state[state] = pods
end
pods_state = SpecsState.new(pods_by_state)
pods_state.print
......@@ -243,8 +244,8 @@ module Pod
locking_pods = locking_pods.select { |pod| !update[:pods].include?(pod) }
end
locking_pods.map do |pod|
lockfile.dependency_to_lock_pod_named(pod)
end
lockfile.dependencies_to_lock_pod_named(pod)
end.flatten
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment