logtail 0.1.14 → 0.1.15

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: 6cb9ce58d42f8eaae77256309904b1e1f1d34974ffb2baf9d08b3ae8f9bc9add
4
- data.tar.gz: cee900d3422c3d51c4b5915b54281c7b4522e1ae49c14e72820539080b013870
3
+ metadata.gz: 6576745c59d3a1051e33d2c80c72cb085657d1ac5d4ffdc3eddd25d453eb7ce0
4
+ data.tar.gz: dabb146bd9c0904bed8213745d027fc87844314fe792c591eacb917c6be66cd9
5
5
  SHA512:
6
- metadata.gz: 8d7fa9ab0b8ed9b7cb23d5a940485bc523037c31134f68a6a0e9adf91190ef22284008e650b95406d1bb76834744d889569dab81943b3af0ebc69fdda73519a7
7
- data.tar.gz: 20d6428149c7e2f0687cc0c0af867f16ff1f495c7622b49afef8e661f83900c31c46a00b322e9f15510202f877d70d17196c0163efbfd460b03a2fa8a881e4f5
6
+ metadata.gz: 53ca720088be23dc6896413709c24d669afb1bf62297b6366467b4a36e912c153403ad8a38ab0edf134932c84893bc5bd5a02c76bc2b7a52e468b731474c89ed
7
+ data.tar.gz: ed3d8f6af7c41eee437253d6b510d76dd521c3b747791a7ef5049b59b47924da838e1e05395c4c8186e809119de4d6edaf0d0debde18652716f273933f9e97b7
@@ -15,18 +15,19 @@ jobs:
15
15
 
16
16
  matrix:
17
17
  ruby-version:
18
- - 3.2
19
- - 3.1
20
- - 3.0
21
- - 2.7
22
- - 2.6
23
- - 2.5
24
- - 2.4
25
- - 2.3
26
- - jruby-9.4.3.0
27
- - jruby-9.2.14.0
28
- - truffleruby-23.0.0
29
- - truffleruby-22.1.0
18
+ - "3"
19
+ - "3.4"
20
+ - "3.3"
21
+ - "3.2"
22
+ - "3.1"
23
+ - "3.0"
24
+ - "2.7"
25
+ - "2.6"
26
+ - "2.5"
27
+ - "jruby-9.4.3.0"
28
+ - "jruby-9.2.14.0"
29
+ - "truffleruby-23.0.0"
30
+ - "truffleruby-22.1.0"
30
31
 
31
32
  steps:
32
33
  - uses: actions/checkout@v2
data/Gemfile CHANGED
@@ -8,3 +8,4 @@ gemspec
8
8
  gem "rake", "~> 13.0"
9
9
 
10
10
  gem "rspec", "~> 3.0"
11
+ gem "base64" if RUBY_VERSION >= "3.4.0"
@@ -1,2 +1,2 @@
1
1
  source 'https://rubygems.org'
2
- gem "logtail", "~> 0.1.14"
2
+ gem "logtail", "~> 0.1.15"
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- logtail (0.1.14)
4
+ logtail (0.1.15)
5
5
  msgpack (~> 1.0)
6
6
  msgpack (1.7.2)
7
7
 
@@ -9,7 +9,7 @@ PLATFORMS
9
9
  ruby
10
10
 
11
11
  DEPENDENCIES
12
- logtail (~> 0.1.14)
12
+ logtail (~> 0.1.15)
13
13
 
14
14
  BUNDLED WITH
15
15
  2.1.4
@@ -21,7 +21,7 @@ module Logtail
21
21
  DEFAULT_INGESTING_PORT = 443
22
22
  DEFAULT_INGESTING_SCHEME = "https".freeze
23
23
  CONTENT_TYPE = "application/msgpack".freeze
24
- USER_AGENT = "Better Stack Telemetry for Ruby/#{Logtail::VERSION} (HTTP)".freeze
24
+ USER_AGENT = "Logtail Ruby/#{Logtail::VERSION} (HTTP)".freeze
25
25
 
26
26
  # Instantiates a new HTTP log device that can be passed to {Logtail::Logger#initialize}.
27
27
  #
@@ -69,9 +69,9 @@ module Logtail
69
69
  # Logtail::Logger.new(http_log_device)
70
70
  def initialize(source_token, options = {})
71
71
  # Handle backward-compatibility of argument names
72
- options[:ingesting_host] ||= options[:ingesting_host] if options[:ingesting_host].present?
73
- options[:ingesting_port] ||= options[:logtail_port] if options[:logtail_port].present?
74
- options[:ingesting_scheme] ||= options[:logtail_scheme] if options[:logtail_scheme].present?
72
+ options[:ingesting_host] ||= options[:logtail_host]
73
+ options[:ingesting_port] ||= options[:logtail_port]
74
+ options[:ingesting_scheme] ||= options[:logtail_scheme]
75
75
 
76
76
  @source_token = source_token || raise(ArgumentError.new("The source_token parameter cannot be blank"))
77
77
  @ingesting_host = options[:ingesting_host] || ENV['INGESTING_HOST'] || ENV['LOGTAIL_HOST'] || DEFAULT_INGESTING_HOST
@@ -1,3 +1,3 @@
1
1
  module Logtail
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Better Stack