anony 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebdd2184f519951dc6fef205b2e55c0b1eaadc50849f91e17087521e6ec3d887
4
- data.tar.gz: 8be91d24763bf780ba745cd0c4a4d9f9283637b79a2a3b32c4e0476366a675ce
3
+ metadata.gz: 03bd877b38fb5c593ed8c6794b24009d6b7beaa2d6000d17f11940240d0a6646
4
+ data.tar.gz: 529967ad09defd65b21e2955f9e4da5739c998102f9ea3cc30c9003e47aaefb4
5
5
  SHA512:
6
- metadata.gz: 57a6da624bb0c53df166d32b530cbae6fb17966091a72105424513044e6fcabdf67179a56d494e7d242b836559edd5a0384f13a20544e43f564e27fa9a437fd8
7
- data.tar.gz: 51533727cb125403cc1ee87fb95ea23b8fcaff4cf73a1f5fa67a071805e299ff6924f9093e0458037805fd8fc219221091ac7657b4b85e81dd7d95ba079a9d72
6
+ metadata.gz: 0f70bd0ccb7371ec344171633e58ab20346de16051076a856e41a58af0df2040015cedd84fbc7670846292b966d9a7d4ae99e56b645028e6797e3487b09977ac
7
+ data.tar.gz: f7759dd9c2d09a10af83acfd55d60dab29674f2dd12196af145885a94a47308026bdf3fbbe4ad9853d59aa6a093b0e310455ae69f0f416216eb98528ed6b4c1d
@@ -15,14 +15,12 @@ jobs:
15
15
  - name: Run rubocop
16
16
  run: bundle exec rubocop --parallel --extra-details --display-style-guide
17
17
 
18
+ # Exclusions based on table at https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
18
19
  tests:
19
20
  strategy:
20
21
  matrix:
21
- ruby-version: [2.6, 2.7, 3.0, 3.1]
22
- rails-version: [6.0, 6.1, 7.0]
23
- exclude:
24
- - ruby-version: 2.6
25
- rails-version: 7.0
22
+ ruby-version: [3.0, 3.1, 3.2, 3.3]
23
+ rails-version: [6.1, 7.0, 7.1]
26
24
  runs-on: ubuntu-latest
27
25
  env:
28
26
  RAILS_VERSION: ${{ matrix.rails-version }}
data/.rubocop.yml CHANGED
@@ -17,3 +17,7 @@ Gemspec/RequiredRubyVersion:
17
17
 
18
18
  RSpec/MultipleExpectations:
19
19
  Enabled: false
20
+
21
+ RSpec/ExampleLength:
22
+ Max: 15
23
+
data/.rubocop_todo.yml CHANGED
@@ -19,10 +19,6 @@ RSpec/NestedGroups:
19
19
  Exclude:
20
20
  - 'spec/anony/anonymisable_spec.rb'
21
21
 
22
- RSpec/FilePath:
23
- Exclude:
24
- - 'spec/anony/cops/define_deletion_strategy_spec.rb'
25
-
26
22
  RSpec/DescribeClass:
27
23
  Exclude:
28
24
  - 'spec/anony/rspec_shared_examples_spec.rb'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # v1.3.1
2
+
3
+ - Update gc_ruboconfig development dependency to v5.0.0
4
+
5
+ # v1.3.0
6
+
7
+ - Add support for Ruby 3.2, 3.3 and Rails 7.1
8
+ - Drop support for EOL Ruby 2.6, 2.7 and Rails 6.0
9
+
1
10
  # v1.2.0
2
11
 
3
12
  - Add support for configuring multiple superclasses for the `DefineDeletionStrategy` cop [#98](https://github.com/gocardless/anony/pull/98)
data/anony.gemspec CHANGED
@@ -4,6 +4,9 @@ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "anony/version"
6
6
 
7
+ RAILS_VERSION_LOWER_BOUND = ">= 6.1"
8
+ RAILS_VERSION_UPPER_BOUND = "< 8"
9
+
7
10
  Gem::Specification.new do |spec|
8
11
  spec.name = "anony"
9
12
  spec.version = Anony::VERSION
@@ -22,10 +25,10 @@ Gem::Specification.new do |spec|
22
25
  end
23
26
  spec.require_paths = ["lib"]
24
27
 
25
- spec.required_ruby_version = ">= 2.6"
28
+ spec.required_ruby_version = ">= 3.0"
26
29
 
27
30
  spec.add_development_dependency "bundler", "~> 2"
28
- spec.add_development_dependency "gc_ruboconfig", "~> 3.6.0"
31
+ spec.add_development_dependency "gc_ruboconfig", "~> 5.0.0"
29
32
  spec.add_development_dependency "rspec", "~> 3.9"
30
33
  spec.add_development_dependency "rspec-github", "~> 2.4.0"
31
34
  spec.add_development_dependency "yard", "~> 0.9.20"
@@ -33,7 +36,7 @@ Gem::Specification.new do |spec|
33
36
  # For integration testing
34
37
  spec.add_development_dependency "sqlite3", "~> 1.6.1"
35
38
 
36
- spec.add_dependency "activerecord", ">= 5.2", "< 8"
37
- spec.add_dependency "activesupport", ">= 5.2", "< 8"
39
+ spec.add_dependency "activerecord", RAILS_VERSION_LOWER_BOUND, RAILS_VERSION_UPPER_BOUND
40
+ spec.add_dependency "activesupport", RAILS_VERSION_LOWER_BOUND, RAILS_VERSION_UPPER_BOUND
38
41
  spec.metadata["rubygems_mfa_required"] = "true"
39
42
  end
@@ -22,7 +22,7 @@ module RuboCop
22
22
  #
23
23
  # @example Bad
24
24
  # class MyNewThing < ApplicationRecord; end
25
- class DefineDeletionStrategy < Cop
25
+ class DefineDeletionStrategy < Base
26
26
  MSG = "Define .anonymise for %<model>s, see https://github.com/gocardless/" \
27
27
  "anony/blob/#{Anony::VERSION}/README.md for details".freeze
28
28
 
data/lib/anony/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anony
4
- VERSION = "1.2.0"
4
+ VERSION = "1.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anony
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-20 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.6.0
33
+ version: 5.0.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.6.0
40
+ version: 5.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,7 +100,7 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '5.2'
103
+ version: '6.1'
104
104
  - - "<"
105
105
  - !ruby/object:Gem::Version
106
106
  version: '8'
@@ -110,7 +110,7 @@ dependencies:
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: '5.2'
113
+ version: '6.1'
114
114
  - - "<"
115
115
  - !ruby/object:Gem::Version
116
116
  version: '8'
@@ -120,7 +120,7 @@ dependencies:
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '5.2'
123
+ version: '6.1'
124
124
  - - "<"
125
125
  - !ruby/object:Gem::Version
126
126
  version: '8'
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
- version: '5.2'
133
+ version: '6.1'
134
134
  - - "<"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '8'
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: '2.6'
187
+ version: '3.0'
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - ">="