From e74f0a1e0a36248b715801b3ac19eda4393a75db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 7 Aug 2025 17:09:19 +0200 Subject: [PATCH] chore: change registration name to unleash-ruby-sdk --- bin/unleash-client | 2 +- lib/unleash/client.rb | 2 +- lib/unleash/configuration.rb | 2 +- spec/unleash/client_spec.rb | 22 +++++++++++----------- spec/unleash/configuration_spec.rb | 2 +- spec/unleash/metrics_reporter_spec.rb | 2 +- unleash-client.gemspec | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bin/unleash-client b/bin/unleash-client index cda27fed..71085779 100755 --- a/bin/unleash-client +++ b/bin/unleash-client @@ -77,7 +77,7 @@ log_level = \ @unleash = Unleash::Client.new( url: options[:url], - app_name: 'unleash-client-ruby-cli', + app_name: 'unleash-ruby-sdk-cli', disable_metrics: options[:metrics], custom_http_headers: options[:custom_http_headers], log_level: log_level diff --git a/lib/unleash/client.rb b/lib/unleash/client.rb index 9538a86c..d792ea88 100644 --- a/lib/unleash/client.rb +++ b/lib/unleash/client.rb @@ -117,7 +117,7 @@ def info 'appName': Unleash.configuration.app_name, 'instanceId': Unleash.configuration.instance_id, 'connectionId': Unleash.configuration.connection_id, - 'sdkVersion': "unleash-client-ruby:" + Unleash::VERSION, + 'sdkVersion': "unleash-ruby-sdk:" + Unleash::VERSION, 'strategies': Unleash.strategies.known_strategies, 'started': Time.now.iso8601(Unleash::TIME_RESOLUTION), 'interval': Unleash.configuration.metrics_interval_in_millis, diff --git a/lib/unleash/configuration.rb b/lib/unleash/configuration.rb index 7a32ad7f..986de025 100644 --- a/lib/unleash/configuration.rb +++ b/lib/unleash/configuration.rb @@ -57,7 +57,7 @@ def http_headers 'UNLEASH-INSTANCEID' => self.instance_id, 'UNLEASH-APPNAME' => self.app_name, 'Unleash-Client-Spec' => CLIENT_SPECIFICATION_VERSION, - 'UNLEASH-SDK' => "unleash-client-ruby:#{Unleash::VERSION}" + 'UNLEASH-SDK' => "unleash-ruby-sdk:#{Unleash::VERSION}" }.merge!(generate_custom_http_headers) headers['UNLEASH-CONNECTION-ID'] = @connection_id headers diff --git a/spec/unleash/client_spec.rb b/spec/unleash/client_spec.rb index 93292a1a..29eb42d2 100644 --- a/spec/unleash/client_spec.rb +++ b/spec/unleash/client_spec.rb @@ -17,7 +17,7 @@ 'Content-Type' => 'application/json', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123' } ) @@ -29,7 +29,7 @@ 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type' => 'application/json', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'Unleash-Interval' => '60' } ) @@ -56,7 +56,7 @@ 'Unleash-Instanceid' => 'rspec/test', 'Unleash-Connection-Id' => fixed_uuid, 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123', 'Unleash-Interval' => '15' } @@ -136,7 +136,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123' } ) @@ -178,7 +178,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123', 'Unleash-Interval' => '15' } @@ -278,7 +278,7 @@ 'Content-Type' => 'application/json', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123' } ) @@ -293,7 +293,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123', 'Unleash-Interval' => '15' } @@ -329,7 +329,7 @@ 'Content-Type' => 'application/json', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123' } ) @@ -354,7 +354,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123', 'Unleash-Interval' => '15' } @@ -634,7 +634,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123' } ) @@ -649,7 +649,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'X-Api-Key' => '123', 'Unleash-Interval' => '15' } diff --git a/spec/unleash/configuration_spec.rb b/spec/unleash/configuration_spec.rb index e8dc83d3..8aed1d68 100644 --- a/spec/unleash/configuration_spec.rb +++ b/spec/unleash/configuration_spec.rb @@ -152,7 +152,7 @@ 'UNLEASH-APPNAME' => 'test-app', 'UNLEASH-INSTANCEID' => config.instance_id, 'UNLEASH-CONNECTION-ID' => fixed_uuid, - 'UNLEASH-SDK' => "unleash-client-ruby:#{Unleash::VERSION}", + 'UNLEASH-SDK' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'Unleash-Client-Spec' => '5.2.0', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]" } diff --git a/spec/unleash/metrics_reporter_spec.rb b/spec/unleash/metrics_reporter_spec.rb index 0c6e01d4..2f99749e 100644 --- a/spec/unleash/metrics_reporter_spec.rb +++ b/spec/unleash/metrics_reporter_spec.rb @@ -71,7 +71,7 @@ 'Unleash-Appname' => 'my-test-app', 'Unleash-Instanceid' => 'rspec/test', 'User-Agent' => "UnleashClientRuby/#{Unleash::VERSION} #{RUBY_ENGINE}/#{RUBY_VERSION} [#{RUBY_PLATFORM}]", - 'Unleash-Sdk' => "unleash-client-ruby:#{Unleash::VERSION}", + 'Unleash-Sdk' => "unleash-ruby-sdk:#{Unleash::VERSION}", 'Unleash-Interval' => "60" } ) diff --git a/unleash-client.gemspec b/unleash-client.gemspec index cb23ebed..4777f271 100644 --- a/unleash-client.gemspec +++ b/unleash-client.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |spec| spec.description = "This is the ruby client for Unleash, a powerful feature toggle system that gives you a great overview over all feature toggles across all your applications and services." - spec.homepage = "https://github.com/unleash/unleash-client-ruby" + spec.homepage = "https://github.com/unleash/unleash-ruby-sdk" spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/})