Commit 5fdc01c1 authored by Fabio Pelosin's avatar Fabio Pelosin

[Config] Added update_notification attribute.

Closes #448
parent 818f3901
......@@ -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
......
......@@ -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 "\nCocoapods #{versions['last']} is available.\n".green if has_update(versions)
puts "\nCocoapods #{versions['last']} is available.\n".green if has_update(versions) && config.new_version_message?
end
def self.compatible?(name)
......
......@@ -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_size
attr_accessor :new_version_message
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment