Class: Gem::Specification

Class | Gem::Specification
In: | lib/echoe/rubygems.rb lib/echoe/rubygems.rb
Parent: | Object

### Methods

old_validate validate validate

### Constants

PLATFORM_CROSS_TARGETS | = | ["aix", "cygwin", "darwin", "freebsd", "hpux", "java", "linux", "mingw", "mswin", "netbsdelf", "openbsd", "solaris", "_platform", "jruby"]
PLATFORM_CROSS_TARGETS | = | ["aix", "cygwin", "darwin", "freebsd", "hpux", "java", "linux", "mingw", "mswin", "netbsdelf", "openbsd", "solaris", "_platform", "jruby"]

### External Aliases

validate | -> | old_validate

### Public Instance methods

old_validate()

Alias for validate

validate()

[Source]

        # File lib/echoe/rubygems.rb, line 10
    10:     def validate
    11:       begin
    12:         old_validate
    13:       rescue Gem::InvalidSpecificationException
    14:         if platform =~ /(#{PLATFORM_CROSS_TARGETS.join("|")})/i
    15:           true
    16:         else
    17:           raise Gem::InvalidSpecificationException, "Unknown package target \"#{platform}\"."
    18:         end
    19:       end
    20:     end

validate()

[Source]

        # File lib/echoe/rubygems.rb, line 10
    10:     def validate
    11:       begin
    12:         old_validate
    13:       rescue Gem::InvalidSpecificationException
    14:         if platform =~ /(#{PLATFORM_CROSS_TARGETS.join("|")})/i
    15:           true
    16:         else
    17:           raise Gem::InvalidSpecificationException, "Unknown package target \"#{platform}\"."
    18:         end
    19:       end
    20:     end

[Validate]