kabutops 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/kabutops/adapters/database_adapter.rb +4 -1
- data/lib/kabutops/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71776df69e9efa96e851421687e8fa1b9d50c8ed
|
4
|
+
data.tar.gz: a4d5a921f92bcd9c94162df7a98f811cd0ed5b98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6460d0155f5a646575870d8d6528d5f526befdf4dcfbe5815365fb5b4d75a1d9b513de505b5bf98444432a02fe2c44f148d3c99b4dc1f00e2f03e5b10adad03
|
7
|
+
data.tar.gz: d9e22e3f0789629535b9c57a8ab1b73c2864f76c367d6d9579b1638255fe1e4827843c61cddae793ed3beb6c3e83cedef8695fbfa7257a726b65f61d676bd83b
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ module Kabutops
|
|
10
10
|
|
11
11
|
attr_reader :recipe
|
12
12
|
|
13
|
-
callbacks :after_save, :save_if
|
13
|
+
callbacks :before_save, :after_save, :save_if
|
14
14
|
|
15
15
|
def data params={}, &block
|
16
16
|
@recipe = Recipe.new(params)
|
@@ -26,8 +26,11 @@ module Kabutops
|
|
26
26
|
|
27
27
|
if debug
|
28
28
|
logger.info("#{self.class.to_s} outputs:")
|
29
|
+
notify(:before_save, result) if save
|
29
30
|
logger.info(save ? result.to_hash : 'not valid for save')
|
31
|
+
notify(:after_save, result) if save
|
30
32
|
elsif save
|
33
|
+
notify(:before_save, result)
|
31
34
|
store(result)
|
32
35
|
notify(:after_save, result)
|
33
36
|
end
|
data/lib/kabutops/version.rb
CHANGED