Canonical Jasmine version now lives in `package.json` (Node formatted) and is copied into Jasmine source (JavaScript and Ruby) Jasmine distribution now has MIT license and Pivotal Labs copyright at the top of each distributed file.
15 lines
442 B
JavaScript
15 lines
442 B
JavaScript
var grunt = require("grunt");
|
|
|
|
function gemLib(path) { return './lib/jasmine-core/' + path; }
|
|
function nodeToRuby(version) { return version.replace('-', '.'); }
|
|
|
|
module.exports = {
|
|
copyToGem: function() {
|
|
var versionRb = grunt.template.process(
|
|
grunt.file.read("grunt/templates/version.rb.jst"),
|
|
{ data: { jasmineVersion: nodeToRuby(global.jasmineVersion) }});
|
|
|
|
grunt.file.write(gemLib("version.rb"), versionRb);
|
|
}
|
|
};
|