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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 2295545fdc8b35529afb106f436be8becaaffa507ce9484af115639cb1a5b85e
4
- data.tar.gz: 265339579a79bee3b13b64fee322754ca33bce70822fda019002634ba5bbfd6b
2
+ SHA1:
3
+ metadata.gz: d6fa8142578f3d2b4c6a4dab469c55966fe0895a
4
+ data.tar.gz: 989d26cc4b18eca3557d355fe81fab0a06f9823b
5
5
  SHA512:
6
- metadata.gz: 74cb7ec338ad64a9068fb70fa1185eec139108714c81436609402c003a9f1bb273e6a6d44ba0c0aa9ac6462e8fd85684a820abaeb284e4c8b7f00dd6d76d5637
7
- data.tar.gz: 96eba9ee304523c83c073b4e18193e07bedc5178095cfe7cb0b15ce55861983926fc1a58281c24e7cd623f60a5981565b1c7ee95893df26af16abfadca8595c2
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
@@ -83,14 +83,9 @@ module Parity
83
83
  end
84
84
 
85
85
  def delete_rails_production_environment_settings
86
- Kernel.system(
87
- "psql #{development_db} -c "\
88
- "\"DO $$ BEGIN IF EXISTS "\
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
@@ -1,3 +1,3 @@
1
1
  module Parity
2
- VERSION = "3.0.0.beta".freeze
2
+ VERSION = "3.0.0".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: 3.0.0.beta
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-09-15 00:00:00.000000000 Z
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: 1.3.1
53
+ version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 2.7.7
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.