class Gem::Specification

Constants

PLATFORM_CROSS_TARGETS

Public Instance Methods

old_validate() click to toggle source
Alias for: validate
validate() click to toggle source
# File lib/echoe/rubygems.rb, line 10
def validate
  begin
    old_validate
  rescue Gem::InvalidSpecificationException
    if platform =~ /(#{PLATFORM_CROSS_TARGETS.join("|")})/
      true
    else
      raise Gem::InvalidSpecificationException, "Unknown package target \"#{platform}\"."
    end
  end
end
Also aliased as: old_validate