debugged-ruby 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/debugged-ruby.rb CHANGED
@@ -32,8 +32,13 @@ module Debugged
32
32
  def self.report(e, data=nil)
33
33
 
34
34
  unless data.is_a? Hash or data.nil?
35
- raise ArgumentError, 'Data argument is not Hash'
36
35
  @@log.error("ERROR - data argument not passed as a Hash")
36
+ raise ArgumentError, 'Data argument is not Hash'
37
+ end
38
+
39
+ unless e.is_a? Exception
40
+ @@log.error("ERROR - exception argument not passed as an Exception")
41
+ raise ArugumentError, 'Exception argument is not Exception'
37
42
  end
38
43
 
39
44
  data ||= {}
@@ -1,3 +1,3 @@
1
1
  module Debugged
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugged-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: