Parent

GemInstaller::RubyGemsVersionWarnings

Public Class Methods

allow_unsupported?() click to toggle source
    # File lib/geminstaller/rubygems_version_warnings.rb, line 29
29:     def self.allow_unsupported?
30:       defined? ALLOW_UNSUPPORTED_RUBYGEMS_VERSION
31:     end
incompatible_warning(options = {}) click to toggle source
    # File lib/geminstaller/rubygems_version_warnings.rb, line 15
15:     def self.incompatible_warning(options = {})
16:       return nil if allow_unsupported?
17:       return nil unless (
18:         GemInstaller::RubyGemsVersionChecker.matches?('=0.9.5', options) or
19:         GemInstaller::RubyGemsVersionChecker.matches?('=1.1.0', options)
20:       )
21:       return "\n\n----------------------------------------------------------------\n" + 
22:                   "WARNING: You are using RubyGems version #{Gem::RubyGemsVersion}.\n" +
23:                   "This version is known to have bugs and/or compatibility issues\n" +
24:                   "with GemInstaller.  Update RubyGems, or continue at your risk.\n" +
25:                   "To update rubygems (recommended), use 'gem update --system'.\n" +
26:                   "----------------------------------------------------------------\n\n"
27:     end
outdated_warning(options = {}) click to toggle source
    # File lib/geminstaller/rubygems_version_warnings.rb, line 3
 3:     def self.outdated_warning(options = {})
 4:       return nil if allow_unsupported?
 5:       return nil if GemInstaller::RubyGemsVersionChecker.matches?('>=0.9.5', options)
 6:       return "\n\n----------------------------------------------------------------\n" + 
 7:                   "WARNING: You are using RubyGems version #{Gem::RubyGemsVersion}.\n" +
 8:                   "You should update to RubyGems version 1.0.1 or above,\n" +
 9:                   "because gems created for newer RubyGems versions\n" +
10:                   "might be incompatible.\n" +
11:                   "To update rubygems (recommended), use 'gem update --system'.\n" +
12:                   "----------------------------------------------------------------\n\n"
13:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.