Compare commits
5 Commits
e72f4fb8fd
...
64941e86f0
Author | SHA1 | Date | |
---|---|---|---|
64941e86f0
|
|||
38f92507f6
|
|||
70cd5d6247
|
|||
45862025cf
|
|||
9a19b6bae0
|
@ -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
|
||||||
|
1
Gemfile
1
Gemfile
@ -22,4 +22,5 @@ group :development do
|
|||||||
gem "rspec"
|
gem "rspec"
|
||||||
gem "standard"
|
gem "standard"
|
||||||
gem "minitest"
|
gem "minitest"
|
||||||
|
gem "rake"
|
||||||
end
|
end
|
||||||
|
@ -48,6 +48,7 @@ GEM
|
|||||||
rackup (2.2.1)
|
rackup (2.2.1)
|
||||||
rack (>= 3)
|
rack (>= 3)
|
||||||
rainbow (3.1.1)
|
rainbow (3.1.1)
|
||||||
|
rake (13.2.1)
|
||||||
rbs (3.8.1)
|
rbs (3.8.1)
|
||||||
logger
|
logger
|
||||||
regexp_parser (2.10.0)
|
regexp_parser (2.10.0)
|
||||||
@ -135,6 +136,7 @@ DEPENDENCIES
|
|||||||
puma
|
puma
|
||||||
rack-test
|
rack-test
|
||||||
rackup
|
rackup
|
||||||
|
rake
|
||||||
rbs
|
rbs
|
||||||
rspec
|
rspec
|
||||||
rubocop
|
rubocop
|
||||||
|
11
Rakefile
Normal file
11
Rakefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
begin
|
||||||
|
require "rspec/core/rake_task"
|
||||||
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
|
||||||
|
require "minitest/test_task"
|
||||||
|
|
||||||
|
Minitest::TestTask.create
|
||||||
|
|
||||||
|
task default: [:test, :spec]
|
3
app.rb
3
app.rb
@ -530,5 +530,8 @@ get "/kitty" do
|
|||||||
out << f.read(CHUNK_SIZE)
|
out << f.read(CHUNK_SIZE)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
|
f.close
|
||||||
|
f.unlink
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -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])
|
+"".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