map 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/map.rb +5 -5
  2. data/map.gemspec +1 -1
  3. metadata +4 -4
data/lib/map.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Map < Hash
2
- Version = '2.2.1' unless defined?(Version)
2
+ Version = '2.2.2' unless defined?(Version)
3
3
  Load = Kernel.method(:load) unless defined?(Load)
4
4
 
5
5
  class << Map
@@ -505,16 +505,16 @@ class Map < Hash
505
505
  # a sane method missing that only supports writing values or reading
506
506
  # *previously set* values
507
507
  #
508
- def method_missing(method, *args, &block)
509
- method = method.to_s
508
+ def method_missing(*args, &block)
509
+ method = args.first.to_s
510
510
  case method
511
511
  when /=$/
512
- key = method.chomp('=')
512
+ key = args.shift.to_s.chomp('=')
513
513
  value = args.shift
514
514
  self[key] = value
515
515
  else
516
516
  key = method
517
- super(method, *args, &block) unless has_key?(key)
517
+ super(*args, &block) unless has_key?(key)
518
518
  self[key]
519
519
  end
520
520
  end
data/map.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "map"
6
- spec.version = "2.2.1"
6
+ spec.version = "2.2.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "map"
9
9
  spec.description = "description: map kicks the ass"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: map
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 1
10
- version: 2.2.1
9
+ - 2
10
+ version: 2.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ara T. Howard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-25 00:00:00 -07:00
18
+ date: 2011-01-26 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21