Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify requires #551

Merged
merged 2 commits into from Apr 5, 2023
Merged

Conversation

gmcgibbon
Copy link
Contributor

  • Fix file naming for Rack::MiniProfiler
  • Make module files require their nested contents
  • Move library requires to the files that use them
  • Remove require for timeout because it isn't used
  • Remove require for thread because it is required by default

This patch also allows for easier transition to autoloading should we
choose to use it later.

@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2023

Codecov Report

Merging #551 (57bd106) into master (edbcad3) will increase coverage by 0.00%.
The diff coverage is 96.29%.

❗ Current head 57bd106 differs from pull request most recent head 05e7b9a. Consider uploading reports for the commit 05e7b9a to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   87.39%   87.40%           
=======================================
  Files          18       20    +2     
  Lines        1269     1270    +1     
=======================================
+ Hits         1109     1110    +1     
  Misses        160      160           
Impacted Files Coverage Δ
lib/mini_profiler.rb 83.85% <92.30%> (ø)
lib/mini_profiler/storage.rb 100.00% <100.00%> (ø)
lib/mini_profiler/timer_struct.rb 100.00% <100.00%> (ø)
lib/mini_profiler/timer_struct/base.rb 100.00% <100.00%> (ø)
lib/mini_profiler/timer_struct/sql.rb 85.36% <100.00%> (+0.36%) ⬆️
lib/rack-mini-profiler.rb 85.71% <100.00%> (-10.84%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nateberkopec
Copy link
Collaborator

Rebase on main for the latest CI and I think this LGTM!

This file contains Rack::MiniProfiler, not Rack::MiniProfiler::Profiler.
- Make module files require their nested contents
- Move library requires to the files that use them
- Remove require for timeout because it isn't used
- Remove require for thread because it is required by default

This patch also allows for easier transition to autoloading should we
choose to use it later.
@nateberkopec nateberkopec merged commit 5d07da7 into MiniProfiler:master Apr 5, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants