[DRE-commits] [ruby-mongo] 01/01: Drop d/patches

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Dec 21 17:49:19 UTC 2016


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

apoikos pushed a commit to branch master
in repository ruby-mongo.

commit 1e140571b26583795893019ca199deb5792c84b7
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Wed Dec 21 19:48:53 2016 +0200

    Drop d/patches
    
    The only remaining patch is not relevant anymore.
---
 debian/patches/enable_run_tests.patch | 135 ----------------------------------
 1 file changed, 135 deletions(-)

diff --git a/debian/patches/enable_run_tests.patch b/debian/patches/enable_run_tests.patch
deleted file mode 100644
index d42f2df..0000000
--- a/debian/patches/enable_run_tests.patch
+++ /dev/null
@@ -1,135 +0,0 @@
-Description: for enable run tests at build time
-Author: Prach Pongpanich <prachpub at gmail.com>
-Forwarded: no
-Last-Updated: 2014-05-15
---- a/test/helpers/test_unit.rb
-+++ b/test/helpers/test_unit.rb
-@@ -29,54 +29,6 @@ class Test::Unit::TestCase
-   include Mongo
-   include BSON
- 
--  # Handles creating a pre-defined MongoDB cluster for integration testing.
--  #
--  # @param  kind=nil [Symbol] Type of cluster (:rs or :sc).
--  # @param  opts={} [Hash] Options to be passed through to the cluster manager.
--  #
--  # @return [ClusterManager] The cluster manager instance being used.
--  def ensure_cluster(kind=nil, opts={})
--    cluster_instance = nil
--    class_vars = TEST_BASE.class_eval { class_variables }
--    if class_vars.include?("@@cluster_#{kind}") || class_vars.include?("@@cluster_#{kind}".to_sym)
--      cluster_instance = TEST_BASE.class_eval { class_variable_get("@@cluster_#{kind}") }
--    end
--
--    unless cluster_instance
--      if kind == :rs
--        cluster_opts = Config::DEFAULT_REPLICA_SET.dup
--      else
--        cluster_opts = Config::DEFAULT_SHARDED_SIMPLE.dup
--      end
--
--      cluster_opts.merge!(opts)
--      cluster_opts.merge!(:dbpath => ENV['MONGO_DBPATH'] || 'data')
--      config = Config.cluster(cluster_opts)
--
--      cluster_instance = Config::ClusterManager.new(config)
--      TEST_BASE.class_eval { class_variable_set("@@cluster_#{kind}", cluster_instance) }
--    end
--
--    cluster_instance.start
--    instance_variable_set("@#{kind}", cluster_instance)
--  end
--
--  # Generic helper to rescue and retry from a connection failure.
--  #
--  # @param max_retries=30 [Integer] The number of times to attempt a retry.
--  #
--  # @return [Object] The block result.
--  def rescue_connection_failure(max_retries=30)
--    retries = 0
--    begin
--      yield
--    rescue Mongo::ConnectionFailure => ex
--      retries += 1
--      raise ex if retries > max_retries
--      sleep(2)
--      retry
--    end
--  end
- 
-   # Creates and connects a standard, pre-defined MongoClient instance.
-   #
-@@ -310,8 +262,8 @@ end
- 
- # Before and after hooks for the entire test run
- # handles mop up after the cluster manager is done.
--Test::Unit.at_exit do
--  TEST_BASE.class_eval { class_variables }.select { |v| v =~ /@@cluster_/ }.each do |cluster|
--    TEST_BASE.class_eval { class_variable_get(cluster) }.stop
--  end
--end
-+#Test::Unit.at_exit do
-+#  TEST_BASE.class_eval { class_variables }.select { |v| v =~ /@@cluster_/ }.each do |cluster|
-+#    TEST_BASE.class_eval { class_variable_get(cluster) }.stop
-+#  end
-+#end
---- a/test/test_helper.rb
-+++ b/test/test_helper.rb
-@@ -14,27 +14,27 @@
- 
- # NOTE: on ruby <1.9 you need to run individual tests with 'bundle exec'
- 
--unless RUBY_VERSION < '1.9' || ENV.key?('JENKINS_CI')
--  require 'simplecov'
--  require 'coveralls'
--
--  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
--    SimpleCov::Formatter::HTMLFormatter,
--    Coveralls::SimpleCov::Formatter
--  ]
--
--  SimpleCov.start do
--    add_group 'Driver', 'lib/mongo'
--    add_group 'BSON', 'lib/bson'
--
--    add_filter 'tasks'
--    add_filter 'test'
--    add_filter 'bin'
--  end
--end
-+#unless RUBY_VERSION < '1.9' || ENV.key?('JENKINS_CI')
-+#  require 'simplecov'
-+#  require 'coveralls'
-+
-+#  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
-+#    SimpleCov::Formatter::HTMLFormatter,
-+#    Coveralls::SimpleCov::Formatter
-+#  ]
-+
-+#  SimpleCov.start do
-+#    add_group 'Driver', 'lib/mongo'
-+#    add_group 'BSON', 'lib/bson'
-+
-+#    add_filter 'tasks'
-+#    add_filter 'test'
-+#    add_filter 'bin'
-+#  end
-+#end
- 
- # required for at_exit, at_start hooks
--require 'test-unit'
-+#require 'test-unit'
- 
- require 'test/unit'
- require 'shoulda'
---- a/test/tools/mongo_config.rb
-+++ b/test/tools/mongo_config.rb
-@@ -17,7 +17,7 @@
- require 'socket'
- require 'fileutils'
- require 'mongo'
--require 'sfl'
-+#require 'sfl'
- 
- $debug_level = 2
- STDOUT.sync = true

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



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