geordi 10.0.0 → 10.0.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/geordi/dump_loader.rb +10 -8
- data/lib/geordi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c7bc7a0b4c7982397b4da62d99cc4679c5f5d30fcf521597272bfb939416b7e
|
|
4
|
+
data.tar.gz: 6976e0f9466a4fe4b34c72e717886e0d3bb8474e9d363ff4df1fe2606e983337
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca94d0a41906b50c342dbc5e8c6bef1e17368fe7ea2eea6b4ce7f0ef9441ab1c27754b1f38fe9a149445a93506a19a52f54b305164d62944e136f7ae81d5a96c
|
|
7
|
+
data.tar.gz: 276578dab3ca5e01acc336176c22454a0f990403daf884ecb2193aade3dff24f41ccdbc3d3a2945d0b1707ef102742adb057b3f5d8a683f6a3aab826781aba21
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
9
9
|
|
|
10
10
|
### Breaking changes
|
|
11
11
|
|
|
12
|
+
# 10.0.1 2024-05-23
|
|
13
|
+
|
|
14
|
+
### Compatible changes
|
|
15
|
+
* `dump`-command: The dropdb and createdb commands now also mind the configuration in the database.yml.
|
|
12
16
|
|
|
13
17
|
# 10.0.0 2024-03-07
|
|
14
18
|
|
data/Gemfile.lock
CHANGED
data/lib/geordi/dump_loader.rb
CHANGED
|
@@ -61,15 +61,17 @@ module Geordi
|
|
|
61
61
|
alias_method :mysql2_command, :mysql_command
|
|
62
62
|
|
|
63
63
|
def postgresql_command
|
|
64
|
+
shared_command_arguments = ''
|
|
65
|
+
shared_command_arguments << ' --username=' << config['username'].to_s if config['username']
|
|
66
|
+
shared_command_arguments << ' --port=' << config['port'].to_s if config['port']
|
|
67
|
+
shared_command_arguments << ' --host=' << config['host'].to_s if config['host']
|
|
68
|
+
|
|
64
69
|
ENV['PGPASSWORD'] = config['password']
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
restore_command
|
|
70
|
-
restore_command << ' --host=' << config['host'].to_s if config['host']
|
|
71
|
-
restore_command << ' --dbname=' << config['database'].to_s
|
|
72
|
-
restore_command << ' ' << dump_file
|
|
70
|
+
database_name = config['database'].to_s
|
|
71
|
+
|
|
72
|
+
drop_command = "dropdb --if-exists#{shared_command_arguments} #{database_name}"
|
|
73
|
+
create_command = "createdb#{shared_command_arguments} #{database_name}"
|
|
74
|
+
restore_command = "pg_restore --no-owner --no-acl#{shared_command_arguments} --dbname=#{database_name} #{dump_file}"
|
|
73
75
|
|
|
74
76
|
drop_command + ' && ' + create_command + ' && ' + restore_command
|
|
75
77
|
end
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geordi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 10.0.
|
|
4
|
+
version: 10.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
|
-
rubygems_version: 3.
|
|
120
|
+
rubygems_version: 3.5.11
|
|
121
121
|
signing_key:
|
|
122
122
|
specification_version: 4
|
|
123
123
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|