[DRE-commits] [ruby-spring] 03/09: don't test against listen
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Aug 3 02:19:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-spring.
commit 2190fec6a4f0929543d3a48af2c450a7737c5df0
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sat Jul 26 17:08:59 2014 -0300
don't test against listen
---
debian/patches/dont-test-against-listen.patch | 58 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 59 insertions(+)
diff --git a/debian/patches/dont-test-against-listen.patch b/debian/patches/dont-test-against-listen.patch
new file mode 100644
index 0000000..b0efda8
--- /dev/null
+++ b/debian/patches/dont-test-against-listen.patch
@@ -0,0 +1,58 @@
+Description: don't test against listen
+ This patch disables testing against listen. spring seems to depend on listen
+ 1.0, while we are already at listen 2.4+, so something might be going wrong
+ there.
+ .
+ Luckily listen is not the default backend.
+Author: Antonio Terceiro <terceiro at debian.org>
+
+--- ruby-spring-1.1.3.orig/Gemfile
++++ ruby-spring-1.1.3/Gemfile
+@@ -2,5 +2,3 @@ source 'https://rubygems.org'
+
+ # Specify your gem's dependencies in spring.gemspec
+ gemspec
+-
+-gem 'listen', "~> 1.0", :require => false
+--- ruby-spring-1.1.3.orig/test/unit/watcher_test.rb
++++ ruby-spring-1.1.3/test/unit/watcher_test.rb
+@@ -5,7 +5,6 @@ require "timeout"
+ require "active_support/core_ext/numeric/time"
+ require "spring/watcher"
+ require "spring/watcher/polling"
+-require "spring/watcher/listen"
+
+ module WatcherTests
+ LATENCY = 0.001
+@@ -160,31 +159,6 @@ module WatcherTests
+ end
+ end
+
+-class ListenWatcherTest < ActiveSupport::TestCase
+- include WatcherTests
+-
+- def watcher_class
+- Spring::Watcher::Listen
+- end
+-
+- test "root directories" do
+- begin
+- other_dir_1 = File.realpath(Dir.mktmpdir)
+- other_dir_2 = File.realpath(Dir.mktmpdir)
+- File.write("#{other_dir_1}/foo", "foo")
+- File.write("#{dir}/foo", "foo")
+-
+- watcher.add "#{other_dir_1}/foo"
+- watcher.add other_dir_2
+- watcher.add "#{dir}/foo"
+-
+- assert_equal [dir, other_dir_1, other_dir_2].sort, watcher.base_directories.sort
+- ensure
+- FileUtils.rmdir other_dir_1
+- FileUtils.rmdir other_dir_2
+- end
+- end
+-end
+
+ class PollingWatcherTest < ActiveSupport::TestCase
+ include WatcherTests
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..26657cd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+dont-test-against-listen.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-spring.git
More information about the Pkg-ruby-extras-commits
mailing list