abrt 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/lib/abrt.rb +5 -3
  3. data/lib/abrt/handler.rb +1 -1
  4. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1924e9f6de3e77e0a3b0aff26ff2f835324de544
4
- data.tar.gz: 6623bbbe06143164eac24a685d16e96efb69a9f2
2
+ SHA256:
3
+ metadata.gz: 5e28662ce14404d6c25ab366533c9fb61c304c7ec08d1a5b66daa6c8bc2cad2d
4
+ data.tar.gz: 633c0790c3b560d3b895f529a8f3a2ea4626282d35f397c2431dcaa54e510d3c
5
5
  SHA512:
6
- metadata.gz: 9686d5f58d8aa5c3ade439139d1accf888d0e4abf2b7ffd617561a99a3a31db6516a842aeb8d59db30a191497bd5b91285dc260f482e0cdd1e907fabc67764fe
7
- data.tar.gz: ce199d9e77b906a7b020f93ed44c145c938c2740706b6c8a1ebf6ef07613b83585ef4a1738e9982c86d752d18e9493654260eca0d5d65e0accaa545f2a504057
6
+ metadata.gz: b016f9f38adf537b4c00ff3971ff7a1874e354b8b89a17cbb6f7240aa1dd4760c0d80f2e47ce9d4d991c48e101ae9bce09107b0f83fb64e1183ca8a69fea9119
7
+ data.tar.gz: ce58173fe5230c3ffeccb5dee1a79197620b0c65a538825cfe2b2e9ce55512b1dce43879ef7a0570c3a734aea5548dfc9f509aef8878492c14f8d25bfe3df782
@@ -1,10 +1,12 @@
1
1
  at_exit do
2
+ exception = $!
3
+
2
4
  # Do not report every exception:
3
5
  # SystemExit - raised by Kernel#exit call
4
6
  # Interrupt - typically issued because the user pressed Ctrl+C
5
- if $! and ![SystemExit, Interrupt].include?($!.class)
6
- require File.join(File.dirname(__FILE__), 'abrt/handler')
7
- ABRT.handle_exception($!)
7
+ if exception and ![SystemExit, Interrupt].include?(exception.class)
8
+ require_relative 'abrt/handler'
9
+ ABRT.handle_exception(exception)
8
10
  end
9
11
  end
10
12
 
@@ -1,6 +1,6 @@
1
1
  require 'socket'
2
2
  require 'syslog'
3
- require File.join(File.dirname(__FILE__), 'exception')
3
+ require_relative 'exception'
4
4
 
5
5
  module ABRT
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abrt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vít Ondruch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -59,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
- rubyforge_project:
63
- rubygems_version: 2.6.10
62
+ rubygems_version: 3.1.2
64
63
  signing_key:
65
64
  specification_version: 4
66
65
  summary: ABRT support for Ruby.