map 4.5.0 → 4.5.1

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 +4 -3
  2. data/map.gemspec +1 -1
  3. metadata +8 -8
data/lib/map.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Map < Hash
2
- Version = '4.5.0' unless defined?(Version)
2
+ Version = '4.5.1' unless defined?(Version)
3
3
  Load = Kernel.method(:load) unless defined?(Load)
4
4
 
5
5
  class << Map
@@ -624,8 +624,9 @@ class Map < Hash
624
624
  end
625
625
 
626
626
  def id
627
- raise NoMethodError unless has_key?(:id)
628
- self[:id]
627
+ return self[:id] if has_key?(:id)
628
+ return self[:_id] if has_key?(:_id)
629
+ raise NoMethodError
629
630
  end
630
631
 
631
632
  # support for compound key indexing and depth first iteration
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 = "4.5.0"
6
+ spec.version = "4.5.1"
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: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 5
9
- - 0
10
- version: 4.5.0
9
+ - 1
10
+ version: 4.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ara T. Howard
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-30 00:00:00 -06:00
19
- default_executable:
18
+ date: 2011-09-25 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: "description: map kicks the ass"
@@ -40,10 +39,11 @@ files:
40
39
  - test/leak.rb
41
40
  - test/lib/testing.rb
42
41
  - test/map_test.rb
43
- has_rdoc: true
44
42
  homepage: https://github.com/ahoward/map
45
43
  licenses: []
46
44
 
45
+ metadata: {}
46
+
47
47
  post_install_message:
48
48
  rdoc_options: []
49
49
 
@@ -70,9 +70,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements: []
71
71
 
72
72
  rubyforge_project: codeforpeople
73
- rubygems_version: 1.4.2
73
+ rubygems_version: 1.8.10
74
74
  signing_key:
75
- specification_version: 3
75
+ specification_version: 4
76
76
  summary: map
77
77
  test_files: []
78
78