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 +4 -4
- data/.github/workflows/main.yml +13 -12
- data/Gemfile +1 -0
- data/example-project/Gemfile +1 -1
- data/example-project/Gemfile.lock +2 -2
- data/lib/logtail/log_devices/http.rb +4 -4
- data/lib/logtail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6576745c59d3a1051e33d2c80c72cb085657d1ac5d4ffdc3eddd25d453eb7ce0
|
4
|
+
data.tar.gz: dabb146bd9c0904bed8213745d027fc87844314fe792c591eacb917c6be66cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53ca720088be23dc6896413709c24d669afb1bf62297b6366467b4a36e912c153403ad8a38ab0edf134932c84893bc5bd5a02c76bc2b7a52e468b731474c89ed
|
7
|
+
data.tar.gz: ed3d8f6af7c41eee437253d6b510d76dd521c3b747791a7ef5049b59b47924da838e1e05395c4c8186e809119de4d6edaf0d0debde18652716f273933f9e97b7
|
data/.github/workflows/main.yml
CHANGED
@@ -15,18 +15,19 @@ jobs:
|
|
15
15
|
|
16
16
|
matrix:
|
17
17
|
ruby-version:
|
18
|
-
- 3
|
19
|
-
- 3.
|
20
|
-
- 3.
|
21
|
-
- 2
|
22
|
-
-
|
23
|
-
-
|
24
|
-
- 2.
|
25
|
-
- 2.
|
26
|
-
-
|
27
|
-
- jruby-9.
|
28
|
-
-
|
29
|
-
- truffleruby-
|
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
data/example-project/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
gem "logtail", "~> 0.1.
|
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.
|
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.
|
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 = "
|
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[:
|
73
|
-
options[:ingesting_port] ||= options[:logtail_port]
|
74
|
-
options[:ingesting_scheme] ||= options[:logtail_scheme]
|
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
|
data/lib/logtail/version.rb
CHANGED