[DRE-commits] [ruby-bogus] 02/04: patches: no test coverage in specs; require instead of gem

Cédric Boutillier boutil at moszumanska.debian.org
Wed Jul 9 15:38:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-bogus.

commit 7711576e390855b46667c3ea5336faef7c71a6b4
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Jun 23 05:55:40 2014 +0200

    patches: no test coverage in specs; require instead of gem
---
 debian/patches/clean_spec_helper.patch      | 27 +++++++++++++++++++++++++++
 debian/patches/require_instead_of_gem.patch | 14 ++++++++++++++
 debian/patches/series                       |  2 ++
 3 files changed, 43 insertions(+)

diff --git a/debian/patches/clean_spec_helper.patch b/debian/patches/clean_spec_helper.patch
new file mode 100644
index 0000000..80b2076
--- /dev/null
+++ b/debian/patches/clean_spec_helper.patch
@@ -0,0 +1,27 @@
+Description: remove simplecov/coveralls configuration from spec/helper.rb
+ running test coverage is not needed when building the package
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+last-Update: 2014-06-22
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,18 +1,3 @@
+-require 'simplecov'
+-begin
+-  require "coveralls"
+-rescue LoadError
+-  warn "warning: coveralls gem not found; skipping Coveralls"
+-end
+-
+-SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+-  SimpleCov::Formatter::HTMLFormatter,
+-  Coveralls::SimpleCov::Formatter]
+-
+-SimpleCov.start do
+-  add_filter "/spec/"
+-end
+-
+ require 'bogus'
+ require 'dependor/rspec'
+ 
diff --git a/debian/patches/require_instead_of_gem.patch b/debian/patches/require_instead_of_gem.patch
new file mode 100644
index 0000000..5cf53b6
--- /dev/null
+++ b/debian/patches/require_instead_of_gem.patch
@@ -0,0 +1,14 @@
+Description: use the standard require method to load minitest
+ instead of the gem command. Dependencies are installed via the
+ system package manager.
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-06-22
+
+--- a/lib/bogus/minitest.rb
++++ b/lib/bogus/minitest.rb
+@@ -1,4 +1,4 @@
+-gem 'minitest', '>= 4.7'
++require 'minitest'
+ require 'bogus'
+ 
+ module MiniTest::Assertions
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4d1884a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+require_instead_of_gem.patch
+clean_spec_helper.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-bogus.git



More information about the Pkg-ruby-extras-commits mailing list