-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added `domain.createDomain()` alias - Thanks to [James Halliday](https://github.com/substack) for [pull request #1](#1)
- Loading branch information
Showing
9 changed files
with
92 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# v1.3.5 October 31, 2013 | ||
# v1.3.10 December 10, 2013 | ||
# https://github.com/bevry/base | ||
|
||
# Temp Files | ||
**/*.log | ||
**/.docpad.db | ||
|
||
# Build Files | ||
build/ | ||
components/ | ||
bower_components/ | ||
node_modules/ | ||
out/ | ||
|
||
# ===================================== | ||
# CUSTOM MODIFICATIONS | ||
|
||
# None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
# v1.3.8 November 7, 2013 | ||
# v1.3.17 May 29, 2014 | ||
# https://github.com/bevry/base | ||
language: node_js | ||
# ensure npm is the latest (handled via npm install -g npm) | ||
# ensure dev dependencies are installed (handled via npm install) | ||
# ensure test dependencies are installed (handled via cake install) | ||
install: "npm install -g npm && npm install && ./node_modules/.bin/cake install" | ||
# ensure our application is compiled before we run our tests | ||
before_script: "./node_modules/.bin/cake compile" | ||
script: "npm test" | ||
node_js: | ||
- "0.8" | ||
- "0.10" | ||
cache: | ||
directories: | ||
- node_modules | ||
notifications: | ||
irc: | ||
- "irc.freenode.org#bevry-dev" | ||
email: | ||
recipients: | ||
- [email protected] | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,8 +75,7 @@ For project maintainers | |
``` | ||
|
||
5. Publish new version | ||
|
||
``` bash | ||
cake publish | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# History | ||
|
||
- v1.1.1 December 27, 2013 | ||
- Fixed `domain.create()` not returning anything | ||
## v1.1.2 June 8, 2014 | ||
- Added `domain.createDomain()` alias | ||
- Thanks to [James Halliday](https://github.com/substack) for [pull request #1](https://github.com/bevry/domain-browser/pull/1) | ||
|
||
- v1.1.0 November 1, 2013 | ||
- Dropped component.io and bower support, just use ender or browserify | ||
## v1.1.1 December 27, 2013 | ||
- Fixed `domain.create()` not returning anything | ||
|
||
- v1.0.1 September 18, 2013 | ||
- Now called `domain-browser` everywhere | ||
## v1.1.0 November 1, 2013 | ||
- Dropped component.io and bower support, just use ender or browserify | ||
|
||
- v1.0.0 September 18, 2013 | ||
- Initial release | ||
## v1.0.1 September 18, 2013 | ||
- Now called `domain-browser` everywhere | ||
|
||
## v1.0.0 September 18, 2013 | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,13 @@ | |
|
||
[![Build Status](http://img.shields.io/travis-ci/bevry/domain-browser.png?branch=master)](http://travis-ci.org/bevry/domain-browser "Check this project's build status on TravisCI") | ||
[![NPM version](http://badge.fury.io/js/domain-browser.png)](https://npmjs.org/package/domain-browser "View this project on NPM") | ||
[![Dependency Status](https://david-dm.org/bevry/domain-browser.png?theme=shields.io)](https://david-dm.org/bevry/domain-browser) | ||
[![Development Dependency Status](https://david-dm.org/bevry/domain-browser/dev-status.png?theme=shields.io)](https://david-dm.org/bevry/domain-browser#info=devDependencies)<br/> | ||
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
[![BitCoin donate button](http://img.shields.io/bitcoin/donate.png?color=yellow)](https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a "Donate once-off to this project using BitCoin") | ||
[![Wishlist browse button](http://img.shields.io/wishlist/browse.png?color=yellow)](http://amzn.com/w/2F8TXKSNAFG4V "Buy an item on our wishlist for us") | ||
|
||
<!-- /BADGES --> | ||
|
||
|
@@ -28,14 +32,14 @@ Note, this is merely an evented try...catch with the same API as node. Nothing m | |
|
||
## Install | ||
|
||
### [Node](http://nodejs.org/) | ||
### [NPM](http://npmjs.org/) | ||
- Use: `require('domain-browser')` | ||
- Install: `npm install --save domain-browser` | ||
|
||
### [Browserify](http://browserify.org/) | ||
- Use: `require('domain-browser')` | ||
- Install: `npm install --save domain-browser` | ||
- CDN URL: `//wzrd.in/bundle/[email protected].1` | ||
- CDN URL: `//wzrd.in/bundle/[email protected].2` | ||
|
||
### [Ender](http://ender.jit.su/) | ||
- Use: `require('domain-browser')` | ||
|
@@ -69,6 +73,8 @@ No sponsors yet! Will you be the first? | |
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
[![BitCoin donate button](http://img.shields.io/bitcoin/donate.png?color=yellow)](https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a "Donate once-off to this project using BitCoin") | ||
[![Wishlist browse button](http://img.shields.io/wishlist/browse.png?color=yellow)](http://amzn.com/w/2F8TXKSNAFG4V "Buy an item on our wishlist for us") | ||
|
||
### Contributors | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
/*global define:false require:false */ | ||
module.exports = (function(){ | ||
// Import Events | ||
var events = require('events'); | ||
// Import Events | ||
var events = require('events'); | ||
|
||
// Export Domain | ||
var domain = {}; | ||
domain.create = function(){ | ||
var d = new events.EventEmitter(); | ||
d.run = function(fn){ | ||
try { | ||
fn(); | ||
} | ||
catch (err) { | ||
this.emit('error', err); | ||
} | ||
return this; | ||
}; | ||
d.dispose = function(){ | ||
this.removeAllListeners(); | ||
return this; | ||
}; | ||
return d; | ||
}; | ||
domain.createDomain = domain.create; | ||
return domain; | ||
// Export Domain | ||
var domain = {}; | ||
domain.createDomain = domain.create = function(){ | ||
var d = new events.EventEmitter(); | ||
d.run = function(fn){ | ||
try { | ||
fn(); | ||
} | ||
catch (err) { | ||
this.emit('error', err); | ||
} | ||
return this; | ||
}; | ||
d.dispose = function(){ | ||
this.removeAllListeners(); | ||
return this; | ||
}; | ||
return d; | ||
}; | ||
return domain; | ||
}).call(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters