pghero 2.7.3 → 2.7.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pghero might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cde64b8247e49038ddc1eb136a9900386b128f8e2145e60eb201bec3be586470
4
- data.tar.gz: e09c2d6705c5d5edb4054c8a5df8b41847c66e9dfc5ba04d7705c1f9cbb4eb56
3
+ metadata.gz: 47a716ee42969f2310d696f944dae5d4183a29566f831b5a39b462c637d015df
4
+ data.tar.gz: ce9c93d605c256b08e81e412f4e6770c647cea7dac24e6e6d46b7e223c1df9d8
5
5
  SHA512:
6
- metadata.gz: 8a56fb48768e6dfbe10c1056dc71f32e339fa63dba628fcb76fec5cc1c2ca3867be45e6468b06f9fc8ae79da3fab09f8de8c1ad08d4f550c3de5db96e16cd67f
7
- data.tar.gz: b5dc376105034625527ff19fa07c21bbf0ffe2281577f3fec3ebd39742c2560b8ea5de33e5e5abe9af078a131efe06e855c18cea733583b3314a0de9422e041b
6
+ metadata.gz: 0f58527f81051d74db0a9cebf63c8e7ae030efc96767a18d60fce2b9c04713c03c8c321f26df7ad266e081065b11d5b23aa9182e2337c0f9831038f41f120eff
7
+ data.tar.gz: 88607437eff79a7ef1f23c98fee24bc4d93cec10d93e29e0dbc21ddf9a05711e6a3c3ee93d3851f15bed652b91ff3555ec86314d5bfdcd7d59e29ae463c49ce2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.7.4 (2021-02-01)
2
+
3
+ - Fixed error on redirect with Ruby 3
4
+ - Fixed error with unparsable sequences
5
+
1
6
  ## 2.7.3 (2020-11-23)
2
7
 
3
8
  - Improved index suggestions when hash, GiST, GIN, or BRIN index present
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2019 Andrew Kane, 2008-2014 Heroku (initial queries)
1
+ Copyright (c) 2014-2021 Andrew Kane, 2008-2014 Heroku (initial queries)
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -4,7 +4,7 @@ A performance dashboard for Postgres
4
4
 
5
5
  [See it in action](https://pghero.dokkuapp.com/)
6
6
 
7
- [![Screenshot](https://pghero.dokkuapp.com/assets/pghero-a09d6c90d3d5cbf90f437b792a9b0c89751054c5e10be57af4efb79feab2458b.png)](https://pghero.dokkuapp.com/)
7
+ [![Screenshot](https://pghero.dokkuapp.com/assets/pghero-ebb9c8e11434fd0e4ead81db88fe255b29cbbc845ec315b79e6c5e25015bc921.png)](https://pghero.dokkuapp.com/)
8
8
 
9
9
  :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
10
10
 
@@ -373,11 +373,7 @@ module PgHero
373
373
  protected
374
374
 
375
375
  def redirect_backward(options = {})
376
- if Rails.version >= "5.1"
377
- redirect_back options.merge(fallback_location: root_path)
378
- else
379
- redirect_to :back, options
380
- end
376
+ redirect_back fallback_location: root_path, **options
381
377
  end
382
378
 
383
379
  def set_database
@@ -47,7 +47,8 @@ module PgHero
47
47
  end
48
48
  end
49
49
 
50
- sequences.sort_by { |s| s[:sequence] }
50
+ # use to_s for unparsable sequences
51
+ sequences.sort_by { |s| s[:sequence].to_s }
51
52
  end
52
53
 
53
54
  def sequence_danger(threshold: 0.9, sequences: nil)
@@ -276,7 +276,6 @@ module PgHero
276
276
 
277
277
  def add_missing_data(data, start_time, end_time, period)
278
278
  time = start_time
279
- end_time = end_time
280
279
  while time < end_time
281
280
  data[time] ||= nil
282
281
  time += period
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "2.7.3"
2
+ VERSION = "2.7.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.3
4
+ version: 2.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-24 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.1.4
125
+ rubygems_version: 3.2.3
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: A performance dashboard for Postgres