diff --git a/.rubocop.yml b/.rubocop.yml index 857ab57..34e7e78 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -48,7 +48,7 @@ Style/MutableConstant: Style/NumericPredicate: Enabled: false -Style/SpaceInsideHashLiteralBraces: +Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space Style/TrailingCommaInArguments: @@ -56,3 +56,8 @@ Style/TrailingCommaInArguments: Style/TrailingCommaInLiteral: EnforcedStyleForMultiline: 'comma' + +Style/FileName: + Exclude: + - Rakefile + - Gemfile diff --git a/Gemfile b/Gemfile index 64b6ce3..621ba6f 100644 --- a/Gemfile +++ b/Gemfile @@ -12,9 +12,9 @@ end group :test do gem 'rspec', '~> 3' - gem 'webmock', '>= 1.22' gem 'rubocop', '>= 0.27' gem 'simplecov' + gem 'webmock', '>= 1.22' end gemspec diff --git a/Rakefile b/Rakefile index 7181c27..4388781 100755 --- a/Rakefile +++ b/Rakefile @@ -12,4 +12,4 @@ RuboCop::RakeTask.new require 'yard' YARD::Rake::YardocTask.new -task default: [:spec, :rubocop] +task default: %i[spec rubocop] diff --git a/instapaper.gemspec b/instapaper.gemspec index 13be294..67c960c 100644 --- a/instapaper.gemspec +++ b/instapaper.gemspec @@ -12,11 +12,11 @@ Gem::Specification.new do |spec| spec.author = 'Steve Agalloco' spec.description = "Ruby Client for Instapaper's Full API" spec.email = 'steve.agalloco@gmail.com' - spec.files = %w(LICENSE.md README.md instapaper.gemspec) + Dir['lib/**/*.rb'] + spec.files = %w[LICENSE.md README.md instapaper.gemspec] + Dir['lib/**/*.rb'] spec.homepage = 'https://github.com/stve/instapaper' - spec.licenses = %w(MIT) + spec.licenses = %w[MIT] spec.name = 'instapaper' - spec.require_paths = %w(lib) + spec.require_paths = %w[lib] spec.required_ruby_version = '>= 2.0.0' spec.summary = 'Ruby Instapaper Client' spec.version = Instapaper::VERSION