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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05f613a64f2d3db3e14856c05dff10126ba57e431eb8cb67ba14c55be6ef56a5
4
- data.tar.gz: 81dee6b85c282f1f6d513e0f0db1da85f9f6e1aeb4ba563e52f6fe7707fa78ef
3
+ metadata.gz: 7cd4ad28dad5d2ebcdab27c083d921fd06f87e8b5d0b7e03fd74c6dad21df97c
4
+ data.tar.gz: f0daa7069d9b5e332457a25b8d5e4f54f77011735f32e28aedea2d2c24996168
5
5
  SHA512:
6
- metadata.gz: 392494e4f26fc3a39a1daba334b369413a0c9db191a4cf287340aaf888e8dabe030b3b81d15bc39db28350a94c020f33195172c6d6d8350188004622eb208ac3
7
- data.tar.gz: b7339146908e15d2057d5add492b56cd2a1915831fe5163404465ca3c403fa4bd77c907cf8571037b86b926eb7831429e531575b0391e0eded3afc0fdd5664fa
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.jsonb :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
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Persona
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.5"
3
3
  end
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.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syed M. Ghani