diff options
author | Stefan Lance <stefan@lances.net> | 2015-06-27 10:08:52 -0400 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-05 15:11:19 -0300 |
commit | 91c28aa1b62a9c71f07ef51152957fac099b9f63 (patch) | |
tree | 9157826695343d16bef0c94bd8505597cf43c28e /lib/bundler/settings.rb | |
parent | 055f95b62dae20eaa34a4cf2a4919b1fbd0da4ed (diff) | |
download | bundler-91c28aa1b62a9c71f07ef51152957fac099b9f63.tar.gz |
Add deprecation warning & spec for not autoremembering flags
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 46333c8986..8507182a60 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -54,6 +54,13 @@ module Bundler end def []=(key, value) + if self[:given_flags] + Bundler::SharedHelpers.major_deprecation \ + "Starting in Bundler 2.0, flags passed to commands "\ + "will no longer be automatically remembered. Instead please set flags " \ + "you want remembered between commands using `bundle config "\ + "<setting name> <setting value>`, i.e. `bundle config #{key} #{value}`." + end local_config_file || raise(GemfileNotFound, "Could not locate Gemfile") set_key(key, value, @local_config, local_config_file) end |