ae 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.ruby +3 -3
- data/HISTORY.rdoc +11 -0
- data/lib/ae.yml +3 -3
- data/lib/ae/ok.rb +38 -0
- metadata +5 -4
data/.ruby
CHANGED
@@ -18,8 +18,8 @@ resources:
|
|
18
18
|
code: http://github.com/rubyworks/ae
|
19
19
|
mail: http://groups.google.com/group/rubyworks-mailinglist
|
20
20
|
docs: http://wiki.github.com/rubyworks/ae/docs/qed
|
21
|
-
wiki: http://wiki.github.com/rubyworks/ae
|
22
21
|
bugs: http://github.com/rubyworks/ae/issues
|
22
|
+
wiki: http://wiki.github.com/rubyworks/ae
|
23
23
|
home: http://rubyworks.github.com/ae
|
24
24
|
maintainers: []
|
25
25
|
|
@@ -36,8 +36,8 @@ requires:
|
|
36
36
|
- test
|
37
37
|
name: qed
|
38
38
|
version: 0+
|
39
|
-
manifest:
|
40
|
-
version: 1.7.
|
39
|
+
manifest: Manifest
|
40
|
+
version: 1.7.3
|
41
41
|
licenses:
|
42
42
|
- Apache 2.0
|
43
43
|
copyright: Copyright (c) 2008 Thomas Sawyer
|
data/HISTORY.rdoc
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
= RELEASE HISTORY
|
2
2
|
|
3
|
+
== 1.7.3 2011-06-06 D-Day
|
4
|
+
|
5
|
+
This release simply adds a new optional help library, `ok.rb`.
|
6
|
+
The API is still in it's infancy, so it probably will change
|
7
|
+
but this early release can help refine it's development.
|
8
|
+
|
9
|
+
Changes:
|
10
|
+
|
11
|
+
* Add option `ok` helper library.
|
12
|
+
|
13
|
+
|
3
14
|
== 1.7.2 / 2011-06-02
|
4
15
|
|
5
16
|
Minor release adds color diffs for failed equality comparisons to
|
data/lib/ae.yml
CHANGED
@@ -18,8 +18,8 @@ resources:
|
|
18
18
|
code: http://github.com/rubyworks/ae
|
19
19
|
mail: http://groups.google.com/group/rubyworks-mailinglist
|
20
20
|
docs: http://wiki.github.com/rubyworks/ae/docs/qed
|
21
|
-
wiki: http://wiki.github.com/rubyworks/ae
|
22
21
|
bugs: http://github.com/rubyworks/ae/issues
|
22
|
+
wiki: http://wiki.github.com/rubyworks/ae
|
23
23
|
home: http://rubyworks.github.com/ae
|
24
24
|
maintainers: []
|
25
25
|
|
@@ -36,8 +36,8 @@ requires:
|
|
36
36
|
- test
|
37
37
|
name: qed
|
38
38
|
version: 0+
|
39
|
-
manifest:
|
40
|
-
version: 1.7.
|
39
|
+
manifest: Manifest
|
40
|
+
version: 1.7.3
|
41
41
|
licenses:
|
42
42
|
- Apache 2.0
|
43
43
|
copyright: Copyright (c) 2008 Thomas Sawyer
|
data/lib/ae/ok.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# TODO: This needs to be imporved. See KO project for
|
2
|
+
# better implementation.
|
3
|
+
|
4
|
+
module AE
|
5
|
+
|
6
|
+
#
|
7
|
+
module Okay
|
8
|
+
|
9
|
+
#
|
10
|
+
def check(msg=nil, &block)
|
11
|
+
if block.arity == 0
|
12
|
+
@__c__ = nil
|
13
|
+
assert(block.call, msg)
|
14
|
+
else
|
15
|
+
@__c__ = [block, msg]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
#
|
20
|
+
def ok(*args)
|
21
|
+
block, msg = *@__c__
|
22
|
+
assert(block.call(*args), msg)
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
def no(*args)
|
27
|
+
block, msg = *@__c__
|
28
|
+
refute(block.call(*args), msg)
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
class ::Object #:nodoc:
|
36
|
+
include AE::Okay
|
37
|
+
end
|
38
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 3
|
10
|
+
version: 1.7.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Sawyer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: ansi
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/ae/expect.rb
|
92
92
|
- lib/ae/legacy.rb
|
93
93
|
- lib/ae/must.rb
|
94
|
+
- lib/ae/ok.rb
|
94
95
|
- lib/ae/pry.rb
|
95
96
|
- lib/ae/should.rb
|
96
97
|
- lib/ae/subjunctive.rb
|