Skip to content

Commit

Permalink
Merge pull request #67 from epimorphics/spike/puma-stats-partial
Browse files Browse the repository at this point in the history
Task: Release v.1.9.9
  • Loading branch information
jonrandahl authored Sep 17, 2024
2 parents 7888e3a + bd11924 commit 0e29305
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ applications.

## Changes

## 1.9.9 - 2024-09

- (Jon) Moved the `puma stats` haml to it's own partial as well as added the
`puma stats` partial to the footer of the application template. This will
allow the `puma stats` output to be displayed on the HMLR apps that use this
gem. The `puma stats` output will only be displayed in development mode.

## 1.9.8 - 2024-09

- (Jon) Implemented the dependabot PR #55 to update jquery-rails requirement
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@
= render partial: "shared/feedback"
= render partial: "shared/footer"
= render partial: "shared/puma_stats" if Rails.env.development?
5 changes: 0 additions & 5 deletions app/views/shared/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@
= succeed(':') do
= I18n.t('common.footer.application_release')
= Version::VERSION
- if Rails.env.development?
%pre
[puma stats:
= JSON.pretty_generate(JSON.parse(Puma.stats, symbolize_names: true))
, time: #{Time.now}]
5 changes: 5 additions & 0 deletions app/views/shared/_puma_stats.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

%div
%pre
%code
= "[#{JSON.pretty_generate(puma_stats: JSON.parse(Puma.stats), time: Time.now)}]"
2 changes: 1 addition & 1 deletion lib/lr_common_styles/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module LrCommonStyles
MAJOR = 1
MINOR = 9
PATCH = 8
PATCH = 9
SUFFIX = nil # nil or 'rc' or 'beta' or 'alpha' for pre-release versions
VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}#{SUFFIX && "-#{SUFFIX}"}"
end

0 comments on commit 0e29305

Please sign in to comment.