From 47c569dac65249f5a08605dfa8e1ddaceb32d871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 18 Feb 2020 19:20:45 +0100 Subject: Unfreeze dep hashes These hashes are actually modified. For example, to exclude some dependencies under jruby. So they should not be frozen. Without this, running `bin/rake spec:deps` from jruby crashes with: ``` rake aborted! FrozenError: can't modify frozen Hash /path/to/bundler/spec/support/rubygems_ext.rb:36:in `dev_setup' /path/to/bundler/Rakefile:29:in `block in
' /path/to/bundler/Rakefile:14:in `block in invoke' /path/to/bundler/Rakefile:13:in `invoke' /path/to/bundler/spec/support/rubygems_ext.rb:98:in `gem_load_and_activate' /path/to/bundler/spec/support/rubygems_ext.rb:45:in `gem_load' Tasks: TOP => spec:deps (See full trace by running task with --trace) ``` --- spec/support/rubygems_ext.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb index b177fc690a..01f3b833c9 100644 --- a/spec/support/rubygems_ext.rb +++ b/spec/support/rubygems_ext.rb @@ -4,7 +4,7 @@ require_relative "path" module Spec module Rubygems - DEV_DEPS = { + DEV_DEPS = { # rubocop:disable Style/MutableConstant "automatiek" => "~> 0.3.0", "parallel_tests" => "~> 2.29", "rake" => "~> 12.0", @@ -12,9 +12,9 @@ module Spec "rspec" => "~> 3.8", "rubocop" => "= 0.77.0", "rubocop-performance" => "= 1.5.1", - }.freeze + } - DEPS = { + DEPS = { # rubocop:disable Style/MutableConstant "rack" => "2.0.8", "rack-test" => "~> 1.1", "artifice" => "~> 0.6.0", @@ -25,7 +25,7 @@ module Spec "builder" => "~> 3.2", # ruby-graphviz is used by the viz tests "ruby-graphviz" => ">= 0.a", - }.freeze + } extend self -- cgit v1.2.1