Permalink
Browse files

Updating rake task to pull version number and date.

  • Loading branch information...
jashkenas committed Nov 22, 2010
1 parent 57bd6bc commit 9db6d6f4ef70d49bf6bcc11cb72dfad000efe4d2
Showing with 4 additions and 2 deletions.
  1. +4 −2 Rakefile
View
@@ -1,6 +1,8 @@
+require 'rubygems'
require 'erb'
require 'fileutils'
require 'rake/testtask'
+require 'json'
desc "Build the documentation page"
task :doc do
@@ -26,8 +28,8 @@ task :gem do
gemspec = Gem::Specification.new do |s|
s.name = 'coffee-script-source'
- s.version = '0.9.5'
- s.date = '2010-11-21'
+ s.version = JSON.parse(File.read('package.json'))["version"]
+ s.date = Time.now.strftime("%Y-%m-%d")
s.homepage = "http://jashkenas.github.com/coffee-script/"
s.summary = "The CoffeeScript Compiler"

0 comments on commit 9db6d6f

Please sign in to comment.