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
5fdc01c1
Commit
5fdc01c1
authored
Sep 18, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Config] Added update_notification attribute.
Closes #448
parent
818f3901
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
CHANGELOG.md
CHANGELOG.md
+4
-0
repo.rb
lib/cocoapods/command/repo.rb
+1
-1
config.rb
lib/cocoapods/config.rb
+3
-2
No files found.
CHANGELOG.md
View file @
5fdc01c1
...
...
@@ -2,6 +2,10 @@
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.14.0...master
)
###### Enhancements
-
Added config option to disable the new version available message.
[
#448
](
https://github.com/CocoaPods/CocoaPods/issues/448
)
###### Bug fixes
-
In certain conditions pod setup would execute twice.
-
The git cache now is updated if a branch is not found
...
...
lib/cocoapods/command/repo.rb
View file @
5fdc01c1
...
...
@@ -142,7 +142,7 @@ module Pod
"
\n
[!] The `
#{
dir
.
basename
.
to_s
}
' repo requires CocoaPods
#{
version_msg
}
\n
"
.
red
+
"Update Cocoapods, or checkout the appropriate tag in the repo.
\n\n
"
end
puts
"
\n
Cocoapods
#{
versions
[
'last'
]
}
is available.
\n
"
.
green
if
has_update
(
versions
)
puts
"
\n
Cocoapods
#{
versions
[
'last'
]
}
is available.
\n
"
.
green
if
has_update
(
versions
)
&&
config
.
new_version_message?
end
def
self
.
compatible?
(
name
)
...
...
lib/cocoapods/config.rb
View file @
5fdc01c1
...
...
@@ -14,7 +14,7 @@ module Pod
attr_accessor
:clean
,
:verbose
,
:silent
attr_accessor
:generate_docs
,
:doc_install
attr_accessor
:integrate_targets
attr_accessor
:
git_cache_siz
e
attr_accessor
:
new_version_messag
e
alias_method
:clean?
,
:clean
alias_method
:verbose?
,
:verbose
...
...
@@ -22,11 +22,12 @@ module Pod
alias_method
:generate_docs?
,
:generate_docs
alias_method
:doc_install?
,
:doc_install
alias_method
:integrate_targets?
,
:integrate_targets
alias_method
:new_version_message?
,
:new_version_message
def
initialize
@repos_dir
=
Pathname
.
new
(
File
.
expand_path
(
"~/.cocoapods"
))
@verbose
=
@silent
=
false
@clean
=
@generate_docs
=
@doc_install
=
@integrate_targets
=
true
@clean
=
@generate_docs
=
@doc_install
=
@integrate_targets
=
@new_version_message
=
true
end
def
project_root
...
...
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