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 +4 -4
- data/CHANGELOG.md +13 -0
- data/PUSH_INSTRUCTIONS.md +34 -0
- data/lib/rails_ui_guard/engine.rb +2 -1
- data/lib/rails_ui_guard/version.rb +1 -1
- data/lib/rails_ui_guard.rb +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5bf2fdf1611d15e235e7a1a05aedb5b0ec3680f9608964b685843522734a90f0
|
|
4
|
+
data.tar.gz: 7e6b3393318229cdeb9455be8464d8cdaae85561cbf79838f986710c1a93961a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
data/lib/rails_ui_guard.rb
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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
|