rails-persona 0.2.5 → 0.2.7

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: 7cd4ad28dad5d2ebcdab27c083d921fd06f87e8b5d0b7e03fd74c6dad21df97c
4
- data.tar.gz: f0daa7069d9b5e332457a25b8d5e4f54f77011735f32e28aedea2d2c24996168
3
+ metadata.gz: 75daec51a98411a1d4ccca20210fb10a802a4e96dca2bfae22bbf80751e92673
4
+ data.tar.gz: 39eabe62e305c7ac509236f9bd4b2234198f3a305cde5bcf8e043e6c2c0ca761
5
5
  SHA512:
6
- metadata.gz: 9577118fc4ded8ba9f062bc3466806541efdd98909f94e58e67dcfba567326b4f9ff8bd33b243e597d9053e273920d43a37e9df392efb3247e6a4fa9c6036e25
7
- data.tar.gz: 34dafcbcc3b499f950eeaa94091f98fa402244e3c70453ee5d86887728d44f578da9adde27244cf2119b182ace7ed3973d4a39e6f4748fd3a81429a6a0441ffb
6
+ metadata.gz: 440fac3b90df76b3059da34a9be888a0f4704c1408c803fa28c0560a6de923c11e8db1b5e6ebe517714a7398d128f09e0eb023ab9438555a96715226a77ca0d4
7
+ data.tar.gz: 2cd4f2544de8041e25f65e031f3a92742b554907b3d181296b3ee82a386591a2d93090452e1245a1462ec8ef39d512955591baca2d7ad7d36d630406d8d1b860
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.7] - 2026-06-01
4
+ ### Fixed
5
+ - Use `before: :set_autoload_paths` initializer ordering to avoid FrozenError when adding to autoload_paths (fixes #14)
6
+
7
+ ## [0.2.6] - 2026-06-01
8
+ ### Fixed
9
+ - Use `config.before_initialize` instead of initializer for autoload_paths to avoid FrozenError in Rails 7 (fixes #14)
10
+
3
11
  ## [0.2.5] - 2026-06-01
4
12
  ### Fixed
5
13
  - Add gem app/ directory to Rails autoload paths so PersonaEvent is accessible (fixes #12)
@@ -9,12 +9,13 @@ 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__)
12
+ initializer "persona.autoload_paths", before: :set_autoload_paths do |app|
13
+ app.config.autoload_paths << File.expand_path("../../app/models", __dir__)
14
+ app.config.eager_load_paths << File.expand_path("../../app/models", __dir__)
14
15
  end
15
16
 
16
17
  rake_tasks do
17
18
  load File.expand_path("../../tasks/persona_tasks.rake", __dir__)
18
19
  end
19
20
  end
20
- end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module Persona
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.7"
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.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syed M. Ghani