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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a0f24509e431df9c6c1c7017e3951baf18506cc
|
|
4
|
+
data.tar.gz: d3c1ddd4c2c34258b1fe0bb50b76b2e9ff375246
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
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.
|
|
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-
|
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|