[DRE-commits] [ruby-coveralls] 04/15: Build depends on ruby-webmock to enable the execution of some tests

Lucas Kanashiro kanashiro at moszumanska.debian.org
Fri Sep 1 22:18:50 UTC 2017


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

kanashiro pushed a commit to branch master
in repository ruby-coveralls.

commit 5bfb0e624738d3df44442ae355105cf78ca7d99f
Author: Lucas Kanashiro <kanashiro at debian.org>
Date:   Fri Sep 1 18:05:53 2017 -0300

    Build depends on ruby-webmock to enable the execution of some tests
---
 debian/changelog                       |  1 +
 debian/control                         |  3 ++-
 debian/patches/01_disable_webmock.diff | 37 ----------------------------------
 debian/patches/series                  |  1 -
 4 files changed, 3 insertions(+), 39 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4c8c850..aeae972 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ ruby-coveralls (0.8.21-1) UNRELEASED; urgency=medium
   * Set a deterministic date in the manpages to make the package build
     reproducibly. Thanks to Eduard Sanou for providing the patch.
     (Closes: #818430).
+  * Build depends on ruby-webmock to enable the execution of some tests
 
  -- Lucas Kanashiro <kanashiro at debian.org>  Fri, 01 Sep 2017 17:52:52 -0300
 
diff --git a/debian/control b/debian/control
index 3a0dc11..9370690 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,8 @@ Build-Depends: debhelper (>= 9~),
                ruby-rspec,
                ruby-simplecov (>= 0.7~),
                ruby-simplecov-html,
-               ruby-term-ansicolor
+               ruby-term-ansicolor,
+               ruby-webmock
 Standards-Version: 3.9.7
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-coveralls.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-coveralls.git
diff --git a/debian/patches/01_disable_webmock.diff b/debian/patches/01_disable_webmock.diff
deleted file mode 100644
index ea9d0c1..0000000
--- a/debian/patches/01_disable_webmock.diff
+++ /dev/null
@@ -1,37 +0,0 @@
-Description: Disable webmock
-Author: Miguel Landaeta <nomadium at debian.org>
-Forwarded: no
-Last-Update: 2014-03-04
-
---- ruby-coveralls-0.7.0.orig/spec/spec_helper.rb
-+++ ruby-coveralls-0.7.0/spec/spec_helper.rb
-@@ -1,5 +1,6 @@
- require 'simplecov'
--require 'webmock'
-+# webmock tests are excluded because is not available in Debian yet: #695194.
-+#require 'webmock'
- require 'vcr'
- 
- class InceptionFormatter
-@@ -36,10 +37,10 @@ RSpec.configure do |config|
-   config.treat_symbols_as_metadata_keys_with_true_values = true
-   config.run_all_when_everything_filtered = true
-   config.filter_run :focus
--  config.include WebMock::API
--  config.after(:suite) do
--    WebMock.disable!
--  end
-+  #config.include WebMock::API
-+  #config.after(:suite) do
-+  #  WebMock.disable!
-+  #end
- end
- 
- def stub_api_post
-@@ -73,4 +74,4 @@ module Kernel
-   ensure
-     stream.reopen(old_stream)
-   end
--end
-\ No newline at end of file
-+end
diff --git a/debian/patches/series b/debian/patches/series
index d345f01..10da688 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
-01_disable_webmock.diff
 02_disable_vcr.diff
 04_include_rspec.diff

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



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