effective_resources 1.0.9 → 1.0.10

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: da843f51dff82a594f107d000a5b2030acc17414
4
- data.tar.gz: c4b52eda7afe8699c95b2580ec7ae625b700f359
3
+ metadata.gz: 7a0f24509e431df9c6c1c7017e3951baf18506cc
4
+ data.tar.gz: d3c1ddd4c2c34258b1fe0bb50b76b2e9ff375246
5
5
  SHA512:
6
- metadata.gz: f3e87786392ad3d80b7ed11a5225a2c49f7daa5bfcc216bed4f56350b0aad03df4045d5afc3721327c948c02dbef05b165afa034b20dc7209e48fbe62fbf9354
7
- data.tar.gz: b1a3d3941385663b68b265eb5530506048ebb25bd1db7e52ef8e2d98683653dd6af8410d3bfee121665f239a345c8a6f469ba20132b3a2815f7e911952204f0a
6
+ metadata.gz: d81dae7a2bded26d471caab86e6ee59b511464de9a7c7601b52aa4a1534d2acc9b8a1b79047ccd9d755e701b34e730f1e11d94513f391e8f604549c88ab13ab8
7
+ data.tar.gz: 29e5c0e785a0b43db262f4993d013b0cf7113302bd5940cc9bfc918521979cf92a5191398550ee7aaef7836da6b7c09ed1eb8658525232a0d6fe7828fdebfffc
@@ -36,11 +36,11 @@ module Effective
36
36
  end
37
37
 
38
38
  if args.key?(:if) && args[:if].respond_to?(:call) == false
39
- raise "expected if: to be callable. Try submit :approve, 'Save and Approve', if: -> { finished? }"
39
+ raise "expected if: to be callable. Try submit :approve, 'Save and Approve', if: -> (resource) { resource.finished? }"
40
40
  end
41
41
 
42
42
  if args.key?(:unless) && args[:unless].respond_to?(:call) == false
43
- raise "expected unless: to be callable. Try submit :approve, 'Save and Approve', unless: -> { declined? }"
43
+ raise "expected unless: to be callable. Try submit :approve, 'Save and Approve', unless: -> (resource) { resource.declined? }"
44
44
  end
45
45
 
46
46
  if args.key?(:only)
@@ -78,11 +78,11 @@ module Effective
78
78
  end
79
79
 
80
80
  if args.key?(:if) && args[:if].respond_to?(:call) == false
81
- raise "expected if: to be callable. Try button :approve, 'Approve', if: -> { finished? }"
81
+ raise "expected if: to be callable. Try button :approve, 'Approve', if: -> (resource) { resource.finished? }"
82
82
  end
83
83
 
84
84
  if args.key?(:unless) && args[:unless].respond_to?(:call) == false
85
- raise "expected unless: to be callable. Try button :approve, 'Approve', unless: -> { declined? }"
85
+ raise "expected unless: to be callable. Try button :approve, 'Approve', unless: -> (resource) { resource.declined? }"
86
86
  end
87
87
 
88
88
  if args.key?(:only)
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.0.9'.freeze
2
+ VERSION = '1.0.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-13 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails