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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cc77b24b0cabb61c5ffb820116e8cf1a5122ceb4fae6e0d56245be4ab165eb9
4
- data.tar.gz: 11e541dfe23555733292de53b1d3193291b81dd412cea70e6126b0c042f52f12
3
+ metadata.gz: bc28dd551eb4ba62f97902ae49cfa8f474c7a2883a8dce5ea43605d661420407
4
+ data.tar.gz: f2bba00e271a6947d0394453f21964d4d849f22004747a434efa58f3a97d6f09
5
5
  SHA512:
6
- metadata.gz: 795e04559f5dab867e30ba1ce58a622c4c651b7214a1dcfadde0d8fcac1825c88699b019fc36a1a88cd56a94dc89fb9564d773262b4a0e4d07247c5bc60a1cd4
7
- data.tar.gz: 2e4718e509231db718a65e18d766a7d481b72e344c9d73d766a17fbe91619a30694799b622a0fdbc419f440c93a449abb1fdc00dfb58ea75c0c5387f190df23e
6
+ metadata.gz: d9b2e0a3ce0aaa1812677c06744272f2ac52a92687420c10942f271261be1b9c7a4de64efc8e98ed2537df1597c00a2a1f359408c19114d64b3ba5838aeab917
7
+ data.tar.gz: 22892c02a6570108400edc76af207e233125e4ec85df3d895db2be90c86e9dba7840a9ea4f8e46c2868e9ba6b1c642115677f47cb90db928be40e354a74d1e13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.8.2 - 2024-09-03
4
+
5
+ - Forbid bad semantic_logger version (#198)
6
+
7
+ ## 1.8.1 - 2024-09-03
8
+
9
+ - Fix SSE reconnection bug (#197)
10
+
3
11
  ## 1.8.0 - 2024-08-22
4
12
 
5
13
  - Load config from belt and failover to suspenders (#195)
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ gem 'uuid'
9
9
 
10
10
  gem 'activesupport', '>= 4'
11
11
 
12
- gem 'semantic_logger', require: "semantic_logger/sync"
12
+ gem 'semantic_logger', '!= 4.16.0', require: "semantic_logger/sync"
13
13
 
14
14
  group :development do
15
15
  gem 'benchmark-ips'
data/Gemfile.lock CHANGED
@@ -169,7 +169,7 @@ DEPENDENCIES
169
169
  minitest-focus
170
170
  minitest-reporters
171
171
  rdoc
172
- semantic_logger
172
+ semantic_logger (!= 4.16.0)
173
173
  simplecov
174
174
  timecop
175
175
  uuid
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
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
- super(klass, :warn)
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
@@ -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.0 ruby lib
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.0"
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-08-22"
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, [">= 0"])
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, [">= 0"])
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.0
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-08-22 00:00:00.000000000 Z
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: '0'
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: '0'
130
+ version: 4.16.0
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: benchmark-ips
133
133
  requirement: !ruby/object:Gem::Requirement