arrayfields 4.2.0 → 4.3.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 +3 -0
- data/README.tmpl +3 -0
- data/a.rb +8 -0
- data/lib/{arrayfields-4.2.0.rb → arrayfields-4.3.0.rb} +5 -7
- data/lib/arrayfields.rb +5 -7
- metadata +3 -2
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
@@ -5,7 +5,7 @@
|
|
5
5
|
# Array#fields= is called
|
6
6
|
#
|
7
7
|
module ArrayFields
|
8
|
-
self::VERSION = '4.
|
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
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
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.
|
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
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
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.
|
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.
|
37
|
+
- lib/arrayfields-4.3.0.rb
|
37
38
|
- lib/arrayfields.rb
|
38
39
|
- README
|
39
40
|
- README.tmpl
|