percy-common 3.1.2.rc.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy/common/version.rb +1 -1
- data/lib/percy/redis_client.rb +2 -7
- data/release.sh +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5f341799d420673ccbf3e89c87071851ba6de8f8511f3db298caf0d301e21b2
|
4
|
+
data.tar.gz: 9f9ef8f3f3f488ef54fceff7c492e52294e75e66a892a3816a1699c09ac2c48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7448ce54194d6faf1a413f667411f1ae8b37979d1f804aa5cfac36e4dbf9fe4208e40fc55c39b142672e39403b7a61d6334d39138c7c510d8b403f62dfbc84d2
|
7
|
+
data.tar.gz: d3a713c1ef85413520241bcb5f93db074eeacfe14e3f60c702cf46e4487d0e781c28dedcc8a47b96f1ac39e5957f823a600d348a83d2ac4c3247fd6d6283fbf6
|
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_options.merge(given_options)
|
15
15
|
@client = ::Redis.new(options)
|
16
16
|
end
|
17
17
|
|
@@ -74,7 +74,6 @@ module Percy
|
|
74
74
|
|
75
75
|
private def certificate_authority
|
76
76
|
provided_certificate_authority ||
|
77
|
-
certificate_authority_from_env ||
|
78
77
|
certificate_authority_from_path
|
79
78
|
end
|
80
79
|
|
@@ -82,12 +81,8 @@ module Percy
|
|
82
81
|
@provided_options&.dig(:ssl_params, :ca_file)
|
83
82
|
end
|
84
83
|
|
85
|
-
private def certificate_authority_from_env
|
86
|
-
ENV['REDIS_SSL_CERTIFICATE_AUTHORITY']
|
87
|
-
end
|
88
|
-
|
89
84
|
private def certificate_authority_from_path
|
90
|
-
|
85
|
+
fetch_key('REDIS_SSL_CERTIFICATE_AUTHORITY_PATH')
|
91
86
|
end
|
92
87
|
|
93
88
|
private def fetch_key(key)
|
data/release.sh
CHANGED
@@ -19,10 +19,13 @@ 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
|
22
|
+
gem yank percy-common -v "$1" || true
|
23
23
|
}
|
24
24
|
|
25
|
-
if [[ $1
|
25
|
+
if [[ $1 =~ ^.*delete$ ]]; then
|
26
|
+
shift
|
27
|
+
echo "Preparing to delete $1"
|
28
|
+
sleep 3
|
26
29
|
delete_existing_version "$PERCY_COMMON_VERSION"
|
27
30
|
else
|
28
31
|
CLEAN=$(
|
@@ -53,9 +56,9 @@ else
|
|
53
56
|
git push origin "v$VERSION" || true
|
54
57
|
|
55
58
|
bundle exec rake build
|
56
|
-
gem push "$CURDIR/pkg/percy-common
|
59
|
+
gem push "$CURDIR/pkg/percy-common-"*.gem
|
57
60
|
open "https://github.com/percy/percy-common/releases/new?tag=v$VERSION&title=$VERSION"
|
58
|
-
rm "$CURDIR/pkg/percy-common
|
61
|
+
rm "$CURDIR/pkg/percy-common-"*.gem
|
59
62
|
else
|
60
63
|
echo "Please commit your changes and try again"
|
61
64
|
exit 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.2
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
@@ -171,9 +171,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
|
-
- - "
|
174
|
+
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version:
|
176
|
+
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubygems_version: 3.1.2
|
179
179
|
signing_key:
|