before_hooks 0.1.2 → 0.1.3

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
2
  SHA256:
3
- metadata.gz: 483373632a92b3bff2aa53fc62123df41f515e08f65eb8921b41eb5e5c959a6a
4
- data.tar.gz: '0065946eef8f7597159d8e115c593c69fc6226c904cb7778d856f58d4eb12659'
3
+ metadata.gz: 6162facbf923db0803da2bfc28c8d84bdd3c814d62ebaaa50cd8d6031d4b4b08
4
+ data.tar.gz: 5a601dd60f48722c4cf9cb6132ff3daa04e92fd9b8e8fffdd0f4813250174e4f
5
5
  SHA512:
6
- metadata.gz: b44f291f47253c2986607ca564c250a1f4a205572abbf76e0321eedd024807d1f67c40e1395249b89b104e80511c8538c105afd7e58773a94842f9d714bdaf39
7
- data.tar.gz: 97357d4c7579f65cf62f3c50e6c9566df92e34d17627ba23bd31016a0c946cf1f9b2c09558c0e169c3dc905a274d56e6ae9593d2afe14a27944dc6dcbfec4cd4
6
+ metadata.gz: f528520b897d89e08d01d01c8155dcb03a37a108b3b2312605b7caade0468af24d5d16cbe3a1ea9f9bd12db35f5c2fae1b457d5b5d382e54fd092eb93346a4ad
7
+ data.tar.gz: 756444632df1a67e324d88cd6b653e7f663870e5dd8078cb5853cdb7be5dc35866f0240c695b1f0df91ccf39e6553a54b3a6b2a13ff68131bf5e88e908d684ac
data/README.md CHANGED
@@ -2,10 +2,9 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/jrpolidario/before_hooks.svg?branch=master)](https://travis-ci.org/jrpolidario/before_hooks)
4
4
 
5
- Raises error if method already defined to designated `include`, `extend`, or `prepend` base Module/Class.
6
- Prevents "silent-failures" and indirect bugs caused by overriding functionality (inter-gems-wide), of which you have no control of.
7
- Take note though that this does not let a module/class to be non-overridable.
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
 
@@ -1,3 +1,3 @@
1
1
  module BeforeHooks
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: before_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jules Roman Polidario