percy-common 3.1.2.pre.rc.3 → 3.1.2.rc.1
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 +4 -4
- data/lib/percy/common/version.rb +1 -1
- data/lib/percy/redis_client.rb +7 -2
- data/release.sh +4 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71a703d0ab1210e46a8650fca96cbba72578e3d95d68825ff7c415d2c4ac89b7
|
|
4
|
+
data.tar.gz: 3b66f2835412dfb59009fe71f7dd983b04e05921fabd204ce1fafab6a14742c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ecdee8f494735c6865d6fc75d059db6dd2a04d68a6988483145c8b03100b39a8e5b02a5b01167b5bdbc131881da528995515a10967259dca3d39a8814d1966d
|
|
7
|
+
data.tar.gz: 54401332070ec4a7c5c6fd3427447237578cb557c862d56177150fec97b7c69d3552d4d81ea93a27c2ba5940c392315ba862a5c4ea1b145f28a0a7b9555c1c69
|
data/lib/percy/common/version.rb
CHANGED
data/lib/percy/redis_client.rb
CHANGED
|
@@ -11,7 +11,7 @@ module Percy
|
|
|
11
11
|
|
|
12
12
|
def initialize(given_options = {})
|
|
13
13
|
@provided_options = given_options
|
|
14
|
-
@options =
|
|
14
|
+
@options = ssl_params.merge(given_options)
|
|
15
15
|
@client = ::Redis.new(options)
|
|
16
16
|
end
|
|
17
17
|
|
|
@@ -74,6 +74,7 @@ module Percy
|
|
|
74
74
|
|
|
75
75
|
private def certificate_authority
|
|
76
76
|
provided_certificate_authority ||
|
|
77
|
+
certificate_authority_from_env ||
|
|
77
78
|
certificate_authority_from_path
|
|
78
79
|
end
|
|
79
80
|
|
|
@@ -81,8 +82,12 @@ module Percy
|
|
|
81
82
|
@provided_options&.dig(:ssl_params, :ca_file)
|
|
82
83
|
end
|
|
83
84
|
|
|
85
|
+
private def certificate_authority_from_env
|
|
86
|
+
ENV['REDIS_SSL_CERTIFICATE_AUTHORITY']
|
|
87
|
+
end
|
|
88
|
+
|
|
84
89
|
private def certificate_authority_from_path
|
|
85
|
-
fetch_key('REDIS_SSL_CERTIFICATE_AUTHORITY_PATH')
|
|
90
|
+
File.read(fetch_key('REDIS_SSL_CERTIFICATE_AUTHORITY_PATH'))
|
|
86
91
|
end
|
|
87
92
|
|
|
88
93
|
private def fetch_key(key)
|
data/release.sh
CHANGED
|
@@ -19,13 +19,10 @@ rm "$CURDIR/"percy-common*.gem >/dev/null 2>&1 || true
|
|
|
19
19
|
delete_existing_version() {
|
|
20
20
|
git tag -d "v$1" || true
|
|
21
21
|
git push origin ":v$1" || true
|
|
22
|
-
gem yank percy-common
|
|
22
|
+
gem yank "percy-common$1.gem" || true
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
if [[ $1
|
|
26
|
-
shift
|
|
27
|
-
echo "Preparing to delete $1"
|
|
28
|
-
sleep 3
|
|
25
|
+
if [[ $1 == 'delete' ]]; then
|
|
29
26
|
delete_existing_version "$PERCY_COMMON_VERSION"
|
|
30
27
|
else
|
|
31
28
|
CLEAN=$(
|
|
@@ -56,9 +53,9 @@ else
|
|
|
56
53
|
git push origin "v$VERSION" || true
|
|
57
54
|
|
|
58
55
|
bundle exec rake build
|
|
59
|
-
gem push "$CURDIR/pkg/percy-common
|
|
56
|
+
gem push "$CURDIR/pkg/percy-common-$VERSION.gem"
|
|
60
57
|
open "https://github.com/percy/percy-common/releases/new?tag=v$VERSION&title=$VERSION"
|
|
61
|
-
rm "$CURDIR/pkg/percy-common
|
|
58
|
+
rm "$CURDIR/pkg/percy-common-$VERSION.gem"
|
|
62
59
|
else
|
|
63
60
|
echo "Please commit your changes and try again"
|
|
64
61
|
exit 1
|