Skip to content

Commit

Permalink
Merge pull request #24 from keithamus/release-0.6.0
Browse files Browse the repository at this point in the history
Release 0.6.0
  • Loading branch information
keithamus committed Apr 26, 2015
2 parents 78f860a + 06e465d commit 54d37ba
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 18 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
sudo: false
language: node_js
node_js:
- 0.1

script:
- make test

deploy:
provider: npm
email:
secure: "CjpTiZhmHgaC8AE1ojd5KcNTm4jDPo/ypVuH7sL/ecbcomInk1yJmENGQjI8+ewpbgPvO+i4P13/531LzpS5LRXx4zru5XJMDshL/0c/vJUjb23n3ZjBALQp+zNTH9v7d7PXsQX6rZBsY9DBHv37gMV1bvWv33+JdyI4UdsZlTY="
api_key:
secure: "WApQ08Ja4r46fMGJMPKbBsRKq4BLwIWoYW/kb+ogAvkYmIEeunIIcXrSjO44kt5Jk+Z+kzgJGW9dB88zFn6EEeflEwp5YmR8hI5A7dsps34Jx5gdZWjusZrowqLo8NRHSN/+w7hbq7k/9c5YmFbtd68TLNm+Sw/FXpaPnAQ9lw8="
on:
tags: true
repo: chaijs/chai-spies
all_branches: true
44 changes: 35 additions & 9 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
0.6.0 / 2015-04-24
==================

0.5.1 / 2012-11-15
* Merge pull request #21 from stalniy/master
* Added test for anonymous spy object implementation
* Fixed JsDoc for spy.object method
* Implemented support for spy.on and spy.object methods
* Merge pull request #20 from Ryckes/patch-1
* Merge pull request #17 from Ryuno-Ki/master
* Update spy.js
* Update chai-spies.js
* Merge pull request #19 from sateffen/master
* Corrected some spelling mistakes in README.md
* Fixed typo.
* Merge pull request #16 from plaxdan/patch-1
* Add .with to the API docs
* Merge pull request #15 from brandonhorst/master
* Added docs for above/below
* Implemented min/at least and max/at most
* Fixed language of above and below
* Fix the `called` examples
* Merge pull request #10 from pgherveou/patch-1
* 'twice' instead of 'once'
* Merge pull request #9 from pgherveou/master
* Update component.json
* add component.json

0.5.1 / 2012-11-15
==================

* fix output of .called(n) assertion error

0.5.0 / 2012-11-14
0.5.0 / 2012-11-14
==================

* Merge branch 'feature/arguments'
Expand All @@ -13,14 +39,14 @@
* add assertions for argument checking
* add assertion: .with() / .with

0.4.0 / 2012-10-09
0.4.0 / 2012-10-09
==================

* Merge pull request #5 from tregusti/feature/return-value
* Make spies have a return value.
* credit where due

0.3.0 / 2012-07-11
0.3.0 / 2012-07-11
==================

* Merge branch 'feature/human-stringified' of git://github.com/tregusti/chai-spies into tregusti-feature/human-stringified
Expand All @@ -33,7 +59,7 @@
* Fix type in docs
* Corrected textual message

0.2.3 / 2012-07-09
0.2.3 / 2012-07-09
==================

* update folio dep version
Expand All @@ -45,18 +71,18 @@
* use folio for build
* cleanup pre-folio

0.2.2 / 2012-05-17
0.2.2 / 2012-05-17
==================

* bug - not correctly overwriting above/below
* browser build

0.2.1 / 2012-05-17
0.2.1 / 2012-05-17
==================

* spies mimic length of original function

0.2.0 / 2012-05-16
0.2.0 / 2012-05-16
==================

* chai 1.0.0 compatibility
Expand All @@ -67,7 +93,7 @@
* added link to jack project
* small typo fixes

0.1.0 / 2012-02-13
0.1.0 / 2012-02-13
==================

* mit license
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(The MIT License)

Copyright (c) 2012 Jake Luer <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
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.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,26 @@ Node tests can be executed using `make test`. Browser tests can be seen by openi

## Contributors

commits: 42
files : 11
authors:
33 Jake Luer 78.6%
6 Glenn Jorde 14.3%
2 JamesMaroney 4.8%
1 Domenic Denicola 2.4%
project : chai-spies
repo age : 3 years, 2 months
active : 26 days
commits : 77
files : 12
authors :
48 Jake Luer 62.3%
7 Glenn Jorde 9.1%
4 Keith Cirkel 5.2%
3 = 3.9%
3 Sergiy Stotskiy 3.9%
2 JamesMaroney 2.6%
2 PG Herveou 2.6%
2 Ryckes 2.6%
1 Veselin Todorov 1.3%
1 Steffen 1.3%
1 Daniel Walker 1.3%
1 Domenic Denicola 1.3%
1 Andre Jaenisch 1.3%
1 PG 1.3%

## License

Expand Down
124 changes: 124 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Release Notes

## 0.6.0 / 2015-04-24

Added `.spy.on` and `.spy.object` to easily make new spies, for example:

```js
// Returns `fs` but with readFile and readFileSync spied on
var fs = chai.spy.object(fs, ['readFile', 'readFileSync']);

// Shortcut for `fs.writeFile = chai.spy(fs.writeFile)`
chai.spy.on(fs, 'writeFile');
```

Added new assertions:

* `.called.min(n)/.at.least(n)` to assert a spy has been called a minimum of
`n` many times.
* `.called.max(n)/.at.most(n)` to assert that a spy has been called at most `n`
number of times.

### Community Contributions

#### Code Features & Fixes

* [#9](https://github.com/chaijs/chai/pull/9) Add support for component
By [@pgherveou](https://github.com/pgherveou)

* [#15](https://github.com/chaijs/chai/pull/15) Add `above`/`below`/`at.most`/
`at.least` call count assertions.
By [@brandonhorst](https://github.com/brandonhorst)

* [#20](https://github.com/chaijs/chai/pull/20) Fix output for `.called()`
By [@Ryckes](https://github.com/Ryckes)

* [#21](https://github.com/chaijs/chai/pull/21) Add `.spy.on` and `.spy.object`
methods.
By [@stalniy](https://github.com/stalniy)

#### Documentation fixes

* [#10](https://github.com/chaijs/chai/pull/10) Fix documentation with `once`
By [@pgherveou](https://github.com/pgherveou)

* [#16](https://github.com/chaijs/chai/pull/16) Add `.with` docs
By [@plaxdan](https://github.com/plaxdan)

* [#17](https://github.com/chaijs/chai/pull/17) Fix small typo in docs
By [@Ryuno-Ki](https://github.com/Ryuno-Ki)

* [#19](https://github.com/chaijs/chai/pull/19) Fix a handful of typos in
README.md
By [@sateffen](https://github.com/sateffen)

## 0.5.1 / 2012-11-15

Small bugfix, fixing the output of the `.called(n)` assertion error.

## 0.5.0 / 2012-11-14

A few new features:

- Add `.with()` and `.exactly.with()` assertion for asserting what arguments
a spy was called with.

## 0.4.0 / 2012-10-09

Ensure spies return the value of their wrapped functions

### Community Contributions

#### Code Features & Fixes

* [#5](https://github.com/chaijs/chai/pull/5) Make spies have a return value.
By [@tregusti](https://github.com/tregusti)

## 0.3.0 / 2012-07-11

Add ability for spies to have an (optional) name.

### Community Contributions

#### Code Features & Fixes

* [#3](https://github.com/chaijs/chai/pull/3) Add an optional name to spies
By [@tregusti](https://github.com/tregusti)

#### Documentation fixes

* [#2](https://github.com/chaijs/chai-spies/pull/2) Fix typos in `called.twice`
assertion
By [@tregusti](https://github.com/tregusti)

* [#3](https://github.com/chaijs/chai-spies/pull/2) Fix various typos
By [@tregusti](https://github.com/tregusti)


## 0.2.3 / 2012-07-09

Small bugfixes, improving the AMD wraper

## 0.2.2 / 2012-05-17

Few minor bugfixes, no new features.

## 0.2.1 / 2012-05-17

Spies now mimic length of original function.

## 0.2.0 / 2012-05-16

Add Chai 1.0.0 compatibility.

### Community Contributions

#### Documentation fixes

* [#1](https://github.com/chaijs/chai-spies/pull/1) Fix README typos and
missing link
By [@JamesMaroney](https://github.com/JamesMaroney)

## 0.1.0 / 2012-02-13

Initial release
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chai-spies",
"repo": "chaijs/chai-spies",
"version": "0.5.1",
"version": "0.6.0",
"description": "Spies for the Chai assertion library.",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Jake Luer <[email protected]> (http://alogicalparadox.com)",
"name": "chai-spies",
"description": "Spies for the Chai assertion library.",
"version": "0.5.1",
"version": "0.6.0",
"repository": {
"type": "git",
"url": "git://github.com/logicalparadox/chai-spies.git"
Expand Down

0 comments on commit 54d37ba

Please sign in to comment.