bugsnag 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/VERSION +1 -1
- data/bugsnag.gemspec +3 -2
- data/lib/bugsnag.rb +6 -3
- data/lib/bugsnag/mailman.rb +3 -1
- data/lib/bugsnag/resque.rb +2 -2
- data/lib/bugsnag/sidekiq.rb +3 -1
- data/lib/generators/bugsnag/bugsnag_generator.rb +24 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e4895caa9224c394638111e53c272725b376798
|
4
|
+
data.tar.gz: a6eed28eb2fae6ab266895c3a7a87bb188ac43a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d65d2a25cc56852f130ecfea197e3aa1455125d72830d216cb53fcb69e96e72eb0337bf77e41e88ad56c9723fc2942c4582deacc80232a202c02ef942b4f175
|
7
|
+
data.tar.gz: c976c229171fcc3b784e003b808c23f3ce5a9e8b9220e966c11f8c746448be293506c07d974dce98b364003da080836ad45b4fda8ac28d1de7462022f49bf268
|
data/README.md
CHANGED
@@ -39,9 +39,15 @@ How to Install
|
|
39
39
|
bundle install
|
40
40
|
```
|
41
41
|
|
42
|
-
3.
|
42
|
+
3. Configure the Bugsnag module with your API key.
|
43
43
|
|
44
|
-
|
44
|
+
**Rails**: Use our generator
|
45
|
+
|
46
|
+
```shell
|
47
|
+
rails generate bugsnag YOUR_API_KEY_HERE
|
48
|
+
```
|
49
|
+
|
50
|
+
**Other Ruby/Rack/Sinatra apps**: Put this snippet in your initialization.
|
45
51
|
|
46
52
|
```ruby
|
47
53
|
Bugsnag.configure do |config|
|
@@ -49,8 +55,8 @@ How to Install
|
|
49
55
|
end
|
50
56
|
```
|
51
57
|
|
52
|
-
|
53
|
-
|
58
|
+
The Bugsnag module will read the `BUGSNAG_API_KEY` environment variable if you
|
59
|
+
do not configure one automatically.
|
54
60
|
|
55
61
|
4. **Rack/Sinatra apps only**: Activate the Bugsnag Rack middleware
|
56
62
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.4
|
data/bugsnag.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "bugsnag"
|
8
|
-
s.version = "1.6.
|
8
|
+
s.version = "1.6.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Smith"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-11-27"
|
13
13
|
s.description = "Ruby notifier for bugsnag.com"
|
14
14
|
s.email = "james@bugsnag.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -54,6 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
"lib/bugsnag/tasks.rb",
|
55
55
|
"lib/bugsnag/tasks/bugsnag.rake",
|
56
56
|
"lib/bugsnag/version.rb",
|
57
|
+
"lib/generators/bugsnag/bugsnag_generator.rb",
|
57
58
|
"rails/init.rb",
|
58
59
|
"spec/helper_spec.rb",
|
59
60
|
"spec/middleware_spec.rb",
|
data/lib/bugsnag.rb
CHANGED
@@ -9,9 +9,12 @@ require "bugsnag/helpers"
|
|
9
9
|
require "bugsnag/rack"
|
10
10
|
require "bugsnag/railtie" if defined?(Rails::Railtie)
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
require "bugsnag
|
12
|
+
[:resque, :sidekiq, :mailman].each do |integration|
|
13
|
+
begin
|
14
|
+
require "bugsnag/#{integration}"
|
15
|
+
rescue LoadError
|
16
|
+
end
|
17
|
+
end
|
15
18
|
|
16
19
|
module Bugsnag
|
17
20
|
LOG_PREFIX = "** [Bugsnag] "
|
data/lib/bugsnag/mailman.rb
CHANGED
data/lib/bugsnag/resque.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "resque
|
1
|
+
require "resque"
|
2
2
|
require "resque/failure/multiple"
|
3
3
|
|
4
4
|
module Bugsnag
|
@@ -35,4 +35,4 @@ end
|
|
35
35
|
Resque::Failure::Bugsnag = Bugsnag::Resque
|
36
36
|
|
37
37
|
# Auto-load the failure backend
|
38
|
-
Bugsnag::Resque.add_failure_backend
|
38
|
+
Bugsnag::Resque.add_failure_backend
|
data/lib/bugsnag/sidekiq.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
class BugsnagGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path('../templates', __FILE__)
|
4
|
+
|
5
|
+
argument :api_key, required: true, :desc => "required"
|
6
|
+
|
7
|
+
gem "bugsnag"
|
8
|
+
|
9
|
+
desc "Configures the bugsnag notifier with your API key"
|
10
|
+
|
11
|
+
def create_initializer_file
|
12
|
+
unless /^[a-f0-9]{32}$/ =~ api_key
|
13
|
+
raise Thor::Error, "Invalid bugsnag notifier api key #{api_key.inspect}\nYou can find the api key on the Settings tab of https://bugsnag.com/"
|
14
|
+
end
|
15
|
+
|
16
|
+
initializer "bugsnag.rb" do
|
17
|
+
<<-EOF.strip
|
18
|
+
Bugsnag.configure do |config|
|
19
|
+
config.api_key = #{api_key.inspect}
|
20
|
+
end
|
21
|
+
EOF
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/bugsnag/tasks.rb
|
132
132
|
- lib/bugsnag/tasks/bugsnag.rake
|
133
133
|
- lib/bugsnag/version.rb
|
134
|
+
- lib/generators/bugsnag/bugsnag_generator.rb
|
134
135
|
- rails/init.rb
|
135
136
|
- spec/helper_spec.rb
|
136
137
|
- spec/middleware_spec.rb
|
@@ -162,3 +163,4 @@ signing_key:
|
|
162
163
|
specification_version: 4
|
163
164
|
summary: Ruby notifier for bugsnag.com
|
164
165
|
test_files: []
|
166
|
+
has_rdoc:
|