state-notifier 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60879f70445e58fda23bba385f6f363f78321d65
4
- data.tar.gz: 42c05d12d55078e28194de8b6a71048ddc98509c
3
+ metadata.gz: 9177bd1984c92152e3ad8b2216dec360b3b46ca7
4
+ data.tar.gz: 80b1dea57859289bce0e88766728f4c4227cfd90
5
5
  SHA512:
6
- metadata.gz: faa8e1b270b662c0db0e34b8091fc62619694222c82386f611a7b428fe40c542908806a6d3bd85395afa49f5f59bf8b08123b224b1217dff3d33906c9d9ec221
7
- data.tar.gz: 33f47dd3383487ae69c98a5289777bda9282e4bdbb851d610681caa7024d01bef7597e1b6cb0093eab596360e4d1efb4558f46d3d7683abe87fbe976990a33ce
6
+ metadata.gz: 1f10279f41d0af2f917ea81ae269c7fa7dd7130c8a595b664c4b82fd1fd03800f89ae8854a1d57e3a7f0659ceb41b66e6eb07035a7cfdca2cbbff5a2e6d6978b
7
+ data.tar.gz: b298629b5d1c9b80c2f0db767bebb6df634941f34ac145dc103555acfc47e859a85a96369280e86114b510b842efacc8770454239fd34434b391b9ec9e8fae11
data/README.md CHANGED
@@ -36,6 +36,7 @@ Or install it yourself as:
36
36
  - `state_changed`
37
37
  - `<target_state>`
38
38
  - `<event_name>_<target_state>`
39
+ - `<source_state>_<target_state>`
39
40
 
40
41
  class Event
41
42
  belongs_to :provider, ...
@@ -1,5 +1,5 @@
1
1
  module State
2
2
  module Notifier
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -23,6 +23,7 @@ module State
23
23
  unless transition.to == transition.from
24
24
  notify_targets transition.to
25
25
  notify_targets "#{transition.event}_#{transition.to}"
26
+ notify_targets "#{transition.from}_#{transition.to}"
26
27
  notify_targets :state_changed
27
28
  end
28
29
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Kushner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-09 00:00:00.000000000 Z
11
+ date: 2014-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Simple gem to notify 'subscribers' about record state changes.
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -77,17 +77,17 @@ require_paths:
77
77
  - lib
78
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.0.6
90
+ rubygems_version: 2.2.2
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Simple gem to notify 'subscribers' about record state changes.