diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8d03d3..1ee1a28 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,18 +15,19 @@ jobs: matrix: ruby-version: - - 3.2 - - 3.1 - - 3.0 - - 2.7 - - 2.6 - - 2.5 - - 2.4 - - 2.3 - - jruby-9.4.3.0 - - jruby-9.2.14.0 - - truffleruby-23.0.0 - - truffleruby-22.1.0 + - "3" + - "3.4" + - "3.3" + - "3.2" + - "3.1" + - "3.0" + - "2.7" + - "2.6" + - "2.5" + - "jruby-9.4.3.0" + - "jruby-9.2.14.0" + - "truffleruby-23.0.0" + - "truffleruby-22.1.0" steps: - uses: actions/checkout@v2 diff --git a/Gemfile b/Gemfile index 20cbc73..0613134 100644 --- a/Gemfile +++ b/Gemfile @@ -8,3 +8,4 @@ gemspec gem "rake", "~> 13.0" gem "rspec", "~> 3.0" +gem "base64" if RUBY_VERSION >= "3.4.0" diff --git a/example-project/Gemfile b/example-project/Gemfile index 6c31c9d..df0a57d 100644 --- a/example-project/Gemfile +++ b/example-project/Gemfile @@ -1,2 +1,2 @@ source 'https://rubygems.org' -gem "logtail", "~> 0.1.14" +gem "logtail", "~> 0.1.15" diff --git a/example-project/Gemfile.lock b/example-project/Gemfile.lock index 4bfc915..00bfe58 100644 --- a/example-project/Gemfile.lock +++ b/example-project/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - logtail (0.1.14) + logtail (0.1.15) msgpack (~> 1.0) msgpack (1.7.2) @@ -9,7 +9,7 @@ PLATFORMS ruby DEPENDENCIES - logtail (~> 0.1.14) + logtail (~> 0.1.15) BUNDLED WITH 2.1.4 diff --git a/lib/logtail/log_devices/http.rb b/lib/logtail/log_devices/http.rb index 453bcff..1d35efd 100755 --- a/lib/logtail/log_devices/http.rb +++ b/lib/logtail/log_devices/http.rb @@ -21,7 +21,7 @@ class HTTP DEFAULT_INGESTING_PORT = 443 DEFAULT_INGESTING_SCHEME = "https".freeze CONTENT_TYPE = "application/msgpack".freeze - USER_AGENT = "Better Stack Telemetry for Ruby/#{Logtail::VERSION} (HTTP)".freeze + USER_AGENT = "Logtail Ruby/#{Logtail::VERSION} (HTTP)".freeze # Instantiates a new HTTP log device that can be passed to {Logtail::Logger#initialize}. # @@ -69,9 +69,9 @@ class HTTP # Logtail::Logger.new(http_log_device) def initialize(source_token, options = {}) # Handle backward-compatibility of argument names - options[:ingesting_host] ||= options[:ingesting_host] if options[:ingesting_host].present? - options[:ingesting_port] ||= options[:logtail_port] if options[:logtail_port].present? - options[:ingesting_scheme] ||= options[:logtail_scheme] if options[:logtail_scheme].present? + options[:ingesting_host] ||= options[:logtail_host] + options[:ingesting_port] ||= options[:logtail_port] + options[:ingesting_scheme] ||= options[:logtail_scheme] @source_token = source_token || raise(ArgumentError.new("The source_token parameter cannot be blank")) @ingesting_host = options[:ingesting_host] || ENV['INGESTING_HOST'] || ENV['LOGTAIL_HOST'] || DEFAULT_INGESTING_HOST diff --git a/lib/logtail/version.rb b/lib/logtail/version.rb index c2f9926..aeb497a 100755 --- a/lib/logtail/version.rb +++ b/lib/logtail/version.rb @@ -1,3 +1,3 @@ module Logtail - VERSION = "0.1.14" + VERSION = "0.1.15" end