parity 2.3.0 → 2.4.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 +8 -2
- data/lib/parity/backup.rb +13 -1
- data/lib/parity/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cac3c3c44e1e297809b6bca4cfde1975d5350ca02a71811044b36c493207c2c8
|
4
|
+
data.tar.gz: bb699b87a10d208c358f9215f690867d86b426b0db7443c99fd44fe2bc29f308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cd2c26f9e67ed147353a4df769c593f72c3fa02b85ae570337000246f680c86509aa6c94692d107c9fe3e76e955169c4299c5a5ba0cdd4680337beb4320ba1a
|
7
|
+
data.tar.gz: 2928886a795152cc579561a5beaee4d643d8fef9af64842ae76f00818cd07f756191d35b964c1c1d1fc274795554fe5dcee2257abb64a6fd062fdefda3abab55
|
data/README.md
CHANGED
@@ -111,7 +111,6 @@ heroku git:remote -r production -a your-production-app
|
|
111
111
|
* There is a `config/database.yml` file that can be parsed as YAML for
|
112
112
|
`['development']['database']`.
|
113
113
|
|
114
|
-
|
115
114
|
Customization
|
116
115
|
-------------
|
117
116
|
|
@@ -154,6 +153,13 @@ Contributing
|
|
154
153
|
|
155
154
|
Please see [`CONTRIBUTING.md`](CONTRIBUTING.md) for details.
|
156
155
|
|
156
|
+
Version History
|
157
|
+
---------------
|
158
|
+
|
159
|
+
Please see the [releases page](https://github.com/thoughtbot/parity/releases)
|
160
|
+
for the version history, along with a description of the changes in each
|
161
|
+
release.
|
162
|
+
|
157
163
|
Releasing
|
158
164
|
---------
|
159
165
|
|
@@ -162,7 +168,7 @@ See guidelines in [`RELEASING.md`](RELEASING.md) for details
|
|
162
168
|
License
|
163
169
|
-------
|
164
170
|
|
165
|
-
Parity is © 2013-
|
171
|
+
Parity is © 2013-2018 thoughtbot, inc.
|
166
172
|
It is free software,
|
167
173
|
and may be redistributed under the terms specified in the [LICENSE] file.
|
168
174
|
|
data/lib/parity/backup.rb
CHANGED
@@ -72,7 +72,7 @@ module Parity
|
|
72
72
|
def restore_from_local_temp_backup
|
73
73
|
Kernel.system(
|
74
74
|
"pg_restore tmp/latest.backup --verbose --clean --no-acl --no-owner "\
|
75
|
-
"--dbname #{development_db} --jobs #{
|
75
|
+
"--dbname #{development_db} --jobs #{processor_cores} "\
|
76
76
|
"#{additional_args}",
|
77
77
|
)
|
78
78
|
end
|
@@ -106,5 +106,17 @@ module Parity
|
|
106
106
|
def database_yaml_file
|
107
107
|
IO.read(DATABASE_YML_RELATIVE_PATH)
|
108
108
|
end
|
109
|
+
|
110
|
+
def processor_cores
|
111
|
+
if ruby_version_over_2_2?
|
112
|
+
Etc.nprocessors
|
113
|
+
else
|
114
|
+
2
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
def ruby_version_over_2_2?
|
119
|
+
Etc.respond_to?(:nprocessors)
|
120
|
+
end
|
109
121
|
end
|
110
122
|
end
|
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: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Croak
|
@@ -9,13 +9,13 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |2
|
15
15
|
Development/staging/production parity makes it easier for
|
16
16
|
those who write the code to deploy the code.
|
17
17
|
email:
|
18
|
-
-
|
18
|
+
- ralph@thoughtbot.com
|
19
19
|
executables:
|
20
20
|
- development
|
21
21
|
- staging
|
@@ -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.
|
56
|
+
rubygems_version: 2.7.4
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Shell commands for development, staging, and production parity.
|