pghero 3.7.0 → 3.8.0

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: 4d8718118d2ebc63b25c38aa1942e09eb01816ab034161803258321c3bf31964
4
- data.tar.gz: eb64a910c289fb3aeec9675ee1737ccba0e553ca0234b67483888f6323e58c97
3
+ metadata.gz: 0d7711ad71025eb872742385c955bc1f991c889e2afa15eb113cf7ecf5e7727a
4
+ data.tar.gz: 457aeafacc98212f64854a1cbeb9aea145ec5ef0c26b7401c10e94961719c70b
5
5
  SHA512:
6
- metadata.gz: f3728a465d113849d4de04f979f44ef770c77bc35b10a730b8018e8e9e13e7cccfac3e99aa44ce14763368e288540ecbe601ad0bde8f546da60754e7ed0ae743
7
- data.tar.gz: 8a0cc6584bc5b6e64b0ad5bf830c476d8b5857fcf5ec486b99e211d07d598bc895c8b0eb2ebda4348ede890fab9fe92a8c0de452c69713ef7e863637bc2c1c73
6
+ metadata.gz: 38919815f0445a368c21785f99fdd94a16a24370ead143e41a6833f0e664e834cc7ebf91dc31d008445c026e619dcce891d32e10ce2eee95a80fa758a700f8f3
7
+ data.tar.gz: 49fcebe5ffcd7ba3921b392558ec71d1b806b9a9189a9a42cfd106d71fe8ec42945d9ed25048b04abf77f3e924a2cb0f105c13242f1acd6be384017655eed840
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.8.0 (2026-04-15)
2
+
3
+ - Updated tune page for latest PgTune
4
+ - Dropped support for Ruby < 3.3 and Rails < 7.2
5
+
1
6
  ## 3.7.0 (2025-05-26)
2
7
 
3
8
  - Dropped support for Linux package for Ubuntu 20.04
@@ -350,7 +355,7 @@ PgHero.with(:database2) { PgHero.running_queries }
350
355
  ## 1.4.0 (2016-08-24)
351
356
 
352
357
  - Updated for Rails 5
353
- - Fixed error when `pg_stat_statements` not enabled in `shared_libaries`
358
+ - Fixed error when `pg_stat_statements` not enabled in `shared_libraries`
354
359
 
355
360
  ## 1.3.2 (2016-08-03)
356
361
 
@@ -462,7 +467,7 @@ PgHero.with(:database2) { PgHero.running_queries }
462
467
 
463
468
  ## 0.1.7 (2014-11-12)
464
469
 
465
- - Added support for pg_stat_statments on Amazon RDS
470
+ - Added support for pg_stat_statements on Amazon RDS
466
471
  - Added `long_running_query_sec`, `slow_query_ms` and `slow_query_calls` options
467
472
 
468
473
  ## 0.1.6 (2014-10-09)
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2025 Andrew Kane, 2008-2014 Heroku (initial queries)
1
+ Copyright (c) 2014-2026 Andrew Kane, 2008-2014 Heroku (initial queries)
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -29,7 +29,7 @@ Select your preferred method of installation to get started.
29
29
 
30
30
  ## Credits
31
31
 
32
- A big thanks to [Craig Kerstiens](http://www.craigkerstiens.com/2013/01/10/more-on-postgres-performance/) and [Heroku](https://blog.heroku.com/archives/2013/5/10/more_insight_into_your_database_with_pgextras) for the initial queries and [Bootswatch](https://github.com/thomaspark/bootswatch) for the theme.
32
+ A big thanks to [Craig Kerstiens](https://www.craigkerstiens.com/2013/01/10/more-on-postgres-performance/) and [Heroku](https://blog.heroku.com/archives/2013/5/10/more_insight_into_your_database_with_pgextras) for the initial queries and [Bootswatch](https://github.com/thomaspark/bootswatch) for the theme.
33
33
 
34
34
  ## History
35
35
 
@@ -1,11 +1,9 @@
1
1
  module PgHero
2
2
  class HomeController < ActionController::Base
3
- layout "pg_hero/application"
3
+ http_basic_authenticate_with name: PgHero.username, password: PgHero.password if PgHero.password
4
4
 
5
5
  protect_from_forgery with: :exception
6
6
 
7
- http_basic_authenticate_with name: PgHero.username, password: PgHero.password if PgHero.password
8
-
9
7
  before_action :check_api
10
8
  before_action :set_database
11
9
  before_action :set_query_stats_enabled
@@ -23,6 +21,8 @@ module PgHero
23
21
  end
24
22
  end
25
23
 
24
+ layout "pg_hero/application"
25
+
26
26
  def index
27
27
  @title = "Overview"
28
28
  @extended = params[:extended]
@@ -437,7 +437,7 @@ module PgHero
437
437
 
438
438
  protected
439
439
 
440
- def redirect_backward(options = {})
440
+ def redirect_backward(**options)
441
441
  redirect_back fallback_location: root_path, **options
442
442
  end
443
443
 
@@ -3,12 +3,26 @@ module PgHero
3
3
  module Settings
4
4
  def settings
5
5
  names =
6
- if server_version_num >= 100000
6
+ if server_version_num >= 180000
7
7
  %i(
8
8
  max_connections shared_buffers effective_cache_size maintenance_work_mem
9
9
  checkpoint_completion_target wal_buffers default_statistics_target
10
10
  random_page_cost effective_io_concurrency work_mem huge_pages
11
- min_wal_size max_wal_size
11
+ jit wal_compression io_method min_wal_size max_wal_size
12
+ )
13
+ elsif server_version_num >= 120000
14
+ %i(
15
+ max_connections shared_buffers effective_cache_size maintenance_work_mem
16
+ checkpoint_completion_target wal_buffers default_statistics_target
17
+ random_page_cost effective_io_concurrency work_mem huge_pages
18
+ jit wal_compression min_wal_size max_wal_size
19
+ )
20
+ elsif server_version_num >= 100000
21
+ %i(
22
+ max_connections shared_buffers effective_cache_size maintenance_work_mem
23
+ checkpoint_completion_target wal_buffers default_statistics_target
24
+ random_page_cost effective_io_concurrency work_mem huge_pages
25
+ wal_compression min_wal_size max_wal_size
12
26
  )
13
27
  elsif server_version_num >= 90500
14
28
  %i(
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "3.7.0"
2
+ VERSION = "3.8.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghero
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '7.1'
18
+ version: '7.2'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '7.1'
25
+ version: '7.2'
26
26
  email: andrew@ankane.org
27
27
  executables: []
28
28
  extensions: []
@@ -114,14 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '3.2'
117
+ version: '3.3'
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.6.7
124
+ rubygems_version: 4.0.6
125
125
  specification_version: 4
126
126
  summary: A performance dashboard for Postgres
127
127
  test_files: []