brillo 2.0.0.rc3 → 2.0.0.rc4
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 +1 -1
- data/lib/brillo/adapter/mysql.rb +3 -3
- data/lib/brillo/adapter/postgres.rb +3 -3
- data/lib/brillo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d4df0c45737ff3165e934cd24196aa87ced362dd377cd2c3bdf4105f2992f4
|
4
|
+
data.tar.gz: 17cb2933c8ba48c582cb077875666321d8e69030d2ad26d557409959dcebaec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b49eb23909168cf5d82d205df5215ba826fee7c9246c558a0d4d6cf1aae41988816a2a4b0ac7c8d0d7e174344eb4901941563acd212be287ffd7db6abe459172
|
7
|
+
data.tar.gz: 17a08e2c440c53c748b3f239af063f756fa837cea6b7bac161ff4ca26e038e60f5a09e83e506ad0c60c39fc931c5c0784ab960f232ff72009061e8ba72649e74
|
data/CHANGELOG.md
CHANGED
data/lib/brillo/adapter/mysql.rb
CHANGED
@@ -25,9 +25,9 @@ module Brillo
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def load_command
|
28
|
-
host = config[
|
29
|
-
password = config[
|
30
|
-
"mysql #{host} -u #{config
|
28
|
+
host = config["host"] ? "--host #{config["host"]}" : ""
|
29
|
+
password = config["password"] ? "-p#{config["password"]}" : ""
|
30
|
+
"mysql #{host} -u #{config.fetch("username")} #{password} #{config.fetch("database")}"
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -2,9 +2,9 @@ module Brillo
|
|
2
2
|
module Adapter
|
3
3
|
class Postgres < Base
|
4
4
|
def load_command
|
5
|
-
host = config[
|
6
|
-
password = config[
|
7
|
-
"#{password}psql #{host} -U #{config
|
5
|
+
host = config["host"] ? "--host #{config["host"]}" : ""
|
6
|
+
password = config["password"] ? "PGPASSWORD=#{config["password"]} " : ""
|
7
|
+
"#{password}psql #{host} -U #{config.fetch("username")} #{config.fetch("database")}"
|
8
8
|
end
|
9
9
|
|
10
10
|
# pgdump without schema does not set sequences, so we have to do it ourselves, or the first insert
|
data/lib/brillo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brillo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Bessey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|