hockeybrake 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +1 -0
- data/hockeybrake-0.0.6.gem +0 -0
- data/lib/hockeybrake/hockey_log.rb +21 -4
- data/lib/hockeybrake/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ded2046d14f135a1f014dd9f4c8813672eac1b23
|
4
|
+
data.tar.gz: 14dc7d0f5e709350c729c7656126846898ba64fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f2cbca1727555ca304e8aadfa1e350c5d655360e319ec80f4369ccdde8efd4ebc1a13d081c7d77a5d3b6aa6f9f8a0f4e62116b64f6cb15be71e9f2349eeb58a
|
7
|
+
data.tar.gz: 30d81fc37159e148fe8bb74fe3f354b4497d6866923c8bedb6db70ae897fa105e4edb47fa02113d5c7d5a5b8f6c6216909c5729cee3c0da2b3bfc20ad00c6b75
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
An extension for the amazing airbrake gem which routes crash reports to HockeyApp
|
4
4
|
|
5
5
|
[![Build Status](https://secure.travis-ci.org/dei79/hockeybrake.png)](http://travis-ci.org/dei79/hockeybrake)
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/hockeybrake.png)](http://badge.fury.io/rb/hockeybrake)
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
Binary file
|
@@ -21,6 +21,19 @@ module HockeyBrake
|
|
21
21
|
|
22
22
|
#
|
23
23
|
# Generates a string which can be sent to the hockey service
|
24
|
+
# Package: PACKAGE NAME
|
25
|
+
# Version: VERSION
|
26
|
+
# OS: OS VERSION
|
27
|
+
# Manufacturer: DEVICE OEM
|
28
|
+
# Model: DEVICE MODEL
|
29
|
+
# Date: DATETIME
|
30
|
+
|
31
|
+
# EXCEPTION REASON STRING
|
32
|
+
# at CLASS.METHOD(FILE:LINE)
|
33
|
+
# at CLASS.METHOD(FILE:LINE)
|
34
|
+
# at CLASS.METHOD(FILE:LINE)
|
35
|
+
# at CLASS.METHOD(FILE:LINE)
|
36
|
+
# at CLASS.METHOD(FILE:LINE)
|
24
37
|
def self.generate(data)
|
25
38
|
begin
|
26
39
|
# the output
|
@@ -59,20 +72,22 @@ module HockeyBrake
|
|
59
72
|
end
|
60
73
|
end
|
61
74
|
|
75
|
+
# EXCEPTION REASON STRING
|
76
|
+
# at CLASS.METHOD(FILE:LINE)
|
62
77
|
def self.generate_from_notice(data)
|
63
78
|
output = ""
|
64
79
|
|
65
80
|
# write the first line
|
66
|
-
output += "#{data.
|
81
|
+
output += "#{data.error_message}\n"
|
67
82
|
|
68
83
|
# generate the call stacke
|
69
84
|
data.backtrace.lines.each do |line|
|
70
85
|
class_name = File.basename(line.file, ".rb").classify
|
71
86
|
|
72
87
|
begin
|
73
|
-
output += " at #{class_name}
|
88
|
+
output += " at #{class_name}.#{line.method}(#{line.file}:#{line.number})\n"
|
74
89
|
rescue
|
75
|
-
output += " at #{class_name}
|
90
|
+
output += " at #{class_name}.#{line.method_name}(#{line.file}:#{line.number})\n"
|
76
91
|
end
|
77
92
|
end
|
78
93
|
|
@@ -80,6 +95,8 @@ module HockeyBrake
|
|
80
95
|
output
|
81
96
|
end
|
82
97
|
|
98
|
+
# EXCEPTION REASON STRING
|
99
|
+
# at CLASS.METHOD(FILE:LINE)
|
83
100
|
def self.generate_from_xml(data)
|
84
101
|
# the output
|
85
102
|
output = ""
|
@@ -94,7 +111,7 @@ module HockeyBrake
|
|
94
111
|
lines = crashData['notice']['error']['backtrace']['line']
|
95
112
|
lines.each do |line|
|
96
113
|
class_name = File.basename(line['file'], ".rb").classify
|
97
|
-
output += " at #{class_name}
|
114
|
+
output += " at #{class_name}.#{line['method']}(#{line['file']}:#{line['number']})\n"
|
98
115
|
end
|
99
116
|
|
100
117
|
# emit
|
data/lib/hockeybrake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7
|
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-03-
|
11
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- gemfiles/airbrake-3.1.4
|
74
74
|
- gemfiles/airbrake-3.1.5
|
75
75
|
- gemfiles/airbrake-3.1.6
|
76
|
+
- hockeybrake-0.0.6.gem
|
76
77
|
- hockeybrake.gemspec
|
77
78
|
- lib/generators/hockeybrake/hockeybrake_generator.rb
|
78
79
|
- lib/generators/hockeybrake/templates/initializer.rb
|