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
39b80011
Commit
39b80011
authored
Apr 24, 2015
by
Andrea Mazzini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new_version_message test
parent
9cc5c62b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
CHANGELOG.md
CHANGELOG.md
+1
-1
config.rb
lib/cocoapods/config.rb
+1
-1
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+7
-0
No files found.
CHANGELOG.md
View file @
39b80011
...
@@ -22,7 +22,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -22,7 +22,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#3101
](
https://github.com/CocoaPods/CocoaPods/issues/3101
)
[
#3101
](
https://github.com/CocoaPods/CocoaPods/issues/3101
)
*
Add environment variable
`COCOAPODS_SKIP_
NEW_VERSION
`
to disable new
*
Add environment variable
`COCOAPODS_SKIP_
UPDATE_MESSAGE
`
to disable new
version message
version message
[
Andrea Mazzini
](
https://github.com/andreamazz
)
[
Andrea Mazzini
](
https://github.com/andreamazz
)
[
#3364
](
https://github.com/CocoaPods/CocoaPods/issues/3364
)
[
#3364
](
https://github.com/CocoaPods/CocoaPods/issues/3364
)
...
...
lib/cocoapods/config.rb
View file @
39b80011
...
@@ -19,7 +19,7 @@ module Pod
...
@@ -19,7 +19,7 @@ module Pod
:clean
=>
true
,
:clean
=>
true
,
:integrate_targets
=>
true
,
:integrate_targets
=>
true
,
:new_version_message
=>
ENV
[
'COCOAPODS_SKIP_
NEW_VERSION
'
].
nil?
,
:new_version_message
=>
ENV
[
'COCOAPODS_SKIP_
UPDATE_MESSAGE
'
].
nil?
,
:cache_root
=>
Pathname
.
new
(
Dir
.
home
)
+
'Library/Caches/CocoaPods'
,
:cache_root
=>
Pathname
.
new
(
Dir
.
home
)
+
'Library/Caches/CocoaPods'
,
}
}
...
...
spec/unit/sources_manager_spec.rb
View file @
39b80011
...
@@ -268,6 +268,13 @@ module Pod
...
@@ -268,6 +268,13 @@ module Pod
UI
.
output
.
should
.
match
/CocoaPods 999.0 is available/
UI
.
output
.
should
.
match
/CocoaPods 999.0 is available/
end
end
it
'skips the update message if the user disabled the notification'
do
config
.
new_version_message
=
false
SourcesManager
.
stubs
(
:version_information
).
returns
(
'last'
=>
'999.0'
)
SourcesManager
.
check_version_information
(
temporary_directory
)
UI
.
output
.
should
.
not
.
match
/CocoaPods 999.0 is available/
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
...
...
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