attributes 3.6.0 → 3.7.0
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/README +5 -1
- data/README.tmpl +4 -0
- data/lib/{attributes-3.6.0.rb → attributes-3.7.0.rb} +2 -2
- data/lib/attributes.rb +2 -2
- metadata +3 -4
- data/attributes-3.6.0.gem +0 -0
data/README
CHANGED
|
@@ -22,6 +22,10 @@ SYNOPSIS
|
|
|
22
22
|
in particular the solutions of Christian Neukirchen and Florian Gross.
|
|
23
23
|
|
|
24
24
|
HISTORY
|
|
25
|
+
3.7.0
|
|
26
|
+
small patch to use 'instance_variable_defined?' instead of defined?
|
|
27
|
+
keyword
|
|
28
|
+
|
|
25
29
|
3.5.0
|
|
26
30
|
migrated to a pervasives based impl to attributes should work on any
|
|
27
31
|
object - even blankslate objects
|
|
@@ -187,5 +191,5 @@ SAMPLES
|
|
|
187
191
|
|
|
188
192
|
~ > ruby samples/e.rb
|
|
189
193
|
|
|
190
|
-
#<Config:
|
|
194
|
+
#<Config:0x1e834 @port=80, @host="codeforpeople.org">
|
|
191
195
|
|
data/README.tmpl
CHANGED
|
@@ -22,6 +22,10 @@ SYNOPSIS
|
|
|
22
22
|
in particular the solutions of Christian Neukirchen and Florian Gross.
|
|
23
23
|
|
|
24
24
|
HISTORY
|
|
25
|
+
3.7.0
|
|
26
|
+
small patch to use 'instance_variable_defined?' instead of defined?
|
|
27
|
+
keyword
|
|
28
|
+
|
|
25
29
|
3.5.0
|
|
26
30
|
migrated to a pervasives based impl to attributes should work on any
|
|
27
31
|
object - even blankslate objects
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module Attributes
|
|
2
|
-
VERSION = '3.
|
|
2
|
+
VERSION = '3.7.0'
|
|
3
3
|
def self.version() VERSION end
|
|
4
4
|
|
|
5
5
|
def attributes *a, &b
|
|
@@ -25,7 +25,7 @@ module Attributes
|
|
|
25
25
|
unless value.empty?
|
|
26
26
|
__pervasive__('send', setter, value.shift)
|
|
27
27
|
else
|
|
28
|
-
defined = __pervasive__('
|
|
28
|
+
defined = __pervasive__('instance_variable_defined?', "#{ ivar }")
|
|
29
29
|
__pervasive__('send', setter, __pervasive__('instance_eval', &init)) unless defined
|
|
30
30
|
__pervasive__('instance_variable_get', ivar)
|
|
31
31
|
end
|
data/lib/attributes.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module Attributes
|
|
2
|
-
VERSION = '3.
|
|
2
|
+
VERSION = '3.7.0'
|
|
3
3
|
def self.version() VERSION end
|
|
4
4
|
|
|
5
5
|
def attributes *a, &b
|
|
@@ -25,7 +25,7 @@ module Attributes
|
|
|
25
25
|
unless value.empty?
|
|
26
26
|
__pervasive__('send', setter, value.shift)
|
|
27
27
|
else
|
|
28
|
-
defined = __pervasive__('
|
|
28
|
+
defined = __pervasive__('instance_variable_defined?', "#{ ivar }")
|
|
29
29
|
__pervasive__('send', setter, __pervasive__('instance_eval', &init)) unless defined
|
|
30
30
|
__pervasive__('instance_variable_get', ivar)
|
|
31
31
|
end
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: attributes
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 3.
|
|
7
|
-
date: 2007-09-
|
|
6
|
+
version: 3.7.0
|
|
7
|
+
date: 2007-09-15 00:00:00 -06:00
|
|
8
8
|
summary: attributes
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
@@ -29,12 +29,11 @@ post_install_message:
|
|
|
29
29
|
authors:
|
|
30
30
|
- Ara T. Howard
|
|
31
31
|
files:
|
|
32
|
-
- attributes-3.6.0.gem
|
|
33
32
|
- gemspec.rb
|
|
34
33
|
- gen_readme.rb
|
|
35
34
|
- install.rb
|
|
36
35
|
- lib
|
|
37
|
-
- lib/attributes-3.
|
|
36
|
+
- lib/attributes-3.7.0.rb
|
|
38
37
|
- lib/attributes.rb
|
|
39
38
|
- README
|
|
40
39
|
- README.tmpl
|
data/attributes-3.6.0.gem
DELETED
|
File without changes
|