mobj 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ext/hash.rb +2 -1
  3. data/lib/ext/object.rb +1 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDEzOGZhZDEzMDk0NDYyYWQ5N2Q2ZTEzNjIzNmRlMmJjZTg0OTU1Nw==
4
+ YjZlOTBhNjE0NjZlMmU4M2FiNzkwMGFmNjBmNzhhZDY2ZmJjODZjMA==
5
5
  data.tar.gz: !binary |-
6
- ZjFhMmQyYjBiMzc4MWU1Yjg4MTY1ZWU2NjI5MmU4ODQwNjRjNGRjNA==
6
+ OGY1YmQwNmYwMzc2NzVjYWRlZGY1OWYwN2RlODQ1ZGQyYWRkYzIwOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWZjZTg3YWVkYzk0YjlkNTNhNzI2MDY2NGQxYTdjN2JmMTM0ZWUyYmE2ZWQ1
10
- YzlhNDBjYzI5ZjEzMjcwNDgwZTkyZTYxYzFjNzYzM2FjZjAzM2ZiMGJhMDM1
11
- NDAyN2JlZjg5ODc2OGFiMThmODc4ZWI4NjBhZmQyMGYyZDQyYWI=
9
+ NzE4MzMxNDZmZjUzYWE3NDE0YThjM2ZmODQ5ZDAyOWM3MmRmYmUxMTM1YTM3
10
+ ZGVhOWYzNjhjYzFhYmQ2ZTI2MTkyMzQ4ODM0YzJlMDAwZTVkMzM0NDExNzZh
11
+ ZGU4ZDZjMzgzMGM3ODNjMzUyODMyMWVkZDhlOTJlNzdhZmE2OGQ=
12
12
  data.tar.gz: !binary |-
13
- ZjE3NTk0YzI1ZDE1NzU3ZGM5NzI3MWYwNzI5NmUxOGZlNWNjZDA1ODg3YzBl
14
- MWRlMmI4Y2FkYmUwMTMyNDI2ZGViZmY5YTdiZjM2MjZhNTI3MTFmNDMzYmE4
15
- Mjk1YmMyYzYxOTA1NmU3NmNkNWEyMzllMmFmMjhjNzBmMTYwYTg=
13
+ NTI4OTAwNjIwMDVlMGIyYzc3YWE3NGE2OGM3YjQ3NDRlNzAwODNlODkxYWY4
14
+ NDJiMjY3YWE2MzQ4OTk5Yzg2ZGM5MTg4YTMyNzU3MTY1ODljY2Q0MDFjYTky
15
+ YTBjYzQwYWNiMzkzOWY1MmIxYWU5NjE5MzFlNzliMDBmMGQyZjY=
@@ -67,9 +67,10 @@ module Mobj
67
67
 
68
68
  alias :mlookup :[]
69
69
  alias :mdef :default
70
+ alias :mfetch :fetch
70
71
 
71
72
  def [](*fkeys)
72
- fkeys.map { |key| mlookup(key) || fetch(key.sym) { fetch(key.to_s) { fetch(ki(key).sym) { fetch(ki(key).to_s) { mdef(key) } } } } }.sequester
73
+ fkeys.map { |key| mlookup(key) || mfetch(key.sym) { mfetch(key.to_s) { mfetch(ki(key).sym) { mfetch(ki(key).to_s) { mdef(key) } } } } }.sequester
73
74
  end
74
75
  end
75
76
 
@@ -4,9 +4,7 @@ module Mobj
4
4
  alias responds_to? respond_to?
5
5
 
6
6
  def sym()
7
- if is_a?(Symbol)
8
- self
9
- elsif respond_to?(:to_sym)
7
+ if respond_to?(:to_sym)
10
8
  to_sym
11
9
  else
12
10
  to_s.to_sym
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobj
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mason