diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-04-17 01:18:45 +1000 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-04-17 01:22:03 +1000 |
commit | 3e22722833065498da6ab799cebbbccc10b7152f (patch) | |
tree | 544d20e06c3b015f5a98882319e670f6ef8e2364 /lib/bundler/dsl.rb | |
parent | fbbe313b80f5811e64b47414e06042c00b2ed3c2 (diff) | |
download | bundler-3e22722833065498da6ab799cebbbccc10b7152f.tar.gz |
move list of dsl valid keys to constant
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r-- | lib/bundler/dsl.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 9330be7390..b22ebc53cd 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -14,6 +14,9 @@ module Bundler VALID_PLATFORMS = Bundler::Dependency::PLATFORM_MAP.keys.freeze + VALID_KEYS = %w(group groups git path glob name branch ref tag require submodules + platform platforms type source install_if).freeze + attr_reader :gemspecs attr_accessor :dependencies @@ -306,7 +309,7 @@ module Bundler end def valid_keys - @valid_keys ||= %w(group groups git path glob name branch ref tag require submodules platform platforms type source install_if) + @valid_keys ||= VALID_KEYS end def normalize_options(name, version, opts) |