has-guarded-handlers 1.4.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/has-guarded-handlers)
2
2
 
3
+ # [1.5.0](https://github.com/adhearsion/has-guarded-handlers/compare/v1.4.2...v1.5.0) - [2012-12-08](https://rubygems.org/gems/has-guarded-handlers/versions/1.5.0)
4
+ * Bugfix: Correct API preservation from previous release
5
+
3
6
  # [1.4.2](https://github.com/adhearsion/has-guarded-handlers/compare/v1.4.1...v1.4.2) - [2012-12-08](https://rubygems.org/gems/has-guarded-handlers/versions/1.4.2)
4
7
  * Bugfix: Preserve the old 'API' by which handlers were called
5
8
 
@@ -88,7 +88,7 @@ module HasGuardedHandlers
88
88
  if guarded?(guards, event)
89
89
  called = false
90
90
  else
91
- call_handler handler, event
91
+ call_handler handler, guards, event
92
92
  true
93
93
  end
94
94
  end
@@ -101,7 +101,7 @@ module HasGuardedHandlers
101
101
 
102
102
  private
103
103
 
104
- def call_handler(handler, event)
104
+ def call_handler(handler, guards, event)
105
105
  handler.call event
106
106
  end
107
107
 
@@ -1,3 +1,3 @@
1
1
  module HasGuardedHandlers
2
- VERSION = "1.4.2"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has-guarded-handlers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -160,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: 1044728951483733350
163
+ hash: -3810858558252593489
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  none: false
166
166
  requirements:
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: 1044728951483733350
172
+ hash: -3810858558252593489
173
173
  requirements: []
174
174
  rubyforge_project: has-guarded-handlers
175
175
  rubygems_version: 1.8.24