pgdexter 0.3.6 → 0.3.7

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: 24fcff313ea4c5d059012c11e379f67c204608abe7445ca46c758d5e4a60cf0b
4
- data.tar.gz: d9d78cbb690e6882f6218ae4b2280d6ae8857dff03fe633b9e4dee15be3c218d
3
+ metadata.gz: a4245b0c02667e411a915ef4c19ef472925048180d5882bc7b63b90037cb9d45
4
+ data.tar.gz: '0887ae99de87c186c1bfc52edbdbb59546df61de93bfbccd0974dff5c15b80f0'
5
5
  SHA512:
6
- metadata.gz: b95d985d0179089bf824f5822664a4dfa6590e3886cc9e40166d3c621cc752b92563a7900bfc4d2a6774117b8580f77509e510e617e9a0538390529b45556e68
7
- data.tar.gz: 7033709e507a94e75b3e5d6c326ebad361665c5172465fdc7090aebe58719a4c3e95ce1553a6e8d19990ff892955737594d08a5f7b3f60ea88056c208128a3d0
6
+ metadata.gz: 45ec7b462d925c2e5aa313734d1109b59e65e743c28e3471ef604d430037949675c615ab9004b98f8b055b0a575cdc169470d89e64694ef39cdd2bee60674548
7
+ data.tar.gz: 8d33afbd03ba250ae7dd4dfe6c1947e8860fece0925b58a098fb7a54f6f8fe76aaa3bc93f663b10282ef1a9b3bb2c059ac26014f9a3cff3798ece22dbb8d62be
@@ -1,3 +1,7 @@
1
+ ## 0.3.7 (2020-07-10)
2
+
3
+ - Fixed help output
4
+
1
5
  ## 0.3.6 (2020-03-30)
2
6
 
3
7
  - Fixed warning with Ruby 2.7
data/README.md CHANGED
@@ -12,8 +12,8 @@ First, install [HypoPG](https://github.com/HypoPG/hypopg) on your database serve
12
12
 
13
13
  ```sh
14
14
  cd /tmp
15
- curl -L https://github.com/HypoPG/hypopg/archive/1.1.3.tar.gz | tar xz
16
- cd hypopg-1.1.3
15
+ curl -L https://github.com/HypoPG/hypopg/archive/1.1.4.tar.gz | tar xz
16
+ cd hypopg-1.1.4
17
17
  make
18
18
  make install # may need sudo
19
19
  ```
data/exe/dexter CHANGED
@@ -1,9 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # disable Slop warning with Ruby 2.7
4
- # TODO remove when Slop > 4.8.0 is released
5
- $VERBOSE = nil
6
-
7
3
  # handle interrupts
8
4
  trap("SIGINT") { abort }
9
5
 
@@ -37,9 +37,9 @@ module Dexter
37
37
  def parse_args(args)
38
38
  opts = Slop.parse(args) do |o|
39
39
  o.banner = %(Usage:
40
- dexter [options]
41
-
42
- Options:)
40
+ dexter [options])
41
+ o.separator ""
42
+ o.separator "Options:"
43
43
  o.boolean "--analyze", "analyze tables that haven't been analyzed in the past hour", default: false
44
44
  o.boolean "--create", "create indexes", default: false
45
45
  o.array "--exclude", "prevent specific tables from being indexed"
@@ -55,9 +55,6 @@ Options:)
55
55
  o.boolean "--pg-stat-activity", "use pg_stat_activity", default: false, help: false
56
56
  o.boolean "--pg-stat-statements", "use pg_stat_statements", default: false, help: false
57
57
  o.string "-s", "--statement", "process a single statement"
58
- # separator must go here to show up correctly - slop bug?
59
- o.separator ""
60
- o.separator "Connection options:"
61
58
  o.on "-v", "--version", "print the version" do
62
59
  log Dexter::VERSION
63
60
  exit
@@ -66,10 +63,12 @@ Options:)
66
63
  log o
67
64
  exit
68
65
  end
69
- o.string "-U", "--username"
70
- o.string "-d", "--dbname"
71
- o.string "-h", "--host"
72
- o.integer "-p", "--port"
66
+ o.separator ""
67
+ o.separator "Connection options:"
68
+ o.string "-d", "--dbname", "database name"
69
+ o.string "-h", "--host", "database host"
70
+ o.integer "-p", "--port", "database port"
71
+ o.string "-U", "--username", "database user"
73
72
  end
74
73
 
75
74
  arguments = opts.arguments
@@ -1,3 +1,3 @@
1
1
  module Dexter
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgdexter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-31 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: 4.8.2
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.2'
26
+ version: 4.8.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement