prefab-cloud-ruby 0.13.0 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/prefab/client.rb +2 -2
- data/lib/prefab/config_client.rb +1 -1
- data/prefab-cloud-ruby.gemspec +3 -3
- data/test/test_client.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc875095444727947594dfa96e7a4e59fbab20a14ec486fdd4b804b936aad374
|
4
|
+
data.tar.gz: 7af3f2155fdb85063c674b4f4bf3365b089e507789adf9eaa0ca5b4e206b9e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aff23956f0c34934a5702bd51517ac14111a7888ba99948537fb76fbcdf162abf6a032ae8caba5c902e06894b0f3bf5ffcf5a95efce9cf00210b4f333059e233
|
7
|
+
data.tar.gz: 21717c0f85eecd1972baf9fc1d8fa8b57d225da60eb6cba006b3ac4f288f4fab77c18f5d6a34e49ca8beb8835e22a520b3bc92b058658309d41db5eba9a05c86
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.13.
|
1
|
+
0.13.3
|
data/lib/prefab/client.rb
CHANGED
@@ -126,10 +126,10 @@ module Prefab
|
|
126
126
|
def ssl_certs
|
127
127
|
ssl_certs = ""
|
128
128
|
Dir["#{OpenSSL::X509::DEFAULT_CERT_DIR}/*.pem"].each do |cert|
|
129
|
-
ssl_certs
|
129
|
+
ssl_certs += File.open(cert).read
|
130
130
|
end
|
131
131
|
if OpenSSL::X509::DEFAULT_CERT_FILE && File.exist?(OpenSSL::X509::DEFAULT_CERT_FILE)
|
132
|
-
ssl_certs
|
132
|
+
ssl_certs += File.open(OpenSSL::X509::DEFAULT_CERT_FILE).read
|
133
133
|
end
|
134
134
|
ssl_certs
|
135
135
|
rescue => e
|
data/lib/prefab/config_client.rb
CHANGED
@@ -159,7 +159,7 @@ module Prefab
|
|
159
159
|
|
160
160
|
def load_checkpoint_api_cdn
|
161
161
|
key_hash = Murmur3.murmur3_32(@base_client.api_key)
|
162
|
-
url = "#{@options.url_for_api_cdn}/api/v1/
|
162
|
+
url = "#{@options.url_for_api_cdn}/api/v1/configs/#{@base_client.project_id}/#{key_hash}/0"
|
163
163
|
conn = if Faraday::VERSION[0].to_i >= 2
|
164
164
|
Faraday.new(url) do |conn|
|
165
165
|
conn.request :authorization, :basic, @base_client.project_id, @base_client.api_key
|
data/prefab-cloud-ruby.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: prefab-cloud-ruby 0.13.
|
5
|
+
# stub: prefab-cloud-ruby 0.13.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "prefab-cloud-ruby".freeze
|
9
|
-
s.version = "0.13.
|
9
|
+
s.version = "0.13.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Jeff Dwyer".freeze]
|
14
|
-
s.date = "2022-08-
|
14
|
+
s.date = "2022-08-12"
|
15
15
|
s.description = "RateLimits & Config as a service".freeze
|
16
16
|
s.email = "jdwyer@prefab.cloud".freeze
|
17
17
|
s.extra_rdoc_files = [
|
data/test/test_client.rb
CHANGED
@@ -76,6 +76,13 @@ class TestClient < Minitest::Test
|
|
76
76
|
assert_equal "all-features", @client.get("flag_with_a_value")
|
77
77
|
end
|
78
78
|
|
79
|
+
def test_ssl_certs
|
80
|
+
certs = @client.send(:ssl_certs).split("-----BEGIN CERTIFICATE-----")
|
81
|
+
|
82
|
+
# This is a smoke test to make sure multiple certs are loaded
|
83
|
+
assert certs.length > 1
|
84
|
+
end
|
85
|
+
|
79
86
|
private
|
80
87
|
|
81
88
|
def new_client(overrides = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prefab-cloud-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dwyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|