multihash 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/multihash/multihash.rb +2 -14
  2. metadata +3 -2
@@ -6,20 +6,8 @@ class MultiHash
6
6
  attr_accessor :immutable
7
7
  alias_method :immutable?, :immutable
8
8
 
9
- HASH_METHOD_WHITELIST = [
10
- :[],
11
- :assoc,
12
- :default,
13
- :empty?,
14
- :each,
15
- :each_key,
16
- :each_pair,
17
- :each_value,
18
- :fetch,
19
- :keys,
20
- :select,
21
- :values_at
22
- ]
9
+ HASH_METHOD_WHITELIST = %w{[] assoc default default= empty? each each_key
10
+ each_pair each_value fetch keys select values_at}
23
11
 
24
12
  HASH_METHOD_WHITELIST.each do |mth|
25
13
  define_method mth do |*args, &blk|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multihash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-18 00:00:00.000000000 Z
12
+ date: 2014-12-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: MultiHash allows multiple keys to the same value, concisely.
15
15
  email: syrion@gmail.com
@@ -44,3 +44,4 @@ signing_key:
44
44
  specification_version: 3
45
45
  summary: A many-to-one, immutable hash.
46
46
  test_files: []
47
+ has_rdoc: