From: Eric Wong <e@80x24.org>
To: rainbows-public@bogomips.org
Subject: [PATCH] update dependencies for Ruby 2.2.0dev
Date: Wed, 8 Oct 2014 21:47:43 +0000 [thread overview]
Message-ID: <1412804863-14472-1-git-send-email-e@80x24.org> (raw)
This will allow me to test for unintentional breakage in 2.2.0.
Part of the reason for putting this project on maintenance mode
is because many of the libraries we depend on have not kept up
with the latest changes to Ruby. So we will disable many tests
for 2.2+ to ensure the core parts remain working.
---
t/GNUmakefile | 15 +++++++++------
t/test_isolate.rb | 22 ++++++++++++----------
2 files changed, 21 insertions(+), 16 deletions(-)
diff --git a/t/GNUmakefile b/t/GNUmakefile
index 4843e37..c456877 100644
--- a/t/GNUmakefile
+++ b/t/GNUmakefile
@@ -29,7 +29,6 @@ models += WriterThreadPool
models += WriterThreadSpawn
models += ThreadPool
models += ThreadSpawn
-models += Coolio
models += StreamResponseEpoll
@@ -42,12 +41,16 @@ ifeq ($(RUBY_ENGINE),ruby)
endif
models += FiberSpawn
models += FiberPool
- models += CoolioThreadPool
- models += CoolioThreadSpawn
- models += CoolioFiberSpawn
- models += EventMachine
- models += NeverBlock
+ RUBY_LE_2_1 := $(shell $(RUBY) -e 'puts((RUBY_VERSION.to_f <= 2.1).to_s))')
+ ifeq ($(RUBY_LE_2_1), true)
+ models += Coolio
+ models += CoolioThreadPool
+ models += CoolioThreadSpawn
+ models += CoolioFiberSpawn
+ models += EventMachine
+ models += NeverBlock
+ endif
endif
endif
diff --git a/t/test_isolate.rb b/t/test_isolate.rb
index ee66ea3..4ae4894 100644
--- a/t/test_isolate.rb
+++ b/t/test_isolate.rb
@@ -23,25 +23,27 @@ Isolate.now!(opts) do
gem 'unicorn', '4.8.3'
if engine == "ruby"
- gem 'sendfile', '1.2.1'
- gem 'cool.io', '1.1.0'
-
- gem 'eventmachine', '1.0.3'
- gem 'async_sinatra', '1.0.0'
-
- gem 'neverblock', '0.1.6.2'
+ gem 'sendfile', '1.2.2'
+ if RUBY_VERSION.to_f < 2.2
+ gem 'cool.io', '1.1.0'
+ gem 'eventmachine', '1.0.3'
+ gem 'async_sinatra', '1.0.0'
+ gem 'neverblock', '0.1.6.2'
+ end
end
if defined?(::Fiber) && engine == "ruby"
- gem 'revactor', '0.1.5'
- gem 'rack-fiber_pool', '0.9.2'
+ if RUBY_VERSION.to_f < 2.2
+ gem 'revactor', '0.1.5'
+ gem 'rack-fiber_pool', '0.9.2' # depends on EM
+ end
end
if RUBY_PLATFORM =~ /linux/
gem 'sleepy_penguin', '3.3.0'
# is 2.6.32 new enough?
- gem 'io_splice', '4.2.0' if `uname -r`.strip > '2.6.32'
+ gem 'io_splice', '4.3.0' if `uname -r`.strip > '2.6.32'
end
end
--
EW
reply other threads:[~2014-10-08 21:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://yhbt.net/rainbows/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412804863-14472-1-git-send-email-e@80x24.org \
--to=e@80x24.org \
--cc=rainbows-public@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
http://yhbt.net/rainbows.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).