rails-persona 0.2.3 → 0.2.5
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 +8 -0
- data/db/migrate/20240101000000_create_persona_events.rb +16 -16
- data/lib/persona/railtie.rb +4 -0
- data/lib/persona/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cd4ad28dad5d2ebcdab27c083d921fd06f87e8b5d0b7e03fd74c6dad21df97c
|
|
4
|
+
data.tar.gz: f0daa7069d9b5e332457a25b8d5e4f54f77011735f32e28aedea2d2c24996168
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9577118fc4ded8ba9f062bc3466806541efdd98909f94e58e67dcfba567326b4f9ff8bd33b243e597d9053e273920d43a37e9df392efb3247e6a4fa9c6036e25
|
|
7
|
+
data.tar.gz: 34dafcbcc3b499f950eeaa94091f98fa402244e3c70453ee5d86887728d44f578da9adde27244cf2119b182ace7ed3973d4a39e6f4748fd3a81429a6a0441ffb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.5] - 2026-06-01
|
|
4
|
+
### Fixed
|
|
5
|
+
- Add gem app/ directory to Rails autoload paths so PersonaEvent is accessible (fixes #12)
|
|
6
|
+
|
|
7
|
+
## [0.2.4] - 2026-06-01
|
|
8
|
+
### Fixed
|
|
9
|
+
- Replace `t.jsonb` with `t.text` in migration for SQLite compatibility (fixes #10)
|
|
10
|
+
|
|
3
11
|
## [0.2.3] - 2026-06-01
|
|
4
12
|
### Fixed
|
|
5
13
|
- Add `tasks/**/*` to gemspec files list so `persona_tasks.rake` is packaged with the gem (fixes #8)
|
|
@@ -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/railtie.rb
CHANGED
|
@@ -9,6 +9,10 @@ module Persona
|
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
initializer "persona.autoload_paths" do |app|
|
|
13
|
+
app.config.autoload_paths << File.expand_path("../../app/models", __dir__)
|
|
14
|
+
end
|
|
15
|
+
|
|
12
16
|
rake_tasks do
|
|
13
17
|
load File.expand_path("../../tasks/persona_tasks.rake", __dir__)
|
|
14
18
|
end
|
data/lib/persona/version.rb
CHANGED