Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
28ab0e31
Commit
28ab0e31
authored
Sep 17, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump to 0.0.2
parent
6fe547da
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
Rakefile
Rakefile
+2
-1
cocoapods.gemspec
cocoapods.gemspec
+1
-1
cocoapods.rb
lib/cocoapods.rb
+1
-1
source.rb
lib/cocoapods/source.rb
+3
-1
No files found.
Rakefile
View file @
28ab0e31
...
...
@@ -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
cocoapods.gemspec
View file @
28ab0e31
...
...
@@ -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
cocoap
ods consider compiling the Ruby source files:
\n\n
"
\
s
.
post_install_message
=
"To speed up load time of
CocoaP
ods consider compiling the Ruby source files:
\n\n
"
\
" $ sudo macgem install rubygems-compile
\n
"
\
" $ sudo macgem compile cocoapods
\n\n
"
...
...
lib/cocoapods.rb
View file @
28ab0e31
module
Pod
VERSION
=
'0.0.
1
'
VERSION
=
'0.0.
2
'
class
Informative
<
StandardError
end
...
...
lib/cocoapods/source.rb
View file @
28ab0e31
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment