prefab-cloud-ruby 1.8.0 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/dev/console +6 -0
- data/lib/prefab/internal_logger.rb +2 -1
- data/lib/prefab/sse_config_client.rb +3 -2
- data/prefab-cloud-ruby.gemspec +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc28dd551eb4ba62f97902ae49cfa8f474c7a2883a8dce5ea43605d661420407
|
4
|
+
data.tar.gz: f2bba00e271a6947d0394453f21964d4d849f22004747a434efa58f3a97d6f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b2e0a3ce0aaa1812677c06744272f2ac52a92687420c10942f271261be1b9c7a4de64efc8e98ed2537df1597c00a2a1f359408c19114d64b3ba5838aeab917
|
7
|
+
data.tar.gz: 22892c02a6570108400edc76af207e233125e4ec85df3d895db2be90c86e9dba7840a9ea4f8e46c2868e9ba6b1c642115677f47cb90db928be40e354a74d1e13
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.2
|
data/dev/console
CHANGED
@@ -17,5 +17,11 @@ spec.require_paths.each do |path|
|
|
17
17
|
require "./lib/prefab-cloud-ruby"
|
18
18
|
end
|
19
19
|
|
20
|
+
SemanticLogger.add_appender(io: $stdout)
|
21
|
+
|
22
|
+
if !ENV['PREFAB_LOG_CLIENT_BOOTSTRAP_LOG_LEVEL']
|
23
|
+
puts "run with PREFAB_LOG_CLIENT_BOOTSTRAP_LOG_LEVEL=debug (or trace) for more output"
|
24
|
+
end
|
25
|
+
|
20
26
|
# Start an IRB session
|
21
27
|
IRB.start(__FILE__)
|
@@ -2,7 +2,8 @@ module Prefab
|
|
2
2
|
class InternalLogger < SemanticLogger::Logger
|
3
3
|
|
4
4
|
def initialize(klass)
|
5
|
-
|
5
|
+
default_level = ENV['PREFAB_LOG_CLIENT_BOOTSTRAP_LOG_LEVEL'] ? ENV['PREFAB_LOG_CLIENT_BOOTSTRAP_LOG_LEVEL'].downcase.to_sym : :warn
|
6
|
+
super(klass, default_level)
|
6
7
|
instances << self
|
7
8
|
end
|
8
9
|
|
@@ -37,7 +37,7 @@ module Prefab
|
|
37
37
|
|
38
38
|
if closed_count > SECONDS_BETWEEN_RECONNECT
|
39
39
|
closed_count = 0
|
40
|
-
connect(&load_configs)
|
40
|
+
@client = connect(&load_configs)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -58,9 +58,10 @@ module Prefab
|
|
58
58
|
end
|
59
59
|
|
60
60
|
client.on_error do |error|
|
61
|
-
LOG.error "SSE Streaming Error: #{error} for url #{url}"
|
61
|
+
LOG.error "SSE Streaming Error: #{error.inspect} for url #{url}"
|
62
62
|
|
63
63
|
if error.is_a?(HTTP::ConnectionError)
|
64
|
+
LOG.debug "Closing SSE connection for url #{url}"
|
64
65
|
client.close
|
65
66
|
end
|
66
67
|
end
|
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 1.8.
|
5
|
+
# stub: prefab-cloud-ruby 1.8.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "prefab-cloud-ruby".freeze
|
9
|
-
s.version = "1.8.
|
9
|
+
s.version = "1.8.2"
|
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 = "2024-
|
14
|
+
s.date = "2024-09-03"
|
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.extra_rdoc_files = [
|
@@ -134,7 +134,7 @@ Gem::Specification.new do |s|
|
|
134
134
|
s.add_runtime_dependency(%q<ld-eventsource>.freeze, [">= 0"])
|
135
135
|
s.add_runtime_dependency(%q<uuid>.freeze, [">= 0"])
|
136
136
|
s.add_runtime_dependency(%q<activesupport>.freeze, [">= 4"])
|
137
|
-
s.add_runtime_dependency(%q<semantic_logger>.freeze, ["
|
137
|
+
s.add_runtime_dependency(%q<semantic_logger>.freeze, ["!= 4.16.0"])
|
138
138
|
s.add_development_dependency(%q<benchmark-ips>.freeze, [">= 0"])
|
139
139
|
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
140
140
|
s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
|
@@ -148,7 +148,7 @@ Gem::Specification.new do |s|
|
|
148
148
|
s.add_dependency(%q<ld-eventsource>.freeze, [">= 0"])
|
149
149
|
s.add_dependency(%q<uuid>.freeze, [">= 0"])
|
150
150
|
s.add_dependency(%q<activesupport>.freeze, [">= 4"])
|
151
|
-
s.add_dependency(%q<semantic_logger>.freeze, ["
|
151
|
+
s.add_dependency(%q<semantic_logger>.freeze, ["!= 4.16.0"])
|
152
152
|
s.add_dependency(%q<benchmark-ips>.freeze, [">= 0"])
|
153
153
|
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
154
154
|
s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
|
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: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dwyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -118,16 +118,16 @@ dependencies:
|
|
118
118
|
name: semantic_logger
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - "!="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: 4.16.0
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - "!="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: 4.16.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: benchmark-ips
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|