[DRE-commits] [ruby-sawyer] 02/02: New upstream release 0.7.0

Sudheesh Shetty sudheeshshetty-guest at moszumanska.debian.org
Sun Mar 20 06:07:33 UTC 2016


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

sudheeshshetty-guest pushed a commit to branch master
in repository ruby-sawyer.

commit 9f4e2e88af4ae16427b340ceb283ba213d58aadb
Author: Sudheeshshetty <sudheeshshetty at gmail.com>
Date:   Sun Mar 20 11:37:19 2016 +0530

    New upstream release 0.7.0
---
 debian/changelog                                        |  9 +++++++++
 debian/patches/01_fix_tests_encoding_issue.diff         | 17 +++++++----------
 .../02_disable_tests_depending_on_network_access.diff   | 16 ++++++----------
 debian/rules                                            |  1 +
 4 files changed, 23 insertions(+), 20 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fdd53e9..241056e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+ruby-sawyer (0.7.0-1) unstable; urgency=medium
+
+  * Team upload
+  * New upstream release 
+  * Changed patches to work in couple of tests
+  * Check gemspec dependencies during build
+
+ -- Sudheesh Shetty <sudheeshshetty at gmail.com>  Sat, 19 Mar 2016 10:55:19 +0530
+
 ruby-sawyer (0.6.0-2) unstable; urgency=medium
 
   * Fix FTBFS error due to failing unit tests with encoding errors.
diff --git a/debian/patches/01_fix_tests_encoding_issue.diff b/debian/patches/01_fix_tests_encoding_issue.diff
index df2b59b..25ca605 100644
--- a/debian/patches/01_fix_tests_encoding_issue.diff
+++ b/debian/patches/01_fix_tests_encoding_issue.diff
@@ -1,30 +1,27 @@
 Description: Fix failed unit tests due to encoding errors
-Author: Miguel Landaeta <nomadium at debian.org>
+Author: Sudheesh Shetty <sudheeshshetty at gmail.com>
+        Miguel Landaeta <nomadium at debian.org>
 Forwarded: no
-Last-Update: 2015-07-13
+Last-Update: 2016-03-19
 
-diff --git a/test/relation_test.rb b/test/relation_test.rb
-index b11c14c..35a6ced 100644
 --- a/test/relation_test.rb
 +++ b/test/relation_test.rb
-@@ -168,7 +168,7 @@ module Sawyer
+@@ -168,7 +168,7 @@
        rel  = Sawyer::Relation.from_link(nil, :self, hash)
        map << rel
  
--      assert_equal "{:self_url=>\"/users/1\"}\n", map.inspect
+-      assert_equal "{:self_url=>\"/users/1\"}", map.inspect
 +      assert_equal "{:self_url=>\"/users/1\"}".force_encoding("UTF-8"), map.inspect
      end
    end
  end
-diff --git a/test/resource_test.rb b/test/resource_test.rb
-index f11b708..251ae60 100644
 --- a/test/resource_test.rb
 +++ b/test/resource_test.rb
-@@ -180,7 +180,7 @@ module Sawyer
+@@ -180,7 +180,7 @@
  
      def test_inspect
        resource = Resource.new @agent, :a => 1
--      assert_equal "{:a=>1}\n", resource.inspect
+-      assert_equal "{:a=>1}", resource.inspect
 +      assert_equal "{:a=>1}".force_encoding("UTF-8"), resource.inspect
      end
  
diff --git a/debian/patches/02_disable_tests_depending_on_network_access.diff b/debian/patches/02_disable_tests_depending_on_network_access.diff
index 0e94f93..f40d548 100644
--- a/debian/patches/02_disable_tests_depending_on_network_access.diff
+++ b/debian/patches/02_disable_tests_depending_on_network_access.diff
@@ -1,21 +1,17 @@
 Description: Disable tests that depends on network access
-Author: Miguel Landaeta <nomadium at debian.org>
+Author: Sudheesh Shetty <sudheeshshetty at gmail.com>
+        Miguel Landaeta <nomadium at debian.org>
 Forwarded: no
-Last-Update: 2015-05-22
+Last-Update: 2016-03-19
 
 --- a/test/agent_test.rb
 +++ b/test/agent_test.rb
-@@ -193,9 +193,10 @@ module Sawyer
+@@ -189,7 +189,7 @@
          conn.adapter :test, @stubs
        end
  
--      assert_nothing_raised do
--        assert_equal 200, agent.root.status
--      end
-+      # Test disabled because during build time there is not network access
-+      #assert_nothing_raised do
-+      #  assert_equal 200, agent.root.status
-+      #end
+-      assert_equal 200, agent.root.status
++#      assert_equal 200, agent.root.status
      end
    end
  end
diff --git a/debian/rules b/debian/rules
index 82ddc0c..008b7c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,7 @@
 #
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
+export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby

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



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