simplecov 0.3.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simplecov (0.3.9)
5
- simplecov-html (>= 0.3.7)
4
+ simplecov (0.4.0)
5
+ simplecov-html (~> 0.4.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
@@ -19,13 +19,14 @@ GEM
19
19
  rspec-core (~> 2.0.1)
20
20
  rspec-expectations (~> 2.0.1)
21
21
  shoulda (2.10.3)
22
- simplecov-html (0.3.8)
22
+ simplecov-html (0.4.0)
23
23
 
24
24
  PLATFORMS
25
+ java
25
26
  ruby
26
27
 
27
28
  DEPENDENCIES
28
29
  rspec (~> 2.0.0)
29
30
  shoulda (= 2.10.3)
30
31
  simplecov!
31
- simplecov-html (>= 0.3.7)
32
+ simplecov-html (~> 0.4.0)
@@ -314,15 +314,7 @@ The test suite is built for execution on multiple versions of Ruby to ensure tha
314
314
 
315
315
  RVM is used for that, and let me tell you that you probably want to install it if you haven't yet.
316
316
 
317
- To invoke the test suite on multiple rubies, install the dev bundle using
318
-
319
- rake multitest:bundle
320
-
321
- and then you should be ready to launch the tests:
322
-
323
- rake multitest
324
-
325
- The ruby versions used for testing can be found in the Rakefile.
317
+ In CI, SimpleCov is built against 1.8.7, REE, 1.9.1, 1.9.2 and JRuby 1.6
326
318
 
327
319
  == Note on Patches/Pull Requests
328
320
 
data/Rakefile CHANGED
@@ -15,17 +15,4 @@ Rake::RDocTask.new do |rdoc|
15
15
  rdoc.rdoc_dir = 'rdoc'
16
16
  rdoc.rdoc_files.include('README*')
17
17
  rdoc.rdoc_files.include('lib/**/*.rb')
18
- end
19
-
20
- TestedRubyVersions = %w(1.9.2 1.8.7 1.8.6)
21
-
22
- desc "Perorms bundle install on all rvm-tested ruby versions (#{TestedRubyVersions.join(', ')})"
23
- task :"multitest:bundle" do
24
- system "rvm #{TestedRubyVersions.join(',')} exec bundle install"
25
- end
26
-
27
- desc "Runs tests using rvm for: #{TestedRubyVersions.join(', ')}"
28
- task :multitest do
29
- system "rvm #{TestedRubyVersions.join(',')} rake test"
30
- end
31
-
18
+ end
@@ -1,3 +1,5 @@
1
+ require 'rubygems'
2
+
1
3
  #
2
4
  # Code coverage for ruby 1.9. Please check out README for a full introduction.
3
5
  #
@@ -103,6 +105,7 @@ module SimpleCov
103
105
  end
104
106
 
105
107
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__)))
108
+ require 'simplecov/jruby_float_fix'
106
109
  require 'simplecov/configuration'
107
110
  SimpleCov.send :extend, SimpleCov::Configuration
108
111
  require 'simplecov/adapters'
@@ -0,0 +1,14 @@
1
+ # Temporary fix for JRuby 1.6.0 RC1 wrong round method
2
+ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby' and RUBY_VERSION == '1.9.2'
3
+ class Float
4
+ alias_method :precisionless_round, :round
5
+ def round(precision = nil)
6
+ if precision
7
+ magnitude = 10.0 ** precision
8
+ (self * magnitude).round / magnitude
9
+ else
10
+ precisionless_round
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleCov
2
- VERSION = "0.3.9"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "simplecov"
16
16
 
17
- s.add_dependency 'simplecov-html', ">= 0.3.7"
17
+ s.add_dependency 'simplecov-html', "~> 0.4.0"
18
18
  s.add_development_dependency "shoulda", "2.10.3"
19
19
  s.add_development_dependency "rspec", "~> 2.0.0"
20
20
 
@@ -49,7 +49,9 @@ class TestResult < Test::Unit::TestCase
49
49
  end
50
50
 
51
51
  should "have the same created_at" do
52
- assert_equal @result.created_at, @dumped_result.created_at
52
+ # Using to_i here since direct comparison seems to fail on 64-bit architecture because
53
+ # of fraction difference...
54
+ assert_equal @result.created_at.to_i, @dumped_result.created_at.to_i
53
55
  end
54
56
 
55
57
  should "have the same command_name" do
@@ -3,7 +3,7 @@ require 'helper'
3
3
  # Make sure that exit codes of tests are propagated properly when using
4
4
  # simplecov. See github issue #5
5
5
  class TestReturnCodes < Test::Unit::TestCase
6
- on_ruby '1.9' do
6
+ on_ruby '1.8', '1.9' do
7
7
  context "Inside fixtures/frameworks" do
8
8
  setup do
9
9
  @current_dir = Dir.getwd
@@ -21,14 +21,14 @@ class TestReturnCodes < Test::Unit::TestCase
21
21
  assert_equal 0, $?.exitstatus
22
22
  end
23
23
 
24
- should "have return code 1 when running testunit_bad.rb" do
24
+ should "have non-0 return code when running testunit_bad.rb" do
25
25
  `ruby testunit_bad.rb`
26
- assert_equal 1, $?.exitstatus
26
+ assert_not_equal 0, $?.exitstatus
27
27
  end
28
28
 
29
29
  should "have return code 1 when running rspec_bad.rb" do
30
30
  `rspec rspec_bad.rb`
31
- assert_equal 1, $?.exitstatus
31
+ assert_not_equal 0, $?.exitstatus
32
32
  end
33
33
 
34
34
  teardown do
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
8
- - 9
9
- version: 0.3.9
7
+ - 4
8
+ - 0
9
+ version: 0.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christoph Olszowka
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-06 00:00:00 +01:00
17
+ date: 2011-02-09 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -23,13 +23,13 @@ dependencies:
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - ">="
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 0
30
- - 3
31
- - 7
32
- version: 0.3.7
30
+ - 4
31
+ - 0
32
+ version: 0.4.0
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
@@ -87,6 +87,7 @@ files:
87
87
  - lib/simplecov/filter.rb
88
88
  - lib/simplecov/formatter.rb
89
89
  - lib/simplecov/formatter/simple_formatter.rb
90
+ - lib/simplecov/jruby_float_fix.rb
90
91
  - lib/simplecov/merge_helpers.rb
91
92
  - lib/simplecov/result.rb
92
93
  - lib/simplecov/result_merger.rb