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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 111d02ff1b373270351607d9adde9475dfde67e687583eb76ce8b51664e330f0
4
- data.tar.gz: bd0a8c6dab34c2200ca97325487076dc1f6945f347b1b545db5f268990ab5e5a
3
+ metadata.gz: d6ae59243330e4542bce1091be0c9569e358136526ea8e3905f51926bc7e301a
4
+ data.tar.gz: 3981ba3942d85a69bc808665df427fa4401754861707bc93176adc1ad03b49cf
5
5
  SHA512:
6
- metadata.gz: 115828ab093b55f55a688d6414750f5e0ef62caaed85a731b5dd2d19e88c142d910a6fa316073a0df825571c04a440b8a9a168d9a1ded6a3b9ae3e254571210f
7
- data.tar.gz: 8b119ef84bf4e01a1b4b2cc51eba7cf63cdcb6cc8d9254aacd5a39813d18337e32f6b0b56b0f595afb847b33a90e2e9996a631a7094f3b5b75a13acc5bf2fd19
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/rails-pg-extras-web.png)
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
- On production environment you can enable HTTP basic auth by specifying `RAILS_PG_EXTRAS_USER` and `RAILS_PG_EXTRAS_PASSWORD` variables.
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 Rails.env.production? && ENV['RAILS_PG_EXTRAS_USER'].present? && ENV['RAILS_PG_EXTRAS_PASSWORD'].present?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPgExtras
4
- VERSION = "4.0.1"
4
+ VERSION = "4.1.0"
5
5
  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.1
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-10 00:00:00.000000000 Z
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.1
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.1
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
Binary file