petra_core 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: b6b6c75f2a29d0f23a8c1de8aa226129019ca11f9a880298c6523ca256bab783
4
- data.tar.gz: d5fe8d55c7bf0e1bd3d39ce8c5d11be1ff7b4a8891722f19a2d487c833dc80de
3
+ metadata.gz: 63268235b534b349825bb8d513b2d1c99256713ba9f1e0cdccedf862c16b1712
4
+ data.tar.gz: bf615df89f394081f5fbb66d1fa7b4ca8b88c8ef1c0aa06bea3bbf0e953bbec4
5
5
  SHA512:
6
- metadata.gz: c84499a4a7e0d7b337fa624150d3f04d2395d9dc23be80fafbab6bf61c4bdae8ffe3c5a93797cb308e0ba408d6fcea1d6bc2e5b4f07de1000db281155cf2daf9
7
- data.tar.gz: 8a8d26860f87c600db6675e9313ecd3b87110b5753c2cdee1aac11d5cf3404ef278ff294b779c7c926f3fc544bdfbfd9d129575164bfebd6f5aa66b616e46ad5
6
+ metadata.gz: d870ae75b54ded2ac1360fb4e525e75ed5f8cdb5bc4f85f9cd657a4998d699dc29664557cad4d348f8ad6e9c7320693a04aa7cba65d32d6b1da7a2b83b0ab54e
7
+ data.tar.gz: 740ef954d8eda6a2c6736969bb9d410654de38e4f851cf9529e8e3e5e8e5376b070f34fea9229074eaec363c0658c81b654d2a27451ddff956767d972ca1ba45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- petra_core (0.0.3)
4
+ petra_core (0.0.4)
5
5
  activesupport (>= 4.2, <= 5.2)
6
6
  method_source (~> 0.9.0)
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Petra
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2018-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport