parity 3.0.0.beta → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +4 -1
- data/lib/parity/backup.rb +3 -8
- data/lib/parity/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d6fa8142578f3d2b4c6a4dab469c55966fe0895a
|
4
|
+
data.tar.gz: 989d26cc4b18eca3557d355fe81fab0a06f9823b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0ac6ae5564a44d9bba30f6b30c471a20d8756df009a74ece422e5971557c12d3bf0bce783537a8c1b35bfe0b5b814287ec86d699feee678e9a6c48468fb2e0b
|
7
|
+
data.tar.gz: a1d1e85cf8d406f09f80e03419f561b546f316e7f963e619084a74a2312de345c8b1314cb16a61d2793503171be2b956376ab4f67a55ed01674d45aa563a944e
|
data/README.md
CHANGED
@@ -59,10 +59,13 @@ Push your local development database backup up to staging:
|
|
59
59
|
|
60
60
|
staging restore development
|
61
61
|
|
62
|
-
Deploy master to production
|
62
|
+
Deploy master to production (note that prior versions of Parity would run
|
63
|
+
database migrations, that's now better handled using [Heroku release phase]):
|
63
64
|
|
64
65
|
production deploy
|
65
66
|
|
67
|
+
[Heroku release phase]: https://devcenter.heroku.com/articles/release-phase
|
68
|
+
|
66
69
|
Deploy the current branch to staging:
|
67
70
|
|
68
71
|
staging deploy
|
data/lib/parity/backup.rb
CHANGED
@@ -83,14 +83,9 @@ module Parity
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def delete_rails_production_environment_settings
|
86
|
-
Kernel.system(
|
87
|
-
|
88
|
-
|
89
|
-
"(SELECT 1 FROM pg_tables WHERE tablename = 'ar_internal_metadata') "\
|
90
|
-
"THEN UPDATE ar_internal_metadata "\
|
91
|
-
"SET value = 'development' "\
|
92
|
-
"WHERE key = 'environment'; ELSE END IF; END $$;\"",
|
93
|
-
)
|
86
|
+
Kernel.system(<<-SHELL)
|
87
|
+
psql #{development_db} -c "CREATE TABLE IF NOT EXISTS public.ar_internal_metadata (key character varying NOT NULL, value character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key)); UPDATE ar_internal_metadata SET value = 'development' WHERE key = 'environment'"
|
88
|
+
SHELL
|
94
89
|
end
|
95
90
|
|
96
91
|
def restore_to_remote_environment
|
data/lib/parity/version.rb
CHANGED
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: 3.0.0
|
4
|
+
version: 3.0.0
|
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: 2018-
|
12
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |2
|
15
15
|
Development/staging/production parity makes it easier for
|
@@ -48,12 +48,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: 2.2.0
|
49
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
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.
|