rails-persona 0.2.1 → 0.2.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: 504b3d7d32f878f9b512a0d70ce5b5b6870fb311cfdb097d023c564a41716127
4
- data.tar.gz: 5869948b33c80f3f1bf744ba0edc7875c1af22cb392f0fbabc8726aa70359cc9
3
+ metadata.gz: 05f613a64f2d3db3e14856c05dff10126ba57e431eb8cb67ba14c55be6ef56a5
4
+ data.tar.gz: 81dee6b85c282f1f6d513e0f0db1da85f9f6e1aeb4ba563e52f6fe7707fa78ef
5
5
  SHA512:
6
- metadata.gz: 96ebda806fbdd89448dea893b5befb3e17c82d5e1be9dd4d63103e93df29a2ef34a46cfbe8b24228b96012b046e7e7f273020df92bf018fb1981fa934b918fa2
7
- data.tar.gz: e12d8d2b32ec67d57a30dfad49cfcd78ac0ac0daf4cf3596a9d1cbf1ca5595f7285bdf629359554ad22caf05d90915f384b010866f931bfec38c2da997f4ffe5
6
+ metadata.gz: 392494e4f26fc3a39a1daba334b369413a0c9db191a4cf287340aaf888e8dabe030b3b81d15bc39db28350a94c020f33195172c6d6d8350188004622eb208ac3
7
+ data.tar.gz: b7339146908e15d2057d5add492b56cd2a1915831fe5163404465ca3c403fa4bd77c907cf8571037b86b926eb7831429e531575b0391e0eded3afc0fdd5664fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.3] - 2026-06-01
4
+ ### Fixed
5
+ - Add `tasks/**/*` to gemspec files list so `persona_tasks.rake` is packaged with the gem (fixes #8)
6
+
7
+ ## [0.2.2] - 2026-06-01
8
+ ### Fixed
9
+ - Correct `File.expand_path` depth in Railtie for both rake task and migrations path (fixes #5)
10
+
3
11
  ## [0.2.1] - 2026-06-01
4
12
  ### Fixed
5
13
  - Replace `config.paths` in Railtie with `File.expand_path` to fix `NoMethodError` on boot (fixes #1)
@@ -1,16 +1,16 @@
1
- require "rails"
2
-
3
- module Persona
4
- class Railtie < Rails::Railtie
5
- initializer "persona.append_migrations" do |app|
6
- unless app.root.to_s == File.expand_path("../..", __dir__)
7
- migrations_path = File.expand_path("../../../db/migrate", __dir__)
8
- app.config.paths["db/migrate"] << migrations_path
9
- end
10
- end
11
-
12
- rake_tasks do
13
- load File.expand_path("../../../tasks/persona_tasks.rake", __dir__)
14
- end
15
- end
1
+ require "rails"
2
+
3
+ module Persona
4
+ class Railtie < Rails::Railtie
5
+ initializer "persona.append_migrations" do |app|
6
+ unless app.root.to_s == File.expand_path("../..", __dir__)
7
+ migrations_path = File.expand_path("../../db/migrate", __dir__)
8
+ app.config.paths["db/migrate"] << migrations_path
9
+ end
10
+ end
11
+
12
+ rake_tasks do
13
+ load File.expand_path("../../tasks/persona_tasks.rake", __dir__)
14
+ end
15
+ end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Persona
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -0,0 +1,8 @@
1
+ namespace :persona do
2
+ desc "Prune old persona events"
3
+ task prune: :environment do
4
+ days = Persona.configuration.auto_prune_after_days || 90
5
+ Persona::Pruner.prune_older_than(days)
6
+ puts "Pruned persona events older than #{days} days"
7
+ end
8
+ 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.1
4
+ version: 0.2.3
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