Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Feb 6, 2016
1 parent ad52199 commit 4538dd5
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 32 deletions.
7 changes: 7 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
languages:
JavaScript: true
exclude_paths:
- "dist/**/*"
- "dist/*.js"
- "dist/**/*.js"
- "dist/**.js"
9 changes: 5 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# .editorconfig <https://github.com/tunnckoCore/dotfiles>
#
# Copyright (c) 2015 Charlike Mike Reagent, contributors.
# Released under the MIT license.
#

root = true

Expand All @@ -24,3 +20,8 @@ trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

[*.py]
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# .gitignore <https://github.com/tunnckoCore/dotfiles>
#
# Copyright (c) 2015 Charlike Mike Reagent, contributors.
# Released under the MIT license.
#

# Always-ignore dirs #
# ####################
Expand Down
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ sudo: false
node_js:
- "0.10"
- "0.12"
- "1"
- "2"
- "3"
- "4"
- "5"

notifications:
email:
Expand All @@ -18,13 +17,12 @@ before_script:
- standard

script:
- npm install istanbul-harmony
- npm install istanbul
- node --harmony node_modules/.bin/istanbul cover test.js

after_success:
- npm install coveralls
- cat coverage/lcov.info | coveralls
- mv coverage/lcov.info .

matrix:
allow_failures:
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Charlike Mike Reagent
Copyright (c) 2015-2016 Charlike Mike Reagent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -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.
SOFTWARE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm i is-real-object --save
> For more use-cases see the [tests](./test.js)
```js
var isRealObject = require('is-real-object')
const isRealObject = require('is-real-object')
```

### returns `true`
Expand Down Expand Up @@ -99,7 +99,7 @@ But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md)
[npmjs-url]: https://www.npmjs.com/package/is-real-object
[npmjs-img]: https://img.shields.io/npm/v/is-real-object.svg?label=is-real-object

[license-url]: https://github.com/tunnckoCore/is-real-object/blob/master/LICENSE.md
[license-url]: https://github.com/tunnckoCore/is-real-object/blob/master/LICENSE
[license-img]: https://img.shields.io/badge/license-MIT-blue.svg


Expand Down Expand Up @@ -137,5 +137,5 @@ But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md)
[freenode-url]: http://webchat.freenode.net/?channels=charlike
[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg

[new-message-url]: https://github.com/tunnckoCore/messages
[new-message-url]: https://github.com/tunnckoCore/ama
[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* is-real-object <https://github.com/tunnckoCore/is-real-object>
*
* Copyright (c) 2015 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)
* Copyright (c) 2015-2016 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)
* Released under the MIT license.
*/

Expand Down
16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Returns `true` if a value is any type of object, but not an array. Browserify-ready.",
"repository": "tunnckoCore/is-real-object",
"author": "Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)",
"precommit.silent": true,
"main": "index.js",
"license": "MIT",
"scripts": {
Expand All @@ -14,22 +15,13 @@
"isarray": "^1.0.0"
},
"devDependencies": {
"assertit": "^0.1.0"
"assertit": "^0.1.0",
"pre-commit": "*"
},
"files": [
"index.js"
],
"keywords": [
"array",
"assign",
"check",
"date",
"extend",
"extensible",
"function",
"is",
"object",
"regex",
"test"
"is-real-object"
]
}
4 changes: 3 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* is-real-object <https://github.com/tunnckoCore/is-real-object>
*
* Copyright (c) 2015 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)
* Copyright (c) 2015-2016 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)
* Released under the MIT license.
*/

Expand All @@ -13,6 +13,7 @@ var isRealObject = require('./index')
function ok (val) {
return test.strictEqual(val, true)
}

function notOk (val) {
return test.strictEqual(val, false)
}
Expand Down Expand Up @@ -44,6 +45,7 @@ test('should return `true` when a value is an object', function (done) {
ok(isRealObject(Object('foo')))
done()
})

test('should return `false` when a value is not an object or is array', function (done) {
notOk(isRealObject(new Array())) // eslint-disable-line no-array-constructor
notOk(isRealObject(new Array(2)))
Expand Down

0 comments on commit 4538dd5

Please sign in to comment.