relevance-rcov 0.8.3.8 → 0.8.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rcov/version.rb +2 -2
  2. data/lib/rcov.rb +10 -8
  3. metadata +1 -1
data/lib/rcov/version.rb CHANGED
@@ -3,8 +3,8 @@
3
3
  # See LEGAL and LICENSE for licensing information.
4
4
 
5
5
  module Rcov
6
- VERSION = "0.8.3.8"
7
- RELEASE_DATE = "2009-07-27"
6
+ VERSION = "0.8.3.9"
7
+ RELEASE_DATE = "2009-07-31"
8
8
  RCOVRT_ABI = [2,0,0]
9
9
  UPSTREAM_URL = "http://github.com/relevance/rcov"
10
10
  end
data/lib/rcov.rb CHANGED
@@ -210,13 +210,15 @@ class FileStatistics
210
210
  # very conservative, doesn't consider the last delimited string but
211
211
  # only the very first one
212
212
  if md = /^[^#]*%(?:[qQ])?(.)/.match(line)
213
- wanted_delimiter = /(?!\\).#{Regexp.escape(matching_delimiters[md[1]])}/
214
- # check if closed on the very same line
215
- # conservative again, we might have several quoted strings with the
216
- # same delimiter on the same line, leaving the last one open
217
- unless wanted_delimiter.match(md.post_match)
218
- state = :want_end_delimiter
219
- string_begin_line = i
213
+ if !/"%"/.match(line)
214
+ wanted_delimiter = /(?!\\).#{Regexp.escape(matching_delimiters[md[1]])}/
215
+ # check if closed on the very same line
216
+ # conservative again, we might have several quoted strings with the
217
+ # same delimiter on the same line, leaving the last one open
218
+ unless wanted_delimiter.match(md.post_match)
219
+ state = :want_end_delimiter
220
+ string_begin_line = i
221
+ end
220
222
  end
221
223
  end
222
224
  when :want_end_delimiter
@@ -1006,4 +1008,4 @@ class CallSiteAnalyzer < DifferentialAnalyzer
1006
1008
 
1007
1009
  end
1008
1010
 
1009
- end
1011
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relevance-rcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3.8
4
+ version: 0.8.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance