Skip to content

Commit

Permalink
Modernize code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 19, 2025
1 parent ce498e5 commit 2d8b045
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- macos

ruby:
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

experimental: [false]

Expand Down
9 changes: 9 additions & 0 deletions examples/simple/log.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2025, by Samuel Williams.

require "console"

Console.info(self, "Hello, world!", key: "value")
2 changes: 1 addition & 1 deletion lib/console/interface.rb
Original file line number Diff line number Diff line change
@@ -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_relative "logger"

Expand Down
2 changes: 1 addition & 1 deletion lib/console/output/failure.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2021-2024, by Samuel Williams.
# Copyright, 2024-2025, by Samuel Williams.

require_relative "wrapper"
require_relative "../event/failure"
Expand Down
2 changes: 1 addition & 1 deletion lib/console/output/serialized.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2024, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

require_relative "../format"
require "time"
Expand Down
2 changes: 1 addition & 1 deletion license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright, 2019-2024, by Samuel Williams.
Copyright, 2019-2025, by Samuel Williams.
Copyright, 2019-2021, by Bryan Powell.
Copyright, 2019, by Cyril Roelandt.
Copyright, 2020, by Olle Jonsson.
Expand Down
2 changes: 1 addition & 1 deletion test/console/output/failure.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2021-2024, by Samuel Williams.
# Copyright, 2024-2025, by Samuel Williams.

require "console/logger"
require "console/capture"
Expand Down

0 comments on commit 2d8b045

Please sign in to comment.