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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a88b7d4c3a88af4b66a623208ec2673453ce763660d2cca7993e0623c39e35e5
4
- data.tar.gz: 125b830fb204a7085fa6a3e5b365646f27d8bc4bcf42df0c2a6f2f0e0925dcd9
3
+ metadata.gz: bf743673dab06e2777321f7fb867417478a383864dd6b982860abbb21375450b
4
+ data.tar.gz: 47a0ba475095d9e773fafc684efc43bc4ac05bc9ec318b70ee321cf2c6b59428
5
5
  SHA512:
6
- metadata.gz: 7a73efdcad8211cd709f0b074db0bf46ae448362387ba6215c94314050087988909d3993a8377422a6a6ef5e09da703f3f40b017b751025d6dbbcbaffd35d012
7
- data.tar.gz: 3e2b3e9cbf7686843abfc13f948a87840da068a823c9740eb0ceba7ea13a24502f249aebb1d1fa1931a735b2042ee989b291b8d513e1504ba534df30ab5658ea
6
+ metadata.gz: 5ce8f48e9c4584a34deead09528e1b90cd33a3e80994433d999abb32ccfd31eae7883eedf18b99d8351c55cf00e1e1dc7ef6f0b5a7d45819b300f573ff068533
7
+ data.tar.gz: 416c9f5271b62cef7469db992dde3238c982d15f442f22d3c273c5dfe07935caa1777c26684c98b5ed3c92a67cb41bb10fb9b00d188d4cecaa34507b425fdbb4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.24.5 - 2023-07-10
4
+
5
+ - Report Client Version (#121)
4
6
 
5
7
  ## [0.24.4] - 2023-07-06
6
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.24.4
1
+ 0.24.5
@@ -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 = { 'Content-Type' => 'application/x-protobuf', 'Accept' => 'application/x-protobuf' }.freeze
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
@@ -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'
@@ -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.4 ruby lib
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.4"
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-06"
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
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-06 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby