Compare commits
3 Commits
v0.2.2
...
d4933fe5e4
Author | SHA1 | Date | |
---|---|---|---|
d4933fe5e4
|
|||
5b4822e4f8
|
|||
629ea6eaee
|
@ -38,11 +38,11 @@ jobs:
|
|||||||
ruby-version: '3.4'
|
ruby-version: '3.4'
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
|
|
||||||
- run: bundle exec rspec
|
- run: bundle exec rake
|
||||||
|
|
||||||
|
|
||||||
release-image:
|
release-image:
|
||||||
needs: test
|
needs: test
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
@ -10,7 +10,7 @@ class Sensitive
|
|||||||
end
|
end
|
||||||
|
|
||||||
def mask(v)
|
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
|
end
|
||||||
|
|
||||||
def unwrap
|
def unwrap
|
||||||
|
Reference in New Issue
Block a user