From 132739f1999854200e235bf5eae0d1f7e86b7182 Mon Sep 17 00:00:00 2001 From: kgryte Date: Sat, 23 May 2015 18:56:38 -0700 Subject: [PATCH] [UPDATE] add build envs. Makefile. remove preamble. dev deps. --- .travis.yml | 6 ++++++ LICENSE | 4 ++-- Makefile | 13 +++++++++---- README.md | 2 +- lib/index.js | 28 ---------------------------- package.json | 6 +++--- 6 files changed, 21 insertions(+), 38 deletions(-) diff --git a/.travis.yml b/.travis.yml index b96fc7a..29cff27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,12 @@ language: node_js node_js: + - '0.12' + - '0.11' - '0.10' + - '0.8' + - 'iojs' +before_install: + - npm update -g npm after_script: - npm run coveralls diff --git a/LICENSE b/LICENSE index 2fe3939..d8731b6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014 Athan Reines. +Copyright (c) 2014-2015 Athan Reines. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/Makefile b/Makefile index d8fb6dd..3234fbb 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,14 @@ # Set the node.js environment to test: NODE_ENV ?= test +# Kernel name: +KERNEL ?= $(shell uname -s) + +ifeq ($(KERNEL), Darwin) + OPEN ?= open +else + OPEN ?= xdg-open +endif # NOTES # @@ -98,8 +106,7 @@ test-istanbul-mocha: node_modules view-cov: view-istanbul-report view-istanbul-report: - open $(ISTANBUL_HTML_REPORT_PATH) - + $(OPEN) $(ISTANBUL_HTML_REPORT_PATH) # LINT # @@ -114,7 +121,6 @@ lint-jshint: node_modules ./ - # NODE # # Installing node_modules: @@ -132,7 +138,6 @@ clean-node: # CLEAN # - .PHONY: clean clean: diff --git a/README.md b/README.md index 4777b67..9f95dbc 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ $ make view-cov ## Copyright -Copyright © 2014. Athan Reines. +Copyright © 2014-2015. Athan Reines. diff --git a/lib/index.js b/lib/index.js index b858e56..64980b4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,31 +1,3 @@ -/** -* -* VALIDATE: object -* -* -* DESCRIPTION: -* - Validates if a value is a JavaScript object. -* -* -* NOTES: -* [1] -* -* -* TODO: -* [1] -* -* -* LICENSE: -* MIT -* -* Copyright (c) 2014. Athan Reines. -* -* -* AUTHOR: -* Athan Reines. kgryte@gmail.com. 2014. -* -*/ - 'use strict'; // MODULES // diff --git a/package.json b/package.json index b52807f..fd99d3c 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,11 @@ "validate.io-array": "^1.0.1" }, "devDependencies": { - "chai": "1.x.x", + "chai": "2.x.x", "coveralls": "^2.11.1", "istanbul": "^0.3.0", - "mocha": "1.x.x", - "jshint": "^2.5.10", + "mocha": "2.x.x", + "jshint": "2.x.x", "jshint-stylish": "^1.0.0" }, "license": "MIT"