Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating rake task to pull version number and date.

  • Loading branch information...
commit 9db6d6f4ef70d49bf6bcc11cb72dfad000efe4d2 1 parent 57bd6bc
@jashkenas authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 Rakefile
View
6 Rakefile
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.