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
b81c03c4
Commit
b81c03c4
authored
Apr 09, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SourceManagers] Fix CocoaPods spelling
See #933
parent
960b653d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sources_manager.rb
lib/cocoapods/sources_manager.rb
+2
-2
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+3
-3
No files found.
lib/cocoapods/sources_manager.rb
View file @
b81c03c4
...
@@ -176,11 +176,11 @@ module Pod
...
@@ -176,11 +176,11 @@ module Pod
version_msg
=
(
min
==
max
)
?
min
:
"
#{
min
}
-
#{
max
}
"
version_msg
=
(
min
==
max
)
?
min
:
"
#{
min
}
-
#{
max
}
"
raise
Informative
,
"The `
#{
dir
.
basename
}
` repo requires "
\
raise
Informative
,
"The `
#{
dir
.
basename
}
` repo requires "
\
"CocoaPods
#{
version_msg
}
\n
"
.
red
+
"CocoaPods
#{
version_msg
}
\n
"
.
red
+
"Update Cocoa
p
ods, or checkout the appropriate tag in the repo."
"Update Cocoa
P
ods, or checkout the appropriate tag in the repo."
end
end
if
config
.
new_version_message?
&&
cocoapods_update?
(
versions
)
if
config
.
new_version_message?
&&
cocoapods_update?
(
versions
)
UI
.
puts
"
\n
Cocoa
p
ods
#{
versions
[
'last'
]
}
is available.
\n
"
.
green
UI
.
puts
"
\n
Cocoa
P
ods
#{
versions
[
'last'
]
}
is available.
\n
"
.
green
end
end
end
end
...
...
spec/unit/sources_manager_spec.rb
View file @
b81c03c4
...
@@ -101,16 +101,16 @@ module Pod
...
@@ -101,16 +101,16 @@ module Pod
it
"informs the user if there is an update for CocoaPods"
do
it
"informs the user if there is an update for CocoaPods"
do
SourcesManager
.
stubs
(
:version_information
).
returns
({
'last'
=>
'999.0'
})
SourcesManager
.
stubs
(
:version_information
).
returns
({
'last'
=>
'999.0'
})
SourcesManager
.
check_version_information
(
temporary_directory
)
SourcesManager
.
check_version_information
(
temporary_directory
)
UI
.
output
.
should
.
match
/Cocoa
p
ods 999.0 is available/
UI
.
output
.
should
.
match
/Cocoa
P
ods 999.0 is available/
end
end
it
"raises while asked to version information of a source if it is not compatible"
do
it
"raises while asked to version information of a source if it is not compatible"
do
SourcesManager
.
stubs
(
:version_information
).
returns
({
'min'
=>
'999.0'
})
SourcesManager
.
stubs
(
:version_information
).
returns
({
'min'
=>
'999.0'
})
e
=
lambda
{
SourcesManager
.
check_version_information
(
temporary_directory
)
}.
should
.
raise
Informative
e
=
lambda
{
SourcesManager
.
check_version_information
(
temporary_directory
)
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/Update Cocoa
p
ods/
e
.
message
.
should
.
match
/Update Cocoa
P
ods/
SourcesManager
.
stubs
(
:version_information
).
returns
({
'max'
=>
'0.0.1'
})
SourcesManager
.
stubs
(
:version_information
).
returns
({
'max'
=>
'0.0.1'
})
e
=
lambda
{
SourcesManager
.
check_version_information
(
temporary_directory
)
}.
should
.
raise
Informative
e
=
lambda
{
SourcesManager
.
check_version_information
(
temporary_directory
)
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/Update Cocoa
p
ods/
e
.
message
.
should
.
match
/Update Cocoa
P
ods/
end
end
it
"returns whether a repository is compatible"
do
it
"returns whether a repository is compatible"
do
...
...
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