shopapp 0.2.27 → 0.2.28

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
  SHA256:
3
- metadata.gz: 525fdb4f890755ab9d2553d32e200cc4a2d83133e38fcca6c877819af4ea088e
4
- data.tar.gz: 37e7e51dd8db48858df84c3cc5b83f449e89f7ef3a6aea27d3406c068241b796
3
+ metadata.gz: 807b63338f155947affbec50f9de85f30eaa8ec38be6301d55cd25c13d7f1a04
4
+ data.tar.gz: 74c1e936fe6d16fc84d7565d450484b362e3b2c2ab2929f5816351216efe38ae
5
5
  SHA512:
6
- metadata.gz: a5064040bba702edefed41cc599ffc0d0444cd6b276f1ff4a7a3d80ffaca74cf71570ba31de8eb55303dfcd714405a9584afdf7450429aad144f07fc276feb5f
7
- data.tar.gz: 9642c2dfdb42ca0d10246f5be5ee8c0936000c9353109728e774acd63f36dc05397827aacadb64cad62fcb3817dce587d62461295e7264f2ff9bf9ffc0681a40
6
+ metadata.gz: fc0fb22faa9d2b0054c0be53c10d3e02380315507c781e95c37ddb9941d47943586f333143591c0dbdd82f2a23b40e8158c46049ddf458e1544067b2c71c551b
7
+ data.tar.gz: 5b1bbd08a95fd00289276d7141ca9ac6d98c47a9b5228db6f3855e59569f99d206783c88d46cc1ffcfc44ff9fab314ddb2a64843b0e9c1a61c2d6375d3bb1e92
@@ -11,11 +11,11 @@ namespace :shopapp do
11
11
  timestamp = Time.now.strftime('%Y%m%d%H%M%S')
12
12
  user = deployment_settings['dbuser'] || deployment_settings['user']
13
13
  server = deployment_settings['dbserver'] || deployment_settings['server']
14
- db_name = Rails.configuration.database_configuration['production']['database']
14
+ db_name = deployment_settings['dbname'] || Rails.configuration.database_configuration['production']['database']
15
15
  dev_db_name = Rails.configuration.database_configuration['development']['database']
16
16
  dump_filename = "#{db_name}_#{timestamp}.dump"
17
17
 
18
- puts "Creating production db backup to #{dump_filename}..."
18
+ puts "Creating production db backup from #{db_name} to #{dump_filename}..."
19
19
  host_flag = if deployment_settings['dbhost'].present?
20
20
  "-h #{deployment_settings['dbhost']}"
21
21
  end
@@ -24,7 +24,7 @@ namespace :shopapp do
24
24
  puts "Copying to local..."
25
25
  system "scp #{user}@#{server}:#{dump_filename} #{Rails.root.join('tmp')}"
26
26
  puts "Restoring to local development database..."
27
- system "pg_restore --no-owner --verbose -c --dbname #{dev_db_name} #{Rails.root.join('tmp', dump_filename)}"
27
+ system "pg_restore --no-owner --verbose -c --no-acl -n public --dbname #{dev_db_name} #{Rails.root.join('tmp', dump_filename)}"
28
28
  puts 'Restored production database to local development.'
29
29
  end
30
30
 
data/shopapp.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.2.27'
4
- s.date = '2019-03-13'
3
+ s.version = '0.2.28'
4
+ s.date = '2019-03-14'
5
5
  s.summary = 'Do a shoplift.'
6
6
  s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
7
7
  I am qualmish at the smell of leek.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.27
4
+ version: 0.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties