arrayfields 4.7.1 → 4.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/arrayfields.rb +4 -3
  2. metadata +2 -2
@@ -5,7 +5,7 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.7.1' unless defined? self::VERSION
8
+ self::VERSION = '4.7.2' 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
@@ -95,8 +95,9 @@
95
95
  if @fieldset and (String === idx or Symbol === idx)
96
96
  pos = @fieldset.pos idx
97
97
  return nil unless pos
98
- fields.delete_at(pos)
99
- self.fields = fields
98
+ new_fields = fields.dup
99
+ new_fields.delete_at(pos)
100
+ self.fields = new_fields
100
101
  super pos
101
102
  else
102
103
  super
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arrayfields
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.1
4
+ version: 4.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
@@ -9,7 +9,7 @@ autorequire: arrayfields
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-18 00:00:00 -07:00
12
+ date: 2009-02-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15