petra_core 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/petra/components/transaction_manager.rb +0 -8
- data/lib/petra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63268235b534b349825bb8d513b2d1c99256713ba9f1e0cdccedf862c16b1712
|
4
|
+
data.tar.gz: bf615df89f394081f5fbb66d1fa7b4ca8b88c8ef1c0aa06bea3bbf0e953bbec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d870ae75b54ded2ac1360fb4e525e75ed5f8cdb5bc4f85f9cd657a4998d699dc29664557cad4d348f8ad6e9c7320693a04aa7cba65d32d6b1da7a2b83b0ab54e
|
7
|
+
data.tar.gz: 740ef954d8eda6a2c6736969bb9d410654de38e4f851cf9529e8e3e5e8e5376b070f34fea9229074eaec363c0658c81b654d2a27451ddff956767d972ca1ba45
|
data/Gemfile.lock
CHANGED
@@ -178,14 +178,6 @@ module Petra
|
|
178
178
|
raise
|
179
179
|
when Petra::AbortTransaction
|
180
180
|
nil
|
181
|
-
# ActionView wraps errors inside an own error class. Therefore,
|
182
|
-
# we have to extract the actual exception first.
|
183
|
-
# TODO: Allow the registration of error handlers for certain exceptions to get rid of
|
184
|
-
# this very specific behaviour in petra core
|
185
|
-
# TODO: There is a mechanism in petra-rails' `petra_transaction` to extract
|
186
|
-
# the original exceptions. May we get rid of this now?
|
187
|
-
when ->(_) { Petra.rails? && error.is_a?(ActionView::Template::Error) }
|
188
|
-
handle_exception(error.original_exception, transaction: transaction)
|
189
181
|
else
|
190
182
|
# If another exception happened, we forward it to the actual application
|
191
183
|
transaction.reset!
|
data/lib/petra/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: petra_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Exner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|