arrayfields 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -272,6 +272,9 @@ AUTHOR
272
272
  ara.t.howard@gmail.com
273
273
 
274
274
  HISTORY
275
+ 4.3.0:
276
+ - a dup like method, named 'copy' and based on clone, is added to Arrayfields objects
277
+
275
278
  4.2.0:
276
279
  - a dup impl apparently caused some confusion with both rake and rails, so
277
280
  this release undoes that impl and should be considered a critical bugfix
data/README.tmpl CHANGED
@@ -92,6 +92,9 @@ AUTHOR
92
92
  ara.t.howard@gmail.com
93
93
 
94
94
  HISTORY
95
+ 4.3.0:
96
+ - a dup like method, named 'copy' and based on clone, is added to Arrayfields objects
97
+
95
98
  4.2.0:
96
99
  - a dup impl apparently caused some confusion with both rake and rails, so
97
100
  this release undoes that impl and should be considered a critical bugfix
data/a.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'rubygems'
2
+ require 'arrayfields'
3
+ puts "ruby version : #{RUBY_VERSION}"
4
+ puts "gems version : #{Gem::RubyGemsVersion}"
5
+ puts "arrayfields version : #{ArrayFields::VERSION}"
6
+ require 'rake'
7
+ puts 42
8
+
@@ -5,7 +5,7 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.2.0' unless defined? self::VERSION
8
+ self::VERSION = '4.3.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
@@ -249,13 +249,11 @@
249
249
  end
250
250
  alias_method 'pairs', 'to_pairs'
251
251
 
252
- =begin
253
- def dup
254
- obj = super
255
- obj.fields = fields
256
- obj
252
+ def copy
253
+ cp = clone
254
+ cp.fields = fields.clone
255
+ cp
257
256
  end
258
- =end
259
257
  end
260
258
  Arrayfields = ArrayFields
261
259
 
data/lib/arrayfields.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.2.0' unless defined? self::VERSION
8
+ self::VERSION = '4.3.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
@@ -249,13 +249,11 @@
249
249
  end
250
250
  alias_method 'pairs', 'to_pairs'
251
251
 
252
- =begin
253
- def dup
254
- obj = super
255
- obj.fields = fields
256
- obj
252
+ def copy
253
+ cp = clone
254
+ cp.fields = fields.clone
255
+ cp
257
256
  end
258
- =end
259
257
  end
260
258
  Arrayfields = ArrayFields
261
259
 
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: arrayfields
5
5
  version: !ruby/object:Gem::Version
6
- version: 4.2.0
6
+ version: 4.3.0
7
7
  date: 2007-09-18 00:00:00 -06:00
8
8
  summary: arrayfields
9
9
  require_paths:
@@ -29,11 +29,12 @@ post_install_message:
29
29
  authors:
30
30
  - Ara T. Howard
31
31
  files:
32
+ - a.rb
32
33
  - gemspec.rb
33
34
  - gen_readme.rb
34
35
  - install.rb
35
36
  - lib
36
- - lib/arrayfields-4.2.0.rb
37
+ - lib/arrayfields-4.3.0.rb
37
38
  - lib/arrayfields.rb
38
39
  - README
39
40
  - README.tmpl