pg_s3_dumper 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pg_s3_dumper/dumper.rb +1 -1
- data/lib/pg_s3_dumper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c33d69433cb0de8e56d6dcb827b37127056e47a7
|
4
|
+
data.tar.gz: 93a1e084a246a5e2e4cbd21b9471512e61018622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d7ca920a30ad0acbf6894daa1d5bfe9e5cdbf247130053c88da345fe2630036fa21186b4f6b7a361b74809890d0bf9621e38cf8a8be5dcb086aa2e737f12825
|
7
|
+
data.tar.gz: 80ce6b71c72e8bd1c4e2abe46fb557b705a88fd374c35940a6b752e49c05e78b81df75c573ac518d2462884ab0d3cad2e10d5646f8c60cd673bf9ecf18d24c95
|
data/lib/pg_s3_dumper/dumper.rb
CHANGED
@@ -31,7 +31,7 @@ module PgS3Dumper
|
|
31
31
|
bucket_name = $1
|
32
32
|
@prefix = "#{$2}/"
|
33
33
|
|
34
|
-
database_url =~ %r{postgres://[^/]
|
34
|
+
database_url =~ %r{postgres://[^/]*/(.+)\??.*$} or raise Error, "Invalid database URL"
|
35
35
|
@database_name = $1
|
36
36
|
@prefix = File.join(prefix, database_name)
|
37
37
|
|
data/lib/pg_s3_dumper/version.rb
CHANGED