percy-common 3.1.2.pre.rc.3 → 3.1.2.rc.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bce016cbaeff18adc9274e67776e4b11d5f4c0c77c2d54e9ccd6d0979ee5192
4
- data.tar.gz: a86be1e5c52f37c014d7817b5c15d8b854ca3274d26c2c85c6f248472213bd6a
3
+ metadata.gz: 71a703d0ab1210e46a8650fca96cbba72578e3d95d68825ff7c415d2c4ac89b7
4
+ data.tar.gz: 3b66f2835412dfb59009fe71f7dd983b04e05921fabd204ce1fafab6a14742c0
5
5
  SHA512:
6
- metadata.gz: 7dce391a0b6098f068801b3aac6c220fbc597b8f9925678e7f1e2c39f61c1e3bd41bb9485a6ac1171875ce97bd07ccf89e21b513dd0ec618fd1001b0354ab9cc
7
- data.tar.gz: 4cb3a50ad9e0143659a1d20efb71a2330c9a6f17861337c0066affc950d32f8bbe50a8bd00670f30f9203c2e172f98f3b05116da613f6de6baf96d2f4d0002b3
6
+ metadata.gz: 9ecdee8f494735c6865d6fc75d059db6dd2a04d68a6988483145c8b03100b39a8e5b02a5b01167b5bdbc131881da528995515a10967259dca3d39a8814d1966d
7
+ data.tar.gz: 54401332070ec4a7c5c6fd3427447237578cb557c862d56177150fec97b7c69d3552d4d81ea93a27c2ba5940c392315ba862a5c4ea1b145f28a0a7b9555c1c69
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Common
3
- VERSION = '3.1.2-rc.3'.freeze
3
+ VERSION = '3.1.2.rc.1'.freeze
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ module Percy
11
11
 
12
12
  def initialize(given_options = {})
13
13
  @provided_options = given_options
14
- @options = ssl_options.merge(given_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 -v "$1" || true
22
+ gem yank "percy-common$1.gem" || true
23
23
  }
24
24
 
25
- if [[ $1 =~ ^.*delete$ ]]; then
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-"*.gem
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-"*.gem
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
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.pre.rc.3
4
+ version: 3.1.2.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.