ownership 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6baac02789c51d6d4d102c21973b118eba9c67f0a918556bc15d2efcbe7e698d
4
- data.tar.gz: 31e12e304264d7f461e8197ebcdb99dc878bba9a0fc35a22c0c0f561abc99941
3
+ metadata.gz: 24115b22ad0814c98dbb02a7fe2fb84af7149d9b8d2e4a052b05bba5b650cf54
4
+ data.tar.gz: 48b57d21ec9275b84aed0c4250a29ec1833688c737b2d5b2ec77c2969ea245cb
5
5
  SHA512:
6
- metadata.gz: 2f7a28b8c3c4efbb2b9ba9c11777a0912f586bcd39b27ce7d36343b20d26190ce27f52207e3157a798c6a9506c168d64a35a0b98364f632f37c45ea68e90c940
7
- data.tar.gz: 93eb12573a2399ef0bbac69da0a24c573444f3f439b11a8f26389f83bcedb2db6747799807df715f78ec036aeacddf63ed0b4639becc978e29a6fbabbf1746c9
6
+ metadata.gz: 7b9efc666b672de029ecc86f083207ef11af64ba62d7c6bc760b1228d8fb9ddc951281d20e91f328073d19306f907e0ac5b0c734b09a6b8a18f96a84dbf715f0
7
+ data.tar.gz: 8469963791b7750afc38ecc662a5e0af1c4385836bd6af8deb9e6f0d6a31ecc2e0d1f00f01559b1dfcc2a8bf86ab39b6a930d2eb1f3db13bdae3000ebbc71b67
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.0 (2024-10-01)
2
+
3
+ - Added support for Rails 8
4
+ - Dropped support for Ruby < 3.1 and Rails < 7
5
+
1
6
  ## 0.3.0 (2023-07-02)
2
7
 
3
8
  - Dropped support for Ruby < 3 and Rails < 6.1
data/README.md CHANGED
@@ -6,7 +6,7 @@ Check out [Scaling the Monolith](https://ankane.org/scaling-the-monolith) for ot
6
6
 
7
7
  :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
8
8
 
9
- [![Build Status](https://github.com/ankane/ownership/workflows/build/badge.svg?branch=master)](https://github.com/ankane/ownership/actions)
9
+ [![Build Status](https://github.com/ankane/ownership/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/ownership/actions)
10
10
 
11
11
  ## Installation
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Ownership
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/ownership.rb CHANGED
@@ -26,7 +26,10 @@ if defined?(ActiveSupport)
26
26
 
27
27
  ActiveSupport.on_load(:active_record) do
28
28
  if ActiveRecord::VERSION::MAJOR >= 7
29
- ActiveRecord::QueryLogs.taggings[:owner] ||= -> { Ownership.owner }
29
+ # taggings is frozen in Active Record 8
30
+ if !ActiveRecord::QueryLogs.taggings[:owner]
31
+ ActiveRecord::QueryLogs.taggings = ActiveRecord::QueryLogs.taggings.merge({owner: -> { Ownership.owner }})
32
+ end
30
33
  end
31
34
 
32
35
  require_relative "ownership/marginalia" if defined?(Marginalia)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ownership
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-02 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -39,14 +39,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '3'
42
+ version: '3.1'
43
43
  required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  requirements: []
49
- rubygems_version: 3.4.10
49
+ rubygems_version: 3.5.16
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: Code ownership for Rails