diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6689f09..d8433c6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,5 +19,5 @@ jobs: ${{ runner.os }}-gems- - run: bundle config path vendor/bundle - run: bundle install --jobs 4 --retry 3 - - run: bundle exec rubocop --config rubocop.yml + - run: bundle exec rubocop --config panolint-rubocop.yml - run: bundle exec rspec diff --git a/README.md b/README.md index a8eb4f9..559a89f 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ You can use `panolint`'s rubocop configuration in your project with the followin ``` inherit_gem: - panolint: rubocop.yml + panolint: panolint-rubocop.yml ``` Note that it for this gem in particular in needs to not be a `.rubocop.yml` file because of rubocop's [path relativity](https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md#path-relativity). diff --git a/lib/panolint/version.rb b/lib/panolint/version.rb index 0dab5f1..d4d6180 100644 --- a/lib/panolint/version.rb +++ b/lib/panolint/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Panolint - VERSION = "0.1.3" + VERSION = "0.1.4" end diff --git a/rubocop.yml b/panolint-rubocop.yml similarity index 98% rename from rubocop.yml rename to panolint-rubocop.yml index ceb801e..239c3f3 100644 --- a/rubocop.yml +++ b/panolint-rubocop.yml @@ -3,7 +3,7 @@ # You can use this in your project's .rubocop.yml with the following at the top: # # inherit_gem: -# panolint: rubocop.yml +# panolint: panolint-rubocop.yml # # This allows you to selectively override settings in projects, for example, if # you're working on a Sinatra project, disabling the Rails cops is probably diff --git a/panolint.gemspec b/panolint.gemspec index 3b42bda..e4fdee9 100644 --- a/panolint.gemspec +++ b/panolint.gemspec @@ -13,6 +13,7 @@ Gem::Specification.new do |spec| spec.summary = "Rules for linting code at Panorama Education" spec.homepage = "https://github.com/panorama-ed/panolint" spec.license = "MIT" + spec.metadata = { "rubygems_mfa_required" => "true" } spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject do |f|