Commit ce94213f ce94213fbcbf1ca90068a42d8d6f9aaf920ee053 by hannyu Committed by Nicolas Perriault

modify casperjs.gemspec for reading VERSION from package.json file.

1 parent 0aaca5e3
# by hannyu
CASPERJS_VERSION = File.read("package.json")[/version.*:.*"(.*?)"/,1].gsub(/[\-_\+]/,".")
Gem::Specification.new do |s|
s.name = "casperjs"
s.version = "1.0.0.RC1"
s.version = CASPERJS_VERSION
s.homepage = "http://casperjs.org/"
s.authors = ["Nicolas Perriault", ]
s.email = ["nperriault@gmail.com",]
......