2 Commits

Author SHA1 Message Date
629ea6eaee fix frozen string literal warning
Some checks failed
Gitea Actions Demo / lint (push) Failing after 28s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / release-image (push) Has been skipped
2025-03-11 04:54:04 -05:00
45862025cf add Rakefile 2025-03-11 04:53:38 -05:00
3 changed files with 4 additions and 1 deletions

View File

@ -22,4 +22,5 @@ group :development do
gem "rspec"
gem "standard"
gem "minitest"
gem "rake"
end

View File

@ -48,6 +48,7 @@ GEM
rackup (2.2.1)
rack (>= 3)
rainbow (3.1.1)
rake (13.2.1)
rbs (3.8.1)
logger
regexp_parser (2.10.0)
@ -135,6 +136,7 @@ DEPENDENCIES
puma
rack-test
rackup
rake
rbs
rspec
rubocop

View File

@ -10,7 +10,7 @@ class Sensitive
end
def mask(v)
"".concat(v[0, @head], @ch * (v.length - (@head + @tail)), v[-@tail, @tail])
String.new.concat(v[0, @head], @ch * (v.length - (@head + @tail)), v[-@tail, @tail])
end
def unwrap