carbolic 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/carbolic.rb +2 -2
  2. metadata +2 -2
data/lib/carbolic.rb CHANGED
@@ -37,7 +37,7 @@ class Carbolic
37
37
 
38
38
  def log_method(a=[], vars=[], args=[])
39
39
  label_vars = vars.map{|x| "%s: %s" % [x,x_inspect(self.instance_variable_get(x))]}
40
- line = "in, %s, " % (a + label_vars).flatten.join(', ')
40
+ line = "%s, in, %s, " % [self.class, (a + label_vars).flatten.join(', ')]
41
41
  basic_args = args.map do |x|
42
42
  x.class.to_s[/Float|Fixnum|String|Array/] ? ("%s: %s" % [x.class, x_inspect(x)]) : nil
43
43
  end
@@ -45,7 +45,7 @@ class Carbolic
45
45
  $carbolic_log.debug line << basic_args.join(', ')
46
46
  r = yield
47
47
  label_vars = vars.map{|x| "%s: %s, " % [x,x_inspect(self.instance_variable_get(x))]}
48
- line = "out, %s, " % ([a.first] + label_vars).flatten.join(', ')
48
+ line = "%s, out, %s, " % [self.class, ([a.first] + label_vars).flatten.join(', ')]
49
49
  line << "%s: %s" % [r.class, x_inspect(r)] if r.class.to_s[/Float|Fixnum|String|Array/]
50
50
  $carbolic_log.debug line
51
51
  r
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbolic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-19 00:00:00 +01:00
12
+ date: 2010-06-20 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15