Module: UpdateHints
- Defined in:
- lib/update_hints.rb
Defined Under Namespace
Classes: Checker
Constant Summary collapse
- VERSION =
'1.0.3'
Class Method Summary collapse
-
.version_check(gem_name, present_version_str, destination = $stderr) ⇒ Object
Checks whether rubygems.org has a new version of this specific gem and prints how an update can be obtained if need be.
Class Method Details
.version_check(gem_name, present_version_str, destination = $stderr) ⇒ Object
Checks whether rubygems.org has a new version of this specific gem and prints how an update can be obtained if need be. Note: it swallows ANY exception to prevent network-related errors when for some reason the method is run while the app is offline
14 15 16 17 18 19 |
# File 'lib/update_hints.rb', line 14 def self.version_check(gem_name, present_version_str, destination = $stderr) begin version_check_without_exception_capture(gem_name, present_version_str, destination) rescue Exception end end |