Skip to content

Commit

Permalink
Example app/development tools update (#1571)
Browse files Browse the repository at this point in the history
* Remove unused local

* Cleanup development gems

* Upgrade Rails and Puma

* Add debug to all gems' Gemfile

* Add debug to all example apps
  • Loading branch information
st0012 committed Sep 16, 2021
1 parent 16986ae commit fddb235
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
1 change: 1 addition & 0 deletions sentry-delayed_job/Gemfile
Expand Up @@ -21,3 +21,4 @@ gem "sentry-ruby", path: "../sentry-ruby"
gem "sentry-rails", path: "../sentry-rails"

gem "pry"
gem "debug", github: "ruby/debug" if RUBY_VERSION.to_f >= 2.6
1 change: 1 addition & 0 deletions sentry-delayed_job/example/Gemfile
Expand Up @@ -8,3 +8,4 @@ gem "sentry-delayed_job", path: "../"
gem "sentry-ruby", path: "../../sentry-ruby"

gem "pry"
gem "debug", github: "ruby/debug"
20 changes: 5 additions & 15 deletions sentry-rails/examples/rails-6.0/Gemfile
Expand Up @@ -4,11 +4,11 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '> 2.6'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.0'
gem 'rails', '~> 6.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
gem 'puma', '~> 3.11'
gem 'puma', '5.4.0'
gem 'unicorn'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5'
Expand All @@ -31,31 +31,21 @@ gem 'sentry-rails', path: "../../"
gem "resque"
gem "sidekiq"

gem 'pry'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.2', require: false

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'pry'
gem "debug", github: "ruby/debug"
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
end

group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
gem 'listen'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
Expand Up @@ -6,7 +6,6 @@ def index
end

def connect_trace
transaction = Sentry.get_current_scope.get_transaction
# see the sinatra example under the `sentry-ruby` folder
response = Net::HTTP.get_response(URI("http://localhost:4567/connect_trace"))

Expand Down
1 change: 1 addition & 0 deletions sentry-resque/Gemfile
Expand Up @@ -13,3 +13,4 @@ gem "sentry-ruby", path: "../sentry-ruby"
gem "sentry-rails", path: "../sentry-rails"

gem "pry"
gem "debug", github: "ruby/debug" if RUBY_VERSION.to_f >= 2.6
1 change: 1 addition & 0 deletions sentry-resque/example/Gemfile
Expand Up @@ -7,3 +7,4 @@ gem "sentry-resque", path: "../"
gem "sentry-ruby", path: "../../sentry-ruby"

gem "pry"
gem "debug", github: "ruby/debug"
1 change: 1 addition & 0 deletions sentry-ruby/examples/sinatra/Gemfile
Expand Up @@ -11,3 +11,4 @@ gem 'puma', '~> 3.11'
gem 'sentry-ruby', path: "../../"

gem 'pry'
gem "debug", github: "ruby/debug"
1 change: 1 addition & 0 deletions sentry-ruby/examples/without_integrations/Gemfile
Expand Up @@ -4,3 +4,4 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '> 2.6'

gem 'sentry-ruby', path: "../../"
gem "debug", github: "ruby/debug"
1 change: 1 addition & 0 deletions sentry-sidekiq/example/Gemfile
Expand Up @@ -5,3 +5,4 @@ gem "sentry-sidekiq", path: "../"
gem "sentry-ruby", path: "../../sentry-ruby"

gem "pry"
gem "debug", github: "ruby/debug"

0 comments on commit fddb235

Please sign in to comment.