canned 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module Canned
14
14
  def asked_with(_key, _options={}, &_block)
15
15
  _chain_context(Canned::Context::Value, _block) do |stack|
16
16
  param = @ctx.params[_key]
17
- break false if param.nil?
17
+ next false if param.nil?
18
18
  stack.push :value, _options.fetch(:as, _key), param
19
19
  end
20
20
  end
@@ -24,7 +24,7 @@ module Canned
24
24
  def asked_with_id(_key, _options={}, &_block)
25
25
  _chain_context(Canned::Context::Value, _block) do |stack|
26
26
  param = @ctx.params[_key]
27
- break false if param.nil?
27
+ next false if param.nil?
28
28
  stack.push :value, _options.fetch(:as, _key), param.to_i
29
29
  end
30
30
  end
@@ -14,7 +14,7 @@ module Canned
14
14
  def the(_name, _options={}, &_block)
15
15
  _chain_context(Canned::Context::Actor, _block) do |stack|
16
16
  actor = @ctx.actors[_name]
17
- break false if actor.nil?
17
+ next false if actor.nil?
18
18
  stack.push(:actor, _options.fetch(:as, _name), actor)
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Canned
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-26 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails