File tree Expand file tree Collapse file tree 8 files changed +54
-51
lines changed Expand file tree Collapse file tree 8 files changed +54
-51
lines changed Original file line number Diff line number Diff line change @@ -15,47 +15,50 @@ jobs:
1515 fail-fast : false
1616 matrix :
1717 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+ - " 2.4"
28+ - " 2.3"
29+ - " jruby-9.4.3.0"
30+ - " jruby-9.2.14.0"
31+ - " truffleruby-23.0.0"
32+ - " truffleruby-22.1.0"
3033 rack-version :
31- - # default Rack version
34+ - " " # default Rack version
3235
3336 include :
34- - ruby-version : 2.7
35- rack-version : ~>1.2.0
36- - ruby-version : 2.7
37- rack-version : ~>1.2
38- - ruby-version : 2.7
39- rack-version : ~>2.0.0
40- - ruby-version : 2.7
41- rack-version : ~>2.0
42- - ruby-version : 2.7
43- rack-version : ~>3.0
44- - ruby-version : 2.7
45- rack-version : ~>3.0.0
37+ - ruby-version : " 2.7"
38+ rack-version : " ~>1.2.0"
39+ - ruby-version : " 2.7"
40+ rack-version : " ~>1.2"
41+ - ruby-version : " 2.7"
42+ rack-version : " ~>2.0.0"
43+ - ruby-version : " 2.7"
44+ rack-version : " ~>2.0"
45+ - ruby-version : " 2.7"
46+ rack-version : " ~>3.0"
47+ - ruby-version : " 2.7"
48+ rack-version : " ~>3.0.0"
4649
47- - ruby-version : 3.2
48- rack-version : ~>1.2.0
49- - ruby-version : 3.2
50- rack-version : ~>1.2
51- - ruby-version : 3.2
52- rack-version : ~>2.0.0
53- - ruby-version : 3.2
54- rack-version : ~>2.0
55- - ruby-version : 3.2
56- rack-version : ~>3.0
57- - ruby-version : 3.2
58- rack-version : ~>3.0.0
50+ - ruby-version : " 3.2"
51+ rack-version : " ~>1.2.0"
52+ - ruby-version : " 3.2"
53+ rack-version : " ~>1.2"
54+ - ruby-version : " 3.2"
55+ rack-version : " ~>2.0.0"
56+ - ruby-version : " 3.2"
57+ rack-version : " ~>2.0"
58+ - ruby-version : " 3.2"
59+ rack-version : " ~>3.0"
60+ - ruby-version : " 3.2"
61+ rack-version : " ~>3.0.0"
5962
6063 steps :
6164 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change 11source "https://rubygems.org"
22
33gemspec
4+
5+ gem "base64" if RUBY_VERSION >= "3.4.0"
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ gem "rack", "~> 3.0"
44
55gem "rackup" , "~> 2.1"
66
7- gem "logtail-rack" , "~> 0.2.5 "
7+ gem "logtail-rack" , "~> 0.2.6 "
Original file line number Diff line number Diff line change 11GEM
22 remote: https://rubygems.org/
33 specs:
4- logtail (0.1.13 )
4+ logtail (0.1.15 )
55 msgpack (~> 1.0 )
6- logtail-rack (0.2.5 )
6+ logtail-rack (0.2.6 )
77 logtail (~> 0.1 )
88 rack (>= 1.2 , < 4.0 )
9- msgpack (1.7.2 )
10- rack (3.0.0 )
11- rackup (2.1.0 )
9+ msgpack (1.8.0 )
10+ rack (3.1.9 )
11+ rackup (2.2.1 )
1212 rack (>= 3 )
13- webrick (~> 1.8 )
14- webrick (1.8.1 )
1513
1614PLATFORMS
1715 arm64-darwin-22
1816
1917DEPENDENCIES
20- logtail-rack (~> 0.2.5 )
18+ logtail-rack (~> 0.2.6 )
2119 rack (~> 3.0 )
2220 rackup (~> 2.1 )
2321
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ This will install all dependencies listed in the `Gemfile.lock` file.
1515Then replace ` <source_token> ` and ` <ingesting_host> ` in ` config.ru ` with your actual source token and ingesting host which you can find by going to [ Better Stack Telemetry] ( https://teleemetry.betterstack.com/dashboard ) -> Source -> Configure.
1616
1717``` ruby
18- http_io_device = Logtail ::LogDevices ::HTTP .new (" <source_token>" , logtail_host : " <ingesting_host>" )
18+ http_io_device = Logtail ::LogDevices ::HTTP .new (" <source_token>" , ingesting_host : " <ingesting_host>" )
1919```
2020
2121## Run the example project
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use Logtail::Integrations::Rack::HTTPEvents
77use Logtail ::Integrations ::Rack ::ErrorEvent
88
99# HTTP IO device sends logs to Better Stack, replace <source_token> and <ingesting_host> with your real source token and ingesting host
10- http_io_device = Logtail ::LogDevices ::HTTP . new ( "<source_token>" , logtail_host : "<ingesting_host>" )
10+ http_io_device = Logtail ::LogDevices ::HTTP . new ( "<source_token>" , ingesting_host : "<ingesting_host>" )
1111
1212# STDOUT IO device sends logs to console output
1313stdout_io_device = STDOUT
Original file line number Diff line number Diff line change 11module Logtail
22 module Integrations
33 module Rack
4- VERSION = "0.2.5 "
4+ VERSION = "0.2.6 "
55 end
66 end
77end
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ require "logtail-rack/version"
55Gem ::Specification . new do |spec |
66 spec . name = "logtail-rack"
77 spec . version = Logtail ::Integrations ::Rack ::VERSION
8- spec . authors = [ "Logtail " ]
9- spec . email = [ "hi@logtail .com" ]
8+ spec . authors = [ "Better Stack " ]
9+ spec . email = [ "hello@betterstack .com" ]
1010
1111 spec . summary = %q{Logtail integration for Rack}
1212 spec . homepage = "https://github.com/logtail/logtail-ruby-rack"
You can’t perform that action at this time.
0 commit comments