rails-persona 0.2.2 → 0.2.4
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 +4 -4
- data/CHANGELOG.md +12 -0
- data/db/migrate/20240101000000_create_persona_events.rb +16 -16
- data/lib/persona/version.rb +1 -1
- data/tasks/persona_tasks.rake +8 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b194d6b38b3b3e4255d41b0b6e27f03d445ad9dd490858ebf8064d700d57c933
|
|
4
|
+
data.tar.gz: 2a30f2bed7d8feb3892d13f69b6105b795e6e3d7bc2222b2431c068b520b9b14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f69dae3e686d6e896bd7369db5fe59723e48290bda068d32a63f61eadb50a5e8c35e49f6c4f9df29eb7c6e06467ac71ee9e067401c1d7d39cc79018917aae3ac
|
|
7
|
+
data.tar.gz: ca433078eecb7fcf164d9162f6bacf7658bad6bddd09adccf57950721e99dcf0b22af8d034ab3879965d5738024b87645886e2b175e2a88a964f3b288c77622b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.4] - 2026-06-01
|
|
4
|
+
### Fixed
|
|
5
|
+
- Replace `t.jsonb` with `t.text` in migration for SQLite compatibility (fixes #10)
|
|
6
|
+
|
|
7
|
+
## [0.2.3] - 2026-06-01
|
|
8
|
+
### Fixed
|
|
9
|
+
- Add `tasks/**/*` to gemspec files list so `persona_tasks.rake` is packaged with the gem (fixes #8)
|
|
10
|
+
|
|
11
|
+
## [0.2.2] - 2026-06-01
|
|
12
|
+
### Fixed
|
|
13
|
+
- Correct `File.expand_path` depth in Railtie for both rake task and migrations path (fixes #5)
|
|
14
|
+
|
|
3
15
|
## [0.2.1] - 2026-06-01
|
|
4
16
|
### Fixed
|
|
5
17
|
- Replace `config.paths` in Railtie with `File.expand_path` to fix `NoMethodError` on boot (fixes #1)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
class CreatePersonaEvents < ActiveRecord::Migration[7.0]
|
|
2
|
-
def change
|
|
3
|
-
create_table :persona_events do |t|
|
|
4
|
-
t.references :trackable, polymorphic: true, null: false, index: true
|
|
5
|
-
t.string :action, null: false
|
|
6
|
-
t.
|
|
7
|
-
|
|
8
|
-
t.timestamps
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
add_index :persona_events, :action
|
|
12
|
-
add_index :persona_events, :created_at
|
|
13
|
-
add_index :persona_events, [:trackable_type, :trackable_id, :action],
|
|
14
|
-
name: "index_persona_events_on_trackable_and_action"
|
|
15
|
-
end
|
|
16
|
-
end
|
|
1
|
+
class CreatePersonaEvents < ActiveRecord::Migration[7.0]
|
|
2
|
+
def change
|
|
3
|
+
create_table :persona_events do |t|
|
|
4
|
+
t.references :trackable, polymorphic: true, null: false, index: true
|
|
5
|
+
t.string :action, null: false
|
|
6
|
+
t.text :metadata, null: false, default: "{}"
|
|
7
|
+
|
|
8
|
+
t.timestamps
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
add_index :persona_events, :action
|
|
12
|
+
add_index :persona_events, :created_at
|
|
13
|
+
add_index :persona_events, [:trackable_type, :trackable_id, :action],
|
|
14
|
+
name: "index_persona_events_on_trackable_and_action"
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/persona/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails-persona
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Syed M. Ghani
|
|
@@ -105,6 +105,7 @@ files:
|
|
|
105
105
|
- lib/persona/summary.rb
|
|
106
106
|
- lib/persona/trackable.rb
|
|
107
107
|
- lib/persona/version.rb
|
|
108
|
+
- tasks/persona_tasks.rake
|
|
108
109
|
homepage: https://github.com/sghani001/rails-persona
|
|
109
110
|
licenses:
|
|
110
111
|
- MIT
|