map 4.5.0 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/map.rb +4 -3
- data/map.gemspec +1 -1
- metadata +8 -8
data/lib/map.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Map < Hash
|
2
|
-
Version = '4.5.
|
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
|
-
|
628
|
-
self[:
|
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
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:
|
4
|
+
hash: 41
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 4.5.
|
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-
|
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.
|
73
|
+
rubygems_version: 1.8.10
|
74
74
|
signing_key:
|
75
|
-
specification_version:
|
75
|
+
specification_version: 4
|
76
76
|
summary: map
|
77
77
|
test_files: []
|
78
78
|
|