andand 1.3.0 → 1.3.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.
@@ -1,4 +1,4 @@
1
- == 1.3.0 2008-07-12
1
+ == 1.3.1 2008-07-12
2
2
 
3
3
  * 1 major enhancement:
4
4
  * Initial release
@@ -12,3 +12,5 @@
12
12
  * Plays well with other patch-artists
13
13
  * 6 minor enhancement
14
14
  * uses existing BlankSlate class if already defined
15
+ * 7 tiny enhancement
16
+ * use BasicObject as well
@@ -99,13 +99,20 @@ class Object
99
99
  end
100
100
 
101
101
  unless Module.constants.include?('BlankSlate')
102
- module AndAnd
103
- class BlankSlate
104
- def self.wipe
105
- instance_methods.reject { |m| m =~ /^__/ }.each { |m| undef_method m }
102
+ if Module.constants.include?('BasicObject')
103
+ module AndAnd
104
+ class BlankSlate < BasicObject
106
105
  end
107
- def initialize
108
- BlankSlate.wipe
106
+ end
107
+ else
108
+ module AndAnd
109
+ class BlankSlate
110
+ def self.wipe
111
+ instance_methods.reject { |m| m =~ /^__/ }.each { |m| undef_method m }
112
+ end
113
+ def initialize
114
+ BlankSlate.wipe
115
+ end
109
116
  end
110
117
  end
111
118
  end
@@ -2,7 +2,7 @@ module Andand #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 3
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -33,7 +33,7 @@
33
33
  <h1>Object#andand</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/andand"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/andand" class="numbers">1.3.0</a>
36
+ <a href="http://rubyforge.org/projects/andand" class="numbers">1.3.1</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;andand&#8217;</h1>
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andand
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reginald Braithwaite