parity 0.9.0 → 0.9.1

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
  SHA1:
3
- metadata.gz: e81aa181be44720717ccf32fb5756b69e74f409e
4
- data.tar.gz: a53cc3632d121f6037a520e37f8e8676f30c04a3
3
+ metadata.gz: 7228b94041fbf35e1d127338d0a2ad8c34e69615
4
+ data.tar.gz: 0baa0f5bf87028cb9b2b6055f9387e7e74d728e0
5
5
  SHA512:
6
- metadata.gz: 7e7ee4e69ef1bbfb5d6d9a01d481ccf7bba9525a3779666b80c6969a23ba38e6925d9236ddbe83bf7916e22d7dfb6d0cce9fad24d0248dbf70aef4df3467c5bc
7
- data.tar.gz: 4e8e1bf67b1945f557bd657b73768e847b132c364af53623e0a4b3b051a1ff381ed13723b9b723dbff30f70062f3bc0d52e54ba5f81d0ed19adb3ea26b789b0b
6
+ metadata.gz: cf7aac09c3870343ee1c78d743623cb13b701910a49b7bbc55e426cf594247479d41426672201a49904860fe809c1ada0d15d21b4a6b4fb22711ac3fcd578420
7
+ data.tar.gz: 1243bbeae96e9995920909c9677909e6323d97eabce9228b219f773dec14cb3ec9b8f586b76355cd74fe9664c8d971905c048bb9fff678b1778aed79cc6e96ec
data/README.md CHANGED
@@ -47,7 +47,7 @@ Restore a production database backup into staging:
47
47
 
48
48
  Push your local development database backup up to staging:
49
49
 
50
- development restore staging
50
+ staging restore development
51
51
 
52
52
  Deploy from master, and migrate and restart the dynos if necessary:
53
53
 
@@ -9,6 +9,16 @@ module Parity
9
9
  end
10
10
 
11
11
  def run
12
+ run_command || false
13
+ end
14
+
15
+ private
16
+
17
+ PROTECTED_ENVIRONMENTS = %w(development production)
18
+
19
+ attr_accessor :environment, :subcommand, :arguments
20
+
21
+ def run_command
12
22
  if subcommand == "redis-cli"
13
23
  redis_cli
14
24
  elsif self.class.private_method_defined?(subcommand)
@@ -18,12 +28,6 @@ module Parity
18
28
  end
19
29
  end
20
30
 
21
- private
22
-
23
- PROTECTED_ENVIRONMENTS = %w(development production)
24
-
25
- attr_accessor :environment, :subcommand, :arguments
26
-
27
31
  def open
28
32
  run_via_cli
29
33
  end
@@ -37,8 +41,10 @@ module Parity
37
41
  end
38
42
 
39
43
  def deploy
40
- if deploy_to_heroku && run_migration?
41
- migrate
44
+ skip_migrations = !run_migrations?
45
+
46
+ if deploy_to_heroku
47
+ skip_migrations || migrate
42
48
  end
43
49
  end
44
50
 
@@ -127,7 +133,7 @@ module Parity
127
133
  Dir.pwd.split("/").last
128
134
  end
129
135
 
130
- def run_migration?
136
+ def run_migrations?
131
137
  rails_app? && pending_migrations?
132
138
  end
133
139
 
@@ -1,3 +1,3 @@
1
1
  module Parity
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Development/staging/production parity makes it easier for