before_hooks 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/lib/before_hooks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6162facbf923db0803da2bfc28c8d84bdd3c814d62ebaaa50cd8d6031d4b4b08
|
4
|
+
data.tar.gz: 5a601dd60f48722c4cf9cb6132ff3daa04e92fd9b8e8fffdd0f4813250174e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f528520b897d89e08d01d01c8155dcb03a37a108b3b2312605b7caade0468af24d5d16cbe3a1ea9f9bd12db35f5c2fae1b457d5b5d382e54fd092eb93346a4ad
|
7
|
+
data.tar.gz: 756444632df1a67e324d88cd6b653e7f663870e5dd8078cb5853cdb7be5dc35866f0240c695b1f0df91ccf39e6553a54b3a6b2a13ff68131bf5e88e908d684ac
|
data/README.md
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/jrpolidario/before_hooks)
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
It only promotes and delegates responsibility to the developer to ensure that he/she does not unnecessarily cause "hidden" bugs.
|
5
|
+
Adds `before_extended`, `before_included`, and `before_prepended` methods hooks which would be called before the standard `extended`, `included`, and `prepended` Ruby hooks, respectively.
|
6
|
+
|
7
|
+
Especially useful when you require to "do" something just before the module gets `extended`, `included`, or `prepended` to a module/class. In particular, in my specific case, I needed to "do" something first if a specific method already exists in the base class before being extended, of which then I'd use `before_extended`.
|
9
8
|
|
10
9
|
## Dependencies
|
11
10
|
|
data/lib/before_hooks/version.rb
CHANGED