rails_ui_guard 0.1.2 → 0.1.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: 61899138e5084d28920593b3060faaac214c2540971464404f1f604289edf1f8
4
- data.tar.gz: d1f03018d264f07438fc58d43ff375def297f78e2c7b1029d664a2a8561f5c36
3
+ metadata.gz: 5bf2fdf1611d15e235e7a1a05aedb5b0ec3680f9608964b685843522734a90f0
4
+ data.tar.gz: 7e6b3393318229cdeb9455be8464d8cdaae85561cbf79838f986710c1a93961a
5
5
  SHA512:
6
- metadata.gz: 5d3f1a1955f6784f541071da0f1f854557b19592ea920112055921fd2c4e6f52663fac627415496a344455887a9035f87d79e70df20f786915fbe7326776dae6
7
- data.tar.gz: f50595925a3d524a262d217c8035c99331f5b8448677915caa7deacaedfcdf595733607e3755e9a403e77dbe1a820dd04d27bcc80d9b6cf4c80a4bda01b110fb
6
+ metadata.gz: 3342376a069571673a6975c4b10e565af4b011ebbeaa2d65651b06a1e8740181b7df06942888387ffacb2fdf053287352f4d31b2ce7d2466cb93aaa78c708cbb
7
+ data.tar.gz: '0097b4334b1de5a4b8dfd30cae0cfa30d1acc24919d97020cab31a744472d1387ad8ba3eed3d632799a645e83fe53384aeb03ec00719dc0c98c3038a7267be16'
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.3] - 2024-12-28
9
+
10
+ ### Fixed
11
+ - Fixed `root` method error in engine's config.to_prepare block
12
+ - Use File.expand_path instead of root.join for better compatibility
13
+
8
14
  ## [0.1.2] - 2024-12-28
9
15
 
10
16
  ### Fixed
@@ -16,7 +16,8 @@ module RailsUiGuard
16
16
  # Load the FeatureStatus model after Rails is fully initialized
17
17
  # This ensures ApplicationRecord is available
18
18
  config.to_prepare do
19
- require root.join("app", "models", "rails_ui_guard", "feature_status") unless defined?(RailsUiGuard::FeatureStatus)
19
+ model_path = File.expand_path("app/models/rails_ui_guard/feature_status.rb", __dir__)
20
+ require model_path unless defined?(RailsUiGuard::FeatureStatus)
20
21
  end
21
22
 
22
23
  # Make view helpers available globally
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsUiGuard
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_ui_guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kapil Dev Pal