Skip to content

Commit 54d37ba

Browse files
committed
Merge pull request #24 from keithamus/release-0.6.0
Release 0.6.0
2 parents 78f860a + 06e465d commit 54d37ba

File tree

7 files changed

+220
-18
lines changed

7 files changed

+220
-18
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- 0.1
5+
6+
script:
7+
- make test
8+
9+
deploy:
10+
provider: npm
11+
email:
12+
secure: "CjpTiZhmHgaC8AE1ojd5KcNTm4jDPo/ypVuH7sL/ecbcomInk1yJmENGQjI8+ewpbgPvO+i4P13/531LzpS5LRXx4zru5XJMDshL/0c/vJUjb23n3ZjBALQp+zNTH9v7d7PXsQX6rZBsY9DBHv37gMV1bvWv33+JdyI4UdsZlTY="
13+
api_key:
14+
secure: "WApQ08Ja4r46fMGJMPKbBsRKq4BLwIWoYW/kb+ogAvkYmIEeunIIcXrSjO44kt5Jk+Z+kzgJGW9dB88zFn6EEeflEwp5YmR8hI5A7dsps34Jx5gdZWjusZrowqLo8NRHSN/+w7hbq7k/9c5YmFbtd68TLNm+Sw/FXpaPnAQ9lw8="
15+
on:
16+
tags: true
17+
repo: chaijs/chai-spies
18+
all_branches: true

History.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
1+
0.6.0 / 2015-04-24
2+
==================
13

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

531
* fix output of .called(n) assertion error
632

7-
0.5.0 / 2012-11-14
33+
0.5.0 / 2012-11-14
834
==================
935

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

16-
0.4.0 / 2012-10-09
42+
0.4.0 / 2012-10-09
1743
==================
1844

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

23-
0.3.0 / 2012-07-11
49+
0.3.0 / 2012-07-11
2450
==================
2551

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

36-
0.2.3 / 2012-07-09
62+
0.2.3 / 2012-07-09
3763
==================
3864

3965
* update folio dep version
@@ -45,18 +71,18 @@
4571
* use folio for build
4672
* cleanup pre-folio
4773

48-
0.2.2 / 2012-05-17
74+
0.2.2 / 2012-05-17
4975
==================
5076

5177
* bug - not correctly overwriting above/below
5278
* browser build
5379

54-
0.2.1 / 2012-05-17
80+
0.2.1 / 2012-05-17
5581
==================
5682

5783
* spies mimic length of original function
5884

59-
0.2.0 / 2012-05-16
85+
0.2.0 / 2012-05-16
6086
==================
6187

6288
* chai 1.0.0 compatibility
@@ -67,7 +93,7 @@
6793
* added link to jack project
6894
* small typo fixes
6995

70-
0.1.0 / 2012-02-13
96+
0.1.0 / 2012-02-13
7197
==================
7298

7399
* mit license

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2012 Jake Luer <jake@alogicalparadox.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,26 @@ Node tests can be executed using `make test`. Browser tests can be seen by openi
193193

194194
## Contributors
195195

196-
commits: 42
197-
files : 11
198-
authors:
199-
33 Jake Luer 78.6%
200-
6 Glenn Jorde 14.3%
201-
2 JamesMaroney 4.8%
202-
1 Domenic Denicola 2.4%
196+
project : chai-spies
197+
repo age : 3 years, 2 months
198+
active : 26 days
199+
commits : 77
200+
files : 12
201+
authors :
202+
48 Jake Luer 62.3%
203+
7 Glenn Jorde 9.1%
204+
4 Keith Cirkel 5.2%
205+
3 = 3.9%
206+
3 Sergiy Stotskiy 3.9%
207+
2 JamesMaroney 2.6%
208+
2 PG Herveou 2.6%
209+
2 Ryckes 2.6%
210+
1 Veselin Todorov 1.3%
211+
1 Steffen 1.3%
212+
1 Daniel Walker 1.3%
213+
1 Domenic Denicola 1.3%
214+
1 Andre Jaenisch 1.3%
215+
1 PG 1.3%
203216

204217
## License
205218

ReleaseNotes.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Release Notes
2+
3+
## 0.6.0 / 2015-04-24
4+
5+
Added `.spy.on` and `.spy.object` to easily make new spies, for example:
6+
7+
```js
8+
// Returns `fs` but with readFile and readFileSync spied on
9+
var fs = chai.spy.object(fs, ['readFile', 'readFileSync']);
10+
11+
// Shortcut for `fs.writeFile = chai.spy(fs.writeFile)`
12+
chai.spy.on(fs, 'writeFile');
13+
```
14+
15+
Added new assertions:
16+
17+
* `.called.min(n)/.at.least(n)` to assert a spy has been called a minimum of
18+
`n` many times.
19+
* `.called.max(n)/.at.most(n)` to assert that a spy has been called at most `n`
20+
number of times.
21+
22+
### Community Contributions
23+
24+
#### Code Features & Fixes
25+
26+
* [#9](https://github.com/chaijs/chai/pull/9) Add support for component
27+
By [@pgherveou](https://github.com/pgherveou)
28+
29+
* [#15](https://github.com/chaijs/chai/pull/15) Add `above`/`below`/`at.most`/
30+
`at.least` call count assertions.
31+
By [@brandonhorst](https://github.com/brandonhorst)
32+
33+
* [#20](https://github.com/chaijs/chai/pull/20) Fix output for `.called()`
34+
By [@Ryckes](https://github.com/Ryckes)
35+
36+
* [#21](https://github.com/chaijs/chai/pull/21) Add `.spy.on` and `.spy.object`
37+
methods.
38+
By [@stalniy](https://github.com/stalniy)
39+
40+
#### Documentation fixes
41+
42+
* [#10](https://github.com/chaijs/chai/pull/10) Fix documentation with `once`
43+
By [@pgherveou](https://github.com/pgherveou)
44+
45+
* [#16](https://github.com/chaijs/chai/pull/16) Add `.with` docs
46+
By [@plaxdan](https://github.com/plaxdan)
47+
48+
* [#17](https://github.com/chaijs/chai/pull/17) Fix small typo in docs
49+
By [@Ryuno-Ki](https://github.com/Ryuno-Ki)
50+
51+
* [#19](https://github.com/chaijs/chai/pull/19) Fix a handful of typos in
52+
README.md
53+
By [@sateffen](https://github.com/sateffen)
54+
55+
## 0.5.1 / 2012-11-15
56+
57+
Small bugfix, fixing the output of the `.called(n)` assertion error.
58+
59+
## 0.5.0 / 2012-11-14
60+
61+
A few new features:
62+
63+
- Add `.with()` and `.exactly.with()` assertion for asserting what arguments
64+
a spy was called with.
65+
66+
## 0.4.0 / 2012-10-09
67+
68+
Ensure spies return the value of their wrapped functions
69+
70+
### Community Contributions
71+
72+
#### Code Features & Fixes
73+
74+
* [#5](https://github.com/chaijs/chai/pull/5) Make spies have a return value.
75+
By [@tregusti](https://github.com/tregusti)
76+
77+
## 0.3.0 / 2012-07-11
78+
79+
Add ability for spies to have an (optional) name.
80+
81+
### Community Contributions
82+
83+
#### Code Features & Fixes
84+
85+
* [#3](https://github.com/chaijs/chai/pull/3) Add an optional name to spies
86+
By [@tregusti](https://github.com/tregusti)
87+
88+
#### Documentation fixes
89+
90+
* [#2](https://github.com/chaijs/chai-spies/pull/2) Fix typos in `called.twice`
91+
assertion
92+
By [@tregusti](https://github.com/tregusti)
93+
94+
* [#3](https://github.com/chaijs/chai-spies/pull/2) Fix various typos
95+
By [@tregusti](https://github.com/tregusti)
96+
97+
98+
## 0.2.3 / 2012-07-09
99+
100+
Small bugfixes, improving the AMD wraper
101+
102+
## 0.2.2 / 2012-05-17
103+
104+
Few minor bugfixes, no new features.
105+
106+
## 0.2.1 / 2012-05-17
107+
108+
Spies now mimic length of original function.
109+
110+
## 0.2.0 / 2012-05-16
111+
112+
Add Chai 1.0.0 compatibility.
113+
114+
### Community Contributions
115+
116+
#### Documentation fixes
117+
118+
* [#1](https://github.com/chaijs/chai-spies/pull/1) Fix README typos and
119+
missing link
120+
By [@JamesMaroney](https://github.com/JamesMaroney)
121+
122+
## 0.1.0 / 2012-02-13
123+
124+
Initial release

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "chai-spies",
33
"repo": "chaijs/chai-spies",
4-
"version": "0.5.1",
4+
"version": "0.6.0",
55
"description": "Spies for the Chai assertion library.",
66
"license": "MIT",
77
"keywords": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jake Luer <jake@alogicalparadox.com> (http://alogicalparadox.com)",
33
"name": "chai-spies",
44
"description": "Spies for the Chai assertion library.",
5-
"version": "0.5.1",
5+
"version": "0.6.0",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/logicalparadox/chai-spies.git"

0 commit comments

Comments
 (0)