hockeybrake 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/hockeybrake.gemspec +5 -4
- data/lib/generators/hockeybrake/templates/initializer.rb +6 -1
- data/lib/hockeybrake.rb +12 -1
- data/lib/hockeybrake/configuration.rb +4 -0
- data/lib/hockeybrake/version.rb +1 -1
- metadata +20 -9
- data/hockeybrake-0.0.6.gem +0 -0
- data/hockeybrake-0.0.7.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a4140a17d2792b321d33d986886442dc16e0ebd
|
4
|
+
data.tar.gz: 25eaede67c4bf957b010b7d8577e01c16ba9c969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfb21100a891b940d72f99249ed0e3b3334c5e5e3e9a5354362e1ee1c888b430014787109de71bf9d719a98b7f5a12667822e239081684989ef54cce1d9a9de
|
7
|
+
data.tar.gz: 8d0ec596e49e5b24f3013988f75ed4cb8f52dabcb68f3282eb0a44f117068e69c5bc941cd4e2412bea1743cc53f28649f7c8e72e8ebde89157fb080c39b05d86
|
data/.gitignore
CHANGED
data/hockeybrake.gemspec
CHANGED
@@ -9,14 +9,15 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["dirk.eisenberg@gmail.com"]
|
10
10
|
s.homepage = 'http://rubygems.org/gems/hockeybrake'
|
11
11
|
s.summary = %q{An extension for the amazing airbrake gem which routes crash reports to HockeyApp}
|
12
|
-
s.description = %q{An extension for the amazing airbrake gem which routes crash reports to HockeyApp}
|
12
|
+
s.description = %q{An extension for the amazing airbrake gem which routes crash reports directly to HockeyApp}
|
13
|
+
s.license = "MIT"
|
13
14
|
|
14
15
|
s.files = `git ls-files`.split("\n")
|
15
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
18
|
s.require_paths = ["lib"]
|
18
19
|
|
19
|
-
s.add_runtime_dependency(%q<airbrake>, [">= 3.1.2"])
|
20
|
-
s.add_runtime_dependency(%q<multipart-post>, [">= 1.1.5"])
|
21
|
-
s.add_runtime_dependency(%q<activesupport
|
20
|
+
s.add_runtime_dependency(%q<airbrake>, ["~> 3.1", ">= 3.1.2"])
|
21
|
+
s.add_runtime_dependency(%q<multipart-post>, ['~> 1.1', ">= 1.1.5"])
|
22
|
+
s.add_runtime_dependency(%q<activesupport>, ['~> 0'])
|
22
23
|
end
|
@@ -25,9 +25,14 @@ HockeyBrake.configure do |config|
|
|
25
25
|
# as version, otherwise use the name of your version
|
26
26
|
config.app_version="#{Rails.env}"
|
27
27
|
|
28
|
-
# Support for resque exception handling is enabled by default.
|
28
|
+
# Support for resque exception handling is enabled by default. With this
|
29
29
|
# settings the resque support will be disabled. If no resque gem is installed
|
30
30
|
# it will be disabled automatically
|
31
31
|
# config.no_resque_handler = true
|
32
32
|
|
33
|
+
|
34
|
+
# Support for sidekiq exception handling is enabled by default. With this
|
35
|
+
# settings the sidekiq support will be disabled. If no sidekiq gem is installed
|
36
|
+
# it will be disabled automatically
|
37
|
+
# config.no_sidekiq_handler = true
|
33
38
|
end
|
data/lib/hockeybrake.rb
CHANGED
@@ -13,7 +13,7 @@ module HockeyBrake
|
|
13
13
|
yield(configuration)
|
14
14
|
|
15
15
|
# check if we have resque support
|
16
|
-
|
16
|
+
unless self.configuration.no_resque_handler
|
17
17
|
|
18
18
|
# Load optional modules for resque support and configure the resque handler for
|
19
19
|
# us if needed
|
@@ -29,6 +29,17 @@ module HockeyBrake
|
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
32
|
+
|
33
|
+
# check if we have sidekiq support
|
34
|
+
unless self.configuration.no_sidekiq_handler
|
35
|
+
begin
|
36
|
+
Sidekiq.configure_server do |config|
|
37
|
+
config.error_handlers << Proc.new { |ex,ctx_hash|
|
38
|
+
::Airbrake.notify_or_ignore(ex, :parameters => ctx_hash)
|
39
|
+
}
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
32
43
|
end
|
33
44
|
|
34
45
|
def configuration
|
@@ -13,6 +13,10 @@ module HockeyBrake
|
|
13
13
|
# Allow to disable resque support
|
14
14
|
attr_accessor :no_resque_handler
|
15
15
|
|
16
|
+
# Allow to disable sidekiq suppoer
|
17
|
+
attr_accessor :no_sidekiq_handler
|
18
|
+
|
19
|
+
|
16
20
|
# The service url
|
17
21
|
def hockey_url
|
18
22
|
"https://rink.hockeyapp.net/api/2/apps/#{app_id}/crashes/upload"
|
data/lib/hockeybrake/version.rb
CHANGED
metadata
CHANGED
@@ -1,19 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hockeybrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dirk Eisenberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
17
20
|
- - '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 3.1.2
|
@@ -21,6 +24,9 @@ dependencies:
|
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
24
30
|
- - '>='
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 3.1.2
|
@@ -28,6 +34,9 @@ dependencies:
|
|
28
34
|
name: multipart-post
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
37
|
+
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.1'
|
31
40
|
- - '>='
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 1.1.5
|
@@ -35,6 +44,9 @@ dependencies:
|
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.1'
|
38
50
|
- - '>='
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 1.1.5
|
@@ -42,18 +54,18 @@ dependencies:
|
|
42
54
|
name: activesupport
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- -
|
57
|
+
- - ~>
|
46
58
|
- !ruby/object:Gem::Version
|
47
59
|
version: '0'
|
48
60
|
type: :runtime
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- -
|
64
|
+
- - ~>
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: '0'
|
55
67
|
description: An extension for the amazing airbrake gem which routes crash reports
|
56
|
-
to HockeyApp
|
68
|
+
directly to HockeyApp
|
57
69
|
email:
|
58
70
|
- dirk.eisenberg@gmail.com
|
59
71
|
executables: []
|
@@ -73,8 +85,6 @@ files:
|
|
73
85
|
- gemfiles/airbrake-3.1.4
|
74
86
|
- gemfiles/airbrake-3.1.5
|
75
87
|
- gemfiles/airbrake-3.1.6
|
76
|
-
- hockeybrake-0.0.6.gem
|
77
|
-
- hockeybrake-0.0.7.gem
|
78
88
|
- hockeybrake.gemspec
|
79
89
|
- lib/generators/hockeybrake/hockeybrake_generator.rb
|
80
90
|
- lib/generators/hockeybrake/templates/initializer.rb
|
@@ -90,7 +100,8 @@ files:
|
|
90
100
|
- spec/spec_helper.rb
|
91
101
|
- spec/spec_hockeybrake_configuration.rb
|
92
102
|
homepage: http://rubygems.org/gems/hockeybrake
|
93
|
-
licenses:
|
103
|
+
licenses:
|
104
|
+
- MIT
|
94
105
|
metadata: {}
|
95
106
|
post_install_message:
|
96
107
|
rdoc_options: []
|
@@ -108,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
119
|
version: '0'
|
109
120
|
requirements: []
|
110
121
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.2.2
|
112
123
|
signing_key:
|
113
124
|
specification_version: 4
|
114
125
|
summary: An extension for the amazing airbrake gem which routes crash reports to HockeyApp
|
data/hockeybrake-0.0.6.gem
DELETED
Binary file
|
data/hockeybrake-0.0.7.gem
DELETED
Binary file
|