rails_ui_guard 0.1.1 → 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: b1d3f593e10f2bf16746f51585833c1498b43a021b60a02266b4882bf03e3663
4
- data.tar.gz: 734f44236fe4bacf6ee8c0596ca5d6ca0274efe7c2688cf117fa6a31dc7ab3e6
3
+ metadata.gz: 5bf2fdf1611d15e235e7a1a05aedb5b0ec3680f9608964b685843522734a90f0
4
+ data.tar.gz: 7e6b3393318229cdeb9455be8464d8cdaae85561cbf79838f986710c1a93961a
5
5
  SHA512:
6
- metadata.gz: 77118dc073830e7682eef8958f544c889ccc09cfb9e572059bbd89c39197ea68c03c04b7b6f714a0a2a3db4f1b057aaa2df07b71d83c81ada232f1f16feec8b5
7
- data.tar.gz: a759443c0ba30faab1fb4b9604541c490f76bbebf65802f78088d4f7e4a34b21d0ed1bec28d707e59d0bae67c2e352482bc2356d553da54c94449c3778129bca
6
+ metadata.gz: 3342376a069571673a6975c4b10e565af4b011ebbeaa2d65651b06a1e8740181b7df06942888387ffacb2fdf053287352f4d31b2ce7d2466cb93aaa78c708cbb
7
+ data.tar.gz: '0097b4334b1de5a4b8dfd30cae0cfa30d1acc24919d97020cab31a744472d1387ad8ba3eed3d632799a645e83fe53384aeb03ec00719dc0c98c3038a7267be16'
data/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ 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
+
14
+ ## [0.1.2] - 2024-12-28
15
+
16
+ ### Fixed
17
+ - Fixed ApplicationRecord loading issue - FeatureStatus model now loads after ApplicationRecord is available
18
+ - Removed early require of FeatureStatus model from main gem file
19
+ - Model now loads via engine's config.to_prepare block
20
+
8
21
  ## [0.1.1] - 2024-12-28
9
22
 
10
23
  ### Enhanced
@@ -0,0 +1,34 @@
1
+ # Push Instructions for Rails UI Guard v0.1.1
2
+
3
+ ## Changes Made
4
+ - Enhanced overlay UI with better visual design
5
+ - Improved color-coded headers (red for locked, yellow for under work)
6
+ - Better icon display with rounded backgrounds
7
+ - Added action buttons (Go to Dashboard, Manage Access)
8
+ - Enhanced CSS animations and blur effects
9
+ - Better mobile responsiveness
10
+
11
+ ## To Push to GitHub:
12
+ ```bash
13
+ cd /tmp/rails_ui_guard_update
14
+ git push origin main
15
+ git push origin v0.1.1
16
+ ```
17
+
18
+ ## To Push to RubyGems:
19
+ ```bash
20
+ cd /tmp/rails_ui_guard_update
21
+ gem push rails_ui_guard-0.1.1.gem
22
+ ```
23
+
24
+ You will need:
25
+ - GitHub credentials (username/password or token)
26
+ - RubyGems credentials (API key from https://rubygems.org/settings/edit)
27
+
28
+ ## Files Updated:
29
+ - lib/rails_ui_guard/app/views/rails_ui_guard/shared/_module_overlay.html.erb
30
+ - lib/rails_ui_guard/version.rb (0.1.0 -> 0.1.1)
31
+ - CHANGELOG.md
32
+
33
+ ## Gem File Location:
34
+ /tmp/rails_ui_guard_update/rails_ui_guard-0.1.1.gem
@@ -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.1"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
 
@@ -19,7 +19,8 @@ end
19
19
 
20
20
  # Core pieces (required early so models can safely `include RailsUiGuard::...`)
21
21
  require_relative "rails_ui_guard/concerns/feature_statusable"
22
- require_relative "rails_ui_guard/app/models/rails_ui_guard/feature_status"
22
+ # Note: FeatureStatus model is loaded by the engine via config.to_prepare
23
+ # to ensure ApplicationRecord is available
23
24
 
24
25
  require_relative "rails_ui_guard/version"
25
26
  require_relative "rails_ui_guard/controller_helpers"
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kapil Dev Pal
@@ -63,6 +63,7 @@ files:
63
63
  - CHANGELOG.md
64
64
  - GEM_SETUP_COMPLETE.md
65
65
  - LICENSE.txt
66
+ - PUSH_INSTRUCTIONS.md
66
67
  - PUSH_TO_GITHUB.md
67
68
  - README.md
68
69
  - lib/generators/rails_ui_guard/install/install_generator.rb