spicycode-rcov 0.8.1.5.0 → 0.8.1.5.5
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.
- data/Rakefile +5 -4
- data/lib/rcov/report.rb +3 -0
- data/lib/rcov/version.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
$:.unshift "lib" if File.directory? "lib"
|
6
6
|
require 'rcov/rcovtask'
|
7
|
+
require 'rcov/version'
|
7
8
|
require 'rake/testtask'
|
8
9
|
require 'rake/rdoctask'
|
9
10
|
require 'rake/gempackagetask'
|
@@ -100,7 +101,7 @@ PKG_FILES = ["bin/rcov", "lib/rcov.rb", "lib/rcov/lowlevel.rb", "lib/rcov/xx.rb"
|
|
100
101
|
# this code can also be used to generate the MRI gem. But I left the gemspec file in too.
|
101
102
|
spec = Gem::Specification.new do |s|
|
102
103
|
s.name = %q{rcov}
|
103
|
-
s.version =
|
104
|
+
s.version = Rcov::VERSION
|
104
105
|
|
105
106
|
s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version=
|
106
107
|
s.authors = ["Mauricio Fernandez"]
|
@@ -134,11 +135,11 @@ spec = Gem::Specification.new do |s|
|
|
134
135
|
end
|
135
136
|
end
|
136
137
|
|
137
|
-
#tasks added in to support generating the JRuby gem.
|
138
|
+
# tasks added in to support generating the JRuby gem.
|
138
139
|
if RUBY_PLATFORM == 'java'
|
139
140
|
spec.platform = "jruby"
|
140
141
|
spec.extensions = []
|
141
|
-
#add the jruby extension to the file list
|
142
|
+
# add the jruby extension to the file list
|
142
143
|
PKG_FILES << "lib/rcovrt.jar"
|
143
144
|
|
144
145
|
def java_classpath_arg
|
@@ -185,7 +186,7 @@ Rake::GemPackageTask.new(spec) do |p|
|
|
185
186
|
p.gem_spec = spec
|
186
187
|
end
|
187
188
|
|
188
|
-
#extend the gem task to include the java_compile
|
189
|
+
# extend the gem task to include the java_compile
|
189
190
|
if RUBY_PLATFORM == 'java'
|
190
191
|
Rake::Task["pkg"].enhance(["java_compile"])
|
191
192
|
end
|
data/lib/rcov/report.rb
CHANGED
@@ -25,6 +25,8 @@ begin
|
|
25
25
|
rescue LoadError
|
26
26
|
end
|
27
27
|
|
28
|
+
require 'rcov/rexml_extensions' # TODO it would be nice to move the below hacks into this rexml_extensions module
|
29
|
+
|
28
30
|
if (RUBY_VERSION == "1.8.6" || RUBY_VERSION == "1.8.7") && defined? REXML::Formatters::Transitive
|
29
31
|
class REXML::Document
|
30
32
|
remove_method :write rescue nil
|
@@ -74,6 +76,7 @@ if (RUBY_VERSION == "1.8.6" || RUBY_VERSION == "1.8.7") && defined? REXML::Forma
|
|
74
76
|
output << ' '*@level
|
75
77
|
end
|
76
78
|
end
|
79
|
+
|
77
80
|
end
|
78
81
|
|
79
82
|
class Formatter # :nodoc:
|
data/lib/rcov/version.rb
CHANGED