rails-pg-extras 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/controllers/rails_pg_extras/web/application_controller.rb +1 -1
- data/lib/rails_pg_extras/version.rb +1 -1
- data/pg-extras-ui.png +0 -0
- metadata +5 -5
- data/rails-pg-extras-web.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ae59243330e4542bce1091be0c9569e358136526ea8e3905f51926bc7e301a
|
4
|
+
data.tar.gz: 3981ba3942d85a69bc808665df427fa4401754861707bc93176adc1ad03b49cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bffcc20a98ee3e0b7e127ef96f268500cf49fd3e30a009cf1d1ffbe88246524763f8b4c76df389969febf4d78d5b3c6bc51edacd18a2d5581b4ea86e314aa6a9
|
7
|
+
data.tar.gz: 100bef0be5f9a22e90c81a37f75288e8833e9e7dccfccbaf88d0b0bb6870f49d083e5322e4705ae4961a2b8d085496e85a7e5253c2d57396c229194591cf62d7
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ You can read this blog post for detailed step by step tutorial on how to [optimi
|
|
10
10
|
|
11
11
|
Optionally you can enable a visual interface:
|
12
12
|
|
13
|
-
![Web interface](https://github.com/pawurb/rails-pg-extras/raw/master/
|
13
|
+
![Web interface](https://github.com/pawurb/rails-pg-extras/raw/master/pg-extras-ui.png)
|
14
14
|
|
15
15
|
Alternative versions:
|
16
16
|
|
@@ -119,7 +119,7 @@ You can enable UI using a Rails engine by adding the following code in `config/r
|
|
119
119
|
mount RailsPgExtras::Web::Engine, at: 'pg_extras'
|
120
120
|
```
|
121
121
|
|
122
|
-
|
122
|
+
You can enable HTTP basic auth by specifying `RAILS_PG_EXTRAS_USER` and `RAILS_PG_EXTRAS_PASSWORD` variables.
|
123
123
|
|
124
124
|
## Available methods
|
125
125
|
|
@@ -13,7 +13,7 @@ module RailsPgExtras::Web
|
|
13
13
|
|
14
14
|
ACTIONS = %i[kill_all pg_stat_statements_reset add_extensions]
|
15
15
|
|
16
|
-
if
|
16
|
+
if ENV['RAILS_PG_EXTRAS_USER'].present? && ENV['RAILS_PG_EXTRAS_PASSWORD'].present?
|
17
17
|
http_basic_authenticate_with name: ENV['RAILS_PG_EXTRAS_USER'], password: ENV['RAILS_PG_EXTRAS_PASSWORD']
|
18
18
|
end
|
19
19
|
end
|
data/pg-extras-ui.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-pg-extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pawurb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-pg-extras
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
19
|
+
version: 4.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0
|
26
|
+
version: 4.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,8 +105,8 @@ files:
|
|
105
105
|
- lib/rails_pg_extras/version.rb
|
106
106
|
- lib/rails_pg_extras/web.rb
|
107
107
|
- lib/rails_pg_extras/web/engine.rb
|
108
|
+
- pg-extras-ui.png
|
108
109
|
- rails-pg-extras-diagnose.png
|
109
|
-
- rails-pg-extras-web.png
|
110
110
|
- rails-pg-extras.gemspec
|
111
111
|
- spec/smoke_spec.rb
|
112
112
|
- spec/spec_helper.rb
|
data/rails-pg-extras-web.png
DELETED
Binary file
|