organizations 0.4.0 → 0.4.1

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: 3489dee0ace79d490d899aa756462b26d367d2f609ca58b2ff96b41326a58ab1
4
- data.tar.gz: 6764004c3e0fc2524eee6b457f8384de50ce9d4117b414eca9ba4519316e202b
3
+ metadata.gz: 5a2f3a64510fcf3f08245894e49fbdd1a2aae8e76b9b9fb17fa2a6baa212c3e9
4
+ data.tar.gz: 593fdc944621beb95f6bb318ade8ae88e4933a81f25bd273253704ab9f491f05
5
5
  SHA512:
6
- metadata.gz: 88518342c7bcc6cc8c75eb83a036ac08348fc83962ba5f78e536deb22eedf1a1bfcc44c72255afe4e9b3080d6e8657133125ece9c87da21db583e1888eae09f5
7
- data.tar.gz: d1f4aafce6fd17500d9f287b7907b165b4faee6a9fc219472f22a68fc06cabfb9cb82907184f6bf8530660fb89f3df7c449651cbc32217a168e0ddb7eb0c6d67
6
+ metadata.gz: 3c5327208fd86db81f8255bf95405736abc01e374e72a190041f31eb4ced7cff63bf2cb7b040d3a4dfc32fcdde7d11282ad6949c70a282eaed1454f318dc9908
7
+ data.tar.gz: 7537c69f044a08a8e8422549b4b9272768c412ef3c13a97600808bb8b1a5d1102479c7d9c5c5d61e062ecec84be92132a687405f751033fdfc58f29fc2ca0227
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.4.1] - 2026-03-17
2
+
3
+ - Fixed `memberships_count` counter cache writes on `Organizations::Membership.create!`
4
+ - Removed `attr_readonly :memberships_count`, which conflicted with Rails' native `counter_cache`
5
+
1
6
  ## [0.4.0] - 2026-03-17
2
7
 
3
8
  **Breaking:** `memberships_count` column is now required on the organizations table.
@@ -5,7 +10,6 @@
5
10
  - Added `memberships_count` to the install migration template (fresh installs get it automatically)
6
11
  - Switched to Rails' native `counter_cache` so in-memory organization instances stay accurate after member changes
7
12
  - `member_count` now reads directly from the counter cache (no fallback to COUNT query)
8
- - Marked `memberships_count` as readonly on organizations
9
13
 
10
14
  ## [0.3.1] - 2026-02-28
11
15
 
@@ -46,7 +46,6 @@ module Organizations
46
46
  # === Validations ===
47
47
 
48
48
  validates :name, presence: true
49
- attr_readonly :memberships_count
50
49
 
51
50
  # === Scopes ===
52
51
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Organizations
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: organizations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rameerez