Commit 7f4225a5 7f4225a534ed3dac7a80853c4ebe5fdf0085c393 by hannyu

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

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