diff options
author | Homu <homu@barosl.com> | 2015-11-27 15:12:00 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2015-11-27 15:12:00 +0900 |
commit | 437f604956e629e1b96270d87f6fdb05b189de2d (patch) | |
tree | e01f1583c45652499610c07a95a28a5b869980f1 /lib/bundler/dependency.rb | |
parent | 50731b93d77fc8b4155d11306afb51d5e9534060 (diff) | |
parent | 046f2831c1518519c47b8b5be97c1ed8aef4e58c (diff) | |
download | bundler-437f604956e629e1b96270d87f6fdb05b189de2d.tar.gz |
Auto merge of #4124 - bundler:seg-rubocop, r=indirect
More rubocop_todo cleanup
Diffstat (limited to 'lib/bundler/dependency.rb')
-rw-r--r-- | lib/bundler/dependency.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index f3e640b6..a62808d2 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -74,9 +74,7 @@ module Bundler @env = options["env"] @should_include = options.fetch("should_include", true) - if options.key?("require") - @autorequire = Array(options["require"] || []) - end + @autorequire = Array(options["require"] || []) if options.key?("require") end def gem_platforms(valid_platforms) @@ -108,9 +106,9 @@ module Bundler def current_platform? return true if @platforms.empty? - @platforms.any? { |p| + @platforms.any? do |p| Bundler.current_ruby.send("#{p}?") - } + end end def to_lock |