decko 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf54e17807fa68bdc0d28c9919e7076b722863b
|
4
|
+
data.tar.gz: 98ce5172cbb9061b90924960bb85f4e0f2ff6af4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0111c4698ca8ab40d3d7d560ae908134d13183c75c995c7afe2506a9db3df0b1e269faba24cf125cd721b3b46db8340cb4337f5d1dd95c9c9a940de892bf41f5
|
7
|
+
data.tar.gz: 79f267546a0682b25de8a52f8fe13a7c4718c8026f343cb3d762c73cbe7a236a0364293d711f1debada9bc45fc23ae52d02ab1c29d4c26b1889416e36a142f55
|
@@ -44,6 +44,12 @@ Decko.application.class.configure do
|
|
44
44
|
# See everything in the log (default is :info)
|
45
45
|
config.log_level = :debug
|
46
46
|
|
47
|
+
# if false, most rendering errors will be rescued and made visible only
|
48
|
+
# in the nest where the error occurred
|
49
|
+
config.raise_all_rendering_errors = true
|
50
|
+
|
51
|
+
# if false, application will raise errors that make it to controller.
|
52
|
+
config.rescue_all_in_controller = false
|
47
53
|
|
48
54
|
# config.performance_logger = {
|
49
55
|
# methods: [:event, :search, :fetch, :view], # choose methods to log
|
@@ -91,7 +91,8 @@ class CardController < ActionController::Base
|
|
91
91
|
# ----------( HELPER METHODS ) -------------
|
92
92
|
|
93
93
|
def handle
|
94
|
-
card.act
|
94
|
+
card.act do
|
95
|
+
Card::Env.success card.name
|
95
96
|
yield ? render_success : raise(Card::Error::UserError)
|
96
97
|
end
|
97
98
|
end
|
@@ -133,8 +134,13 @@ class CardController < ActionController::Base
|
|
133
134
|
def rescue_from_class klass
|
134
135
|
rescue_from(klass) { |exception| handle_exception exception }
|
135
136
|
end
|
137
|
+
|
138
|
+
def rescue_all?
|
139
|
+
Card.config.rescue_all_in_controller
|
140
|
+
true # DELETE ME!!!
|
141
|
+
end
|
136
142
|
end
|
137
143
|
|
138
144
|
rescue_from_class ActiveRecord::RecordInvalid
|
139
|
-
rescue_from_class(
|
145
|
+
rescue_from_class(rescue_all? ? StandardError : Card::Error::UserError)
|
140
146
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: card
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.96.
|
22
|
+
version: 1.96.7
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.96.
|
29
|
+
version: 1.96.7
|
30
30
|
description: a wiki approach to stuctured data, dynamic interaction, and web design
|
31
31
|
email:
|
32
32
|
- info@decko.org
|