xhummingbird 0.1.3 → 0.1.4

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: 139d598e50a5cc35a31ca2f292308931d02e296e7f94474c12cdf27bc10b4a62
4
- data.tar.gz: b5f529c38a79024d63bda6c580d39d29fc46f034c0988f849c44dcec430491cc
3
+ metadata.gz: e1463723d2e64607a48a047410df3d25e11569e4cea7c6c14cd8504b5135d66c
4
+ data.tar.gz: 9980153c35d16f64a66f1ac50a69aa4db25620aa302309c1249152f1a9fd733a
5
5
  SHA512:
6
- metadata.gz: b2365a30d985c6a2311dbe03aff8d1f10cfd9fd97043508564173291a48e0ee7548e5915eb6f81ae74c4b6787eb64e092a77eb4e6412629b0ee8cfbf589446b8
7
- data.tar.gz: d091a1f78b159c4f174129e2df9440b65fa87f971398c0179c85c251b74c7f5476789b822fd53ad1e76e1bc49a86d2119ee90921e7f3b9b8ee78ab4616e94115
6
+ metadata.gz: 82300da2511d65007098424aee75f591d3315a8c7f75f6bbe3ae5d46a9d03e8f623032a8c436521f9a9f8b4d5edabe80030f3021763552082f3dac0939e6a3e3
7
+ data.tar.gz: 7139f96f18df9aa0d970b4119f388bc3bf1a9a59b445d311b6aefb6cfd4415c8264084724fcae0d2ce7bfd772817474adbfc147c128939fb47e34980a14d28fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xhummingbird (0.1.3)
4
+ xhummingbird (0.1.4)
5
5
  ffi-rzmq
6
6
  google-protobuf
7
7
 
@@ -14,7 +14,7 @@ GEM
14
14
  ffi-rzmq-core (>= 1.0.7)
15
15
  ffi-rzmq-core (1.0.7)
16
16
  ffi
17
- google-protobuf (3.15.6-x86_64-linux)
17
+ google-protobuf (3.15.8-x86_64-linux)
18
18
  minitest (5.14.4)
19
19
  parallel (1.20.1)
20
20
  parser (3.0.0.0)
@@ -31,7 +31,11 @@ module Xhummingbird
31
31
 
32
32
  error = env['rack.exception'] || env['sinatra.error']
33
33
 
34
- Xhummingbird.send_exception(error, tags: convert_to_rack_tags(env)) if error
34
+ if error
35
+ level = (400..499).include?(response.first.to_i) ? 0 : 2
36
+
37
+ Xhummingbird.send_exception(error, level: level, tags: convert_to_rack_tags(env))
38
+ end
35
39
 
36
40
  response
37
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xhummingbird
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xhummingbird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - xmisao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-28 00:00:00.000000000 Z
11
+ date: 2021-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-rzmq