mother 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a67400fbd3434ab48672cbb60695a344d0ba8087
4
- data.tar.gz: c5564367ecac57cc878175de55b3c5e6b66c5178
2
+ SHA256:
3
+ metadata.gz: 73f3653ca2a0bc404a4d79bd8004e5356d287e69a423486d183dec936ba11eaa
4
+ data.tar.gz: 8957b1ecdf5d50325dc51dd5958d5d38d19f5cb91c0b78cf245d1ed51a6e3044
5
5
  SHA512:
6
- metadata.gz: ae5380c102c646f17fe497b00773c4a2900dc22a29f03bf44fccf76e63d6ede42060d01623ad705459f091cabc39e28ba5b240a2d7450c9fced2857ab791caf9
7
- data.tar.gz: 7362f01bcb616d9b4f9ea2a58d384936a248ffb06cc3922b450680d39afdc743fda52f7abc5d5725766055161b43f77f0c39c608c03d6b336c203a679f689ba1
6
+ metadata.gz: 9d17bb9d03c92e57e648114a934d65440120eb94d42922b4e6f0b17ca86ed24a79f48b884df6449d103c1fbe6dbe2b8f417e5ac3d05b63f461b24e76fec2d66e
7
+ data.tar.gz: 7e7b6217894632795a3a8d070333711cde88b648bdfde1bc656636f387666ee1d0a4ac975dc30dd084395d669aa80a4237062cc64a18e861f32c747440c44161
data/README.md CHANGED
@@ -170,19 +170,15 @@ file to [rubygems.org](https://rubygems.org).
170
170
 
171
171
  Bug reports and pull requests are welcome on GitHub at https://github.com/joelhelbling/mother.
172
172
  This project is intended to be a safe, welcoming space for collaboration, and contributors are
173
- expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org) code of
174
- conduct.
173
+ expected to adhere to the [code of conduct][code_of_conduct].
175
174
 
176
175
  ## License
177
176
 
178
177
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
179
178
 
180
- ## Code of Conduct
181
-
182
- Everyone interacting in Mother’s codebases, issue trackers, chat rooms and mailing lists shoulds
183
- expect to follow the [code of conduct](https://github.com/joelhelbling/mother/blob/master/CODE_OF_CONDUCT.md).
184
-
185
179
  ## Dedication
186
180
 
187
181
  _I'd like to dedicate this gem to my Mom, who taught me to think analytically, who was my first
188
182
  and best math teacher, and who encourages me to do my best, even nowadays. I love you, Mom._
183
+
184
+ [code_of_conduct]: https://github.com/joelhelbling/mother/blob/master/CODE_OF_CONDUCT.md
@@ -20,10 +20,18 @@ class Mother
20
20
  @data.keys
21
21
  end
22
22
 
23
+ def values
24
+ @data.values
25
+ end
26
+
23
27
  def method_missing(method, *args, &block)
24
28
  self[method]
25
29
  end
26
30
 
31
+ def respond_to_missing?(method, include_private = true)
32
+ keys.include?(method) || keys.include?(method.to_s) || super
33
+ end
34
+
27
35
  private
28
36
 
29
37
  def ___fetch(key)
@@ -1,3 +1,3 @@
1
1
  class Mother
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mother
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Helbling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-12 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,8 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubyforge_project:
138
- rubygems_version: 2.6.14.1
137
+ rubygems_version: 3.0.3
139
138
  signing_key:
140
139
  specification_version: 4
141
140
  summary: Method-ized access to a hash's children, and their children.