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
1fcca9fe
Commit
1fcca9fe
authored
Sep 30, 2011
by
Eloy Durán
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19 from floere/master
Fixes a small typo in search result text.
parents
b2589060
5bc02998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
source.rb
lib/cocoapods/source.rb
+2
-2
command_spec.rb
spec/functional/command_spec.rb
+2
-2
No files found.
lib/cocoapods/source.rb
View file @
1fcca9fe
...
@@ -20,8 +20,8 @@ module Pod
...
@@ -20,8 +20,8 @@ module Pod
result
=
all
.
map
{
|
s
|
s
.
search_by_name
(
query
,
full_text_search
)
}.
flatten
result
=
all
.
map
{
|
s
|
s
.
search_by_name
(
query
,
full_text_search
)
}.
flatten
if
result
.
empty?
if
result
.
empty?
extra
=
", summary, or description"
if
full_text_search
extra
=
", summary, or description"
if
full_text_search
raise
(
Informative
,
"Unable to find a pod w
ho's
name"
\
raise
(
Informative
,
"Unable to find a pod w
ith
name"
\
"
#{
extra
}
match
es
`
#{
query
}
'"
)
"
#{
extra
}
match
ing
`
#{
query
}
'"
)
end
end
result
result
end
end
...
...
spec/functional/command_spec.rb
View file @
1fcca9fe
...
@@ -64,7 +64,7 @@ describe "Pod::Command" do
...
@@ -64,7 +64,7 @@ describe "Pod::Command" do
config
.
repos_dir
=
tmp_repos_path
config
.
repos_dir
=
tmp_repos_path
end
end
it
"searches for a pod w
ho's name matches
the given query ignoring case"
do
it
"searches for a pod w
ith name matching
the given query ignoring case"
do
[
[
[
[
' s '
,
' s '
,
...
@@ -96,7 +96,7 @@ describe "Pod::Command" do
...
@@ -96,7 +96,7 @@ describe "Pod::Command" do
end
end
end
end
it
"searches for a pod w
ho's name, summary, or description matches
the given query ignoring case"
do
it
"searches for a pod w
ith name, summary, or description matching
the given query ignoring case"
do
[
[
[
[
'systemCONfiguration'
,
'systemCONfiguration'
,
...
...
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