abrt 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 2501d89f6c16702849722f9196ba462078236d6e
4
- data.tar.gz: 3231f8e7e9838bad4e51e27d9a99c857428da743
3
+ metadata.gz: 1924e9f6de3e77e0a3b0aff26ff2f835324de544
4
+ data.tar.gz: 6623bbbe06143164eac24a685d16e96efb69a9f2
5
5
  SHA512:
6
- metadata.gz: f345989e917f250d9ef53d6f97903b63279f5e94c2c81438bea1e3e61ad4a1f55a4619f4019daa524d325ab67389e4485e838b248282b4f82c016952964f6ce4
7
- data.tar.gz: 1c1defa71c263ac7ddf4c30b6645ee084c95c63b31ee2cd570f71a5b1ceead03e4e11abb3a3f6425343da8e531d8c77840e8c0b24721270caf15a9f284979d38
6
+ metadata.gz: 9686d5f58d8aa5c3ade439139d1accf888d0e4abf2b7ffd617561a99a3a31db6516a842aeb8d59db30a191497bd5b91285dc260f482e0cdd1e907fabc67764fe
7
+ data.tar.gz: ce199d9e77b906a7b020f93ed44c145c938c2740706b6c8a1ebf6ef07613b83585ef4a1738e9982c86d752d18e9493654260eca0d5d65e0accaa545f2a504057
@@ -1,46 +1,48 @@
1
- = abrt
1
+ [![Build Status](https://travis-ci.org/voxik/abrt-ruby.svg?branch=master)](https://travis-ci.org/voxik/abrt-ruby)
2
+
3
+ # abrt
2
4
 
3
5
  Provides ABRT reporting support for libraries/applications written using Ruby.
4
6
 
5
7
  Please note that ABRT will be able to report errors only for applications which are already RPM packaged. Errors in other applications are ignored.
6
8
 
7
- == Installation
9
+ ## Installation
8
10
 
9
- <tt>
11
+ ```
10
12
  $ gem install abrt
11
- </tt>
13
+ ```
12
14
 
13
15
  or if you're using Bundler, put
14
16
 
15
- <tt>
17
+ ```
16
18
  gem "abrt", :require => false
17
- </tt>
19
+ ```
18
20
 
19
- line into your <em>Gemfile</em>.
21
+ line into your *Gemfile*.
20
22
 
21
- == Usage
23
+ ## Usage
22
24
 
23
25
  There are several ways how to run any application with ABRT handler enabled.
24
26
 
25
- 1. Use <tt>require 'abrt'</tt> at the beginning of your application.
26
- 2. If you can't modify the application and you still want to use ABRT support, then you need to define <tt>RUBYOPT="-rabrt"</tt> environment variable. This will ensure that ABRT support gets loaded and the exception handler hooks are installed.
27
- 3. If you want to ensure, that ABRT handler is always used, add <tt>RUBYOPT="-rabrt"</tt> into your <em>.bashrc</em> file. This will ensure, that Ruby loads ABRT handler every time its starts.
27
+ 1. Use `require 'abrt'` at the beginning of your application.
28
+ 2. If you can't modify the application and you still want to use ABRT support, then you need to define `RUBYOPT="-rabrt"` environment variable. This will ensure that ABRT support gets loaded and the exception handler hooks are installed.
29
+ 3. If you want to ensure, that ABRT handler is always used, add `RUBYOPT="-rabrt"` into your *.bashrc* file. This will ensure, that Ruby loads ABRT handler every time its starts.
28
30
  4. In Fedora, since ruby-2.0.0.247-9.fc19, Ruby loads abrt gem automatically.
29
31
 
30
32
  Now, everytime the unhandled exception is captured, ABRT handler prepares bugreport, which can be submitted into http://bugzilla.redhat.com component later using standard ABRT tools.
31
33
 
32
- == Contributing to abrt
34
+ ## Contributing to abrt
33
35
 
34
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
35
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
36
- * Fork the project.
37
- * Start a feature/bugfix branch.
38
- * Commit and push until you are happy with your contribution.
39
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
40
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
36
+ - Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
37
+ - Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
38
+ - Fork the project.
39
+ - Start a feature/bugfix branch.
40
+ - Commit and push until you are happy with your contribution.
41
+ - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
42
+ - Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
41
43
 
42
- == Copyright
44
+ ## Copyright
43
45
 
44
- Copyright (c) 2012 Vít Ondruch. See LICENSE.txt for
46
+ Copyright (c) 2012-2017 Vít Ondruch. See LICENSE.txt for
45
47
  further details.
46
48
 
@@ -1,4 +1,3 @@
1
-
2
1
  at_exit do
3
2
  # Do not report every exception:
4
3
  # SystemExit - raised by Kernel#exit call
@@ -19,7 +19,9 @@ private
19
19
  @syslog ||= Syslog.open 'abrt'
20
20
  end
21
21
 
22
- def self.report(exception, io = abrt_socket)
22
+ def self.report(exception, io = nil)
23
+ io ||= abrt_socket
24
+
23
25
  io.write "PUT / HTTP/1.1\r\n\r\n"
24
26
  io.write "PID=#{Process.pid}\0"
25
27
  io.write "EXECUTABLE=#{exception.executable.gsub(/\u0000/, '')}\0"
@@ -59,8 +61,8 @@ private
59
61
  VAR_RUN = '/var/run'
60
62
  ABRT_SOCKET_PATH = File.join VAR_RUN, 'abrt/abrt.socket'
61
63
 
62
- def self.abrt_socket
63
- UNIXSocket.new ABRT_SOCKET_PATH
64
+ def self.abrt_socket(path = ABRT_SOCKET_PATH)
65
+ UNIXSocket.new path
64
66
  end
65
67
 
66
68
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abrt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vít Ondruch
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRIwEAYDVQQDDAl2Lm9u
14
- ZHJ1Y2gxFzAVBgoJkiaJk/IsZAEZFgd0aXNjYWxpMRIwEAYKCZImiZPyLGQBGRYC
15
- Y3owHhcNMTcwMjAyMTUw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ko8ubeWfv52hre5YhSrU
31
- bcjJ746afvaBadn04rkcQddejjrOBBjLmPEEuw==
32
- -----END CERTIFICATE-----
33
- date: 2017-02-02 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2017-03-27 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: rspec
@@ -53,10 +31,10 @@ executables: []
53
31
  extensions: []
54
32
  extra_rdoc_files:
55
33
  - LICENSE.txt
56
- - README.rdoc
34
+ - README.md
57
35
  files:
58
36
  - LICENSE.txt
59
- - README.rdoc
37
+ - README.md
60
38
  - Rakefile
61
39
  - config/ruby_event.conf
62
40
  - lib/abrt.rb
@@ -82,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
60
  version: '0'
83
61
  requirements: []
84
62
  rubyforge_project:
85
- rubygems_version: 2.5.2
63
+ rubygems_version: 2.6.10
86
64
  signing_key:
87
65
  specification_version: 4
88
66
  summary: ABRT support for Ruby.
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file