rails-health-monitor 0.1.0 → 1.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 +24 -1
- data/Gemfile.lock +1 -1
- data/README.md +41 -4
- data/lib/rails_health_monitor/version.rb +1 -1
- data/release.sh +32 -0
- 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: 7d3385f751103525373ff891fce9b32fab2b686d0afa9768bd49b98c38b4e7c3
|
|
4
|
+
data.tar.gz: 9e785b78e54110b0df9b68c8a3e452de63f91c90339a5593c7e38c1c9c2a913d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f627c28d328b1a269bf6ddfd54762caea5843c6a755b5eac628712ded9c3cfc4855ea86e6d280a7524e7b52da7acf58981811fe55fc3d2edcc3fea2ed5b06ba8
|
|
7
|
+
data.tar.gz: 80acd9fcba9198f8481f3a93dfa6b586710c660d29c46344977a3387986a720d1fe18b947de59004a37f64cb8e87201e1255152014b312f9392553747135a17c
|
data/CHANGELOG.md
CHANGED
|
@@ -5,10 +5,32 @@ 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
|
+
## [1.1.3] - 2025-11-09
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Version bump to 1.1.3
|
|
12
|
+
|
|
13
|
+
## [1.1.3] - 2025-11-09
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Version bump
|
|
17
|
+
|
|
18
|
+
## [1.1.2] - 2025-11-09
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Version bump
|
|
22
|
+
|
|
23
|
+
## [1.1.1] - 2025-11-09
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- Project renamed from rails-health-checker to rails-health-monitor
|
|
27
|
+
- Module renamed from RailsHealthChecker to RailsHealthMonitor
|
|
28
|
+
- Added manual setup options and troubleshooting documentation
|
|
29
|
+
|
|
8
30
|
## [0.1.0] - 2025-11-09
|
|
9
31
|
|
|
10
32
|
### Added
|
|
11
|
-
- Initial release of
|
|
33
|
+
- Initial release of RailsHealthMonitor gem (renamed from RailsHealthChecker)
|
|
12
34
|
- Rails version compatibility checking
|
|
13
35
|
- Ruby version validation
|
|
14
36
|
- Database connectivity testing
|
|
@@ -22,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
22
44
|
- System information display
|
|
23
45
|
- Priority actions with color-coded urgency
|
|
24
46
|
- Comprehensive health reporting
|
|
47
|
+
- Troubleshooting documentation for common middleware issues
|
|
25
48
|
|
|
26
49
|
### Features
|
|
27
50
|
- 🏥 Visual health overview with status indicators
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -104,18 +104,55 @@ export HEALTH_PASSWORD=your_secure_password
|
|
|
104
104
|
- Username: `admin`
|
|
105
105
|
- Password: `health123`
|
|
106
106
|
|
|
107
|
-
### Manual
|
|
107
|
+
### Manual Setup Options
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
**Option 1: Middleware Setup (Recommended)**
|
|
110
|
+
Add to `config/application.rb`:
|
|
110
111
|
|
|
111
112
|
```ruby
|
|
112
113
|
require 'rails_health_monitor'
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
module YourAppName
|
|
116
|
+
class Application < Rails::Application
|
|
117
|
+
config.middleware.use RailsHealthMonitor::DashboardMiddleware
|
|
118
|
+
end
|
|
116
119
|
end
|
|
117
120
|
```
|
|
118
121
|
|
|
122
|
+
**Option 2: Routes Setup (Alternative)**
|
|
123
|
+
Add to `config/routes.rb`:
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
Rails.application.routes.draw do
|
|
127
|
+
get '/health', to: proc { |env|
|
|
128
|
+
results = RailsHealthMonitor.check
|
|
129
|
+
[200, {'Content-Type' => 'application/json'}, [results.to_json]]
|
|
130
|
+
}
|
|
131
|
+
end
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Then restart your server:**
|
|
135
|
+
```bash
|
|
136
|
+
rails server
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Troubleshooting
|
|
140
|
+
|
|
141
|
+
### "No route matches [GET] '/health'" Error
|
|
142
|
+
|
|
143
|
+
If you get this error, the middleware isn't loaded. Try:
|
|
144
|
+
|
|
145
|
+
1. **Manual middleware setup** (see above)
|
|
146
|
+
2. **Restart your Rails server**:
|
|
147
|
+
```bash
|
|
148
|
+
rails server
|
|
149
|
+
```
|
|
150
|
+
3. **Verify gem installation**:
|
|
151
|
+
```bash
|
|
152
|
+
bundle install
|
|
153
|
+
bundle list | grep rails-health-monitor
|
|
154
|
+
```
|
|
155
|
+
|
|
119
156
|
## Development
|
|
120
157
|
|
|
121
158
|
After checking out the repo, run:
|
data/release.sh
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Get current version
|
|
4
|
+
CURRENT_VERSION=$(grep -o 'VERSION = "[^"]*"' lib/rails_health_monitor/version.rb | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
|
|
5
|
+
|
|
6
|
+
echo "Current version: $CURRENT_VERSION"
|
|
7
|
+
read -p "Enter new version: " NEW_VERSION
|
|
8
|
+
|
|
9
|
+
if [ -z "$NEW_VERSION" ]; then
|
|
10
|
+
echo "No version entered. Exiting."
|
|
11
|
+
exit 1
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
echo "Updating version from $CURRENT_VERSION to $NEW_VERSION"
|
|
15
|
+
|
|
16
|
+
# Update version file
|
|
17
|
+
sed -i '' "s/VERSION = \"$CURRENT_VERSION\"/VERSION = \"$NEW_VERSION\"/" lib/rails_health_monitor/version.rb
|
|
18
|
+
|
|
19
|
+
# Update changelog
|
|
20
|
+
TODAY=$(date +%Y-%m-%d)
|
|
21
|
+
sed -i '' "1,/## \[/s/## \[/## [$NEW_VERSION] - $TODAY\n\n### Changed\n- Version bump to $NEW_VERSION\n\n## [/" CHANGELOG.md
|
|
22
|
+
|
|
23
|
+
# Build gem to update Gemfile.lock
|
|
24
|
+
bundle exec rake build
|
|
25
|
+
|
|
26
|
+
# Commit and release
|
|
27
|
+
git add .
|
|
28
|
+
git commit -m "Bump version to $NEW_VERSION"
|
|
29
|
+
|
|
30
|
+
bundle exec rake release
|
|
31
|
+
|
|
32
|
+
echo "Released version $NEW_VERSION"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails-health-monitor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arshdeep Singh
|
|
@@ -84,6 +84,7 @@ files:
|
|
|
84
84
|
- lib/rails_health_monitor/tasks.rb
|
|
85
85
|
- lib/rails_health_monitor/version.rb
|
|
86
86
|
- rails_health_monitor.gemspec
|
|
87
|
+
- release.sh
|
|
87
88
|
- simple_test.rb
|
|
88
89
|
- test_gem.rb
|
|
89
90
|
homepage: https://rails-health-monitor.netlify.app
|