Sha256: 6caca7c68b24fa7c9fa159978179c03ec8ea7c10fd583ddd594c0753b03a8f2f
Contents?: true
Size: 364 Bytes
Versions: 57
Compression:
Stored size: 364 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
57 entries across 57 versions & 4 rubygems