ae 1.6.0 → 1.6.1

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/HISTORY.rdoc CHANGED
@@ -1,5 +1,17 @@
1
1
  = RELEASE HISTORY
2
2
 
3
+ == 1.6.1 / 2010-11-05
4
+
5
+ This release has test passing for Ruby 1.9.2. Ruby 1.9.2 doesn't appear
6
+ to like &block and block_given? to be used in same method scope. It
7
+ may be a Ruby bug, nonetheless AE has been adjusted to circumvent the
8
+ problem.
9
+
10
+ Changes:
11
+
12
+ * Use `&block` and not `block_given?`.
13
+
14
+
3
15
  == 1.6.0 / 2010-11-04
4
16
 
5
17
  Support libraries defining toplevel methods, such as `legacy.rb`, now place
data/README.rdoc CHANGED
@@ -1,6 +1,7 @@
1
1
  = Assertive Expressive
2
2
 
3
- * http://proutils.rubyforge.org/ae/
3
+ * home: http://rubyworks.github.com/ae/
4
+ * code: http://github.com/rubyworks/ae/
4
5
 
5
6
 
6
7
  == DESCRIPTION
@@ -86,7 +87,7 @@ Local installation requires Setup.rb.
86
87
 
87
88
  $ gem install setup
88
89
 
89
- Then download the tarball package from GitHub (under pack/ directory)
90
+ Then download the tarball package from GitHub
90
91
  and do:
91
92
 
92
93
  $ tar -xvzf ae-1.0.0.tgz
data/lib/ae/assertor.rb CHANGED
@@ -86,7 +86,7 @@ class Assertor < AE::BasicObject
86
86
  # In other words, should the <code>|| @delegate</code> be dropped?
87
87
  #++
88
88
  def expect(*args, &block)
89
- return self if args.empty? && !block_given? # same as #assert
89
+ return self if args.empty? && !block # same as #assert
90
90
 
91
91
  target = block || args.shift
92
92
 
data/lib/ae/meta/package CHANGED
@@ -1,6 +1,6 @@
1
1
  name : ae
2
- date : 2010-11-04
3
- version : 1.6.0
2
+ date : 2010-11-05
3
+ version : 1.6.1
4
4
 
5
5
  requires:
6
6
  - syckle (build)
@@ -20,7 +20,7 @@ module AE
20
20
  #
21
21
  def be(*args, &block)
22
22
  return self if args.empty? && !block
23
- block = args.shift if !block_given? && ::Proc === args.first
23
+ block = args.shift if !block && ::Proc === args.first
24
24
  if block
25
25
  pass = block.arity > 0 ? block.call(@delegate) : block.call #@delegate.instance_eval(&block)
26
26
  msg = args.shift || @message || block.inspect
@@ -43,7 +43,7 @@ module AE
43
43
  #
44
44
  def a(*args, &block)
45
45
  return self if args.empty? && !block
46
- block = args.shift if !block_given? && ::Proc === args.first
46
+ block = args.shift if !block && ::Proc === args.first
47
47
  if block
48
48
  pass = block.arity > 0 ? block.call(@delegate) : block.call #@delegate.instance_eval(&block)
49
49
  msg = args.shift || @message || block.inspect
@@ -7,7 +7,7 @@ and AE wants to be open to these techniques. One of which
7
7
  is how Shoulda (http://shoulda.rubyforge.org) utilizes
8
8
  +should+ in a way analogous to RSpec's use of +it+.
9
9
 
10
- Even so, AE provides a an optional mixin called +Subjunctive+ which
10
+ Even so, AE provides an optional mixin called +Subjunctive+ which
11
11
  can be used to create assertor methods with English subjunctive
12
12
  terms, such as +should+, or +must+, +shall+ and +will+.
13
13
  To load this library use:
@@ -24,8 +24,8 @@ objects. For example:
24
24
  It's that easy. Because of their commonality AE provides two such terms,
25
25
  +should+ and +must+ as optional add-ons out-of-the-box.
26
26
 
27
- require 'ae/subjunctive/should'
28
- require 'ae/subjunctive/must'
27
+ require 'ae/should'
28
+ require 'ae/must'
29
29
 
30
30
  We will use these two methods interchangeable for the rest of this
31
31
  demonstration, but to be clear they both work exactly the same way,
data/qed/05_expect.rdoc CHANGED
@@ -102,4 +102,3 @@ In which case it works just like #assert, including negative forms.
102
102
  10.expect! == 11
103
103
  10.forbid == 11
104
104
 
105
-
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 0
10
- version: 1.6.0
9
+ - 1
10
+ version: 1.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Sawyer