Commit 3c58d923 authored by Orta Therox's avatar Orta Therox

[Lib Create] Fix the version string coming into pod lib create

parent cf12c1cc
...@@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes ##### Bug Fixes
* None. * Passes in the version string, rather than the version class to `pod lib create`.
[orta](https://github.com/orta)
[#5841](https://github.com/CocoaPods/CocoaPods/pull/5841)
## 1.1.0.rc.1 (2016-09-10) ## 1.1.0.rc.1 (2016-09-10)
......
...@@ -75,7 +75,7 @@ module Pod ...@@ -75,7 +75,7 @@ module Pod
UI.section("Configuring #{@name} template.") do UI.section("Configuring #{@name} template.") do
Dir.chdir(@name) do Dir.chdir(@name) do
if File.exist?('configure') if File.exist?('configure')
system({ 'COCOAPODS_VERSION' => Pod::Version }, './configure', @name, *@additional_args) system({ 'COCOAPODS_VERSION' => Pod::VERSION }, './configure', @name, *@additional_args)
else else
UI.warn 'Template does not have a configure file.' UI.warn 'Template does not have a configure file.'
end end
......
...@@ -34,7 +34,7 @@ module Pod ...@@ -34,7 +34,7 @@ module Pod
dir = SpecHelper.temporary_directory + 'TestPod' dir = SpecHelper.temporary_directory + 'TestPod'
dir.mkpath dir.mkpath
File.stubs(:exist?).with('configure').returns(true) File.stubs(:exist?).with('configure').returns(true)
@sut.any_instance.expects(:system).with({ 'COCOAPODS_VERSION' => Pod::Version }, './configure', 'TestPod', 'foo').once @sut.any_instance.expects(:system).with({ 'COCOAPODS_VERSION' => Pod::VERSION }, './configure', 'TestPod', 'foo').once
run_command('lib', 'create', 'TestPod', 'foo', '--verbose') run_command('lib', 'create', 'TestPod', 'foo', '--verbose')
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