errorinbox 0.0.4a → 0.0.5a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f69ae40c69fab22284b253a8dd5f20b45af1c21
4
- data.tar.gz: e81ac62d271b789b435a6b8ebea43ffdb0a5eca1
3
+ metadata.gz: 89adea7fd26b7749808bc4642f3948cfb058b964
4
+ data.tar.gz: df27ea8e1939e6a37a8d25b54e7bcefe69ec16c6
5
5
  SHA512:
6
- metadata.gz: 49795aee9597820e55d40273a7386d8aecf62ec7da7636154afabc1ff398a74833854db419339a7552c69d58d8b50189d1f390c3a539da983fb82e13773cd3f5
7
- data.tar.gz: fcd27aad1a2abb051626c66ad5f65044769c0625a29ecdd42691ec1209aead9252ccc753aa7a3c2e29b68a6b71d27dd41b52117ac1a5076a66453428610eab27
6
+ metadata.gz: caa210c6b4980f19827cd5734ccdc14354909a1612f402a5d2408d69d55a4fc80a2389153cbe26b4caf675d5ca46597f167e6fef45f537038d9585b68b84a3e2
7
+ data.tar.gz: 88d6f364deaa6b7e15636d2ac65ae83853fa31f616c82b32a3298aacabf8a4db5c13059a39b71e7ac72f48c81d384360ecd0a46f4e574045d489d310ba1684c5
@@ -70,7 +70,7 @@ module ErrorInbox
70
70
  end
71
71
 
72
72
  @options.each do |key, value|
73
- value = value.to_s unless value.is_a?(Hash) || value.is_a?(Array)
73
+ value = value.to_s unless [Array, Hash].include?(value.class)
74
74
  body[:environment][key] = value
75
75
  end
76
76
 
@@ -81,7 +81,7 @@ module ErrorInbox
81
81
  uri = URI("http://oops.errorinbox.com/")
82
82
  http = Net::HTTP.new(uri.host, uri.port)
83
83
  http.read_timeout = 5
84
- http.open_timeout = 2
84
+ http.open_timeout = 4
85
85
 
86
86
  request = Net::HTTP::Post.new(uri.request_uri)
87
87
  request["Content-Type"] = "application/json"
@@ -1,3 +1,3 @@
1
1
  module ErrorInbox
2
- VERSION = "0.0.4a"
2
+ VERSION = "0.0.5a"
3
3
  end
data/lib/error_inbox.rb CHANGED
@@ -3,9 +3,6 @@ require "error_inbox/notifier"
3
3
  require "error_inbox/configuration"
4
4
 
5
5
  module ErrorInbox
6
- class MissingCredentialsError < StandardError; end
7
- class InvalidCredentialsError < StandardError; end
8
-
9
6
  def self.notify(ex, env)
10
7
  notifier = Notifier.new(env)
11
8
  notifier.save(ex)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errorinbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4a
4
+ version: 0.0.5a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Souza