Commit 462372ba authored by Samuel Giddins's avatar Samuel Giddins

Merge pull request #5265 from fulldecent/patch-1

Guarding from crash if pod lib create has a + character in the name
parents 60b5f736 da9fffea
......@@ -38,6 +38,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Marc Boquet](https://github.com/marcboquet)
[#5294](https://github.com/CocoaPods/CocoaPods/issues/5294)
* Guarding from crash if pod lib create has a + character in the name.
[William Entriken](https://github.com/fulldecent)
[CocoaPods/pod-template#69](https://github.com/CocoaPods/pod-template/issues/69)
## 1.0.0 (2016-05-10)
......
......@@ -33,6 +33,7 @@ module Pod
super
help! 'A name for the Pod is required.' unless @name
help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
end
......
......@@ -14,6 +14,10 @@ module Pod
lambda { run_command('lib', 'create', 'Pod Name With Spaces') }.should.raise CLAide::Help
end
it 'complains if pod name contains plusses' do
lambda { run_command('lib', 'create', 'Pod+Name+With+Plusses') }.should.raise CLAide::Help
end
it 'complains if pod name begins with a period' do
lambda { run_command('lib', 'create', '.HiddenPod') }.should.raise CLAide::Help
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