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 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:0x1fd4c @port=80, @host="codeforpeople.org">
194
+ #<Config:0x1e834 @port=80, @host="codeforpeople.org">
191
195
 
@@ -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.6.0'
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__('instance_eval', "defined? #{ ivar }")
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
@@ -1,5 +1,5 @@
1
1
  module Attributes
2
- VERSION = '3.6.0'
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__('instance_eval', "defined? #{ ivar }")
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.6.0
7
- date: 2007-09-08 00:00:00 -06:00
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.6.0.rb
36
+ - lib/attributes-3.7.0.rb
38
37
  - lib/attributes.rb
39
38
  - README
40
39
  - README.tmpl
File without changes