simplecov-html-0.10.0/ 0000755 0000041 0000041 00000000000 12545672522 014575 5 ustar www-data www-data simplecov-html-0.10.0/Rakefile 0000644 0000041 0000041 00000002216 12545672522 016243 0 ustar www-data www-data require "bundler" Bundler::GemHelper.install_tasks # See https://github.com/colszowka/simplecov/issues/171 desc "Set permissions on all files so they are compatible with both user-local and system-wide installs" task :fix_permissions do system 'bash -c "find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;"' end # Enforce proper permissions on each build Rake::Task[:build].prerequisites.unshift :fix_permissions require "rake/testtask" Rake::TestTask.new(:test) do |test| test.libs << "lib" << "test" test.pattern = "test/**/test_*.rb" test.verbose = true end begin require "rubocop/rake_task" RuboCop::RakeTask.new rescue LoadError task :rubocop do $stderr.puts "Rubocop is disabled" end end task :default => [:test, :rubocop] namespace :assets do desc "Compiles all assets" task :compile do puts "Compiling assets" require "sprockets" assets = Sprockets::Environment.new assets.append_path "assets/javascripts" assets.append_path "assets/stylesheets" assets["application.js"].write_to("public/application.js") assets["application.css"].write_to("public/application.css") end end simplecov-html-0.10.0/Gemfile 0000644 0000041 0000041 00000000713 12545672522 016071 0 ustar www-data www-data source "https://rubygems.org" gemspec gem "rake" # Use local copy of simplecov in development when checked out, fetch from git otherwise if File.directory?(File.dirname(__FILE__) + "/../simplecov") gem "simplecov", :path => File.dirname(__FILE__) + "/../simplecov" else gem "simplecov", :git => "https://github.com/colszowka/simplecov" end group :test do gem "test-unit" end group :development do gem "rubocop" gem "sass" gem "sprockets" end simplecov-html-0.10.0/views/ 0000755 0000041 0000041 00000000000 12545672522 015732 5 ustar www-data www-data simplecov-html-0.10.0/views/file_list.erb 0000644 0000041 0000041 00000003343 12545672522 020401 0 ustar www-data www-data
File | % covered | Lines | Relevant Lines | Lines covered | Lines missed | Avg. Hits / Line |
---|---|---|---|---|---|---|
<%= link_to_source_file(source_file) %> | <%= source_file.covered_percent.round(2).to_s %> % | <%= source_file.lines.count %> | <%= source_file.covered_lines.count + source_file.missed_lines.count %> | <%= source_file.covered_lines.count %> | <%= source_file.missed_lines.count %> | <%= source_file.covered_strength %> |
<% source_file.lines.each_with_index do |line| %>
- <% if line.covered? %><%= line.coverage %><% end %> <% if line.skipped? %>skipped<% end %>
<% end %><%= CGI.escapeHTML(line.src.chomp) %>