Skip to content

Commit

Permalink
add bullet
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed Mar 10, 2024
1 parent ad86d70 commit b672f01
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ group :development, :staging, :test do
end

group :development, :test do
gem 'bullet'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: %i[mri mingw x64_mingw]
# Use sqlite3 as the database for Active Record
Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ GEM
popper_js (>= 2.11.8, < 3)
browser (5.3.1)
builder (3.2.4)
bullet (7.1.6)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
byebug (11.1.3)
capybara (3.40.0)
addressable
Expand Down Expand Up @@ -280,6 +283,8 @@ GEM
net-smtp (0.4.0.1)
net-protocol
nio4r (2.7.0)
nokogiri (1.16.2-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
Expand Down Expand Up @@ -499,6 +504,7 @@ GEM
sorbet (0.5.11284)
sorbet-static (= 0.5.11284)
sorbet-runtime (0.5.11284)
sorbet-static (0.5.11284-aarch64-linux)
sorbet-static (0.5.11284-universal-darwin)
sorbet-static (0.5.11284-x86_64-linux)
spring (4.1.3)
Expand All @@ -509,6 +515,7 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.7.2-aarch64-linux)
sqlite3 (1.7.2-arm64-darwin)
sqlite3 (1.7.2-x86_64-darwin)
sqlite3 (1.7.2-x86_64-linux)
Expand All @@ -523,6 +530,7 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
uniform_notifier (1.16.0)
uri (0.13.0)
valid_email2 (5.2.1)
activemodel (>= 3.2)
Expand Down Expand Up @@ -556,6 +564,7 @@ GEM
zeitwerk (2.6.13)

PLATFORMS
aarch64-linux
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-21
Expand All @@ -570,6 +579,7 @@ DEPENDENCIES
bootsnap
bootstrap
browser
bullet
byebug
capybara
cocoon
Expand Down
10 changes: 10 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true

config.after_initialize do
Bullet.enable = true
Bullet.alert = false
Bullet.bullet_logger = true
Bullet.console = false
Bullet.rails_logger = true
Bullet.sentry = true
Bullet.add_footer = false
end

# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
Expand Down
6 changes: 6 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.raise = true
end

config.cache_classes = false

# Do not eager load code on boot. This avoids loading your whole application
Expand Down

0 comments on commit b672f01

Please sign in to comment.