parity 2.3.0 → 2.4.0

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
- SHA1:
3
- metadata.gz: 3ad6e6a9aacf8e71678744d33527dad19e447a53
4
- data.tar.gz: 6f1543c0ebac6211c7d70f83cc05a8154ac811b3
2
+ SHA256:
3
+ metadata.gz: cac3c3c44e1e297809b6bca4cfde1975d5350ca02a71811044b36c493207c2c8
4
+ data.tar.gz: bb699b87a10d208c358f9215f690867d86b426b0db7443c99fd44fe2bc29f308
5
5
  SHA512:
6
- metadata.gz: e7a49c89a2d8f78d180c757ae950eef82625c5768d67fccad04268101539b9d9a1923cc00a45b9eba63225ecb8634bfd5780c5c4c8a8b8dad9c591748bf59955
7
- data.tar.gz: a5ada42a40d98c503ab11517fa2cd842892542147129f1b8e0d8fb3b99adb3788035a14845a572b7c57eb6c5b5518d62d13df88211822b32daaeb2f0a5049bc2
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-2017 thoughtbot, inc.
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
 
@@ -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 #{Etc.nprocessors} "\
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
@@ -1,3 +1,3 @@
1
1
  module Parity
2
- VERSION = "2.3.0".freeze
2
+ VERSION = "2.4.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: 2.3.0
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: 2017-12-22 00:00:00.000000000 Z
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
- - dan@thoughtbot.com
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.6.11
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.