jsinstrument 0.2.2 → 0.2.3

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.
@@ -77,7 +77,7 @@ module JSInstrument
77
77
  if parent.value.eql? node
78
78
  instrumented_lines.add line
79
79
  parent.value = get_hitline_call_block node
80
- elsif parent.else.eql? node
80
+ elsif (parent.respond_to? :else) and parent.else.eql? node
81
81
  instrumented_lines.add line
82
82
  parent.else = get_hitline_call_block node
83
83
  end
@@ -1,3 +1,3 @@
1
1
  module JSInstrument
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsinstrument
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: