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: 397705dc6efe43d9ed3454bacb8a9613cdc3d090
4
- data.tar.gz: 8e118eec61222575a76ae842a9f65733f375e688
3
+ metadata.gz: b663ef1d32ca91a3813ec747b10297b6ad713240
4
+ data.tar.gz: 40c52e020cf6741caa066d41a72e3059cdd1384a
5
5
  SHA512:
6
- metadata.gz: c6ceaa5e5a35b6da7a7c6aa6150a5ddb06699d1738583e4941e2821c73b3c5e98de3ff6f9c8556b98ec089d82695b9a9755810629fad8985c97da1590a49f58c
7
- data.tar.gz: 1eec174eda0f9252144efd8860d23ddee6e8c1c06ed7928f9f9d170e5e2fe11644b0131aa820f9088113d7504d08ccff60f9e23a357766272c087d0fa8ca4f73
6
+ metadata.gz: 35cd5d1563d57c18dc89c640beda61d4201574542a364ec2767fd32bd82e81bee9949a5dc9c281a62759595373d830ce3cc853a0ac5c24bca480df17480284b5
7
+ data.tar.gz: f3e56ed01834251f6f71ae72df8472d83d6b7a6d4ad67e8fab8a88fdb069ff3e5b3539ea64abc639e2d15516756f4d198a0b1c4e8285e8ecf9dd51a13859aba8
data/Gemfile.lock CHANGED
@@ -57,7 +57,7 @@ GIT
57
57
  PATH
58
58
  remote: .
59
59
  specs:
60
- glacier_on_rails (0.9.6)
60
+ glacier_on_rails (0.9.8)
61
61
  httparty (~> 0.15.5)
62
62
  rails (~> 5.1)
63
63
 
@@ -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
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "glacier_on_rails"
6
- s.version = "0.9.7"
6
+ s.version = "0.9.8"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Les Nightingill"]
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glacier_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Nightingill