vitals_monitor 0.1.0 → 0.1.1

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: b329f8a11e4dc70ac82212ab4352f68a3a8cf0533137277cfdefb1a8b14aafc0
4
- data.tar.gz: e4b4e56c5151f90827e815dc1b47429508e89a83ecba4443587fda9994c85f6e
3
+ metadata.gz: 1230db060d0ba58bf93d362b446cd9229260abb07ca98cd1a6c4dcd316fb13a0
4
+ data.tar.gz: ac0553d7e9223df9908fd97c82127f5e5fcd62e3bdc9b4b8fcac4a8c1dfc7100
5
5
  SHA512:
6
- metadata.gz: 2393320834d78ab1b4b5bc4a666cb15093d1216c1c79e59cd209ee9f6f78890710e8de6ef829a0c790002d5aefa3e0d5a70ebbc0b3b5f43c696add9f4fed375c
7
- data.tar.gz: b6fabf5c56ebe4711243913c623eb7d10b676ae8b01ac24ca777f7201dffaa80cfcb526e46f6ea0c096ed7e9fb21d57ed76fde63597a11696d1c2352ec4a4a6b
6
+ metadata.gz: bc89cd77424ea03122d2e37585aa48ae892a8f593c63de59f17abb14f5d4d1a3983046f374eeae7f3a6b8bc9f3c7c0d91b1df71db7a1bb2dbbab2b5b7ab64023
7
+ data.tar.gz: 2e97f2783cf9b94cb1ddf996ce6a77a193e9d04c6e494da7dc031ba737ec1676892dc56ae92e65ae803bf61665484add7182fdbb8cf7e32fdbf6f0aa8adae3b9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
1
8
  ## [Unreleased]
2
9
 
10
+ ## [0.1.1] - 2025-12-02
11
+ ### Fixed
12
+ Redis detection.
13
+
14
+
3
15
  ## [0.1.0] - 2025-12-01
16
+ ### Added
17
+
18
+ - Health check endpoints for Postgres, Redis, and Sidekiq
19
+ - Configuration system to enable/disable components via initializer
20
+ - HTML and JSON response formats for all endpoints
21
+ - HTTP status codes (200 for healthy, 503 for unhealthy) for monitoring integration
22
+ - Rake install task (`rake vitals_monitor:install`) to generate initializer and mount routes
23
+ - Comprehensive test suite with RSpec
24
+ - RBS type signatures for type checking support
25
+ - Rails engine integration with isolated namespace
26
+
27
+ ### Fixed
28
+
29
+ - Engine routes now correctly use root path (`/`) instead of `/vitals` to work properly when mounted
30
+ - Proper Rails app detection in install task to avoid modifying gem's own routes file
31
+
32
+ ### Changed
33
+
34
+ - Routes are now relative to mount point (standard Rails engine pattern)
35
+ - Mounted at `/vitals` → `/vitals` routes to index
36
+ - Mounted at `/vitals` → `/vitals/:component` routes to show
37
+
4
38
 
5
39
  - Initial release
@@ -22,6 +22,8 @@ module VitalsMonitor
22
22
  ::Redis.new(Rails.application.config.redis)
23
23
  elsif defined?(Sidekiq) && Sidekiq.respond_to?(:redis)
24
24
  Sidekiq.redis { |conn| conn }
25
+ elsif defined?(::Redis)
26
+ ::Redis.new
25
27
  else
26
28
  raise "Redis connection not configured"
27
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VitalsMonitor
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitals_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Landovský
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-01 00:00:00.000000000 Z
11
+ date: 2025-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -101,6 +101,7 @@ files:
101
101
  - lib/vitals_monitor/formatters/json.rb
102
102
  - lib/vitals_monitor/version.rb
103
103
  - sig/vitals_monitor.rbs
104
+ - vitals_monitor-0.1.0.gem
104
105
  - vitals_monitor.gemspec
105
106
  homepage: https://github.com/landovsky/vitals_monitor
106
107
  licenses: