pghero 3.6.2 → 3.7.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: 5ddf920adafa90b3c49ff86f3abd05d23bb22ed3be2b27786dc8f755b308b90e
4
- data.tar.gz: 60758c308a9f298c54993c2118a8594ef3a56fd01ff5a7f0864821296f3d4a40
3
+ metadata.gz: 4d8718118d2ebc63b25c38aa1942e09eb01816ab034161803258321c3bf31964
4
+ data.tar.gz: eb64a910c289fb3aeec9675ee1737ccba0e553ca0234b67483888f6323e58c97
5
5
  SHA512:
6
- metadata.gz: 1c65e4c0dc52a9312e6c832c68fccbeccd1c8307ecb747b00a640a08b7d58223cd20a3c92ad0747cf2681ff4b0fcd3003e02d5617d0a6f3d9a69ee9b0f1cf4f2
7
- data.tar.gz: e764269d546c4931fc5fd1680f2f25ad699f406830a7a3a1923174c8b9053393c6e124e4e049bccc11ab779071a3500a4e15a7db17cb8b22edfbe83d625c162d
6
+ metadata.gz: f3728a465d113849d4de04f979f44ef770c77bc35b10a730b8018e8e9e13e7cccfac3e99aa44ce14763368e288540ecbe601ad0bde8f546da60754e7ed0ae743
7
+ data.tar.gz: 8a0cc6584bc5b6e64b0ad5bf830c476d8b5857fcf5ec486b99e211d07d598bc895c8b0eb2ebda4348ede890fab9fe92a8c0de452c69713ef7e863637bc2c1c73
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.7.0 (2025-05-26)
2
+
3
+ - Dropped support for Linux package for Ubuntu 20.04
4
+ - Dropped support for Ruby < 3.2 and Rails < 7.1
5
+
1
6
  ## 3.6.2 (2025-03-21)
2
7
 
3
8
  - Improved query in `sequences` method
data/lib/pghero/engine.rb CHANGED
@@ -17,7 +17,8 @@ module PgHero
17
17
  end
18
18
  end
19
19
 
20
- PgHero.time_zone = PgHero.config["time_zone"] if PgHero.config["time_zone"]
20
+ file_config = PgHero.file_config || {}
21
+ PgHero.time_zone = file_config["time_zone"] if file_config["time_zone"]
21
22
  end
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "3.6.2"
2
+ VERSION = "3.7.0"
3
3
  end
data/lib/pghero.rb CHANGED
@@ -79,13 +79,13 @@ module PgHero
79
79
  # use method instead of attr_accessor to ensure
80
80
  # this works if variable set after PgHero is loaded
81
81
  def username
82
- @username ||= config["username"] || ENV["PGHERO_USERNAME"]
82
+ @username ||= (file_config || {})["username"] || ENV["PGHERO_USERNAME"]
83
83
  end
84
84
 
85
85
  # use method instead of attr_accessor to ensure
86
86
  # this works if variable set after PgHero is loaded
87
87
  def password
88
- @password ||= config["password"] || ENV["PGHERO_PASSWORD"]
88
+ @password ||= (file_config || {})["password"] || ENV["PGHERO_PASSWORD"]
89
89
  end
90
90
 
91
91
  # config pattern for https://github.com/ankane/pghero/issues/424
@@ -151,7 +151,7 @@ module PgHero
151
151
 
152
152
  if databases.empty?
153
153
  databases["primary"] = {
154
- "url" => ENV["PGHERO_DATABASE_URL"] || default_connection_config
154
+ "url" => ENV["PGHERO_DATABASE_URL"]
155
155
  }
156
156
  end
157
157
 
@@ -168,11 +168,6 @@ module PgHero
168
168
  }
169
169
  end
170
170
 
171
- # private
172
- def default_connection_config
173
- connection_config(ActiveRecord::Base) if ActiveRecord::VERSION::STRING.to_f < 7.1
174
- end
175
-
176
171
  # ensure we only have one copy of databases
177
172
  # so there's only one connection pool per database
178
173
  def databases
@@ -252,9 +247,8 @@ module PgHero
252
247
  end
253
248
 
254
249
  # private
255
- # Rails 7.0 deprecates `include_replicas` for `include_hidden`
256
250
  def include_replicas_key
257
- ActiveRecord::VERSION::MAJOR >= 7 ? :include_hidden : :include_replicas
251
+ :include_hidden
258
252
  end
259
253
 
260
254
  private
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghero
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.2
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activerecord
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '6.1'
18
+ version: '7.1'
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: '6.1'
25
+ version: '7.1'
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.1'
117
+ version: '3.2'
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.2
124
+ rubygems_version: 3.6.7
125
125
  specification_version: 4
126
126
  summary: A performance dashboard for Postgres
127
127
  test_files: []