shout_out 0.0.1 → 0.1.0

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: 72b4e70e107e6a99ac9a190cc173e024305acb04
4
- data.tar.gz: cef0924b356ebea3dccd0f74d1010200418c4f4e
3
+ metadata.gz: bae7c11d08fe00b095e53bb36463b52e621119ea
4
+ data.tar.gz: 1ab407fe259001492e4d7cdc1a68ac2b273a13bd
5
5
  SHA512:
6
- metadata.gz: 3311721b678fb178eebd807449d37567399f7ade73fd5ef6b6cbfb0f1e227cb38370955e99f21821cf013552d676e80ed36b3560c6dda20279e79b76f041e74e
7
- data.tar.gz: 4c4336e39871b088688f900b41f1a2513fa92688069a90f978086620c9a90b2348a79642a37d3e4cbae7984350b8d97e7b30c5a1c150874f11ce761099e50eb1
6
+ metadata.gz: 7d821a2066433a6ac6dde56f4978f2a463a418c69d92c440890b3556f782f99ebfa8807b014ab3d0c906398220a1b3c82d9cbef4704ada6a9955fd48b292ec8c
7
+ data.tar.gz: 8e806dd7dc7ab949ab2614fbf6bb7f7b1d657bd71e94c147f2e69e6a7fd4741536fd6d7b31d8ad4e66eb3d09411d53c5ebf4845505ab7793afb586a4c82c039b
@@ -4,14 +4,27 @@ require 'active_support/concern'
4
4
  module ShoutOut
5
5
  extend ActiveSupport::Concern
6
6
 
7
+ # Around callbacks are not working. Commented them out for now.
8
+ #
7
9
  included do
10
+ after_initialize -> { shout(:after_initialize, self) }
11
+ after_find -> { shout(:after_find, self) }
12
+ after_touch -> { shout(:after_touch, self) }
8
13
  before_validation -> { shout(:before_validation, self) }
9
14
  validate -> { shout(:validate, self) }
10
15
  after_validation -> { shout(:after_validation, self) }
11
16
  before_save -> { shout(:before_save, self) }
17
+ # around_save -> { shout(:around_save, self) }
12
18
  after_save -> { shout(:after_save, self) }
13
19
  before_create -> { shout(:before_create, self) }
20
+ # around_create -> { shout(:around_create, self) }
14
21
  after_create -> { shout(:after_create, self) }
22
+ before_update -> { shout(:before_update, self) }
23
+ # around_update -> { shout(:around_update, self) }
24
+ after_update -> { shout(:after_update, self) }
25
+ before_destroy -> { shout(:before_destroy, self) }
26
+ # around_destroy -> { shout(:around_destroy, self) }
27
+ after_destroy -> { shout(:after_destroy, self) }
15
28
  after_commit -> { shout(:after_commit, self) }
16
29
  end
17
30
 
@@ -28,4 +41,4 @@ end
28
41
 
29
42
  class ActiveRecord::Base
30
43
  include ShoutOut
31
- end
44
+ end
@@ -1,3 +1,3 @@
1
1
  module ShoutOut
2
- VERSION = "0.0.1"
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shout_out
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.4.3
100
+ rubygems_version: 2.4.6
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Complex ActiveRecord callback abstraction.