Skip to content

Commit

Permalink
fixing aggregate_data bug in 1.9 thanks to @dguettler
Browse files Browse the repository at this point in the history
  • Loading branch information
abedra committed Sep 25, 2009
1 parent 276e311 commit 0d4ae40
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/rcov/code_coverage_analyzer.rb
Expand Up @@ -157,7 +157,7 @@ def raw_data_absolute
def aggregate_data(aggregated_data, delta)
delta.each_pair do |file, cov_arr|
dest = (aggregated_data[file] ||= Array.new(cov_arr.size, 0))
cov_arr.each_with_index{|x,i| dest[i] += x}
cov_arr.each_with_index{|x,i| dest[i] += x.to_i}
end
end

Expand Down Expand Up @@ -265,4 +265,4 @@ def marshal_load(ivs) # :nodoc:
ivs.each_pair{|iv, val| instance_variable_set(iv, val)}
end
end # CodeCoverageAnalyzer
end
end
4 changes: 2 additions & 2 deletions lib/rcov/version.rb
Expand Up @@ -3,8 +3,8 @@
# See LICENSE for licensing information.

module Rcov
VERSION = "0.9.2.1"
RELEASE_DATE = "2009-09-18"
VERSION = "0.9.3"
RELEASE_DATE = "2009-09-25"
RCOVRT_ABI = [2,0,0]
UPSTREAM_URL = "http://github.com/relevance/rcov"
end
4 changes: 2 additions & 2 deletions rcov-java.gemspec
Expand Up @@ -24,7 +24,7 @@ PKG_FILES = ["bin/rcov", "lib/rcov.rb", "lib/rcov/lowlevel.rb", "lib/rcov/versio

Gem::Specification.new do |s|
s.name = %q{rcov}
s.version = "0.9.2"
s.version = "0.9.3"

s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version=
s.authors = ["Relevance", "Chad Humphries (spicycode)", "Aaron Bedra (abedra)", "Jay McGaffigan", "Mauricio Fernandez"]
Expand Down Expand Up @@ -53,4 +53,4 @@ Gem::Specification.new do |s|
end
else
end
end
end
2 changes: 1 addition & 1 deletion rcov.gemspec
Expand Up @@ -25,7 +25,7 @@ PKG_FILES = ["bin/rcov", "lib/rcov.rb", "lib/rcov/lowlevel.rb", "lib/rcov/versio

Gem::Specification.new do |s|
s.name = %q{rcov}
s.version = "0.9.2.1"
s.version = "0.9.3"

s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version=
s.authors = ["Relevance", "Chad Humphries (spicycode)", "Aaron Bedra (abedra)", "Jay McGaffigan", "Mauricio Fernandez"]
Expand Down

0 comments on commit 0d4ae40

Please sign in to comment.