Skip to content

Commit 36b5f48

Browse files
committed
Modernize gem.
1 parent 24e3b04 commit 36b5f48

30 files changed

+49
-41
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ root = true
33
[*]
44
indent_style = tab
55
indent_size = 2
6+
7+
[*.{yml,yaml}]
8+
indent_style = space
9+
indent_size = 2

.github/workflows/coverage.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "3.2"
24+
- "3.3"
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- uses: ruby/setup-ruby@v1
2929
with:
3030
ruby-version: ${{matrix.ruby}}
@@ -34,7 +34,7 @@ jobs:
3434
timeout-minutes: 5
3535
run: bundle exec bake test
3636

37-
- uses: actions/upload-artifact@v2
37+
- uses: actions/upload-artifact@v3
3838
with:
3939
name: coverage-${{matrix.os}}-${{matrix.ruby}}
4040
path: .covered.db
@@ -44,10 +44,10 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- uses: ruby/setup-ruby@v1
4949
with:
50-
ruby-version: "3.2"
50+
ruby-version: "3.3"
5151
bundler-cache: true
5252

5353
- uses: actions/download-artifact@v3

.github/workflows/documentation.yaml

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches:
66
- main
77

8-
# Allows you to run this workflow manually from the Actions tab:
9-
workflow_dispatch:
10-
118
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
129
permissions:
1310
contents: read
@@ -28,11 +25,11 @@ jobs:
2825
runs-on: ubuntu-latest
2926

3027
steps:
31-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
3229

3330
- uses: ruby/setup-ruby@v1
3431
with:
35-
ruby-version: "3.2"
32+
ruby-version: "3.3"
3633
bundler-cache: true
3734

3835
- name: Installing packages
@@ -43,7 +40,7 @@ jobs:
4340
run: bundle exec bake utopia:project:static --force no
4441

4542
- name: Upload documentation artifact
46-
uses: actions/upload-pages-artifact@v1
43+
uses: actions/upload-pages-artifact@v2
4744
with:
4845
path: docs
4946

@@ -58,4 +55,4 @@ jobs:
5855
steps:
5956
- name: Deploy to GitHub Pages
6057
id: deployment
61-
uses: actions/deploy-pages@v1
58+
uses: actions/deploy-pages@v3

.github/workflows/test-external.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "3.0"
2423
- "3.1"
2524
- "3.2"
25+
- "3.3"
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- uses: ruby/setup-ruby@v1
3030
with:
3131
ruby-version: ${{matrix.ruby}}

.github/workflows/test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "3.0"
2524
- "3.1"
2625
- "3.2"
26+
- "3.3"
2727

2828
experimental: [false]
2929

@@ -39,7 +39,7 @@ jobs:
3939
experimental: true
4040

4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- uses: ruby/setup-ruby@v1
4444
with:
4545
ruby-version: ${{matrix.ruby}}

benchmark/test.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
# Released under the MIT License.
4+
# Copyright, 2024, by Samuel Williams.
5+
16
ITERATIONS = ENV.fetch("ITERATIONS", 1000).to_i
27
TYPE = ENV.fetch("TYPE", "pos")
38

@@ -14,4 +19,4 @@
1419
end
1520
end
1621
end
17-
end
22+
end

lib/sus/assertions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
require_relative 'output'
77
require_relative 'clock'

lib/sus/be.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2022, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
module Sus
77
class Be

lib/sus/be_within.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2022, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
module Sus
77
class BeWithin

lib/sus/expect.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
module Sus
77
class Expect

lib/sus/have.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
require_relative 'have/all'
77
require_relative 'have/any'

lib/sus/have_duration.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2022, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
module Sus
77
class HaveDuration

lib/sus/it.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
require_relative 'context'
77

lib/sus/output/backtrace.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
module Sus
77
module Output

lib/sus/output/text.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
require_relative 'messages'
77
require_relative 'buffered'

lib/sus/raise_exception.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
module Sus
77
class RaiseException

lib/sus/receive.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
require_relative 'respond_to'
77

lib/sus/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
module Sus
77
VERSION = "0.24.6"

license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright, 2021-2023, by Samuel Williams.
3+
Copyright, 2021-2024, by Samuel Williams.
44
Copyright, 2022, by Brad Schrag.
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ This project uses the [Developer Certificate of Origin](https://developercertifi
5252

5353
### Contributor Covenant
5454

55-
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
55+
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.

sus.gemspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ Gem::Specification.new do |spec|
1616
spec.homepage = "https://github.com/ioquatix/sus"
1717

1818
spec.metadata = {
19+
"documentation_uri" => "https://ioquatix.github.io/sus/",
1920
"funding_uri" => "https://github.com/sponsors/ioquatix/",
21+
"source_code_uri" => "https://github.com/ioquatix/sus.git",
2022
}
2123

2224
spec.files = Dir.glob(['{bin,lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__)
2325

2426
spec.executables = ["sus", "sus-parallel", "sus-tree", "sus-host"]
2527

26-
spec.required_ruby_version = ">= 3.0"
28+
spec.required_ruby_version = ">= 3.1"
2729
end

test/sus/assertions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2022, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
class Nested
77
def initialize(name)

test/sus/be.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
describe Sus::Be do
77
with "true" do

test/sus/be_within.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2022, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
describe Sus::BeWithin do
77
it "can expect number to be within a tolerance" do

test/sus/have.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022-2023, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
User = Struct.new(:name, :age)
77

test/sus/mock.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
class RealImplementation
77
def call

test/sus/output/buffered.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2023, by Samuel Williams.
4+
# Copyright, 2024, by Samuel Williams.
55

66
require 'sus/output/buffered'
77

test/sus/raise_exception.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2021-2023, by Samuel Williams.
4+
# Copyright, 2021-2024, by Samuel Williams.
55

66
class AgeError < StandardError
77
def initialize(age)

test/sus/receive.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
class RealImplementation
77
def call

test/sus/respond_to.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
class Interface
77
def method_with_options(x: 10, y:)

0 commit comments

Comments
 (0)