failbot 1.4.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/failbot/file_backend.rb +3 -3
- data/lib/failbot/haystack.rb +2 -2
- data/lib/failbot/json_backend.rb +2 -2
- data/lib/failbot/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 821db12a4c407c74f28439cee04fd1bf85701172
|
4
|
+
data.tar.gz: 18239eb96c3a72351625fa2767e902c65db0773f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 395818a1e15b43bc2b1e7ba1494f14d50daf6554fd302b497d96585e722d998cc2d2d734f6f8667c5be66a03d8e7ac83de2984c9e865f1b5390569c88d0759ac
|
7
|
+
data.tar.gz: 205027dd715082a0663df243d7dd9faffdeebaebeab5612d9170252b826ee662c44b1bfe2ba1ee348884161abc85606e467050d6f42565b0fd58a2021c6578ec
|
data/lib/failbot/file_backend.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'json'
|
2
2
|
|
3
3
|
module Failbot
|
4
4
|
class FileBackend
|
@@ -12,14 +12,14 @@ module Failbot
|
|
12
12
|
|
13
13
|
def report(data)
|
14
14
|
File.open(@path, 'a') do |file|
|
15
|
-
file.puts(
|
15
|
+
file.puts(data.to_json)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
def reports
|
20
20
|
reports = []
|
21
21
|
File.foreach(@path) do |line|
|
22
|
-
reports <<
|
22
|
+
reports << JSON.parse(line)
|
23
23
|
end
|
24
24
|
reports
|
25
25
|
end
|
data/lib/failbot/haystack.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'net/https'
|
2
2
|
require 'uri'
|
3
|
-
require '
|
3
|
+
require 'json'
|
4
4
|
|
5
5
|
module Failbot
|
6
6
|
class Haystack
|
@@ -19,7 +19,7 @@ module Failbot
|
|
19
19
|
def send_data(data)
|
20
20
|
# make a post
|
21
21
|
post = Net::HTTP::Post.new(@url.path)
|
22
|
-
post.set_form_data('json' =>
|
22
|
+
post.set_form_data('json' => data.to_json)
|
23
23
|
response = send_request(post)
|
24
24
|
|
25
25
|
# Raise if the exception doesn't make it to Haystack, ensures the failure
|
data/lib/failbot/json_backend.rb
CHANGED
data/lib/failbot/version.rb
CHANGED
metadata
CHANGED
@@ -1,74 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: failbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
7
|
+
- '@rtomayko'
|
8
|
+
- '@atmos'
|
9
|
+
- '@sr'
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: rake
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
22
|
-
type: :
|
21
|
+
version: '10.0'
|
22
|
+
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '10.0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
30
|
+
name: rack
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 1.6.4
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 1.6.4
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rack-test
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0.6'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ~>
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0.6'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: minitest
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '5.0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '5.0'
|
71
|
-
description:
|
71
|
+
description: '...'
|
72
72
|
email:
|
73
73
|
- github+failbot@lists.github.com
|
74
74
|
executables: []
|
@@ -97,17 +97,17 @@ require_paths:
|
|
97
97
|
- lib
|
98
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - '>='
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: 1.3.6
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.0.14.1
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Deliver exceptions to Haystack
|