Sha256: e5e6d813cf0527b943c1c0e5777afcbec38ae037a3a9834d85ad7f9dafa877ce
Contents?: true
Size: 344 Bytes
Versions: 5
Compression:
Stored size: 344 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 puts spec puts "OK"
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
sprsquish-blather-0.2.3 | spec/build_safe.rb |
blather-0.1 | spec/build_safe.rb |
blather-0.2.1 | spec/build_safe.rb |
blather-0.2 | spec/build_safe.rb |
blather-0.2.3 | spec/build_safe.rb |