[DRE-commits] [ruby-ref] 04/07: patchs: Add rspec, simplecove and coverall deps.

Sebastien Badia sbadia-guest at moszumanska.debian.org
Wed Aug 19 19:11:28 UTC 2015


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

sbadia-guest pushed a commit to branch master
in repository ruby-ref.

commit 35a6c209f3353ce6f934ae468f81238db400bbc3
Author: Sebastien Badia <seb at sebian.fr>
Date:   Wed Aug 19 21:07:54 2015 +0200

    patchs: Add rspec, simplecove and coverall deps.
    
    Update according new release (upstream use now rspec)
    https://github.com/ruby-concurrency/ref/commit/f628eb9530ae2d4fc1a915289b83ceacfc30691b
---
 debian/control                                     |  2 +-
 .../patches/001_replace-simplecov-formatter.patch  | 16 ++++++++++++++++
 debian/patches/series                              |  2 +-
 .../test_basic_object_does_not_throw_exception     | 22 ----------------------
 debian/ruby-tests.rake                             |  5 +++++
 debian/ruby-tests.rb                               |  1 -
 6 files changed, 23 insertions(+), 25 deletions(-)

diff --git a/debian/control b/debian/control
index d81adb2..168d1a8 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Markus Tornow <tornow at riseup.net>
-Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.0~), ruby-test-unit
+Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.0~), ruby-rspec, ruby-coveralls, ruby-simplecov
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-ref.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-ref.git
diff --git a/debian/patches/001_replace-simplecov-formatter.patch b/debian/patches/001_replace-simplecov-formatter.patch
new file mode 100644
index 0000000..6e818cc
--- /dev/null
+++ b/debian/patches/001_replace-simplecov-formatter.patch
@@ -0,0 +1,16 @@
+Description: Disable simplecov-html (not yet packaged)
+Author: Sebastien Badia <seb at sebian.fr>
+Forwarded: not-needed
+Last-Update: 2015-08-19
+
+--- ruby-ref-2.0.0.orig/spec/spec_helper.rb
++++ ruby-ref-2.0.0/spec/spec_helper.rb
+@@ -2,7 +2,7 @@ require 'simplecov'
+ require 'coveralls'
+ 
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+-    SimpleCov::Formatter::HTMLFormatter,
++    SimpleCov::Formatter::SimpleFormatter,
+     Coveralls::SimpleCov::Formatter
+ ]
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 43c9155..2c42cdb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-test_basic_object_does_not_throw_exception
+001_replace-simplecov-formatter.patch
diff --git a/debian/patches/test_basic_object_does_not_throw_exception b/debian/patches/test_basic_object_does_not_throw_exception
deleted file mode 100644
index 05d3cb5..0000000
--- a/debian/patches/test_basic_object_does_not_throw_exception
+++ /dev/null
@@ -1,22 +0,0 @@
-Description: removing failing test 
- Removing test_basic_object_does_not_throw_exception as it fails
- and is superfluous
-Author: Markus Tornow <tornow at riseup.net> 
-Forwarded: no
-Last-Update: 2013-10-30 
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/test/weak_reference_test.rb
-+++ b/test/weak_reference_test.rb
-@@ -44,11 +44,4 @@
-     assert ref.inspect
-   end
-   
--  if defined?(BasicObject)
--    def test_basic_object_does_not_throw_exception
--      obj = BasicObject.new
--      ref = Ref::WeakReference.new(obj)
--      assert_equal obj, ref.object
--    end
--  end
- end
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..cf1591e
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/spectask'
+
+Gem2Deb::Rake::RSpecTask.new do |spec|
+  spec.pattern = './spec/**/*_spec.rb'
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index a07f950..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1 +0,0 @@
-Dir['{spec,test}/**/*.rb'].each { |f| require f }

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



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