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

Version Path
brightbox-object-factory-0.2.2 github.rb
cmer-diff_dirs-0.1.2 test/github-test.rb
yardstick-themekit-0.0.8 github-test.rb
s3lib-0.1.1 github-test.rb
s3lib-0.1.0 github-test.rb
themekit-0.1.1 github-test.rb
themekit-0.1.0 github-test.rb
object-factory-0.2.4 github.rb
object-factory-0.2.3 github.rb