rhino_project_core 0.21.0.beta.46 → 0.21.0.beta.47

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
  SHA256:
3
- metadata.gz: 5523b3587da0f1a5099bb649e0f1243a716a85b27379372ab513c9beb759f3fa
4
- data.tar.gz: be28497ecfe5fec48183bdddab3b5a13f4e4c0d4a3fa0e2c01bc9153509bf31e
3
+ metadata.gz: 06a96de885bbf31a18ef367c6139c3cb78a25f37102a6d980b65fd170c9bc8a2
4
+ data.tar.gz: ec3d9a80aba2a6fdc53692299640d07968c1d157b3ad4b15ea54ccab00431032
5
5
  SHA512:
6
- metadata.gz: f5728dd8cc8a7cd570b01af965bd87365f216910ac66011b40023d1e8a632be9edf4275de5b66ed1d89ea054c741e6ea55b0393fd1f848c3ee2d8fa5933009f3
7
- data.tar.gz: 5a10bba5d890d5f71d8930b34e65de0094130c7b477ffcfc5121877e432103107e45fbf2b360cd4b11bfb1e3741cebe78962b902a7edb47d4ebc554f6890d0cb
6
+ metadata.gz: 63b1fa716e6bf30d664d18376b73885cdaf1505752f7b9cc68854a2d1e4a08b997b1e3c5e3b2684aac108c957e566a8e82e70be46dbf2e49c6219023044785c5
7
+ data.tar.gz: 9bdbb9d79a108d6920a2c3e5a0ac53fedb11bb7d006b910ca4a26893d6d7cdc713ec2d26f55c5e3c6410d4a07f00c7264b1923aa7f757ab3d653c62b994133eb
@@ -23,14 +23,16 @@ module Rhino
23
23
 
24
24
  rescue_from ActiveRecord::RecordNotFound, with: :not_found
25
25
 
26
- def handle_uncaught_error(exception)
26
+ def handle_uncaught_error(e)
27
+ raise e if Rails.env.test?
28
+
27
29
  # Send to rollbar if available
28
- Rollbar.error(exception) if defined? Rollbar
30
+ Rollbar.error(e) if defined? Rollbar
29
31
 
30
- logger.error("Internal server error#{exception.class} #{exception.message} #{exception.backtrace.join("\n")}")
32
+ logger.error "There was an exception - #{e.class}(#{e.message})"
33
+ logger.error e.backtrace.join("\n")
31
34
 
32
- render json: { errors: ['Internal server error.'] },
33
- status: :internal_server_error
35
+ render json: { errors: ['Internal server error.'] }, status: :internal_server_error
34
36
  end
35
37
 
36
38
  def not_found
data/lib/rhino/version.rb CHANGED
@@ -10,7 +10,7 @@ module Rhino
10
10
  MAJOR = 0
11
11
  MINOR = 21
12
12
  TINY = 0
13
- PRE = "beta.46"
13
+ PRE = "beta.47"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhino_project_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0.beta.46
4
+ version: 0.21.0.beta.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails