diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-08 12:58:24 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:57 +0900 |
commit | b2baf6bb0223bb52f9e5f861f860c61c3b6a5df1 (patch) | |
tree | 528dd866777786e04dc0c5aabe1eec582faf28f3 /spec | |
parent | f8c03b24ca6bb7e891a2303bd7c3d6094f3bd34c (diff) | |
download | ruby-b2baf6bb0223bb52f9e5f861f860c61c3b6a5df1.tar.gz |
[bundler/bundler] Remove unnecessary begin-end block
And freeze the resulting hash to appease rubocop.
https://github.com/bundler/bundler/commit/f38ebff92f
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/support/rubygems_ext.rb | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/spec/bundler/support/rubygems_ext.rb b/spec/bundler/support/rubygems_ext.rb index 2f3d252865..1a2588f30a 100644 --- a/spec/bundler/support/rubygems_ext.rb +++ b/spec/bundler/support/rubygems_ext.rb @@ -6,21 +6,19 @@ require "fileutils" module Spec module Rubygems - DEPS = begin - { - # artifice doesn't support rack 2.x now. - "rack" => "< 2.0", - "rack-test" => "~> 1.1", - "artifice" => "~> 0.6.0", - "compact_index" => "~> 0.11.0", - "sinatra" => "~> 1.4.7", - # Rake version has to be consistent for tests to pass - "rake" => "12.3.2", - "builder" => "~> 3.2", - # ruby-graphviz is used by the viz tests - "ruby-graphviz" => nil, - } - end + DEPS = { + # artifice doesn't support rack 2.x now. + "rack" => "< 2.0", + "rack-test" => "~> 1.1", + "artifice" => "~> 0.6.0", + "compact_index" => "~> 0.11.0", + "sinatra" => "~> 1.4.7", + # Rake version has to be consistent for tests to pass + "rake" => "12.3.2", + "builder" => "~> 3.2", + # ruby-graphviz is used by the viz tests + "ruby-graphviz" => nil, + }.freeze def self.setup Gem.clear_paths |