Compare commits

..

2 Commits

Author SHA1 Message Date
slackersoft
3132d98f23 Bump version to 2.0.4 now that I think npm files are sorted 2014-08-24 21:14:11 -07:00
slackersoft
b799f54bc9 Remove runtime dependency on 'glob' so we have no runtime deps
- Clean up .npmignore a bit more
2014-08-24 21:11:50 -07:00
5 changed files with 24 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
dist/
grunt/
images/
node_modules
release_notes/
spec/
@@ -15,6 +14,8 @@ jasmine-core.gemspec
.gitignore
*.sh
Gruntfile.js
lib/jasmine-core.rb
lib/jasmine-core/boot/
lib/jasmine-core/spec
lib/jasmine-core/version.rb
lib/jasmine-core/*.py

View File

@@ -3,18 +3,28 @@ module.exports.boot = require('./jasmine-core/node_boot.js');
module.exports.files = (function() {
var path = require('path'),
fs = require('fs'),
glob = require('glob');
fs = require('fs');
var rootPath = path.join(__dirname, "jasmine-core"),
bootFiles = ['boot.js'],
nodeBootFiles = ['node_boot.js'];
nodeBootFiles = ['node_boot.js'],
cssFiles = [],
jsFiles = [],
jsFilesToSkip = ['jasmine.js'].concat(bootFiles, nodeBootFiles);
var cssFiles = glob.sync(path.join(rootPath, '*.css')).map(path.basename);
var jsFiles = glob.sync(path.join(rootPath, '*.js')).map(path.basename);
['jasmine.js'].concat(bootFiles, nodeBootFiles).forEach(function(file) {
jsFiles.splice(jsFiles.indexOf(file), 1);
fs.readdirSync(rootPath).forEach(function(file) {
if(fs.statSync(path.join(rootPath, file)).isFile()) {
switch(path.extname(file)) {
case '.css':
cssFiles.push(file);
break;
case '.js':
if (jsFilesToSkip.indexOf(file) < 0) {
jsFiles.push(file);
}
break;
}
}
});
return {

View File

@@ -2589,5 +2589,5 @@ getJasmineRequireObj().interface = function(jasmine, env) {
};
getJasmineRequireObj().version = function() {
return '2.0.3';
return '2.0.4';
};

View File

@@ -4,6 +4,6 @@
#
module Jasmine
module Core
VERSION = "2.0.3"
VERSION = "2.0.4"
end
end

View File

@@ -1,7 +1,7 @@
{
"name": "jasmine-core",
"license": "MIT",
"version": "2.0.3",
"version": "2.0.4",
"repository": {
"type": "git",
"url": "https://github.com/pivotal/jasmine.git"
@@ -9,9 +9,6 @@
"description": "Official packaging of Jasmine's core files for use by Node.js projects.",
"homepage": "http://jasmine.github.io",
"main": "./lib/jasmine-core.js",
"dependencies": {
"glob": "~3.2.9"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.7.0",
@@ -19,6 +16,7 @@
"grunt-contrib-compass": "~0.6.0",
"grunt-contrib-compress": "~0.5.2",
"shelljs": "~0.1.4",
"glob": "~3.2.9",
"jasmine": "https://github.com/pivotal/jasmine-npm/archive/master.tar.gz",
"load-grunt-tasks": "^0.4.0"
}