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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71a703d0ab1210e46a8650fca96cbba72578e3d95d68825ff7c415d2c4ac89b7
4
- data.tar.gz: 3b66f2835412dfb59009fe71f7dd983b04e05921fabd204ce1fafab6a14742c0
3
+ metadata.gz: e5f341799d420673ccbf3e89c87071851ba6de8f8511f3db298caf0d301e21b2
4
+ data.tar.gz: 9f9ef8f3f3f488ef54fceff7c492e52294e75e66a892a3816a1699c09ac2c48b
5
5
  SHA512:
6
- metadata.gz: 9ecdee8f494735c6865d6fc75d059db6dd2a04d68a6988483145c8b03100b39a8e5b02a5b01167b5bdbc131881da528995515a10967259dca3d39a8814d1966d
7
- data.tar.gz: 54401332070ec4a7c5c6fd3427447237578cb557c862d56177150fec97b7c69d3552d4d81ea93a27c2ba5940c392315ba862a5c4ea1b145f28a0a7b9555c1c69
6
+ metadata.gz: 7448ce54194d6faf1a413f667411f1ae8b37979d1f804aa5cfac36e4dbf9fe4208e40fc55c39b142672e39403b7a61d6334d39138c7c510d8b403f62dfbc84d2
7
+ data.tar.gz: d3a713c1ef85413520241bcb5f93db074eeacfe14e3f60c702cf46e4487d0e781c28dedcc8a47b96f1ac39e5957f823a600d348a83d2ac4c3247fd6d6283fbf6
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Common
3
- VERSION = '3.1.2.rc.1'.freeze
3
+ VERSION = '3.1.2'.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_params.merge(given_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
- File.read(fetch_key('REDIS_SSL_CERTIFICATE_AUTHORITY_PATH'))
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 "percy-common$1.gem" || true
22
+ gem yank percy-common -v "$1" || true
23
23
  }
24
24
 
25
- if [[ $1 == 'delete' ]]; then
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-$VERSION.gem"
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-$VERSION.gem"
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.rc.1
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: 1.3.1
176
+ version: '0'
177
177
  requirements: []
178
178
  rubygems_version: 3.1.2
179
179
  signing_key: