auth_master 0.0.2 → 0.0.3

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: ac57c91a103b1ea33d4f895eb59938c605e09ec4d0e82668fdce9bfbf48ffdb4
4
- data.tar.gz: 2e13917724efec1f13880dbcea2d449cdfece27ce5c5da44dc475af70e00fa6f
3
+ metadata.gz: 1363f58683049a2b3b1c729e7dd49cd6e3dd660308da0edc5bdb6959a56ac4cd
4
+ data.tar.gz: 2d54954c9b106e59a0693503a524affcf547c270c73764661b66decdc2f9682d
5
5
  SHA512:
6
- metadata.gz: f75e3ff10432e47d5790167b2a213dc4a458aa93669da69a0491948987d8d2535bed00bc554abb61140923c923986a1a1d730e890a48e4bdf753cf47d9c54727
7
- data.tar.gz: 5f1cf4148fb7ea0c831d914d03122bd5b0e879552a529f1b14df80842f914f61c04e83d82b718247858fbc8f390df1a943e00d107e39c6015fcd38ab95733d72
6
+ metadata.gz: d801bac756973c1c96a44ba403c8e2c163e4b73805bb59b7e5ab8d2c8ebc9294035737c70a035a19fdc8f577f6d5457e25686e7f9c9600f78f62b290a5de3f9e
7
+ data.tar.gz: 55e9962df8c4d9279296d37f654109f2a2fc339b46769f25002529247e2d5a1f94009fe508b8f28abbb8e0bab5eb485ba8b274f7b3c3a939441b99d9ac118216
data/README.md CHANGED
@@ -21,8 +21,27 @@ Or install it yourself as:
21
21
  $ gem install auth_master
22
22
  ```
23
23
 
24
+ Install database migrations:
25
+ ```bash
26
+ $ bin/rails auth_master:install:migrations
27
+ ```
28
+
29
+ Run migrations:
30
+ ```bash
31
+ $ bin/rails db:migrate
32
+ ```
33
+
24
34
  ## Contributing
25
- Contribution directions go here.
35
+
36
+ Build gem:
37
+ ```bash
38
+ $ rake build
39
+ ```
40
+
41
+ Push to RubyGems.org:
42
+ ```bash
43
+ $ gem push auth_master-x.y.z.gem
44
+ ```
26
45
 
27
46
  ## License
28
47
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,7 @@
1
1
  module AuthMaster
2
2
  class Session < ApplicationRecord
3
3
  belongs_to :target, polymorphic: true
4
+
5
+ enum :status, [ :inactive, :active ], default: :inactive
4
6
  end
5
7
  end
@@ -1,7 +1,8 @@
1
1
  class CreateAuthMasterSessions < ActiveRecord::Migration[8.0]
2
2
  def change
3
3
  create_table :auth_master_sessions, id: :uuid do |t|
4
- t.references :target, polymorphic: true, null: false, type: :uuid
4
+ t.references :target, polymorphic: true, null: false, type: :uuid
5
+ t.integer :status, limit: 2, null: false
5
6
 
6
7
  t.timestamps
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module AuthMaster
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vickodin
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-26 00:00:00.000000000 Z
10
+ date: 2025-03-27 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails