ae 1.7.3 → 1.7.4

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 CHANGED
@@ -1,49 +1,49 @@
1
1
  ---
2
- spec_version: 1.0.0
3
- replaces: []
4
-
5
- loadpath:
6
- - lib
7
2
  name: ae
8
- repositories:
9
- public: git://github.com/rubyworks/ae.git
10
- conflicts: []
11
-
12
- engine_check:
13
- - ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
14
- - ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
3
+ version: 1.7.4
15
4
  title: AE
16
- contact: trans <transfire@gmail.com>
17
- resources:
18
- code: http://github.com/rubyworks/ae
19
- mail: http://groups.google.com/group/rubyworks-mailinglist
20
- docs: http://wiki.github.com/rubyworks/ae/docs/qed
21
- bugs: http://github.com/rubyworks/ae/issues
22
- wiki: http://wiki.github.com/rubyworks/ae
23
- home: http://rubyworks.github.com/ae
24
- maintainers: []
25
-
5
+ summary: Assertive Expressive
6
+ description: Assertive Expressive is an assertions library specifically designed for reuse by other test frameworks.
7
+ loadpath:
8
+ - lib
9
+ manifest: Manifest
26
10
  requires:
27
- - group: []
11
+ - name: ansi
12
+ version: 0+
13
+ group: []
28
14
 
29
- name: ansi
15
+ - name: redline
30
16
  version: 0+
31
- - group:
17
+ group:
32
18
  - build
33
- name: redline
19
+ - name: qed
34
20
  version: 0+
35
- - group:
21
+ group:
36
22
  - test
37
- name: qed
38
- version: 0+
39
- manifest: Manifest
40
- version: 1.7.3
23
+ conflicts: []
24
+
25
+ replaces: []
26
+
27
+ engine_check:
28
+ - ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
29
+ - ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
30
+ organization: Rubyworks
31
+ contact: trans <transfire@gmail.com>
32
+ created: 2008-08-17
33
+ copyright: Copyright (c) 2008 Thomas Sawyer
41
34
  licenses:
42
35
  - Apache 2.0
43
- copyright: Copyright (c) 2008 Thomas Sawyer
44
36
  authors:
45
37
  - Thomas Sawyer
46
- organization: Rubyworks
47
- description: Assertive Expressive is an assertions library specifically designed for reuse by other test frameworks.
48
- summary: Assertive Expressive
49
- created: 2008-08-17
38
+ maintainers: []
39
+
40
+ resources:
41
+ home: http://rubyworks.github.com/ae
42
+ code: http://github.com/rubyworks/ae
43
+ docs: http://wiki.github.com/rubyworks/ae/docs/qed
44
+ wiki: http://wiki.github.com/rubyworks/ae
45
+ bugs: http://github.com/rubyworks/ae/issues
46
+ mail: http://groups.google.com/group/rubyworks-mailinglist
47
+ repositories:
48
+ public: git://github.com/rubyworks/ae.git
49
+ spec_version: 1.0.0
@@ -1,5 +1,16 @@
1
1
  = RELEASE HISTORY
2
2
 
3
+ == 1.7.4 2011-06-08
4
+
5
+ Quick release fixes an issue dur to Ruby 1.9+ slightly broken
6
+ constant lookup system. Yes, BasicObject has no clue. This is
7
+ fixed using `const_missing` hook.
8
+
9
+ Changes:
10
+
11
+ * Add const_missing hook to Assertor class to redirect to
12
+ toplevel methods.
13
+
3
14
  == 1.7.3 2011-06-06 D-Day
4
15
 
5
16
  This release simply adds a new optional help library, `ok.rb`.
data/lib/ae.yml CHANGED
@@ -1,49 +1,49 @@
1
1
  ---
2
- spec_version: 1.0.0
3
- replaces: []
4
-
5
- loadpath:
6
- - lib
7
2
  name: ae
8
- repositories:
9
- public: git://github.com/rubyworks/ae.git
10
- conflicts: []
11
-
12
- engine_check:
13
- - ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
14
- - ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
3
+ version: 1.7.4
15
4
  title: AE
16
- contact: trans <transfire@gmail.com>
17
- resources:
18
- code: http://github.com/rubyworks/ae
19
- mail: http://groups.google.com/group/rubyworks-mailinglist
20
- docs: http://wiki.github.com/rubyworks/ae/docs/qed
21
- bugs: http://github.com/rubyworks/ae/issues
22
- wiki: http://wiki.github.com/rubyworks/ae
23
- home: http://rubyworks.github.com/ae
24
- maintainers: []
25
-
5
+ summary: Assertive Expressive
6
+ description: Assertive Expressive is an assertions library specifically designed for reuse by other test frameworks.
7
+ loadpath:
8
+ - lib
9
+ manifest: Manifest
26
10
  requires:
27
- - group: []
11
+ - name: ansi
12
+ version: 0+
13
+ group: []
28
14
 
29
- name: ansi
15
+ - name: redline
30
16
  version: 0+
31
- - group:
17
+ group:
32
18
  - build
33
- name: redline
19
+ - name: qed
34
20
  version: 0+
35
- - group:
21
+ group:
36
22
  - test
37
- name: qed
38
- version: 0+
39
- manifest: Manifest
40
- version: 1.7.3
23
+ conflicts: []
24
+
25
+ replaces: []
26
+
27
+ engine_check:
28
+ - ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
29
+ - ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
30
+ organization: Rubyworks
31
+ contact: trans <transfire@gmail.com>
32
+ created: 2008-08-17
33
+ copyright: Copyright (c) 2008 Thomas Sawyer
41
34
  licenses:
42
35
  - Apache 2.0
43
- copyright: Copyright (c) 2008 Thomas Sawyer
44
36
  authors:
45
37
  - Thomas Sawyer
46
- organization: Rubyworks
47
- description: Assertive Expressive is an assertions library specifically designed for reuse by other test frameworks.
48
- summary: Assertive Expressive
49
- created: 2008-08-17
38
+ maintainers: []
39
+
40
+ resources:
41
+ home: http://rubyworks.github.com/ae
42
+ code: http://github.com/rubyworks/ae
43
+ docs: http://wiki.github.com/rubyworks/ae/docs/qed
44
+ wiki: http://wiki.github.com/rubyworks/ae
45
+ bugs: http://github.com/rubyworks/ae/issues
46
+ mail: http://groups.google.com/group/rubyworks-mailinglist
47
+ repositories:
48
+ public: git://github.com/rubyworks/ae.git
49
+ spec_version: 1.0.0
@@ -352,6 +352,10 @@ module AE
352
352
  #self.class.message(m)[@delegate, *a] )
353
353
  end
354
354
 
355
+ # @see http://redmine.ruby-lang.org/issues/3768
356
+ def self.const_missing(const)
357
+ ::Object.const_get(const)
358
+ end
355
359
  end
356
360
 
357
361
  end
@@ -22,6 +22,11 @@ module AE
22
22
  Assertor.new(self, :backtrace=>caller).be(*args, &block)
23
23
  end
24
24
 
25
+ # Same as 'object.must == other'.
26
+ def must=(cmp)
27
+ Assertor.new(self, :backtrace=>caller) == cmp
28
+ end
29
+
25
30
  # Designate a negated expectation via a *functor*.
26
31
  # Read this as "must not".
27
32
  #
@@ -23,10 +23,15 @@ module AE
23
23
  Assertor.new(self, :backtrace=>caller).be(*args, &block)
24
24
  end
25
25
 
26
+ # Same as 'object.should == other'.
27
+ def should=(cmp)
28
+ Assertor.new(self, :backtrace=>caller).assert == cmp
29
+ end
30
+
26
31
  # Designate a negated expectation via a *functor*.
27
32
  # Read this as "should not".
28
33
  #
29
- # 4.should! == 4 #=> Assertion Error
34
+ # 4.should! = 4 #=> Assertion Error
30
35
  #
31
36
  def should!(*args, &block)
32
37
  Assertor.new(self, :backtrace=>caller).not.be(*args, &block)
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 7
9
- - 3
10
- version: 1.7.3
5
+ version: 1.7.4
11
6
  platform: ruby
12
7
  authors:
13
8
  - Thomas Sawyer
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-06-06 00:00:00 Z
13
+ date: 2011-06-08 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: ansi
@@ -25,9 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
23
  version: "0"
32
24
  type: :runtime
33
25
  version_requirements: *id001
@@ -39,9 +31,6 @@ dependencies:
39
31
  requirements:
40
32
  - - ">="
41
33
  - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
34
  version: "0"
46
35
  type: :development
47
36
  version_requirements: *id002
@@ -53,9 +42,6 @@ dependencies:
53
42
  requirements:
54
43
  - - ">="
55
44
  - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
45
  version: "0"
60
46
  type: :development
61
47
  version_requirements: *id003
@@ -118,18 +104,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
104
  requirements:
119
105
  - - ">="
120
106
  - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
107
  version: "0"
125
108
  required_rubygems_version: !ruby/object:Gem::Requirement
126
109
  none: false
127
110
  requirements:
128
111
  - - ">="
129
112
  - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
113
  version: "0"
134
114
  requirements: []
135
115