summaryrefslogtreecommitdiff
path: root/lib/bundler/graph.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2015-11-26 12:21:10 -0600
committerSamuel Giddins <segiddins@segiddins.me>2015-11-26 12:21:10 -0600
commitbf5c235523b98bad8e69b172f0d9bc02b8616604 (patch)
treec06c020ab3b7475347e80d12047fb6cea99a075e /lib/bundler/graph.rb
parentd5f3f861f273ae95cba12a0e6b230005e1061964 (diff)
downloadbundler-bf5c235523b98bad8e69b172f0d9bc02b8616604.tar.gz
[RuboCop] Enable Style/AndOr
Diffstat (limited to 'lib/bundler/graph.rb')
-rw-r--r--lib/bundler/graph.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/graph.rb b/lib/bundler/graph.rb
index c8c61497ef..c5556da067 100644
--- a/lib/bundler/graph.rb
+++ b/lib/bundler/graph.rb
@@ -97,8 +97,8 @@ module Bundler
Gem::Dependency.class_eval do
def matching_specs(platform_only = false)
matches = Bundler.load.specs.select { |spec|
- name == spec.name and
- requirement.satisfied_by? spec.version
+ name == spec.name &&
+ requirement.satisfied_by?(spec.version)
}
if platform_only