object_callbacks 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/object_callbacks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b4bd4296621d3dd1cb16c9658c57be68ca44bf8
|
4
|
+
data.tar.gz: b42a83a5d4099ee1a2d81366d6f819204d2d17cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 000d5624150fd158cb41d501e1c4dd2f6009e434a18aeb3e1b003f0f84091e00c811e8b7c5bdbc226cf80b22479ca4c26c06c60a7b86788e6fcb898894e39608
|
7
|
+
data.tar.gz: 4470d2c1a788f7c1f9dfac8cd62d06fb3c93f47a40257511703f22aa3a4fcd92ed937446d55ccf60b4cf50cd2d9a78bc9aef1b182e05c0a34b0ca4fe93557b84
|
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# ObjectCallbacks
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/object_callbacks.svg)](http://badge.fury.io/rb/object_callbacks)
|
4
4
|
|
5
|
-
|
5
|
+
ActiveRecord's callbacks basic functionality, similar to BeforeFilters [**https://github.com/IDme/before_filters**] gem, with after_call and better :only, and :except clauses control.
|
6
6
|
|
7
|
-
|
7
|
+
The library allows you to;
|
8
|
+
* perform pre conditions on object's method.
|
9
|
+
* perform post conditions on object's method.
|
10
|
+
* terminate method call in pre conditions just by returning false, similar to ActiveRecord.
|
8
11
|
|
9
12
|
## Installation
|
10
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_callbacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raza Ali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|