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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 590764333f8092a3f705fe2d4a31aa1698e93ea4
4
- data.tar.gz: b5442b2100651a2a3bc496844125d2f9292fe393
3
+ metadata.gz: 821db12a4c407c74f28439cee04fd1bf85701172
4
+ data.tar.gz: 18239eb96c3a72351625fa2767e902c65db0773f
5
5
  SHA512:
6
- metadata.gz: 1d80897bbe2ddb19976999f58359bfa64996bc024d104ee5b3892198ddd1d09ad1d47ac2e7fd23b88d467b2e8fc8efc30bd6f65efc55160637a9ea4f1e5cc628
7
- data.tar.gz: 20c82ffce7e74252f0565a86cf916e406d0551ca99cf991cd3060bf31a1e73d78a3b7efb1c6cc9a7d5b46456d60c2fc8d122ce3355339bf87a4ac636b64b8672
6
+ metadata.gz: 395818a1e15b43bc2b1e7ba1494f14d50daf6554fd302b497d96585e722d998cc2d2d734f6f8667c5be66a03d8e7ac83de2984c9e865f1b5390569c88d0759ac
7
+ data.tar.gz: 205027dd715082a0663df243d7dd9faffdeebaebeab5612d9170252b826ee662c44b1bfe2ba1ee348884161abc85606e467050d6f42565b0fd58a2021c6578ec
@@ -1,4 +1,4 @@
1
- require 'yajl'
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(Yajl.dump(data))
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 << Yajl.load(line)
22
+ reports << JSON.parse(line)
23
23
  end
24
24
  reports
25
25
  end
@@ -1,6 +1,6 @@
1
1
  require 'net/https'
2
2
  require 'uri'
3
- require 'yajl'
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' => Yajl.dump(data))
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
@@ -1,4 +1,4 @@
1
- require 'yajl'
1
+ require 'json'
2
2
 
3
3
  module Failbot
4
4
  class JSONBackend
@@ -15,7 +15,7 @@ module Failbot
15
15
  end
16
16
 
17
17
  def report(data)
18
- payload = Yajl.dump(data)
18
+ payload = data.to_json
19
19
 
20
20
  response = socket do |s|
21
21
  s.send(payload, 0)
@@ -1,3 +1,3 @@
1
1
  module Failbot
2
- VERSION = "1.4.2"
2
+ VERSION = "2.0.0"
3
3
  end
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: 1.4.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - "@rtomayko"
8
- - "@atmos"
9
- - "@sr"
7
+ - '@rtomayko'
8
+ - '@atmos'
9
+ - '@sr'
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-06-06 00:00:00.000000000 Z
13
+ date: 2016-07-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: yajl-ruby
16
+ name: rake
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '1.1'
22
- type: :runtime
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: '1.1'
28
+ version: '10.0'
29
29
  - !ruby/object:Gem::Dependency
30
- name: rake
30
+ name: rack
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: '10.0'
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: '10.0'
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.2.2
110
+ rubygems_version: 2.0.14.1
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Deliver exceptions to Haystack