From c9cfca9bf156ac0569d6c2cd7117327daf10a643 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Thu, 13 Mar 2014 17:40:53 +0100 Subject: [PATCH] Fix RuboCop offenses introduced in version 0.19.0 --- .rubocop.yml | 15 +++++++++++++++ lib/twitter/profile.rb | 2 +- twitter.gemspec | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index b064c7409..d8916c031 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -75,3 +75,18 @@ RaiseArgs: TrailingComma: Enabled: false + +DoubleNegation: + Enabled: false + +PercentLiteralDelimiters: + PreferredDelimiters: + '%': () + '%i': () + '%q': () + '%Q': () + '%r': '{}' + '%s': () + '%w': '[]' + '%W': '[]' + '%x': () diff --git a/lib/twitter/profile.rb b/lib/twitter/profile.rb index 378ac3702..37c4c7b54 100644 --- a/lib/twitter/profile.rb +++ b/lib/twitter/profile.rb @@ -11,7 +11,7 @@ class << self private def alias_predicate_uri_methods(method) - %w(_url? _uri_https? _url_https?).each do |replacement| + %w[_url? _uri_https? _url_https?].each do |replacement| alias_method_sub(method, PREDICATE_URI_METHOD_REGEX, replacement) end end diff --git a/twitter.gemspec b/twitter.gemspec index 4bff1e9ad..27f2acfb9 100644 --- a/twitter.gemspec +++ b/twitter.gemspec @@ -15,9 +15,9 @@ Gem::Specification.new do |spec| spec.add_dependency 'simple_oauth', '~> 0.2.0' spec.add_development_dependency 'bundler', '~> 1.0' spec.authors = ['Erik Michaels-Ober', 'John Nunemaker', 'Wynn Netherland', 'Steve Richert', 'Steve Agalloco'] - spec.description = %q{A Ruby interface to the Twitter API.} + spec.description = %q(A Ruby interface to the Twitter API.) spec.email = %w[sferik@gmail.com] - spec.files = %w(.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile twitter.gemspec) + spec.files = %w[.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile twitter.gemspec] spec.files += Dir.glob('lib/**/*.rb') spec.files += Dir.glob('spec/**/*') spec.homepage = 'http://sferik.github.com/twitter/'