Commit 7abaf4eb authored by Samuel E. Giddins's avatar Samuel E. Giddins

[LockingDependencyAnalyzer] Unlock pods in a case-insensitive manner

Closes https://github.com/CocoaPods/CocoaPods/issues/2992.
parent 737e322b
......@@ -48,6 +48,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Xavi Matos](https://github.com/CalQL8ed-K-OS)
[#3002](https://github.com/CocoaPods/CocoaPods/issues/3002)
* `pod update PODNAME` will update pods in a case-insensitive manner.
[Samuel Giddins](https://github.com/segiddins)
[#2992](https://github.com/CocoaPods/CocoaPods/issues/2992)
##### Bug Fixes
* Added support for .tpp C++ header files in specs (previously were getting
......
......@@ -33,8 +33,8 @@ module Pod
end
pods_to_update = pods_to_update.flat_map do |u|
root_name = Specification.root_name(u)
dependency_graph.vertices.keys.select { |n| Specification.root_name(n) == root_name }
root_name = Specification.root_name(u).downcase
dependency_graph.vertices.keys.select { |n| Specification.root_name(n).downcase == root_name }
end
pods_to_update.each do |u|
......
......@@ -159,6 +159,13 @@ module Pod
@analyzer.send(:locked_dependencies).to_a.map(&:payload).should == []
end
it 'unlocks dependencies in a case-insensitive manner' do
@analyzer.update = { :pods => %w(JSONKit) }
@analyzer.analyze
@analyzer.send(:locked_dependencies).map(&:payload).map(&:to_s).
should == ['SVPullToRefresh (= 0.4)']
end
it 'unlocks all dependencies with the same root name in update mode' do
podfile = Podfile.new do
platform :ios, '8.0'
......
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