parity 3.4.0 → 3.5.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
2
  SHA256:
3
- metadata.gz: 848792197642939ee65244b1b52cf46e247aaed2cdd23b7d145f8d0377f6b679
4
- data.tar.gz: 96c978c1fbd49f12a4b35951da33ca958115875057a35b5be6c0912d9b252f72
3
+ metadata.gz: 7ee16d3e40ea984e2097512f153e70f697fc6621ace79745935fee0d8a921f77
4
+ data.tar.gz: 47b60c7616ead54c4d9f2d06757b278be7976901a43156488d6abce73e1cdfc3
5
5
  SHA512:
6
- metadata.gz: f99f89a6f7d44c1223b699c32d80e6ab1279b34f06f6c2efb83d9e4974cd877d98fb4461768d509afb0010c30be0d58b2d86fa70f3f35032e69c29d188fdb864
7
- data.tar.gz: bd98116578f9f6d492ecf99afd170ac0d242ad9c248f370cdc6f77ad957bd91d7a6bcbfb73cd0261edcc854cfe85484064c63d71efacc6a22bef5f0748022e53
6
+ metadata.gz: 1f1ac796f6f3ee3ea4ea4f7c59ba9f9ce123b22400b992bc1cc83fef6e7abddea3a505d83bd6b7935f9640249e81bfae19d1064b725a7e877e3e8f4e13ec5a9d
7
+ data.tar.gz: 1523534c0881decc98401235471ba433b44c53d023a4ab08fb639a9f318372be95dab0029fd62a1f04fa043be079d14da92d83dbd02aea1458b6848b282b8cfb
data/README.md CHANGED
@@ -8,22 +8,11 @@ Shell commands for development, staging, and production parity for Heroku apps.
8
8
  Install
9
9
  -------
10
10
 
11
- On macOS, this installs everything you need:
11
+ gem install parity
12
12
 
13
- brew tap thoughtbot/formulae
14
- brew install parity
13
+ Or bundle it in your project:
15
14
 
16
- On Debian:
17
-
18
- wget -qO - https://apt.thoughtbot.com/thoughtbot.gpg.key | sudo apt-key add -
19
- echo "deb http://apt.thoughtbot.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/thoughtbot.list
20
- sudo apt-get update
21
- sudo apt-get install parity
22
-
23
- On other systems you can:
24
-
25
- 1. Download the package for your system from the [releases page][releases]
26
- 1. Extract the tarball and place it so that `/bin` is in your `PATH`
15
+ gem "parity"
27
16
 
28
17
  [releases]: https://github.com/thoughtbot/parity/releases
29
18
 
@@ -33,10 +22,6 @@ Parity requires these command-line programs:
33
22
  heroku
34
23
  pg_restore
35
24
 
36
- On macOS, these programs are installed
37
- as Homebrew package dependencies of
38
- the `parity` Homebrew package.
39
-
40
25
  Usage
41
26
  -----
42
27
 
@@ -92,12 +77,6 @@ Tail a log:
92
77
  staging tail
93
78
  pr_app 1234 tail
94
79
 
95
- Use [redis-cli][2] with your `REDIS_URL` add-on:
96
-
97
- production redis-cli
98
- staging redis-cli
99
- pr_app 1234 redis-cli
100
-
101
80
  The scripts also pass through, so you can do anything with them that you can do
102
81
  with `heroku ______ --remote staging` or `heroku ______ --remote production`:
103
82
 
data/lib/parity/backup.rb CHANGED
@@ -108,7 +108,7 @@ module Parity
108
108
  end
109
109
 
110
110
  def development_db
111
- YAML.load(database_yaml_file).
111
+ YAML.safe_load(database_yaml_file, aliases: true).
112
112
  fetch(DEVELOPMENT_ENVIRONMENT_KEY_NAME).
113
113
  fetch(DATABASE_KEY_NAME)
114
114
  end
@@ -126,16 +126,6 @@ module Parity
126
126
  )
127
127
  end
128
128
 
129
- def redis_cli
130
- Kernel.system("redis-cli", "-u", raw_redis_url)
131
- end
132
-
133
- def raw_redis_url
134
- @redis_to_go_url ||= Open3.
135
- capture3(command_for_remote("config:get REDIS_URL"))[0].
136
- strip
137
- end
138
-
139
129
  def heroku_app_name
140
130
  HerokuAppName.new(environment).to_s
141
131
  end
@@ -1,3 +1,3 @@
1
1
  module Parity
2
- VERSION = "3.4.0".freeze
2
+ VERSION = "3.5.0".freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parity
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
8
8
  - Geoff Harcourt
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-06-10 00:00:00.000000000 Z
12
+ date: 2022-02-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |2
15
15
  Development/staging/production parity makes it easier for
@@ -39,7 +39,7 @@ homepage: https://github.com/thoughtbot/parity
39
39
  licenses:
40
40
  - MIT
41
41
  metadata: {}
42
- post_install_message:
42
+ post_install_message:
43
43
  rdoc_options: []
44
44
  require_paths:
45
45
  - lib
@@ -54,8 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubygems_version: 3.1.6
58
- signing_key:
57
+ rubygems_version: 3.1.4
58
+ signing_key:
59
59
  specification_version: 4
60
60
  summary: Shell commands for development, staging, and production parity.
61
61
  test_files: []