proxy_method 1.1.0 → 1.1.1
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/lib/proxy_method/version.rb +1 -1
- metadata +13 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52db94c79b99c5ba157644315140141d0335fbaccf6f81c129e1bc1506c0685d
|
4
|
+
data.tar.gz: 7e8e77e4e16f678e4f26fb942fdc3b9d02c78ee49b738d34b92e5eb1a3e5b1f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bc83c1b4c1a8fd011042d9d0a0ecbdd7155a6a501eea01255d9d2c55c06f921407ef6faf14e8b553267350d21540ee3b7fc7a312c8bc1838ebb5380f089f88e
|
7
|
+
data.tar.gz: df971e7483eaf4655e22a0703d6e79f30a4b25e2ca46153a115b3e18606e171df97770c773f9b56f0a2081c81c79b59d0830b07b32cea0d6678da36193fb6582
|
data/lib/proxy_method/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxy_method
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Bellmyer
|
@@ -12,11 +12,19 @@ date: 2019-12-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
The purpose of this gem is to prevent directly running the inherited
|
15
|
-
methods you choose to block
|
16
|
-
|
15
|
+
methods you choose to block at either the class or instance level, and
|
16
|
+
instead do one of two things: run an alternative block which may or may
|
17
|
+
not invoke the original method, or simply raise an error message.
|
17
18
|
|
18
|
-
|
19
|
-
|
19
|
+
The error message can be customized. The original method can still be
|
20
|
+
called under a different name. The entire object or class can return
|
21
|
+
"unproxied" versions of themselves to preserve the original functionality.
|
22
|
+
|
23
|
+
This was originally created to help enforce the use of interactors over
|
24
|
+
directly calling ActiveRecord methods like create, save, and update. As
|
25
|
+
with any metaprogramming, this gives you plenty of rope to hang yourself
|
26
|
+
if you try to get too "clever". Treat this library like salt; use
|
27
|
+
sparingly, because over time its cumulative effect will kill you :)
|
20
28
|
email:
|
21
29
|
- online@bellmyer.com
|
22
30
|
executables: []
|