pgpass 2022.07.27 → 2023.01.01

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: 8155f4d00f38cbb187d0c56eca49a52950c4acb7080ad00b09fbf2c640d878ee
4
- data.tar.gz: 9a53c3bcfa80fba917c0a513c1aeab92f57dd8ece7dcf76ce37623600ec4e2d2
3
+ metadata.gz: 1c266bae90b7b4ddf46185f52ae0c125626b1296dcd87c346811265b109ccebe
4
+ data.tar.gz: c41ca1bf8ae6bad0a0aff6f63b843177b3d9794d8a34cf1817c4677c064aa7be
5
5
  SHA512:
6
- metadata.gz: 27295af1284f4911af6dd6a74c1fe9f995546d72f729b4d71312631a1d58230b2278b0369e8e25809c97d58196bd2ac6294e4b9fe7e64142bc30fffaa24831ca
7
- data.tar.gz: 669ee0e7e6c378e1d4f96cfc4296561819a969a1df3361312773b55ba929354a50c266ef42c55e1d837e34aefb804df2cd3243b9cfb96cc21a8454a96d6d9377
6
+ metadata.gz: 4eaec91b226e55ececcd883633b553a2b2f784e62c1f61bcbf07cb7a9dbf6ad3b5d03e2378a965cdb81bb0b8dde1b0f9b6ad64303a85d793127a3ab86022269f
7
+ data.tar.gz: e0c24ea9ee8ff1493e8945c62622c2dfc56e5890fa2c3c4a0d29c600c3dc66a22c0b05075387dd0259dacac1be9b2016a2339cdd4ec9c7066436fa8bc95bcec0
data/AUTHORS CHANGED
@@ -2,5 +2,7 @@ Following persons have contributed to pgpass.
2
2
  (Sorted by number of submitted patches, then alphabetically)
3
3
 
4
4
  12 Michael Fellinger <m.fellinger@gmail.com>
5
- 1 Michael Fellinger <michael.fellinger@iohk.io>
5
+ 3 Michael Fellinger <michael.fellinger@iohk.io>
6
+ 1 Jesús Gómez <jesus.gomez@fonemed.com>
7
+ 1 Michael Fellinger <github@manveru.dev>
6
8
  1 Trey Dempsey <trey.dempsey@gmail.com>
data/CHANGELOG CHANGED
@@ -1,3 +1,34 @@
1
+ [a210ef8 | 2023-01-01 05:59:46 UTC] Michael Fellinger <michael.fellinger@iohk.io>
2
+
3
+ * Version 2023.01.01
4
+
5
+ [2c7394a | 2022-12-30 12:24:54 UTC] Jesús Gómez <jesus.gomez@fonemed.com>
6
+
7
+ * Fix typo in 'search' hash definition inside 'match' method
8
+
9
+ The hash used to create the `search` Entry use keys that will be
10
+ simply ignored by Entry's initializer: `host` and `user`.
11
+
12
+ Instead, the keys `hostname` and `username` should be used.
13
+
14
+ The current tests pass because `hostname` and `username` are set as
15
+ `nil` (because those keys were not actually passed, the keys passed
16
+ were `host` and `user`). Then, the private method `compare` will treat
17
+ those `nil` values the same as `*`.
18
+
19
+ `*` would have been the value set to those keys, if no PG env variable
20
+ is set.
21
+
22
+ The tests are not verifying the environment variables, so the tests
23
+ have been passing without problem.
24
+
25
+ In any case, this commit fix this aparently evident typo (don't merge
26
+ if I'm missing something).
27
+
28
+ [2c78ea0 | 2022-07-27 12:18:30 UTC] Michael Fellinger <michael.fellinger@iohk.io>
29
+
30
+ * Version 2022.07.27
31
+
1
32
  [302ee50 | 2022-07-27 12:10:17 UTC] Michael Fellinger <michael.fellinger@iohk.io>
2
33
 
3
34
  * fix some rubocop issues and a bug in Pgpass::guess
@@ -1,3 +1,3 @@
1
1
  module Pgpass
2
- VERSION = "2022.07.27"
2
+ VERSION = "2023.01.01"
3
3
  end
data/lib/pgpass.rb CHANGED
@@ -107,9 +107,9 @@ module Pgpass
107
107
 
108
108
  def match(given_options = {})
109
109
  search = Entry.create(
110
- user: (ENV['PGUSER'] || '*'),
110
+ username: (ENV['PGUSER'] || '*'),
111
111
  password: ENV['PGPASSWORD'],
112
- host: (ENV['PGHOST'] || '*'),
112
+ hostname: (ENV['PGHOST'] || '*'),
113
113
  port: (ENV['PGPORT'] || '*'),
114
114
  database: (ENV['PGDATABASE'] || '*')
115
115
  ).merge(given_options)
data/pgpass.gemspec CHANGED
@@ -1,19 +1,19 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: pgpass 2022.07.27 ruby lib
2
+ # stub: pgpass 2023.01.01 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pgpass".freeze
6
- s.version = "2022.07.27"
6
+ s.version = "2023.01.01"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Michael 'manveru' Fellinger".freeze]
11
- s.date = "1980-01-01"
11
+ s.date = "2023-01-01"
12
12
  s.email = "mf@rubyists.com".freeze
13
13
  s.files = ["AUTHORS".freeze, "CHANGELOG".freeze, "LICENSE".freeze, "MANIFEST".freeze, "README.md".freeze, "Rakefile".freeze, "lib".freeze, "lib/pgpass".freeze, "lib/pgpass.rb".freeze, "lib/pgpass/version.rb".freeze, "pgpass.gemspec".freeze, "spec".freeze, "spec/pgpass.rb".freeze, "spec/sample".freeze, "spec/sample/invalid_permission".freeze, "spec/sample/multiple".freeze, "spec/sample/simple".freeze, "tasks".freeze, "tasks/authors.rake".freeze, "tasks/bacon.rake".freeze, "tasks/changelog.rake".freeze, "tasks/gem.rake".freeze, "tasks/manifest.rake".freeze, "tasks/release.rake".freeze, "tasks/reversion.rake".freeze]
14
14
  s.homepage = "http://github.com/manveru/pgpass".freeze
15
15
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.2".freeze)
16
- s.rubygems_version = "3.2.26".freeze
16
+ s.rubygems_version = "3.3.20".freeze
17
17
  s.summary = "Finding, parsing, and using entries in .pgpass files".freeze
18
18
 
19
19
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgpass
3
3
  version: !ruby/object:Gem::Version
4
- version: 2022.07.27
4
+ version: 2023.01.01
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael 'manveru' Fellinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 2023-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bacon
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 3.2.26
71
+ rubygems_version: 3.3.20
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Finding, parsing, and using entries in .pgpass files