Commit 28ab0e31 authored by Eloy Duran's avatar Eloy Duran

Bump to 0.0.2

parent 6fe547da
......@@ -7,5 +7,6 @@ end
desc "Remove rbo files"
task :clean do
sh "rm lib/**/*.rbo"
sh "rm -f lib/**/*.rbo"
sh "rm -f *.gem"
end
......@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
s.executables = %w{ pod }
s.require_paths = %w{ lib }
s.post_install_message = "To speed up load time of cocoapods consider compiling the Ruby source files:\n\n" \
s.post_install_message = "To speed up load time of CocoaPods consider compiling the Ruby source files:\n\n" \
" $ sudo macgem install rubygems-compile\n" \
" $ sudo macgem compile cocoapods\n\n"
......
module Pod
VERSION = '0.0.1'
VERSION = '0.0.2'
class Informative < StandardError
end
......
......@@ -19,7 +19,9 @@ module Pod
def self.search_by_name(query, full_text_search)
result = all.map { |s| s.search_by_name(query, full_text_search) }.flatten
if result.empty?
raise(Informative, "Unable to find a pod who's name matches `#{query}'")
extra = ", summary, or description" if full_text_search
raise(Informative, "Unable to find a pod who's name" \
"#{extra} matches `#{query}'")
end
result
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