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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4d5daa3c3f6ae1971e40f2b91ae4aa0303de410
4
- data.tar.gz: 102820519f0775ea5a1fa34ed2eb45988e869e57
3
+ metadata.gz: ded2046d14f135a1f014dd9f4c8813672eac1b23
4
+ data.tar.gz: 14dc7d0f5e709350c729c7656126846898ba64fe
5
5
  SHA512:
6
- metadata.gz: 1231e4ab3a10bbc75051b0c13daf8c132c660cd11f12c5017839b108bdaef9771f5abfe6252b2ea0c27547e1ab3057006596446162bfbd4f183ca65bf3b597e2
7
- data.tar.gz: b7cc2795b5fd985076f4d20283dd49fd5fa9170034a52a27fb3c239ceb6185b13547df137ce44ee5268c199f2759c5345124f1cd1407a398435bdb6983f9a35f
6
+ metadata.gz: 6f2cbca1727555ca304e8aadfa1e350c5d655360e319ec80f4369ccdde8efd4ebc1a13d081c7d77a5d3b6aa6f9f8a0f4e62116b64f6cb15be71e9f2349eeb58a
7
+ data.tar.gz: 30d81fc37159e148fe8bb74fe3f354b4497d6866923c8bedb6db70ae897fa105e4edb47fa02113d5c7d5a5b8f6c6216909c5729cee3c0da2b3bfc20ad00c6b75
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
5
6
 
6
7
  gemfile:
7
8
  - gemfiles/airbrake-3.1.2
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.error_class}: #{data.error_message}\n"
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}##{line.method}(#{line.file}:#{line.number})\n"
88
+ output += " at #{class_name}.#{line.method}(#{line.file}:#{line.number})\n"
74
89
  rescue
75
- output += " at #{class_name}##{line.method_name}(#{line.file}:#{line.number})\n"
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}##{line['method']}(#{line['file']}:#{line['number']})\n"
114
+ output += " at #{class_name}.#{line['method']}(#{line['file']}:#{line['number']})\n"
98
115
  end
99
116
 
100
117
  # emit
@@ -1,4 +1,4 @@
1
1
  module HockeyBrake
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
4
4
 
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.6
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-16 00:00:00.000000000 Z
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