public
Description: A RESTful CouchDB client based on Heroku's RestClient and Couch.js - you want the version at http://github.com/couchrest/couchrest
Homepage: http://github.com/couchrest/couchrest
Clone URL: git://github.com/jchris/couchrest.git
jchris (author)
Fri May 08 19:00:39 -0700 2009
commit  8363aa629837d333d04373523fdcc10b392fb368
tree    8ce1f5e86b0a7ccc28e37b5599c120a431116f4f
parent  d3a7717363e61e1f13e7358127b188e2ac95d0b7
couchrest / github_gemtest.rb
100644 20 lines (16 sloc) 0.343 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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"