Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleaning dependencies

  • Loading branch information...
commit 055556d3c65c28f8f33414efc892ccb674df68be 1 parent 12a5b7c
@fguillen authored
View
6 Gemfile
@@ -1,8 +1,2 @@
source :rubygems
-
gemspec
-
-group :test, :development do
- # Develop against git master if required - just uncomment this line:
- gem 'simplecov'# , :git => 'git://github.com/colszowka/simplecov.git'
-end
View
13 Gemfile.lock
@@ -1,18 +1,21 @@
PATH
remote: .
specs:
- simplecov-rcov (0.1.4)
+ simplecov-rcov (0.2.0)
+ simplecov (>= 0.4.1)
GEM
remote: http://rubygems.org/
specs:
- simplecov (0.4.1)
- simplecov-html (~> 0.4.3)
- simplecov-html (0.4.3)
+ mocha (0.9.12)
+ simplecov (0.4.2)
+ simplecov-html (~> 0.4.4)
+ simplecov-html (0.4.5)
PLATFORMS
ruby
DEPENDENCIES
- simplecov
+ bundler (>= 1.0.0.rc.6)
+ mocha
simplecov-rcov!
View
19 Manifest
@@ -1,19 +0,0 @@
-Gemfile
-Gemfile.lock
-Manifest
-README.md
-Rakefile
-lib/simplecov-rcov.rb
-simplecov-rcov.gemspec
-test/fixtures/app/controllers/sample.rb
-test/fixtures/app/models/airplane.rb
-test/fixtures/app/models/dog.rb
-test/fixtures/app/models/house.rb
-test/fixtures/app/models/robot.rb
-test/fixtures/app/models/user.rb
-test/fixtures/file_tr.html
-test/fixtures/sample.rb
-test/fixtures/totals_tr.html
-test/helper.rb
-test/simplecov-rcov_test.rb
-views/index.erb.html
View
9 Rakefile
@@ -1,15 +1,18 @@
+require 'rake'
+require 'rake/testtask'
require 'bundler'
+
+include Rake::DSL
+
Bundler::GemHelper.install_tasks
-require 'rake/testtask'
+task :default => :test
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
-task :default => :test
-
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
View
10 lib/simplecov-rcov.rb
@@ -1,16 +1,18 @@
-require 'bundler'
-Bundler.setup(:default)
-
require 'erb'
require 'cgi'
require 'fileutils'
require 'time'
+require 'pathname'
+
+require File.expand_path( "#{File.dirname(__FILE__)}/simplecov-rcov/version.rb" )
unless defined?(SimpleCov)
raise RuntimeError, "simplecov-rcov is a formatter for simplecov. Please update your test helper and gemfile to require 'simplecov'!"
end
class SimpleCov::Formatter::RcovFormatter
+ UPSTREAM_URL = "https://github.com/fguillen/simplecov-rcov"
+
def format( result )
Dir[File.join(File.dirname(__FILE__), '../assets/*')].each do |path|
FileUtils.cp_r(path, asset_output_path)
@@ -148,5 +150,3 @@ def line_css_for(coverage)
end
end
end
-
-require 'simplecov-rcov/version'
View
3  lib/simplecov-rcov/version.rb
@@ -1,8 +1,7 @@
module SimpleCov
module Formatter
class RcovFormatter
- VERSION = "0.2.0"
- UPSTREAM_URL = "https://github.com/fguillen/simplecov-rcov"
+ VERSION = "0.2.1"
end
end
end
View
5 simplecov-rcov.gemspec
@@ -23,4 +23,9 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
+
+ s.add_dependency 'simplecov', '>= 0.4.1'
+
+ s.add_development_dependency 'bundler', '>= 1.0.0.rc.6'
+ s.add_development_dependency 'mocha'
end
View
2  test/test_simplecov-rcov.rb
@@ -1,4 +1,4 @@
-require "#{File.expand_path(File.dirname(__FILE__))}/helper"
+require File.expand_path( "#{File.dirname(__FILE__)}/helper" )
class SimplecovRcovFormatterTest < Test::Unit::TestCase
def test_format
Please sign in to comment.
Something went wrong with that request. Please try again.