glacier_on_rails 0.9.7 → 0.9.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b663ef1d32ca91a3813ec747b10297b6ad713240
|
4
|
+
data.tar.gz: 40c52e020cf6741caa066d41a72e3059cdd1384a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35cd5d1563d57c18dc89c640beda61d4201574542a364ec2767fd32bd82e81bee9949a5dc9c281a62759595373d830ce3cc853a0ac5c24bca480df17480284b5
|
7
|
+
data.tar.gz: f3e56ed01834251f6f71ae72df8472d83d6b7a6d4ad67e8fab8a88fdb069ff3e5b3539ea64abc639e2d15516756f4d198a0b1c4e8285e8ecf9dd51a13859aba8
|
data/Gemfile.lock
CHANGED
@@ -17,7 +17,7 @@ class ApplicationDatabase::PostgresAdapter < ApplicationDatabase::BaseAdapter
|
|
17
17
|
RestoreList = GlacierArchive::BackupFileDir.join('restore.list')
|
18
18
|
|
19
19
|
def contents
|
20
|
-
raise PgPassFileMissing if db_config["password"].present? && !File.exists?("~/.pgpass")
|
20
|
+
raise PgPassFileMissing if db_config["password"].present? && !File.exists?(File.expand_path("~/.pgpass"))
|
21
21
|
`#{pg_dump} -w -Fc -U #{db_config['username']} #{db_config['database']}`
|
22
22
|
end
|
23
23
|
|
data/glacier_on_rails.gemspec
CHANGED
@@ -37,7 +37,7 @@ describe "PostgresAdapter#contents dependence on password file ~/.pgpass" do
|
|
37
37
|
before do
|
38
38
|
ActiveRecord::Base.configurations[Rails.env].merge!({"password" => "sekret"})
|
39
39
|
allow(File).to receive(:exists?)
|
40
|
-
allow(File).to receive(:exists?).with("~/.pgpass").and_return(true)
|
40
|
+
allow(File).to receive(:exists?).with(File.expand_path("~/.pgpass")).and_return(true)
|
41
41
|
end
|
42
42
|
|
43
43
|
it "should not raise an exception" do
|