diff --git a/CHANGELOG.md b/CHANGELOG.md index 1875eae..b774e13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v0.2.1 + +* Fix relative require in DefineDeletionStrategy cop [#8](https://github.com/gocardless/anony/pull/8) + # v0.2 * Improve the README [#5](https://github.com/gocardless/anony/pulls/5) diff --git a/lib/anony/cops/define_deletion_strategy.rb b/lib/anony/cops/define_deletion_strategy.rb index 57fd475..258aab2 100644 --- a/lib/anony/cops/define_deletion_strategy.rb +++ b/lib/anony/cops/define_deletion_strategy.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true +require "rubocop" + +require_relative "../version.rb" + module RuboCop module Cop module Lint @@ -20,7 +24,7 @@ module Lint # class MyNewThing < ApplicationRecord; end class DefineDeletionStrategy < Cop MSG = "Define .anonymise for %s, see https://github.com/gocardless/" \ - "anony/blob/#{::Anony::VERSION}/README.md for details" + "anony/blob/#{Anony::VERSION}/README.md for details" def_node_matcher :only_models, <<~PATTERN (class diff --git a/lib/anony/version.rb b/lib/anony/version.rb index 8561ac1..a9fb22e 100644 --- a/lib/anony/version.rb +++ b/lib/anony/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Anony - VERSION = "0.2" + VERSION = "0.2.1" end