debian/0000755000000000000000000000000012256142001007157 5ustar debian/ruby-simplecov.docs0000644000000000000000000000004312256137763013031 0ustar # FIXME: READMEs found # README.md debian/copyright0000644000000000000000000000251712256137763011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: simplecov Source: http://rubygems.org/gems/simplecov Files: * Copyright: 2010-2012 Christoph Olszowka License: Expat Files: debian/* Copyright: 2013 Praveen Arimbrathodiyil License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/rules0000755000000000000000000000113212256137763010257 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs CHANGELOG.md clean: dh clean --buildsystem=ruby --with ruby find . -name coverage |xargs rm -rf debian/source/0000755000000000000000000000000012256137763010502 5ustar debian/source/format0000644000000000000000000000001412256137763011710 0ustar 3.0 (quilt) debian/control0000644000000000000000000000227212256140200010564 0ustar Source: ruby-simplecov Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Praveen Arimbrathodiyil Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.0~), ruby-shoulda (>= 2.10), rake, ruby-multi-json, ruby-rspec Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-simplecov.git Vcs-Browser: http://anonscm.debian.org/?p=pkg-ruby-extras/ruby-simplecov.git;a=summary Homepage: http://github.com/colszowka/simplecov XS-Ruby-Versions: all Package: ruby-simplecov Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-multi-json Description: code coverage for Ruby 1.9 Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites. . It uses 1.9's built-in Coverage library to gather code coverage data, but makes processing its results much easier by providing a clean API to filter, group, merge, format and display those results, thus giving you a complete code coverage suite that can be set up with just a couple lines of code. debian/watch0000644000000000000000000000014712256137763010235 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/simplecov .*/simplecov-(.*).tar.gz debian/ruby-tests.rake0000644000000000000000000000025312256137763012167 0ustar require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << "test" t.test_files = FileList['test/test_*.rb'] t.verbose = true end task :default => [:test] debian/changelog0000644000000000000000000000124712256141576011055 0ustar ruby-simplecov (0.7.1-2) unstable; urgency=medium * Team upload. * Break dependency cycle with simplecov-html (Closes: #723199) * Bump Standards-Version to 3.9.5 (no changes) * Update Build-Depends for ruby2.0, drop ruby1.8 support. While simplecov's own tests don't seem to run on 2.0, running tests of other packages works (or at least, doesn't break). * Fix test failure due to encoding test (from upstream) -- Christian Hofstaedtler Tue, 24 Dec 2013 00:04:53 +0100 ruby-simplecov (0.7.1-1) unstable; urgency=low * Initial release (Closes: #691450) -- Praveen Arimbrathodiyil Thu, 23 May 2013 12:11:38 +0530 debian/compat0000644000000000000000000000000212256137763010400 0ustar 7 debian/patches/0000755000000000000000000000000012256140622010615 5ustar debian/patches/ignore-simplecov-html0000644000000000000000000000215712256140043014766 0ustar Description: Ignore simplecov-html load failured Break dependency cycle Author: Christian Hofstaedtler Last-updated: 2013-12-23 Index: ruby-simplecov/lib/simplecov/defaults.rb =================================================================== --- ruby-simplecov.orig/lib/simplecov/defaults.rb 2013-12-23 23:58:40.661796884 +0100 +++ ruby-simplecov/lib/simplecov/defaults.rb 2013-12-23 23:58:40.653796910 +0100 @@ -1,5 +1,9 @@ # Load default formatter gem -require 'simplecov-html' +begin + require 'simplecov-html' +rescue LoadError + puts "Loading simplecov-html failed, install ruby-simplecov-html" +end SimpleCov.adapters.define 'root_filter' do # Exclude all files outside of simplecov root @@ -32,7 +36,12 @@ end # Default configuration SimpleCov.configure do - formatter SimpleCov::Formatter::HTMLFormatter + begin + formatter SimpleCov::Formatter::HTMLFormatter + rescue NameError + # simplecov-html not installed, fall back to SimpleFormatter + formatter SimpleCov::Formatter::SimpleFormatter + end # Exclude files outside of SimpleCov.root load_adapter 'root_filter' end debian/patches/open-source-files-in-binary-mode0000644000000000000000000000352712256140541016716 0ustar From 6abb79e6b3eeed02997cb356cf73647e97be0edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20F=C3=A9lizard?= Date: Tue, 12 Feb 2013 17:19:43 +0100 Subject: [PATCH] Open source files in binary mode Opening non-UTF-8 files as UTF-8 succeeds in some cases and will throw when comparing against a regexp. Forcing Ruby to use binary mode will keep strings as ASCII-8BIT and seems to work on all current versions of Ruby. Moreover, there is no way to know for sure which encoding is used without heuristics or parsing the potential encoding shebang thus binary mode is probably safer. [zeha@debian.org: Backport to simplecov 0.7] --- lib/simplecov/source_file.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: ruby-simplecov/lib/simplecov/source_file.rb =================================================================== --- ruby-simplecov.orig/lib/simplecov/source_file.rb 2013-12-24 00:02:51.164975612 +0100 +++ ruby-simplecov/lib/simplecov/source_file.rb 2013-12-24 00:03:11.192909910 +0100 @@ -30,7 +30,6 @@ module SimpleCov raise ArgumentError, "Only Fixnum and nil accepted for coverage" unless coverage.kind_of?(Fixnum) or coverage.nil? @src, @line_number, @coverage = src, line_number, coverage @skipped = false - @src.encode!('UTF-8', 'UTF-8', :invalid => :replace) if @src.respond_to?(:encode!) end # Returns true if this is a line that should have been covered, but was not @@ -79,7 +78,7 @@ module SimpleCov def initialize(filename, coverage) @filename, @coverage = filename, coverage - File.open(filename, "r:UTF-8") {|f| @src = f.readlines } + File.open(filename, "rb") {|f| @src = f.readlines } end # Returns all source lines for this file as instances of SimpleCov::SourceFile::Line, debian/patches/series0000644000000000000000000000012512256140406012030 0ustar remove-rubygems-bundler.patch ignore-simplecov-html open-source-files-in-binary-mode debian/patches/remove-rubygems-bundler.patch0000644000000000000000000000126212256137763016434 0ustar Description: Remove bundler We'll collect dependencies in debian/control Author: Praveen Arimbrathodiyil Last-updated: 2013-05-23 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,7 +1,10 @@ -require 'bundler/setup' +#require 'bundler/setup' require 'simplecov' require 'test/unit' require 'shoulda' +if RUBY_VERSION =~ 1.9 + require 'minitest/autorun' +end SimpleCov.coverage_dir('tmp/coverage') --- a/test/faked_project/test/test_helper.rb +++ b/test/faked_project/test/test_helper.rb @@ -1,4 +1,4 @@ -require 'bundler/setup' +# require 'bundler/setup' # We're injecting simplecov_config via aruba in cucumber here # depending on what the test case is...