Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Added coverage. Updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma committed Jan 22, 2014
1 parent 262daae commit 273f1eb
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -3,4 +3,4 @@ build
components
dist/vendor
node_modules

coverage
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -2,3 +2,5 @@ language: node_js
node_js:
- "0.10"
- "0.8"
after_script:
- npm run coveralls
16 changes: 13 additions & 3 deletions Makefile
@@ -1,6 +1,16 @@
LICENSE_COMMENT="/*! obs 0.10.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */"
LICENSE_COMMENT="/*! obs 0.11.0 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */"

test:
cover: lint
@./node_modules/.bin/istanbul cover -x "**/spec/**" \
./node_modules/mocha/bin/_mocha --report lcov spec/ -- -R spec

coveralls:
@./node_modules/.bin/istanbul cover -x "**/spec/**" \
./node_modules/mocha/bin/_mocha --report lcovonly spec/ -- -R spec && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
@rm -rf ./coverage

test: lint
@./node_modules/.bin/mocha \
--growl \
--reporter spec \
Expand Down Expand Up @@ -34,7 +44,7 @@ dist/obs.amd.js: dist/vendor
});" >> dist/obs.amd.js

dist/vendor/sublish.globals.js: dist/vendor
@wget --no-check-certificate -P dist/vendor/ https://raw.github.com/pluma/sublish/0.4.4/dist/sublish.globals.js
@wget --no-check-certificate -P dist/vendor/ https://raw.github.com/pluma/sublish/0.4.5/dist/sublish.globals.js

dist/obs.all.min.js: dist/vendor/sublish.globals.js dist/obs.globals.js
@cat dist/vendor/sublish.globals.js \
Expand Down
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -6,7 +6,7 @@ Together with [rivets.js](http://rivetsjs.com) it can serve as a lightweight alt

[![browser support](https://ci.testling.com/pluma/obs.png)](https://ci.testling.com/pluma/obs)

[![Build Status](https://travis-ci.org/pluma/obs.png?branch=master)](https://travis-ci.org/pluma/obs) [![NPM version](https://badge.fury.io/js/obs.png)](http://badge.fury.io/js/obs) [![Dependencies](https://david-dm.org/pluma/obs.png)](https://david-dm.org/pluma/obs)
[![Build Status](https://travis-ci.org/pluma/obs.png?branch=master)](https://travis-ci.org/pluma/obs) [![Coverage Status](https://coveralls.io/repos/pluma/obs/badge.png?branch=master)](https://coveralls.io/r/pluma/obs?branch=master) [![NPM version](https://badge.fury.io/js/obs.png)](http://badge.fury.io/js/obs) [![Dependencies](https://david-dm.org/pluma/obs.png)](https://david-dm.org/pluma/obs)

# Install

Expand Down Expand Up @@ -55,7 +55,7 @@ Make sure you also have a compatible copy of [sublish](https://github.com/pluma/

### As standalone bundle

Get the [latest distribution bundle](https://raw.github.com/pluma/obs/master/dist/obs.all.min.js) (~3.7 kB minified or ~1.2 kB gzipped, includes [sublish 0.4.4](https://github.com/pluma/sublish/tree/0.4.4)) and download it to your project.
Get the [latest distribution bundle](https://raw.github.com/pluma/obs/master/dist/obs.all.min.js) (~3.7 kB minified or ~1.2 kB gzipped, includes [sublish 0.4.5](https://github.com/pluma/sublish/tree/0.4.5)) and download it to your project.

```html
<script src="/your/js/path/obs.all.min.js"></script>
Expand Down Expand Up @@ -367,10 +367,8 @@ See `obs.computed(options)` and above.

This library was heavily inspired by [Steve Sanderson's knockout.js project](https://github.com/SteveSanderson/knockout).

# License

# Unlicense

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying [UNLICENSE](https://github.com/pluma/obs/blob/master/UNLICENSE) file.

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/pluma/obs/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/pluma/obs/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
2 changes: 1 addition & 1 deletion component.json
@@ -1,7 +1,7 @@
{
"name": "obs",
"repo": "pluma/obs",
"version": "0.10.1",
"version": "0.11.0",
"description": "Observable properties done right.",
"license": "UNLICENSE",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions dist/obs.all.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/obs.amd.js
@@ -1,4 +1,4 @@
/*! obs 0.10.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
/*! obs 0.11.0 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
define(function(require, exports, module) {
var PubSub = require('sublish').PubSub,
slice = Array.prototype.slice,
Expand Down
2 changes: 1 addition & 1 deletion dist/obs.amd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/obs.globals.js
@@ -1,4 +1,4 @@
/*! obs 0.10.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
/*! obs 0.11.0 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
(function(root){var require=function(key){return root[key];},module={};
var PubSub = require('sublish').PubSub,
slice = Array.prototype.slice,
Expand Down
2 changes: 1 addition & 1 deletion dist/obs.globals.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/obs.js
@@ -1,4 +1,4 @@
/*! obs 0.10.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
/*! obs 0.11.0 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
var PubSub = require('sublish').PubSub,
slice = Array.prototype.slice,
isArray = Array.isArray ? Array.isArray : function(arr) {
Expand Down

0 comments on commit 273f1eb

Please sign in to comment.