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 +4 -4
- data/lib/shopapp/tasks/shopapp.rake +3 -4
- data/shopapp.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f97db7cd032bd05103f2f47e82d778b3e5a6c16331e476a2438cd61af4d0fb6
|
|
4
|
+
data.tar.gz: ea71c0a2313df3151b488da15495d49ad3f9787672adab01a07ec5754f5a81c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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/#{
|
|
124
|
+
Rails.root.join "tmp/#{deployment_settings['dbname']}_#{ENV['timestamp']}.dump"
|
|
126
125
|
else
|
|
127
126
|
ENV['filepath'] ||
|
|
128
|
-
Dir[Rails.root.join("tmp/#{
|
|
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.
|
|
4
|
-
s.date = '2019-04-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|