bibliotech 0.3.2 → 0.3.3

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: 690fcaf4bdcb23d62cdbde63f6765e4b3d43c07b
4
- data.tar.gz: b34213d9b89e14fa12bc0bd13113b88e2ef3a869
3
+ metadata.gz: 444a5754d4af68e747d403e3b05908eda8338bfd
4
+ data.tar.gz: 6dd387a940620c2f3c509b3f5a46d39a5d928876
5
5
  SHA512:
6
- metadata.gz: 0d7b36605be4d66e5de21698bea201607aec9aa6f3a099c1d3481fbd3e7173b246a4ce432b526755efee4e1295993f60d586991292b0a46e42a416230eb6f5ff
7
- data.tar.gz: f2b891a399a6e8c8612a4b46bfdd7945d2583f635c30fc3206439903a3d0cafbf7a5bbc378e3f02cbc868c9957e8a1ca5aca1099c89ca685d5c1440ecb84a0b8
6
+ metadata.gz: ff31dabedf2301badc381b7acae5bcab637385fd8f24c92597324fff64263a9ab68e2c4e716b110153a688ea693a6630207591561aa322964084841689e962e1
7
+ data.tar.gz: c72c661fab2d7d72b62cf0b17bbb5393e5393a90d556d8462333640a42658d89d554bd62ae19441ea261134f9a8df4e294b3226a8b5a9612ec333d24805e7965
@@ -27,6 +27,7 @@ module BiblioTech
27
27
 
28
28
  def go(command)
29
29
  command.from('pg_restore')
30
+ command.options << '-Oc' #Don't assign ownership, clean entries
30
31
  config.optional{ command.options << "-h #{config.host}" }
31
32
  config.optional{ command.env["PGPASSWORD"] = config.password }
32
33
  config.optional{ command.options << "-p #{config.port}" } #ok
@@ -148,7 +148,7 @@ module BiblioTech
148
148
 
149
149
  it { expect(command.redirections).to eq(["0<#{path}/#{filename}"]) }
150
150
  it { expect(command.executable).to eq('pg_restore')}
151
- it { expect(command.options).to eq(["-U #{username}", "-d #{db_name}" ]) }
151
+ it { expect(command.options).to eq(["-Oc", "-U #{username}", "-d #{db_name}" ]) }
152
152
 
153
153
  context "plus password" do
154
154
  let :config_hash do
@@ -157,7 +157,7 @@ module BiblioTech
157
157
  end
158
158
  end
159
159
 
160
- it { expect(command.options).to eq(["-U #{username}", "-d #{db_name}"]) }
160
+ it { expect(command.options).to eq(["-Oc", "-U #{username}", "-d #{db_name}"]) }
161
161
  it { expect(command.env['PGPASSWORD']).to eq(password) }
162
162
 
163
163
  context 'and compressor' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliotech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Dorn
@@ -129,7 +129,7 @@ rdoc_options:
129
129
  - --main
130
130
  - doc/README
131
131
  - --title
132
- - bibliotech-0.3.2 Documentation
132
+ - bibliotech-0.3.3 Documentation
133
133
  require_paths:
134
134
  - lib/
135
135
  required_ruby_version: !ruby/object:Gem::Requirement