prefab-cloud-ruby 0.24.4 → 0.24.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/VERSION +1 -1
- data/lib/prefab/config_client.rb +2 -1
- data/lib/prefab/http_connection.rb +5 -1
- data/lib/prefab-cloud-ruby.rb +1 -1
- data/prefab-cloud-ruby.gemspec +3 -3
- 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: bf743673dab06e2777321f7fb867417478a383864dd6b982860abbb21375450b
|
|
4
|
+
data.tar.gz: 47a0ba475095d9e773fafc684efc43bc4ac05bc9ec318b70ee321cf2c6b59428
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ce8f48e9c4584a34deead09528e1b90cd33a3e80994433d999abb32ccfd31eae7883eedf18b99d8351c55cf00e1e1dc7ef6f0b5a7d45819b300f573ff068533
|
|
7
|
+
data.tar.gz: 416c9f5271b62cef7469db992dde3238c982d15f442f22d3c273c5dfe07935caa1777c26684c98b5ed3c92a67cb41bb10fb9b00d188d4cecaa34507b425fdbb4
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.24.
|
|
1
|
+
0.24.5
|
data/lib/prefab/config_client.rb
CHANGED
|
@@ -192,7 +192,8 @@ module Prefab
|
|
|
192
192
|
auth_string = Base64.strict_encode64(auth)
|
|
193
193
|
headers = {
|
|
194
194
|
'x-prefab-start-at-id' => start_at_id,
|
|
195
|
-
'Authorization' => "Basic #{auth_string}"
|
|
195
|
+
'Authorization' => "Basic #{auth_string}",
|
|
196
|
+
'X-PrefabCloud-Client-Version' => "prefab-cloud-ruby-#{Prefab::VERSION}"
|
|
196
197
|
}
|
|
197
198
|
url = "#{@base_client.prefab_api_url}/api/v1/sse/config"
|
|
198
199
|
@base_client.log_internal ::Logger::INFO, "SSE Streaming Connect to #{url} start_at #{start_at_id}"
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
module Prefab
|
|
4
4
|
class HttpConnection
|
|
5
5
|
AUTH_USER = 'authuser'
|
|
6
|
-
PROTO_HEADERS = {
|
|
6
|
+
PROTO_HEADERS = {
|
|
7
|
+
'Content-Type' => 'application/x-protobuf',
|
|
8
|
+
'Accept' => 'application/x-protobuf',
|
|
9
|
+
'X-PrefabCloud-Client-Version' => "prefab-cloud-ruby-#{Prefab::VERSION}"
|
|
10
|
+
}.freeze
|
|
7
11
|
|
|
8
12
|
def initialize(api_root, api_key)
|
|
9
13
|
@api_root = api_root
|
data/lib/prefab-cloud-ruby.rb
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
module Prefab
|
|
4
4
|
NO_DEFAULT_PROVIDED = :no_default_provided
|
|
5
|
+
VERSION = File.read(File.dirname(__FILE__) + '/../VERSION').strip
|
|
5
6
|
end
|
|
6
7
|
|
|
7
8
|
require 'concurrent/atomics'
|
|
8
9
|
require 'concurrent'
|
|
9
10
|
require 'faraday'
|
|
10
11
|
require 'openssl'
|
|
11
|
-
require 'openssl'
|
|
12
12
|
require 'ld-eventsource'
|
|
13
13
|
require 'prefab_pb'
|
|
14
14
|
require 'prefab/time_helpers'
|
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.24.
|
|
5
|
+
# stub: prefab-cloud-ruby 0.24.5 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "prefab-cloud-ruby".freeze
|
|
9
|
-
s.version = "0.24.
|
|
9
|
+
s.version = "0.24.5"
|
|
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 = "2023-07-
|
|
14
|
+
s.date = "2023-07-10"
|
|
15
15
|
s.description = "Feature Flags, Live Config, and Dynamic Log Levels as a service".freeze
|
|
16
16
|
s.email = "jdwyer@prefab.cloud".freeze
|
|
17
17
|
s.executables = ["console".freeze]
|
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.24.
|
|
4
|
+
version: 0.24.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Dwyer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-07-
|
|
11
|
+
date: 2023-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|