From 35f549b58c4a5f68be08457d15e7023c55b8c0ec Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 1 Feb 2025 12:47:28 +1300 Subject: [PATCH] Modernize code. --- .github/workflows/documentation-coverage.yaml | 2 +- .github/workflows/documentation.yaml | 2 +- .github/workflows/test-coverage.yaml | 4 ++-- .github/workflows/test-external.yaml | 1 + .github/workflows/test.yaml | 2 +- lib/protocol/http2/priority_update_frame.rb | 2 +- lib/traces/provider/protocol/http2/framer.rb | 2 +- license.md | 3 ++- protocol-http2.gemspec | 2 +- test/protocol/http2/priority_update_frame.rb | 3 ++- 10 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/documentation-coverage.yaml b/.github/workflows/documentation-coverage.yaml index b3bac9a..8d801c5 100644 --- a/.github/workflows/documentation-coverage.yaml +++ b/.github/workflows/documentation-coverage.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.3" + ruby-version: "3.4" bundler-cache: true - name: Validate coverage diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index f5f553a..e47c6b3 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -29,7 +29,7 @@ jobs: - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.3" + ruby-version: "3.4" bundler-cache: true - name: Installing packages diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 50e9293..e6dc5c3 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -21,7 +21,7 @@ jobs: - macos ruby: - - "3.3" + - "3.4" steps: - uses: actions/checkout@v4 @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.3" + ruby-version: "3.4" bundler-cache: true - uses: actions/download-artifact@v4 diff --git a/.github/workflows/test-external.yaml b/.github/workflows/test-external.yaml index 21898f5..c9cc200 100644 --- a/.github/workflows/test-external.yaml +++ b/.github/workflows/test-external.yaml @@ -23,6 +23,7 @@ jobs: - "3.1" - "3.2" - "3.3" + - "3.4" steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index acb0580..5d597fa 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,7 +7,6 @@ permissions: env: CONSOLE_OUTPUT: XTerm - TRACES_BACKEND: traces/backend/test jobs: test: @@ -25,6 +24,7 @@ jobs: - "3.1" - "3.2" - "3.3" + - "3.4" experimental: [false] diff --git a/lib/protocol/http2/priority_update_frame.rb b/lib/protocol/http2/priority_update_frame.rb index 23395f9..49436ae 100644 --- a/lib/protocol/http2/priority_update_frame.rb +++ b/lib/protocol/http2/priority_update_frame.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2019-2024, by Samuel Williams. +# Copyright, 2024-2025, by Samuel Williams. require_relative "frame" require_relative "padded" diff --git a/lib/traces/provider/protocol/http2/framer.rb b/lib/traces/provider/protocol/http2/framer.rb index 0ccd667..fac61ea 100644 --- a/lib/traces/provider/protocol/http2/framer.rb +++ b/lib/traces/provider/protocol/http2/framer.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2024, by Samuel Williams. +# Copyright, 2024-2025, by Samuel Williams. require "traces/provider" require_relative "../../../../protocol/http2/framer" diff --git a/license.md b/license.md index de57852..a8fc640 100644 --- a/license.md +++ b/license.md @@ -1,9 +1,10 @@ # MIT License -Copyright, 2019-2024, by Samuel Williams. +Copyright, 2019-2025, by Samuel Williams. Copyright, 2019, by Yuta Iwama. Copyright, 2020, by Olle Jonsson. Copyright, 2023, by Marco Concetto Rudilosso. +Copyright, 2024, by Adam Petro. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/protocol-http2.gemspec b/protocol-http2.gemspec index 8bd64d7..ca801c2 100644 --- a/protocol-http2.gemspec +++ b/protocol-http2.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.version = Protocol::HTTP2::VERSION spec.summary = "A low level implementation of the HTTP/2 protocol." - spec.authors = ["Samuel Williams", "Yuta Iwama", "Marco Concetto Rudilosso", "Olle Jonsson"] + spec.authors = ["Samuel Williams", "Yuta Iwama", "Adam Petro", "Marco Concetto Rudilosso", "Olle Jonsson"] spec.license = "MIT" spec.cert_chain = ["release.cert"] diff --git a/test/protocol/http2/priority_update_frame.rb b/test/protocol/http2/priority_update_frame.rb index d797e17..0937c9a 100644 --- a/test/protocol/http2/priority_update_frame.rb +++ b/test/protocol/http2/priority_update_frame.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true + # Released under the MIT License. -# Copyright, 2019-2024, by Samuel Williams. +# Copyright, 2024-2025, by Samuel Williams. require "protocol/http2/priority_update_frame"