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 +5 -5
- data/README.md +3 -7
- data/lib/mother.rb +8 -0
- data/lib/mother/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 73f3653ca2a0bc404a4d79bd8004e5356d287e69a423486d183dec936ba11eaa
|
4
|
+
data.tar.gz: 8957b1ecdf5d50325dc51dd5958d5d38d19f5cb91c0b78cf245d1ed51a6e3044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 [
|
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
|
data/lib/mother.rb
CHANGED
@@ -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)
|
data/lib/mother/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
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.
|