arrayfields 4.6.0 → 4.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.
Files changed (3) hide show
  1. data/README +3 -0
  2. data/lib/arrayfields.rb +3 -3
  3. metadata +3 -3
data/README CHANGED
@@ -272,6 +272,9 @@ AUTHOR
272
272
  ara.t.howard@gmail.com
273
273
 
274
274
  HISTORY
275
+ 4.7.0
276
+ - fix warnings under ruby strict - thx james gray
277
+
275
278
  4.6.0
276
279
  - Array#fields getter acts as setter if arg given, eg
277
280
 
@@ -5,7 +5,7 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.6.0' unless defined? self::VERSION
8
+ self::VERSION = '4.7.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
@@ -155,7 +155,7 @@
155
155
  @fieldset.each{|field| yield field}
156
156
  end
157
157
  def each_value *args, &block
158
- each *args, &block
158
+ each(*args, &block)
159
159
  end
160
160
  def fetch key
161
161
  self[key] or raise IndexError, 'key not found'
@@ -278,7 +278,7 @@
278
278
  array
279
279
  end
280
280
  def self.[] *pairs
281
- new *pairs
281
+ new(*pairs)
282
282
  end
283
283
  end
284
284
  def Arrayfields(*a, &b) Arrayfields.new(*a, &b) end
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.6.0
4
+ version: 4.7.0
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: 2008-07-13 00:00:00 -06:00
12
+ date: 2009-02-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements: []
61
61
 
62
62
  rubyforge_project:
63
- rubygems_version: 1.0.1
63
+ rubygems_version: 1.3.1
64
64
  signing_key:
65
65
  specification_version: 2
66
66
  summary: arrayfields