Skip to content

Commit

Permalink
Merge pull request #408 from Little-Rubyist/bump-rbs-tools
Browse files Browse the repository at this point in the history
Bump rbs tools
  • Loading branch information
unasuke authored Dec 17, 2024
2 parents 76ffde1 + a302bb0 commit ba6638a
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 77 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ jobs:
with:
bundler-cache: true
- run: bundle exec rbs collection install
- run: bundle exec steep validate
- run: bundle exec steep check
- run: bundle exec steep check --validate=group
13 changes: 7 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ GEM
bigdecimal
rexml
crass (1.0.6)
csv (3.3.0)
csv (3.3.1)
date (3.4.1)
debug (1.9.2)
irb (~> 1.10)
Expand Down Expand Up @@ -355,7 +355,7 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rbs (3.6.1)
rbs (3.7.0)
logger
rbs-inline (0.10.0)
prism (>= 0.29, < 1.3)
Expand Down Expand Up @@ -426,7 +426,7 @@ GEM
faraday (>= 0.17.3, < 3)
scout_apm (5.4.0)
parser
securerandom (0.4.0)
securerandom (0.4.1)
semantic_logger (4.16.1)
concurrent-ruby (~> 1.0)
sentry-rails (5.22.0)
Expand Down Expand Up @@ -460,7 +460,7 @@ GEM
standard-rails (1.2.0)
lint_roller (~> 1.0)
rubocop-rails (~> 2.26.0)
steep (1.8.3)
steep (1.9.2)
activesupport (>= 5.1)
concurrent-ruby (>= 1.1.10)
csv (>= 3.0.9)
Expand All @@ -471,14 +471,15 @@ GEM
logger (>= 1.3.0)
parser (>= 3.1)
rainbow (>= 2.2.2, < 4.0)
rbs (~> 3.6.0)
rbs (~> 3.7.0)
securerandom (>= 0.1)
strscan (>= 1.0.0)
terminal-table (>= 2, < 4)
uri (>= 0.12.0)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.1.2)
strscan (3.1.0)
strscan (3.1.2)
tailwindcss-rails (3.0.0)
railties (>= 7.0.0)
tailwindcss-ruby
Expand Down
4 changes: 3 additions & 1 deletion app/controllers/admin/profile_badges_profiles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def create
end

private def profile_badges_profiles_params
params.permit(profile_badge_ids: [])
params.permit(
profile_badge_ids: [] # : Array[untyped]
)
end
end
7 changes: 6 additions & 1 deletion app/controllers/profiles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ def update
end

private def profile_params
params.require(:profile).permit(:name, :description, images: [], profile_badge_ids: [])
params.require(:profile).permit(
:name,
:description,
images: [], # : Array[untyped]
profile_badge_ids: [] # : Array[untyped]
)
end

private def profile_non_image_params
Expand Down
Loading

0 comments on commit ba6638a

Please sign in to comment.