diff --git a/.github/workflows/rspec_and_release.yml b/.github/workflows/rspec_and_release.yml index db49cea..64e1e18 100644 --- a/.github/workflows/rspec_and_release.yml +++ b/.github/workflows/rspec_and_release.yml @@ -10,10 +10,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Ruby 2.7.4 + - name: Set up Ruby 3.3.4 uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7.4 + ruby-version: 3.3.4 - name: Test with Rspec run: | gem install bundler @@ -26,10 +26,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Ruby 2.7.4 + - name: Set up Ruby 3.3.4 uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7.4 + ruby-version: 3.3.4 - name: Build with bundler run: | gem install bundler diff --git a/.ruby-version b/.ruby-version index 30c5992..6d5369b 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.7.4 +ruby-3.3.4 diff --git a/Gemfile b/Gemfile index cd5bb6f..b121d23 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ # frozen_string_literal: true source 'https://rubygems.org' -ruby '2.7.4' +ruby '3.3.4' gem 'dogapi' gem 'redis' diff --git a/Gemfile.lock b/Gemfile.lock index a59e03e..b574c5f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,13 +2,23 @@ GEM remote: https://rubygems.org/ specs: coderay (1.1.3) - connection_pool (2.3.0) - diff-lcs (1.5.0) + connection_pool (2.4.1) + diff-lcs (1.5.1) dogapi (1.45.0) multi_json - ffi (1.15.5) + ffi (1.17.0) + ffi (1.17.0-aarch64-linux-gnu) + ffi (1.17.0-aarch64-linux-musl) + ffi (1.17.0-arm-linux-gnu) + ffi (1.17.0-arm-linux-musl) + ffi (1.17.0-arm64-darwin) + ffi (1.17.0-x86-linux-gnu) + ffi (1.17.0-x86-linux-musl) + ffi (1.17.0-x86_64-darwin) + ffi (1.17.0-x86_64-linux-gnu) + ffi (1.17.0-x86_64-linux-musl) formatador (1.1.0) - guard (2.18.0) + guard (2.18.1) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) lumberjack (>= 1.0.12, < 2.0) @@ -22,11 +32,11 @@ GEM guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) - listen (3.8.0) + listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - lumberjack (1.2.8) - method_source (1.0.0) + lumberjack (1.2.10) + method_source (1.1.0) multi_json (1.15.0) nenv (0.3.0) notiffany (0.1.3) @@ -36,31 +46,41 @@ GEM coderay (~> 1.1) method_source (~> 1.0) rb-fsevent (0.11.2) - rb-inotify (0.10.1) + rb-inotify (0.11.1) ffi (~> 1.0) - redis (5.0.6) - redis-client (>= 0.9.0) - redis-client (0.12.1) + redis (5.2.0) + redis-client (>= 0.22.0) + redis-client (0.22.2) connection_pool - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.1) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.2) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.1) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.3) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.1) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) shellany (0.0.1) - thor (1.2.1) - timecop (0.9.6) + thor (1.3.1) + timecop (0.9.10) PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin ruby + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl DEPENDENCIES dogapi @@ -71,7 +91,7 @@ DEPENDENCIES timecop RUBY VERSION - ruby 2.7.4p191 + ruby 3.3.4p94 BUNDLED WITH - 2.1.4 + 2.5.14 diff --git a/README.md b/README.md index a945d3f..e01e557 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ and submits slowlog entry metrics to a Datadog account. ## Usage -This lambda function was built and tested with the `ruby-2.7` runtime. +This lambda function was built and tested with the `ruby-3.3` runtime. Deploy the "Full zip distribution" from the [releases pages](https://github.com/scribd/elasticache-slowlog-to-datadog/releases) to AWS lambda @@ -57,7 +57,7 @@ REDIS_HOST | string | FQDN or URI of the elasticache redis endpoint To use *elasticache-slowlog-to-datadog* you need: -- An AWS account with an Elasticache instance running the `redis5.0` engine. +- An AWS account with an Elasticache instance running the `redis5.0+` engine. - A Datadog account # Development