arrayfields 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -272,6 +272,11 @@ AUTHOR
272
272
  ara.t.howard@gmail.com
273
273
 
274
274
  HISTORY
275
+ 4.2.0:
276
+ - a dup impl apparently caused some confusion with both rake and rails, so
277
+ this release undoes that impl and should be considered a critical bugfix
278
+ release
279
+
275
280
  4.1.0:
276
281
  - improved Array.struct method, see sample/e.rb
277
282
 
@@ -92,6 +92,11 @@ AUTHOR
92
92
  ara.t.howard@gmail.com
93
93
 
94
94
  HISTORY
95
+ 4.2.0:
96
+ - a dup impl apparently caused some confusion with both rake and rails, so
97
+ this release undoes that impl and should be considered a critical bugfix
98
+ release
99
+
95
100
  4.1.0:
96
101
  - improved Array.struct method, see sample/e.rb
97
102
 
@@ -5,7 +5,7 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.1.0' unless defined? self::VERSION
8
+ self::VERSION = '4.2.0' unless defined? self::VERSION
9
9
  def self.version() VERSION end
10
10
  #
11
11
  # multiton cache of fields - wraps fields and fieldpos map to save memory
@@ -248,6 +248,14 @@
248
248
  fields.zip values
249
249
  end
250
250
  alias_method 'pairs', 'to_pairs'
251
+
252
+ =begin
253
+ def dup
254
+ obj = super
255
+ obj.fields = fields
256
+ obj
257
+ end
258
+ =end
251
259
  end
252
260
  Arrayfields = ArrayFields
253
261
 
@@ -296,15 +304,6 @@
296
304
  def fields
297
305
  @fieldset and @fieldset.fields
298
306
  end
299
- #
300
- # override so dup takes a copy of @fieldset
301
- #
302
- def dup
303
- obj = super
304
- #obj.instance_eval{ remove_instance_variable '@fieldset' }
305
- obj.fields = fields
306
- obj
307
- end
308
307
  end
309
308
  #
310
309
  # Array instances are extened with two methods only: Fieldable#fields= and
@@ -5,7 +5,7 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.1.0' unless defined? self::VERSION
8
+ self::VERSION = '4.2.0' unless defined? self::VERSION
9
9
  def self.version() VERSION end
10
10
  #
11
11
  # multiton cache of fields - wraps fields and fieldpos map to save memory
@@ -248,6 +248,14 @@
248
248
  fields.zip values
249
249
  end
250
250
  alias_method 'pairs', 'to_pairs'
251
+
252
+ =begin
253
+ def dup
254
+ obj = super
255
+ obj.fields = fields
256
+ obj
257
+ end
258
+ =end
251
259
  end
252
260
  Arrayfields = ArrayFields
253
261
 
@@ -296,15 +304,6 @@
296
304
  def fields
297
305
  @fieldset and @fieldset.fields
298
306
  end
299
- #
300
- # override so dup takes a copy of @fieldset
301
- #
302
- def dup
303
- obj = super
304
- #obj.instance_eval{ remove_instance_variable '@fieldset' }
305
- obj.fields = fields
306
- obj
307
- end
308
307
  end
309
308
  #
310
309
  # Array instances are extened with two methods only: Fieldable#fields= and
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: arrayfields
5
5
  version: !ruby/object:Gem::Version
6
- version: 4.1.0
7
- date: 2007-09-14 00:00:00 -06:00
6
+ version: 4.2.0
7
+ date: 2007-09-18 00:00:00 -06:00
8
8
  summary: arrayfields
9
9
  require_paths:
10
10
  - lib
@@ -33,7 +33,7 @@ files:
33
33
  - gen_readme.rb
34
34
  - install.rb
35
35
  - lib
36
- - lib/arrayfields-4.1.0.rb
36
+ - lib/arrayfields-4.2.0.rb
37
37
  - lib/arrayfields.rb
38
38
  - README
39
39
  - README.tmpl