diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:36:51 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:36:51 -0600 |
commit | 29eaf79e9c1b6c4e73256ad02cbd502577e6f454 (patch) | |
tree | 4bae6e451b98d998b4d9b68e7781bec6dfb233b8 | |
parent | 831457dd8f9c991b06703c3ad24a8840586e41ec (diff) | |
download | bundler-29eaf79e9c1b6c4e73256ad02cbd502577e6f454.tar.gz |
[RuboCop] Enable Style/EmptyLinesAroundModuleBody
-rw-r--r-- | .rubocop_todo.yml | 15 | ||||
-rw-r--r-- | lib/bundler/cli/common.rb | 1 | ||||
-rw-r--r-- | lib/bundler/deprecate.rb | 2 | ||||
-rw-r--r-- | lib/bundler/dsl.rb | 1 | ||||
-rw-r--r-- | lib/bundler/fetcher.rb | 1 | ||||
-rw-r--r-- | lib/bundler/friendly_errors.rb | 1 | ||||
-rw-r--r-- | lib/bundler/gem_helpers.rb | 1 | ||||
-rw-r--r-- | spec/support/builders.rb | 1 | ||||
-rw-r--r-- | spec/support/indexes.rb | 1 | ||||
-rw-r--r-- | spec/support/rubygems_ext.rb | 1 |
10 files changed, 0 insertions, 25 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 65707ff2c4..cfd1c84066 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -83,21 +83,6 @@ Style/ClassAndModuleChildren: Style/Documentation: Enabled: false -# Offense count: 10 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/EmptyLinesAroundModuleBody: - Exclude: - - 'lib/bundler/cli/common.rb' - - 'lib/bundler/deprecate.rb' - - 'lib/bundler/dsl.rb' - - 'lib/bundler/fetcher.rb' - - 'lib/bundler/friendly_errors.rb' - - 'lib/bundler/gem_helpers.rb' - - 'spec/support/builders.rb' - - 'spec/support/indexes.rb' - - 'spec/support/rubygems_ext.rb' - # Offense count: 1 # Configuration parameters: Exclude. Style/FileName: diff --git a/lib/bundler/cli/common.rb b/lib/bundler/cli/common.rb index 53b30d2045..b90544ba3a 100644 --- a/lib/bundler/cli/common.rb +++ b/lib/bundler/cli/common.rb @@ -51,6 +51,5 @@ module Bundler message += "\nDid you mean #{suggestions}?" if suggestions message end - end end diff --git a/lib/bundler/deprecate.rb b/lib/bundler/deprecate.rb index d9f6b494e7..02eb4b0918 100644 --- a/lib/bundler/deprecate.rb +++ b/lib/bundler/deprecate.rb @@ -1,5 +1,4 @@ module Bundler - if defined? ::Deprecate Deprecate = ::Deprecate elsif defined? Gem::Deprecate @@ -13,5 +12,4 @@ module Bundler yield end end - end diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 772a058418..d4b1883d5d 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -473,5 +473,4 @@ module Bundler end end end - end diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index abb252971c..4c28746b53 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -4,7 +4,6 @@ require "securerandom" require "zlib" module Bundler - # Handles all the fetching with the rubygems server class Fetcher autoload :Downloader, "bundler/fetcher/downloader" diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb index f6f8fd5623..eb15f48071 100644 --- a/lib/bundler/friendly_errors.rb +++ b/lib/bundler/friendly_errors.rb @@ -92,5 +92,4 @@ module Bundler "https://github.com/bundler/bundler/search?q=" \ "#{CGI.escape(exception.message.lines.first.chomp)}&type=Issues" end - end diff --git a/lib/bundler/gem_helpers.rb b/lib/bundler/gem_helpers.rb index fc1a341574..ac83e6fb92 100644 --- a/lib/bundler/gem_helpers.rb +++ b/lib/bundler/gem_helpers.rb @@ -1,6 +1,5 @@ module Bundler module GemHelpers - GENERIC_CACHE = {} GENERICS = [ [Gem::Platform.new("java"), Gem::Platform.new("java")], diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 0db32aa3b6..6c503c9217 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -736,6 +736,5 @@ module Spec l69BkyvzjgDPkmOHVGiSZDLi3YDvypbUpo6LOy4v5rVg5U2F/A0v -----END RSA PRIVATE KEY----- PKEY - end end diff --git a/spec/support/indexes.rb b/spec/support/indexes.rb index 3150b4810b..10067197db 100644 --- a/spec/support/indexes.rb +++ b/spec/support/indexes.rb @@ -344,6 +344,5 @@ module Spec end end end - end end diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb index ca24bb547e..07f89bd212 100644 --- a/spec/support/rubygems_ext.rb +++ b/spec/support/rubygems_ext.rb @@ -44,6 +44,5 @@ module Spec lib = File.join(File.dirname(__FILE__), "..", "..", "lib") `#{Gem.ruby} -I#{lib} -rubygems -S gem --backtrace #{command} #{args}`.strip end - end end |