Skip to content

Commit be8c8b1

Browse files
committed
Modernize gem.
1 parent ca02f2f commit be8c8b1

53 files changed

Lines changed: 243 additions & 237 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test-coverage.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ jobs:
3434
timeout-minutes: 5
3535
run: bundle exec bake test
3636

37-
- uses: actions/upload-artifact@v3
37+
- uses: actions/upload-artifact@v4
3838
with:
39+
include-hidden-files: true
40+
if-no-files-found: error
3941
name: coverage-${{matrix.os}}-${{matrix.ruby}}
4042
path: .covered.db
4143

@@ -50,7 +52,7 @@ jobs:
5052
ruby-version: "3.3"
5153
bundler-cache: true
5254

53-
- uses: actions/download-artifact@v3
55+
- uses: actions/download-artifact@v4
5456

5557
- name: Validate coverage
5658
timeout-minutes: 5

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ Layout/EmptyLinesAroundModuleBody:
4747

4848
Style/FrozenStringLiteralComment:
4949
Enabled: true
50+
51+
Style/StringLiterals:
52+
Enabled: true
53+
EnforcedStyle: double_quotes

bake/decode/index.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
def initialize(...)
77
super
88

9-
require 'decode/index'
10-
require 'set'
9+
require "decode/index"
10+
require "set"
1111
end
1212

1313
# Process the given source root and report on comment coverage.

decode.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
1010
spec.authors = ["Samuel Williams"]
1111
spec.license = "MIT"
1212

13-
spec.cert_chain = ['release.cert']
14-
spec.signing_key = File.expand_path('~/.gem/release.pem')
13+
spec.cert_chain = ["release.cert"]
14+
spec.signing_key = File.expand_path("~/.gem/release.pem")
1515

1616
spec.homepage = "https://github.com/ioquatix/decode"
1717

@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
"source_code_uri" => "https://github.com/ioquatix/decode.git",
2222
}
2323

24-
spec.files = Dir.glob(['{bake,lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__)
24+
spec.files = Dir.glob(["{bake,lib}/**/*", "*.md"], File::FNM_DOTMATCH, base: __dir__)
2525

2626
spec.required_ruby_version = ">= 3.1"
2727

gems.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
gemspec
99

1010
group :maintenance, optional: true do
11-
gem 'bake-gem'
12-
gem 'bake-modernize'
11+
gem "bake-gem"
12+
gem "bake-modernize"
1313

14-
gem 'bake-github-pages'
15-
gem 'utopia-project'
14+
gem "bake-github-pages"
15+
gem "utopia-project"
1616
end
1717

1818
group :test do
19-
gem 'sus'
20-
gem 'covered'
19+
gem "sus"
20+
gem "covered"
2121
gem "rubocop"
2222

23-
gem 'bake-test'
24-
gem 'bake-test-external'
23+
gem "bake-test"
24+
gem "bake-test-external"
2525

26-
gem 'build-files'
26+
gem "build-files"
2727
end

guides/extract-symbols/extract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Copyright, 2020-2024, by Samuel Williams.
66

77
# This example demonstrates how to extract symbols using the index. An instance of {Decode::Index} is used for loading symbols from source code files. These symbols are available as a flat list and as a trie structure. You can look up specific symbols using a reference using {Decode::Index#lookup}.
8-
require_relative '../../lib/decode/index'
8+
require_relative "../../lib/decode/index"
99

1010
# Firstly, construct the index:
1111
index = Decode::Index.new

lib/decode/comment/attribute.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Released under the MIT License.
44
# Copyright, 2020-2024, by Samuel Williams.
55

6-
require_relative 'tag'
6+
require_relative "tag"
77

88
module Decode
99
module Comment

lib/decode/comment/option.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Released under the MIT License.
44
# Copyright, 2024, by Samuel Williams.
55

6-
require_relative 'parameter'
6+
require_relative "parameter"
77

88
module Decode
99
module Comment

lib/decode/comment/parameter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Released under the MIT License.
44
# Copyright, 2020-2024, by Samuel Williams.
55

6-
require_relative 'tag'
6+
require_relative "tag"
77

88
module Decode
99
module Comment

lib/decode/comment/pragma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Released under the MIT License.
44
# Copyright, 2020-2024, by Samuel Williams.
55

6-
require_relative 'tag'
6+
require_relative "tag"
77

88
module Decode
99
module Comment

0 commit comments

Comments
 (0)