granite 0.17.5 → 0.17.7
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 +4 -4
- data/lib/granite/action/preconditions/embedded_precondition.rb +2 -2
- data/lib/granite/version.rb +1 -1
- metadata +3 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81481cadb9c9eb112a82edaa7d34e30444b3188a73a44aaceee2db1fd5382cae
|
|
4
|
+
data.tar.gz: 9ecc86fde4b5bd08608cb142d11bc943c63b14a2c129fd35b528c5933a4d97fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efc08634d83cffeb6650eb40c8e0c7c0a009eb4a1723fe511a06f2d8f370d4e1d1366f1c106b06c4a0d5a05a9c3f1fb5092e3cd6d9062f815cc844a27556fe59
|
|
7
|
+
data.tar.gz: 50fea4a451ffce78d26dbb6a6064f2bee1ec7f8dd045bbafe7c7e49cde1ad7ddc9c35cf8a139069b43f9f6742f9e6551c353ecb0da4beac65861ab11f0f2be61
|
|
@@ -34,8 +34,8 @@ module Granite
|
|
|
34
34
|
def decline_action(context, action)
|
|
35
35
|
return if action.satisfy_preconditions?
|
|
36
36
|
|
|
37
|
-
action.errors
|
|
38
|
-
action.failed_preconditions.each {
|
|
37
|
+
action.errors.where(:base).each { context.errors.import(_1) }
|
|
38
|
+
action.failed_preconditions.each { context.failed_preconditions << _1 }
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
data/lib/granite/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: granite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.17.
|
|
4
|
+
version: 0.17.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Toptal Engineering
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|
|
@@ -17,9 +17,6 @@ dependencies:
|
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '6.0'
|
|
20
|
-
- - "<"
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: '8.1'
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -27,9 +24,6 @@ dependencies:
|
|
|
27
24
|
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '6.0'
|
|
30
|
-
- - "<"
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: '8.1'
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
28
|
name: activesupport
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -37,9 +31,6 @@ dependencies:
|
|
|
37
31
|
- - ">="
|
|
38
32
|
- !ruby/object:Gem::Version
|
|
39
33
|
version: '6.0'
|
|
40
|
-
- - "<"
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: '8.1'
|
|
43
34
|
type: :runtime
|
|
44
35
|
prerelease: false
|
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -47,9 +38,6 @@ dependencies:
|
|
|
47
38
|
- - ">="
|
|
48
39
|
- !ruby/object:Gem::Version
|
|
49
40
|
version: '6.0'
|
|
50
|
-
- - "<"
|
|
51
|
-
- !ruby/object:Gem::Version
|
|
52
|
-
version: '8.1'
|
|
53
41
|
- !ruby/object:Gem::Dependency
|
|
54
42
|
name: granite-form
|
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -423,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
423
411
|
- !ruby/object:Gem::Version
|
|
424
412
|
version: '0'
|
|
425
413
|
requirements: []
|
|
426
|
-
rubygems_version: 3.
|
|
414
|
+
rubygems_version: 3.5.22
|
|
427
415
|
signing_key:
|
|
428
416
|
specification_version: 4
|
|
429
417
|
summary: Another business actions architecture for Rails apps
|