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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70fdeb9c1e8651a918fb7700a921e23843374ee9d5f3904a09d076e4be3b3669
4
- data.tar.gz: bd1cd6750f66a4e1f1940010fdaef01596de605f84ec80034747c906203aa8fc
3
+ metadata.gz: fc875095444727947594dfa96e7a4e59fbab20a14ec486fdd4b804b936aad374
4
+ data.tar.gz: 7af3f2155fdb85063c674b4f4bf3365b089e507789adf9eaa0ca5b4e206b9e19
5
5
  SHA512:
6
- metadata.gz: 47cd4f946a8ed79956d5b7f9822eb6b4d666db234bab4767990aa9fd79402acfbe569f4708d2ce08c57b65dedeafa374d6c9f97460ded8c6307d71293ee812fa
7
- data.tar.gz: 5078a253a71a7166a00f45a325d3f5b1f3435d99f2011ad197ebeb0af8be38699caecdba18fb36d019b13b92992f6c7cef82ae14ef672cda4ae8a3ca199c7236
6
+ metadata.gz: aff23956f0c34934a5702bd51517ac14111a7888ba99948537fb76fbcdf162abf6a032ae8caba5c902e06894b0f3bf5ffcf5a95efce9cf00210b4f333059e233
7
+ data.tar.gz: 21717c0f85eecd1972baf9fc1d8fa8b57d225da60eb6cba006b3ac4f288f4fab77c18f5d6a34e49ca8beb8835e22a520b3bc92b058658309d41db5eba9a05c86
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.0
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 << File.open(cert).read
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 << File.open(OpenSSL::X509::DEFAULT_CERT_FILE).read
132
+ ssl_certs += File.open(OpenSSL::X509::DEFAULT_CERT_FILE).read
133
133
  end
134
134
  ssl_certs
135
135
  rescue => e
@@ -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/config/#{@base_client.project_id}/#{key_hash}/0"
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
@@ -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.0 ruby lib
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.0"
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-10"
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby