Method: Gem::Specification#validate

Defined in:
lib/echoe/rubygems.rb

#validateObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/echoe/rubygems.rb', line 10

def validate
  begin
    old_validate
  rescue Gem::InvalidSpecificationException
    if platform =~ /(#{PLATFORM_CROSS_TARGETS.join("|")})/i
      true
    else
      raise Gem::InvalidSpecificationException, "Unknown package target \"#{platform}\"."
    end
  end
end