3 Commits

Author SHA1 Message Date
d4933fe5e4 only build container for the main branch
Some checks failed
Gitea Actions Demo / lint (push) Failing after 19s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / release-image (push) Has been skipped
2025-03-11 05:05:14 -05:00
5b4822e4f8 run tests with rake 2025-03-11 05:01:15 -05:00
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
2 changed files with 3 additions and 3 deletions

View File

@ -38,11 +38,11 @@ jobs:
ruby-version: '3.4'
bundler-cache: true
- run: bundle exec rspec
- run: bundle exec rake
release-image:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest

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