Sha256: 5be2956e3b979622ff636ffb202eec0f103d04efdb3392252d6f3be054438756
Contents?: true
Size: 363 Bytes
Versions: 9
Compression:
Stored size: 363 Bytes
Contents
#!/usr/bin/env ruby require 'yaml' if ARGV.size < 1 puts "Usage: github-test.rb my-project.gemspec" exit end require 'rubygems/specification' data = File.read(ARGV[0]) spec = nil if data !~ %r{!ruby/object:Gem::Specification} Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join else spec = YAML.load(data) end spec.validate puts spec puts "OK"
Version data entries
9 entries across 9 versions & 6 rubygems