parity 2.2.0 → 2.2.1

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: b2f04e5261a33b79ce3469c1622e031c9e6754ad
4
- data.tar.gz: ed3aef4363acc66e30d6c39bed3163594a34a583
3
+ metadata.gz: 69b3501fc668254ccfeab23131740fd3c2d42686
4
+ data.tar.gz: c0ddb0d04dba89434a9fd793c3b49f0580117d59
5
5
  SHA512:
6
- metadata.gz: b967730a15f8b0cfc8d0c2c8b694560ee0e0da9488efa9aa70420bb743a8cc4a51b8f485bc64c7105c625263aa1e5893452f77260af3c276af3b3e66839ccd00
7
- data.tar.gz: 27a93789ecf6fb18956c5a0b9357806877df2a72be4fa79eae0861edcb3dbc767abe53bdd922ff2806ca33394735b6be5fb738d3d9135379efa93b66ec9ccf9a
6
+ metadata.gz: 0beaea10967ef6f1727ac00bac3b6b1c3379380dc28a8ee40171234f06e2822595efa7f01448047ad98e9fc075c39e0bbddffc8f60abf349c22b8afceb52bea1
7
+ data.tar.gz: c282ee7bb3779665917512eba70629ace7b875295992b28e9d566b439f8b0b3d0e7a50e9e9fbc715f74c4570113cd7edf73e59ae243df79af2d47dee1d23c5c7
@@ -35,6 +35,7 @@ module Parity
35
35
  end
36
36
 
37
37
  def restore_to_development
38
+ ensure_temp_directory_exists
38
39
  download_remote_backup
39
40
  wipe_development_database
40
41
  restore_from_local_temp_backup
@@ -56,6 +57,10 @@ module Parity
56
57
  HerokuAppName.new(to).to_s
57
58
  end
58
59
 
60
+ def ensure_temp_directory_exists
61
+ Kernel.system("mkdir -p tmp")
62
+ end
63
+
59
64
  def download_remote_backup
60
65
  Kernel.system(
61
66
  "curl -o tmp/latest.backup \"$(heroku pg:backups:url --remote #{from})\"",
@@ -1,3 +1,3 @@
1
1
  module Parity
2
- VERSION = "2.2.0".freeze
2
+ VERSION = "2.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parity
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-12 00:00:00.000000000 Z
12
+ date: 2017-10-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |2
15
15
  Development/staging/production parity makes it easier for
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 2.4.5
56
+ rubygems_version: 2.6.11
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Shell commands for development, staging, and production parity.