[ARVADOS] updated: 5dd1c07e56d32ae4c569ceffdbd4549bceb92de4
git at public.curoverse.com
git at public.curoverse.com
Fri Apr 4 17:25:54 EDT 2014
Summary of changes:
apps/workbench/test/integration_helper.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
via 5dd1c07e56d32ae4c569ceffdbd4549bceb92de4 (commit)
from 2c7e73fafb98fff4f9d061074d6b58d668d5c1dc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 5dd1c07e56d32ae4c569ceffdbd4549bceb92de4
Author: Tom Clegg <tom at curoverse.com>
Date: Fri Apr 4 17:25:38 2014 -0400
Remove Ruby 2.1.0 dependency by using Hash[x] instead of x.to_h.
diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb
index 8616283..30643bc 100644
--- a/apps/workbench/test/integration_helper.rb
+++ b/apps/workbench/test/integration_helper.rb
@@ -36,8 +36,9 @@ class IntegrationTestRunner < MiniTest::Unit
# Make a hash that unsets Bundle's environment variables.
# We'll use this environment when we launch Bundle commands in the API
# server. Otherwise, those commands will try to use Workbench's gems, etc.
- @@APIENV = ENV.map { |(key, val)| (key =~ /^BUNDLE_/) ? [key, nil] : nil }.
- compact.to_h
+ @@APIENV = Hash[ENV.map { |key, val|
+ (key =~ /^BUNDLE_/) ? [key, nil] : nil
+ }.compact]
def _system(*cmd)
if not system(@@APIENV, *cmd)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list