object_callbacks 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 141083ea54befed6f748fbf30271568b5f1e739d
4
- data.tar.gz: 7ba93510faeb5aee04922674b22f97fc35f17c3d
3
+ metadata.gz: 4b4bd4296621d3dd1cb16c9658c57be68ca44bf8
4
+ data.tar.gz: b42a83a5d4099ee1a2d81366d6f819204d2d17cd
5
5
  SHA512:
6
- metadata.gz: 2c00d96843bd513c295cce0491323f16c805ea423f915a2b233ce297dfe87544c32dd9338fa98eed4a288c6b005de04f39e6adf44b1f33b190bf1524c05e2c6e
7
- data.tar.gz: 44769f575bfceb961b917b6d4658d83008ce8ffe461970c532ae24fb10496bab06191be9a17d1718c7abb26622644a89a9a279557a24e9de6aefbe4a97756d0b
6
+ metadata.gz: 000d5624150fd158cb41d501e1c4dd2f6009e434a18aeb3e1b003f0f84091e00c811e8b7c5bdbc226cf80b22479ca4c26c06c60a7b86788e6fcb898894e39608
7
+ data.tar.gz: 4470d2c1a788f7c1f9dfac8cd62d06fb3c93f47a40257511703f22aa3a4fcd92ed937446d55ccf60b4cf50cd2d9a78bc9aef1b182e05c0a34b0ca4fe93557b84
data/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # ObjectCallbacks
2
2
 
3
- I need something similar to BeforeFilters [**https://github.com/IDme/before_filters**] but more than that.
3
+ [![Gem Version](https://badge.fury.io/rb/object_callbacks.svg)](http://badge.fury.io/rb/object_callbacks)
4
4
 
5
- This library allow you to bind before_call and after_call to a Ruby class method, similar to ActiveRecord's callbacks.
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
- Similar to ActiveRecord, if you need to termiate execution in before_call just return false.
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
 
@@ -1,3 +1,3 @@
1
1
  module ObjectCallbacks
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler