kabutops 0.1.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05df1a21e10c723541c9cc4514174959b794dc27
4
- data.tar.gz: 6d60b8c1b4acf024f50b8c363b905c8d167f503c
3
+ metadata.gz: 71776df69e9efa96e851421687e8fa1b9d50c8ed
4
+ data.tar.gz: a4d5a921f92bcd9c94162df7a98f811cd0ed5b98
5
5
  SHA512:
6
- metadata.gz: 5cf88297902defb328c85d39233af7a8f11fc20935c193a4a9cc568d38c844f3657973ea58425db4d719b6faa943df7edc71e179e06425ef39911cadf5599d21
7
- data.tar.gz: 47e08167bb5129ef665310c2d332c57ae071d9755a2c5f133b03b158d1ae1520126ef1ab8ff58c2f70564bd93ac6ccac0a613e2eae49e8ca657d63bfe6024814
6
+ metadata.gz: f6460d0155f5a646575870d8d6528d5f526befdf4dcfbe5815365fb5b4d75a1d9b513de505b5bf98444432a02fe2c44f148d3c99b4dc1f00e2f03e5b10adad03
7
+ data.tar.gz: d9e22e3f0789629535b9c57a8ab1b73c2864f76c367d6d9579b1638255fe1e4827843c61cddae793ed3beb6c3e83cedef8695fbfa7257a726b65f61d676bd83b
data/README.md CHANGED
@@ -24,7 +24,7 @@ gem install kabutops
24
24
  Or you can put it in your Gemfile
25
25
 
26
26
  ```ruby
27
- gem 'kabutops', '~> 0.1.0'
27
+ gem 'kabutops', '~> 0.1.1'
28
28
  ```
29
29
 
30
30
  You will also need Redis database installed and running.
@@ -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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module Kabutops
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kabutops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rene Klacan