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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17467b8375d6b601804f650254f180d70a597e6cccf0c3ebd4f6bb931359a560
4
- data.tar.gz: 4295ffcdb505e380ab430b9edc6f6679f183ed850262a569e6562e46fb57b3ae
3
+ metadata.gz: 7d3385f751103525373ff891fce9b32fab2b686d0afa9768bd49b98c38b4e7c3
4
+ data.tar.gz: 9e785b78e54110b0df9b68c8a3e452de63f91c90339a5593c7e38c1c9c2a913d
5
5
  SHA512:
6
- metadata.gz: a7908767c3d5c53b6a4f450da69c98f2193cf8773ca838695d2c714948ff71a46276532802e232b1c55466f562541b12d31e273794894f8b1028e9ba6f169da3
7
- data.tar.gz: 0c48df8feddf7893874509145f1136eb6bf49b9089d9647760b485b572a28c928d3a1be61e8031664ae05abc0e24292b63915b88ccb49e6b0a6cae90c6894763
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 RailsHealthChecker gem
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-health-monitor (0.1.0)
4
+ rails-health-monitor (1.1.3)
5
5
  bundler (>= 2.0)
6
6
  rails (>= 6.0)
7
7
 
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 Middleware Setup (if needed)
107
+ ### Manual Setup Options
108
108
 
109
- If the middleware doesn't load automatically, add to `config/application.rb`:
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
- class Application < Rails::Application
115
- config.middleware.use RailsHealthMonitor::DashboardMiddleware
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:
@@ -1,3 +1,3 @@
1
1
  module RailsHealthMonitor
2
- VERSION = "0.1.0"
2
+ VERSION = "1.1.3"
3
3
  end
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: 0.1.0
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