breaking up distribution tasks; moving version to a template to have a simpler concat function

This commit is contained in:
Davis W. Frank
2011-06-14 08:30:14 -07:00
parent 2ba0aa371c
commit e59171935f
9 changed files with 93 additions and 23 deletions
+2 -17
View File
@@ -32,21 +32,6 @@ def version_string
"#{version_hash['major']}.#{version_hash['minor']}.#{version_hash['build']}"
end
def version_source
<<-JS
jasmine.version_= {
"major": #{version_hash['major'].to_json},
"minor": #{version_hash['minor'].to_json},
"build": #{version_hash['build'].to_json},
"revision": #{Time.now.to_i}
}
JS
end
def version_hash
@version ||= JSON.parse(File.new("src/core/version.json").read);
end
def node_installed?
`which node` =~ /node/
end
@version ||= JSON.parse(File.new("src/version.json").read);
end