simply_the_tenant 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/simply_the_tenant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6120bb6dd41c0520d0e2bda1ce9d8b0af22b40234d4ae5862e53ec6bfde17795
|
4
|
+
data.tar.gz: 49995891a8e8d4583e963bff0974159c965e38affaf7665c6ce02975e26b4e08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9d29f97a3bd56ef8976331b9175f3872e3006253126dd36c174bcca4017ba8993dafab3dd16d032b5a293716f0dab5dafe7c8f0d136b577926cc369f349ef1b
|
7
|
+
data.tar.gz: 149ac47319378ae18715c395f32b788c27fe95675ff707b16d61cf52b330ef2826dd6ec8cf5344824ff99640047b151dfe2c26b17697bcdc2ab5c37d6976f7eb
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/simply_the_tenant.svg)](https://badge.fury.io/rb/simply_the_tenant) ![ci](https://github.com/MSILycanthropy/simply_the_tenant/actions/workflows/ci.yml/badge.svg)
|
2
|
+
|
1
3
|
# SimplyTheTenant
|
2
4
|
Short description and motivation.
|
3
5
|
|
@@ -9,7 +11,7 @@ So, that begs the question, what is the point of this gem at all?
|
|
9
11
|
2. `acts_as_tenant` uses `ActiveSupport::CurrentAttributes` under the hood, but that isn't exposed to the user. While that isn't exactly hard to add with `acts_as_tenant`, `simply_the_tenant` does this out of the box.
|
10
12
|
3. `simply_the_tenant` adheres to your domain model. `Current.account` vs `current_tenant`, making things marginally easier to reason about.
|
11
13
|
4. `simply_the_tenant` uses Rails 7 `query_constraints`, so certain queries will use compound indices, which is nice for anyone who wants to use composite primary keys or sharding.
|
12
|
-
5. `simply_the_tenant` requires _explicit_ scoping to access the data of a tenant or global data.
|
14
|
+
5. `simply_the_tenant` requires _explicit_ scoping to access the data of a tenant or to access global data.
|
13
15
|
|
14
16
|
Overall, `acts_as_tenant` does do all of the things this gem does. `simply_the_tenant` just presents them in a different way and provides less configuration options. If that pleases you, feel free to use `simply_the_tenant` instead!
|
15
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simply_the_tenant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan Kircher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|