summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Koronen <koronen@kth.se>2015-08-08 17:25:09 +0200
committerVictor Koronen <koronen@kth.se>2015-08-14 12:29:45 +0200
commit391f2b37c6ed086b7adb29406acf1062ab8fc8a3 (patch)
tree27db8e9e451dd89ca5398d0551b74982791d5e7a
parent214dd086decb580f68de21600b79dd668aea8af9 (diff)
downloadbundler-391f2b37c6ed086b7adb29406acf1062ab8fc8a3.tar.gz
Fix Style/ClassCheck
-rw-r--r--.rubocop_todo.yml6
-rw-r--r--lib/bundler/definition.rb2
2 files changed, 1 insertions, 7 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 5776aa696f..584fc1b905 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -101,12 +101,6 @@ Style/CaseIndentation:
Style/ClassAndModuleChildren:
Enabled: false
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-Style/ClassCheck:
- Enabled: false
-
# Offense count: 153
Style/Documentation:
Enabled: false
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 21e6379790..85e82b4c77 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -478,7 +478,7 @@ module Bundler
changes = false
# Get the Rubygems sources from the Gemfile.lock
- locked_gem_sources = @locked_sources.select {|s| s.kind_of?(Source::Rubygems) }
+ locked_gem_sources = @locked_sources.select {|s| s.is_a?(Source::Rubygems) }
# Get the Rubygems remotes from the Gemfile
actual_remotes = sources.rubygems_remotes