shopapp 0.2.39 → 0.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f56a726708181cbf72e5606b69a1ff6a8a510556575091bb1c5742b9ad114e87
4
- data.tar.gz: 3595cf5cb363813c482d21651e877f0e277a6c4ef299f436669c196d39869253
3
+ metadata.gz: 0f97db7cd032bd05103f2f47e82d778b3e5a6c16331e476a2438cd61af4d0fb6
4
+ data.tar.gz: ea71c0a2313df3151b488da15495d49ad3f9787672adab01a07ec5754f5a81c7
5
5
  SHA512:
6
- metadata.gz: fed9f8c328a6a2fc1a495bc055991870579862fbeb07c0f5692c7859d24d503b19599bed73a4d0ea636351c2b4ada40364691e6e4fa36d9c25170f64fbafe1c4
7
- data.tar.gz: bc68053ee626c3e0bacf3df799646d85b2f3e4162811815cdd80dba7eeb8d91a187e0ed13da52ee1cab620ae70cc0d38653ae6d3d24af805df1725eb3d0bb8fa
6
+ metadata.gz: 4febae91918595da6f4342987506e550e714ef9f09277e81be754d6c49effe3093a47e684984b3becbda1943e9b35fe6a85b1710e4aaf0d5532c00a2f8e0c11f
7
+ data.tar.gz: 8b9829b95f594d634191705f095025e7fd96ef114a0b82467622bc1f8c2e4aee9201effe00a02926dabcd7cb251b1b8af7c83193bd93f7facd240c877bb2cbfd
@@ -36,7 +36,7 @@ namespace :shopapp do
36
36
  dev_db_name = Rails.configuration.database_configuration['development']['database']
37
37
  puts "Restoring to local development database from #{dump_filepath}..."
38
38
  system "pg_restore --no-owner --verbose -c --no-acl -n public --dbname #{dev_db_name} #{Rails.root.join('tmp', dump_filepath)}"
39
- puts 'Restored the database to local development.'
39
+ puts "Done restoring the database from #{dump_filepath} to local development."
40
40
  end
41
41
 
42
42
  desc 'list existing targets'
@@ -120,12 +120,11 @@ namespace :shopapp do
120
120
  end
121
121
 
122
122
  task restoredb: :environment do
123
- db_basename = Rails.configuration.database_configuration[ENV['target']]['database']
124
123
  dump_filepath ||= if ENV['timestamp']
125
- Rails.root.join "tmp/#{db_basename}_#{ENV['timestamp']}.dump"
124
+ Rails.root.join "tmp/#{deployment_settings['dbname']}_#{ENV['timestamp']}.dump"
126
125
  else
127
126
  ENV['filepath'] ||
128
- Dir[Rails.root.join("tmp/#{db_basename}_*.dump")].sort.last
127
+ Dir[Rails.root.join("tmp/#{deployment_settings['dbname']}_*.dump")].sort.last
129
128
  end
130
129
  restoredb_from_file(dump_filepath)
131
130
  end
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.39'
4
- s.date = '2019-04-02'
3
+ s.version = '0.2.40'
4
+ s.date = '2019-04-05'
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.39
4
+ version: 0.2.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-02 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties