jruby-rcov 0.8.2.3-java → 0.8.2.4-java

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.
Files changed (3) hide show
  1. data/lib/rcov/version.rb +2 -2
  2. data/lib/rcov.rb +10 -10
  3. metadata +3 -2
data/lib/rcov/version.rb CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  module Rcov
6
6
 
7
- VERSION = "0.8.2.3"
8
- RELEASE_DATE = "2009-06-03"
7
+ VERSION = "0.8.2.4"
8
+ RELEASE_DATE = "2009-08-09"
9
9
  RCOVRT_ABI = [2,0,0]
10
10
  UPSTREAM_URL = "http://github.com/jruby/rcov"
11
11
 
data/lib/rcov.rb CHANGED
@@ -189,13 +189,15 @@ class FileStatistics
189
189
  # very conservative, doesn't consider the last delimited string but
190
190
  # only the very first one
191
191
  if md = /^[^#]*%(?:[qQ])?(.)/.match(line)
192
- wanted_delimiter = /(?!\\).#{Regexp.escape(matching_delimiters[md[1]])}/
193
- # check if closed on the very same line
194
- # conservative again, we might have several quoted strings with the
195
- # same delimiter on the same line, leaving the last one open
196
- unless wanted_delimiter.match(md.post_match)
197
- state = :want_end_delimiter
198
- string_begin_line = i
192
+ if !/"%"/.match(line)
193
+ wanted_delimiter = /(?!\\).#{Regexp.escape(matching_delimiters[md[1]])}/
194
+ # check if closed on the very same line
195
+ # conservative again, we might have several quoted strings with the
196
+ # same delimiter on the same line, leaving the last one open
197
+ unless wanted_delimiter.match(md.post_match)
198
+ state = :want_end_delimiter
199
+ string_begin_line = i
200
+ end
199
201
  end
200
202
  end
201
203
  when :want_end_delimiter
@@ -985,6 +987,4 @@ class CallSiteAnalyzer < DifferentialAnalyzer
985
987
 
986
988
  end
987
989
 
988
- end # Rcov
989
-
990
- # vi: set sw=2:
990
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-rcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2.3
4
+ version: 0.8.2.4
5
5
  platform: java
6
6
  authors:
7
7
  - Mauricio Fernandez
@@ -62,6 +62,7 @@ files:
62
62
  - lib/rcovrt.jar
63
63
  has_rdoc: true
64
64
  homepage: http://github.com/spicycode/rcov
65
+ licenses:
65
66
  post_install_message:
66
67
  rdoc_options:
67
68
  - --main
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  requirements: []
86
87
 
87
88
  rubyforge_project:
88
- rubygems_version: 1.2.0
89
+ rubygems_version: 1.3.5
89
90
  signing_key:
90
91
  specification_version: 1
91
92
  summary: Code coverage analysis tool for Ruby