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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '052989680f273776dd26e7decbe5928bbb5c8062b683ca12683f6842ec0d1eb7'
4
- data.tar.gz: cda1b3f3b4985dad3a0c1b74cbadb8ae161702575fd28ec1db32ff1a1357c2c1
3
+ metadata.gz: 6120bb6dd41c0520d0e2bda1ce9d8b0af22b40234d4ae5862e53ec6bfde17795
4
+ data.tar.gz: 49995891a8e8d4583e963bff0974159c965e38affaf7665c6ce02975e26b4e08
5
5
  SHA512:
6
- metadata.gz: 19840f4d70c359dedd629047bfa7da3b9f79b81c0fc794925782dc8a509b19afd94b3330e0b9718b7a536220ae072b8f45a1f581c68dc10045f61169ff5f4982
7
- data.tar.gz: af1aee722e97ee874a5e69b93bb299d06713e6f92ba9c184836b991f6c01f64730736ccef6bc441a7fa8b6e9e2977b8a0cc45250390bc5ea8e0be76fbd1c82a0
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimplyTheTenant
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.1"
5
5
  end
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails