pangdudu-rofl 0.1 → 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/rofl.rb +2 -1
  2. metadata +1 -1
data/lib/rofl.rb CHANGED
@@ -48,7 +48,8 @@ module Rofl
48
48
  skip = 2 #indicates how many items we skip in the execution stack trace
49
49
  call_trace = caller(skip)
50
50
  last_meth = call_trace[0][/\`.*?\'/]
51
- last_meth_name = last_meth.delete("\`").delete("\'") #what was the right string method for this?
51
+ last_meth_name = "notrace"
52
+ last_meth_name = last_meth.delete("\`").delete("\'") unless last_meth.nil?
52
53
  return last_meth_name
53
54
  end
54
55
  #check if we or an object are ready to rofl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pangdudu-rofl
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pangdudu