-
- <% if @sentry_event_id %>
-
- <% end %>
-
-
-
diff --git a/sentry-rails/examples/rails-5.2/bin/bundle b/sentry-rails/examples/rails-5.2/bin/bundle
deleted file mode 100755
index 66e9889e8..000000000
--- a/sentry-rails/examples/rails-5.2/bin/bundle
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-load Gem.bin_path('bundler', 'bundle')
diff --git a/sentry-rails/examples/rails-5.2/bin/rails b/sentry-rails/examples/rails-5.2/bin/rails
deleted file mode 100755
index 5badb2fde..000000000
--- a/sentry-rails/examples/rails-5.2/bin/rails
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env ruby
-begin
- load File.expand_path('../spring', __FILE__)
-rescue LoadError => e
- raise unless e.message.include?('spring')
-end
-APP_PATH = File.expand_path('../config/application', __dir__)
-require_relative '../config/boot'
-require 'rails/commands'
diff --git a/sentry-rails/examples/rails-5.2/bin/rake b/sentry-rails/examples/rails-5.2/bin/rake
deleted file mode 100755
index d87d5f578..000000000
--- a/sentry-rails/examples/rails-5.2/bin/rake
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env ruby
-begin
- load File.expand_path('../spring', __FILE__)
-rescue LoadError => e
- raise unless e.message.include?('spring')
-end
-require_relative '../config/boot'
-require 'rake'
-Rake.application.run
diff --git a/sentry-rails/examples/rails-5.2/bin/setup b/sentry-rails/examples/rails-5.2/bin/setup
deleted file mode 100755
index e620b4dad..000000000
--- a/sentry-rails/examples/rails-5.2/bin/setup
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env ruby
-require 'pathname'
-require 'fileutils'
-include FileUtils
-
-# path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
-
-def system!(*args)
- system(*args) || abort("\n== Command #{args} failed ==")
-end
-
-chdir APP_ROOT do
- # This script is a starting point to setup your application.
- # Add necessary setup steps to this file.
-
- puts '== Installing dependencies =='
- system! 'gem install bundler --conservative'
- system('bundle check') || system!('bundle install')
-
- # puts "\n== Copying sample files =="
- # unless File.exist?('config/database.yml')
- # cp 'config/database.yml.sample', 'config/database.yml'
- # end
-
- puts "\n== Preparing database =="
- system! 'bin/rails db:setup'
-
- puts "\n== Removing old logs and tempfiles =="
- system! 'bin/rails log:clear tmp:clear'
-
- puts "\n== Restarting application server =="
- system! 'bin/rails restart'
-end
diff --git a/sentry-rails/examples/rails-5.2/bin/spring b/sentry-rails/examples/rails-5.2/bin/spring
deleted file mode 100755
index 7fe232c3a..000000000
--- a/sentry-rails/examples/rails-5.2/bin/spring
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env ruby
-
-# This file loads spring without using Bundler, in order to be fast.
-# It gets overwritten when you run the `spring binstub` command.
-
-unless defined?(Spring)
- require 'rubygems'
- require 'bundler'
-
- if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
- Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
- gem 'spring', match[1]
- require 'spring/binstub'
- end
-end
diff --git a/sentry-rails/examples/rails-5.2/bin/update b/sentry-rails/examples/rails-5.2/bin/update
deleted file mode 100755
index a8e4462f2..000000000
--- a/sentry-rails/examples/rails-5.2/bin/update
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env ruby
-require 'pathname'
-require 'fileutils'
-include FileUtils
-
-# path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
-
-def system!(*args)
- system(*args) || abort("\n== Command #{args} failed ==")
-end
-
-chdir APP_ROOT do
- # This script is a way to update your development environment automatically.
- # Add necessary update steps to this file.
-
- puts '== Installing dependencies =='
- system! 'gem install bundler --conservative'
- system('bundle check') || system!('bundle install')
-
- puts "\n== Updating database =="
- system! 'bin/rails db:migrate'
-
- puts "\n== Removing old logs and tempfiles =="
- system! 'bin/rails log:clear tmp:clear'
-
- puts "\n== Restarting application server =="
- system! 'bin/rails restart'
-end
diff --git a/sentry-rails/examples/rails-5.2/config.ru b/sentry-rails/examples/rails-5.2/config.ru
deleted file mode 100644
index f7ba0b527..000000000
--- a/sentry-rails/examples/rails-5.2/config.ru
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require_relative 'config/environment'
-
-run Rails.application
diff --git a/sentry-rails/examples/rails-5.2/config/application.rb b/sentry-rails/examples/rails-5.2/config/application.rb
deleted file mode 100644
index 9d93dfb8b..000000000
--- a/sentry-rails/examples/rails-5.2/config/application.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-require_relative 'boot'
-
-require 'rails/all'
-
-# Require the gems listed in Gemfile, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(*Rails.groups)
-
-module Rails50
- class Application < Rails::Application
- # https://github.com/getsentry/raven-ruby/issues/494
- config.exceptions_app = self.routes
-
- # With this enabled 'exceptions_app' isnt executed, so instead we
- # set ``config.consider_all_requests_local = false`` in development.
- # config.action_dispatch.show_exceptions = false
- end
-end
diff --git a/sentry-rails/examples/rails-5.2/config/boot.rb b/sentry-rails/examples/rails-5.2/config/boot.rb
deleted file mode 100644
index 30f5120df..000000000
--- a/sentry-rails/examples/rails-5.2/config/boot.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
-
-require 'bundler/setup' # Set up gems listed in the Gemfile.
diff --git a/sentry-rails/examples/rails-5.2/config/cable.yml b/sentry-rails/examples/rails-5.2/config/cable.yml
deleted file mode 100644
index 0bbde6f74..000000000
--- a/sentry-rails/examples/rails-5.2/config/cable.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-development:
- adapter: async
-
-test:
- adapter: async
-
-production:
- adapter: redis
- url: redis://localhost:6379/1
diff --git a/sentry-rails/examples/rails-5.2/config/database.yml b/sentry-rails/examples/rails-5.2/config/database.yml
deleted file mode 100644
index 1c1a37ca8..000000000
--- a/sentry-rails/examples/rails-5.2/config/database.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-#
-default: &default
- adapter: sqlite3
- pool: 5
- timeout: 5000
-
-development:
- <<: *default
- database: db/development.sqlite3
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- <<: *default
- database: db/test.sqlite3
-
-production:
- <<: *default
- database: db/production.sqlite3
diff --git a/sentry-rails/examples/rails-5.2/config/environment.rb b/sentry-rails/examples/rails-5.2/config/environment.rb
deleted file mode 100644
index 426333bb4..000000000
--- a/sentry-rails/examples/rails-5.2/config/environment.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Load the Rails application.
-require_relative 'application'
-
-# Initialize the Rails application.
-Rails.application.initialize!
diff --git a/sentry-rails/examples/rails-5.2/config/environments/development.rb b/sentry-rails/examples/rails-5.2/config/environments/development.rb
deleted file mode 100644
index b7aa1e711..000000000
--- a/sentry-rails/examples/rails-5.2/config/environments/development.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # In the development environment your application's code is reloaded on
- # every request. This slows down response time but is perfect for development
- # since you don't have to restart the web server when you make code changes.
- config.cache_classes = false
-
- # Do not eager load code on boot.
- config.eager_load = false
-
- # Enable/disable caching. By default caching is disabled.
- if Rails.root.join('tmp/caching-dev.txt').exist?
- config.action_controller.perform_caching = true
-
- config.cache_store = :memory_store
- config.public_file_server.headers = {
- 'Cache-Control' => 'public, max-age=172800'
- }
- else
- config.action_controller.perform_caching = false
-
- config.cache_store = :null_store
- end
-
- # Don't care if the mailer can't send.
- config.action_mailer.raise_delivery_errors = false
-
- config.action_mailer.perform_caching = false
-
- # Print deprecation notices to the Rails logger.
- config.active_support.deprecation = :log
-
- # Raise an error on page load if there are pending migrations.
- config.active_record.migration_error = :page_load
-
- # Debug mode disables concatenation and preprocessing of assets.
- # This option may cause significant delays in view rendering with a large
- # number of complex assets.
- config.assets.debug = true
-
- # Suppress logger output for asset requests.
- config.assets.quiet = true
-
- # Raises error for missing translations
- # config.action_view.raise_on_missing_translations = true
-
- # Use an evented file watcher to asynchronously detect changes in source code,
- # routes, locales, etc. This feature depends on the listen gem.
- config.file_watcher = ActiveSupport::EventedFileUpdateChecker
-end
diff --git a/sentry-rails/examples/rails-5.2/config/environments/production.rb b/sentry-rails/examples/rails-5.2/config/environments/production.rb
deleted file mode 100644
index ce3c78f7e..000000000
--- a/sentry-rails/examples/rails-5.2/config/environments/production.rb
+++ /dev/null
@@ -1,86 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Code is not reloaded between requests.
- config.cache_classes = true
-
- # Eager load code on boot. This eager loads most of Rails and
- # your application in memory, allowing both threaded web servers
- # and those relying on copy on write to perform better.
- # Rake tasks automatically ignore this option for performance.
- config.eager_load = true
-
- # Full error reports are disabled and caching is turned on.
- config.consider_all_requests_local = false
- config.action_controller.perform_caching = true
-
- # Disable serving static files from the `/public` folder by default since
- # Apache or NGINX already handles this.
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
-
- # Compress JavaScripts and CSS.
- config.assets.js_compressor = :uglifier
- # config.assets.css_compressor = :sass
-
- # Do not fallback to assets pipeline if a precompiled asset is missed.
- config.assets.compile = false
-
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
-
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
- # config.action_controller.asset_host = 'http://assets.example.com'
-
- # Specifies the header that your server uses for sending files.
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
-
- # Mount Action Cable outside main process or domain
- # config.action_cable.mount_path = nil
- # config.action_cable.url = 'wss://example.com/cable'
- # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
-
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
-
- # Use the lowest log level to ensure availability of diagnostic information
- # when problems arise.
- config.log_level = :debug
-
- # Prepend all log lines with the following tags.
- config.log_tags = [ :request_id ]
-
- # Use a different cache store in production.
- # config.cache_store = :mem_cache_store
-
- # Use a real queuing backend for Active Job (and separate queues per environment)
- # config.active_job.queue_adapter = :resque
- # config.active_job.queue_name_prefix = "rails-5_0_#{Rails.env}"
- config.action_mailer.perform_caching = false
-
- # Ignore bad email addresses and do not raise email delivery errors.
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
- # config.action_mailer.raise_delivery_errors = false
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation cannot be found).
- config.i18n.fallbacks = true
-
- # Send deprecation notices to registered listeners.
- config.active_support.deprecation = :notify
-
- # Use default logging formatter so that PID and timestamp are not suppressed.
- config.log_formatter = ::Logger::Formatter.new
-
- # Use a different logger for distributed setups.
- # require 'syslog/logger'
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
-
- if ENV["RAILS_LOG_TO_STDOUT"].present?
- logger = ActiveSupport::Logger.new(STDOUT)
- logger.formatter = config.log_formatter
- config.logger = ActiveSupport::TaggedLogging.new(logger)
- end
-
- # Do not dump schema after migrations.
- config.active_record.dump_schema_after_migration = false
-end
diff --git a/sentry-rails/examples/rails-5.2/config/environments/test.rb b/sentry-rails/examples/rails-5.2/config/environments/test.rb
deleted file mode 100644
index 30587ef6d..000000000
--- a/sentry-rails/examples/rails-5.2/config/environments/test.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # The test environment is used exclusively to run your application's
- # test suite. You never need to work with it otherwise. Remember that
- # your test database is "scratch space" for the test suite and is wiped
- # and recreated between test runs. Don't rely on the data there!
- config.cache_classes = true
-
- # Do not eager load code on boot. This avoids loading your whole application
- # just for the purpose of running a single test. If you are using a tool that
- # preloads Rails for running tests, you may have to set it to true.
- config.eager_load = false
-
- # Configure public file server for tests with Cache-Control for performance.
- config.public_file_server.enabled = true
- config.public_file_server.headers = {
- 'Cache-Control' => 'public, max-age=3600'
- }
-
- # Show full error reports and disable caching.
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
- # Raise exceptions instead of rendering exception templates.
- config.action_dispatch.show_exceptions = false
-
- # Disable request forgery protection in test environment.
- config.action_controller.allow_forgery_protection = false
- config.action_mailer.perform_caching = false
-
- # Tell Action Mailer not to deliver emails to the real world.
- # The :test delivery method accumulates sent emails in the
- # ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
-
- # Print deprecation notices to the stderr.
- config.active_support.deprecation = :stderr
-
- # Raises error for missing translations
- # config.action_view.raise_on_missing_translations = true
-end
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/application_controller_renderer.rb b/sentry-rails/examples/rails-5.2/config/initializers/application_controller_renderer.rb
deleted file mode 100644
index 51639b67a..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/application_controller_renderer.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# ApplicationController.renderer.defaults.merge!(
-# http_host: 'example.org',
-# https: false
-# )
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/assets.rb b/sentry-rails/examples/rails-5.2/config/initializers/assets.rb
deleted file mode 100644
index 01ef3e663..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/assets.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = '1.0'
-
-# Add additional assets to the asset load path
-# Rails.application.config.assets.paths << Emoji.images_path
-
-# Precompile additional assets.
-# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
-# Rails.application.config.assets.precompile += %w( search.js )
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/backtrace_silencers.rb b/sentry-rails/examples/rails-5.2/config/initializers/backtrace_silencers.rb
deleted file mode 100644
index 59385cdf3..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/backtrace_silencers.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/cookies_serializer.rb b/sentry-rails/examples/rails-5.2/config/initializers/cookies_serializer.rb
deleted file mode 100644
index 5a6a32d37..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/cookies_serializer.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Specify a serializer for the signed and encrypted cookie jars.
-# Valid options are :json, :marshal, and :hybrid.
-Rails.application.config.action_dispatch.cookies_serializer = :json
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/filter_parameter_logging.rb b/sentry-rails/examples/rails-5.2/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index 4a994e1e7..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure sensitive parameters which will be filtered from the log file.
-Rails.application.config.filter_parameters += [:password]
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/inflections.rb b/sentry-rails/examples/rails-5.2/config/initializers/inflections.rb
deleted file mode 100644
index ac033bf9d..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/inflections.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym 'RESTful'
-# end
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/mime_types.rb b/sentry-rails/examples/rails-5.2/config/initializers/mime_types.rb
deleted file mode 100644
index dc1899682..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/mime_types.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/new_framework_defaults.rb b/sentry-rails/examples/rails-5.2/config/initializers/new_framework_defaults.rb
deleted file mode 100644
index 9359584fe..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/new_framework_defaults.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# Be sure to restart your server when you modify this file.
-#
-# This file contains migration options to ease your Rails 5.0 upgrade.
-#
-# Read the Rails 5.0 release notes for more info on each option.
-
-# Enable per-form CSRF tokens. Previous versions had false.
-Rails.application.config.action_controller.per_form_csrf_tokens = true
-
-# Enable origin-checking CSRF mitigation. Previous versions had false.
-Rails.application.config.action_controller.forgery_protection_origin_check = true
-
-# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
-# Previous versions had false.
-ActiveSupport.to_time_preserves_timezone = true
-
-# Require `belongs_to` associations by default. Previous versions had false.
-Rails.application.config.active_record.belongs_to_required_by_default = true
-
-# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
-Rails.application.config.ssl_options = { hsts: { subdomains: true } }
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/sentry.rb b/sentry-rails/examples/rails-5.2/config/initializers/sentry.rb
deleted file mode 100644
index b764e808a..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/sentry.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-Sentry.init do |config|
- config.breadcrumbs_logger = [:active_support_logger]
- config.send_default_pii = true
- config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
- config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
- config.release = `git branch --show-current`
-end
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/session_store.rb b/sentry-rails/examples/rails-5.2/config/initializers/session_store.rb
deleted file mode 100644
index 93864da9d..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/session_store.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.session_store :cookie_store, key: '_rails-5_0_session'
diff --git a/sentry-rails/examples/rails-5.2/config/initializers/wrap_parameters.rb b/sentry-rails/examples/rails-5.2/config/initializers/wrap_parameters.rb
deleted file mode 100644
index bbfc3961b..000000000
--- a/sentry-rails/examples/rails-5.2/config/initializers/wrap_parameters.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json]
-end
-
-# To enable root element in JSON for ActiveRecord objects.
-# ActiveSupport.on_load(:active_record) do
-# self.include_root_in_json = true
-# end
diff --git a/sentry-rails/examples/rails-5.2/config/locales/en.yml b/sentry-rails/examples/rails-5.2/config/locales/en.yml
deleted file mode 100644
index 065395716..000000000
--- a/sentry-rails/examples/rails-5.2/config/locales/en.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Files in the config/locales directory are used for internationalization
-# and are automatically loaded by Rails. If you want to use locales other
-# than English, add the necessary files in this directory.
-#
-# To use the locales, use `I18n.t`:
-#
-# I18n.t 'hello'
-#
-# In views, this is aliased to just `t`:
-#
-# <%= t('hello') %>
-#
-# To use a different locale, set it with `I18n.locale`:
-#
-# I18n.locale = :es
-#
-# This would use the information in config/locales/es.yml.
-#
-# To learn more, please read the Rails Internationalization guide
-# available at http://guides.rubyonrails.org/i18n.html.
-
-en:
- hello: "Hello world"
diff --git a/sentry-rails/examples/rails-5.2/config/puma.rb b/sentry-rails/examples/rails-5.2/config/puma.rb
deleted file mode 100644
index c7f311f81..000000000
--- a/sentry-rails/examples/rails-5.2/config/puma.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-# Puma can serve each request in a thread from an internal thread pool.
-# The `threads` method setting takes two numbers a minimum and maximum.
-# Any libraries that use thread pools should be configured to match
-# the maximum value specified for Puma. Default is set to 5 threads for minimum
-# and maximum, this matches the default thread size of Active Record.
-#
-threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
-threads threads_count, threads_count
-
-# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
-#
-port ENV.fetch("PORT") { 3000 }
-
-# Specifies the `environment` that Puma will run in.
-#
-environment ENV.fetch("RAILS_ENV") { "development" }
-
-# Specifies the number of `workers` to boot in clustered mode.
-# Workers are forked webserver processes. If using threads and workers together
-# the concurrency of the application would be max `threads` * `workers`.
-# Workers do not work on JRuby or Windows (both of which do not support
-# processes).
-#
-# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
-
-# Use the `preload_app!` method when specifying a `workers` number.
-# This directive tells Puma to first boot the application and load code
-# before forking the application. This takes advantage of Copy On Write
-# process behavior so workers use less memory. If you use this option
-# you need to make sure to reconnect any threads in the `on_worker_boot`
-# block.
-#
-# preload_app!
-
-# The code in the `on_worker_boot` will be called if you are using
-# clustered mode by specifying a number of `workers`. After each worker
-# process is booted this block will be run, if you are using `preload_app!`
-# option you will want to use this block to reconnect to any threads
-# or connections that may have been created at application boot, Ruby
-# cannot share connections between processes.
-#
-# on_worker_boot do
-# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
-# end
-
-# Allow puma to be restarted by `rails restart` command.
-plugin :tmp_restart
diff --git a/sentry-rails/examples/rails-5.2/config/routes.rb b/sentry-rails/examples/rails-5.2/config/routes.rb
deleted file mode 100644
index 5cfe47544..000000000
--- a/sentry-rails/examples/rails-5.2/config/routes.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-Rails.application.routes.draw do
- resources :posts
- root to: "welcome#index"
-end
diff --git a/sentry-rails/examples/rails-5.2/config/secrets.yml b/sentry-rails/examples/rails-5.2/config/secrets.yml
deleted file mode 100644
index e3739b59a..000000000
--- a/sentry-rails/examples/rails-5.2/config/secrets.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key is used for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-# You can use `rails secret` to generate a secure secret key.
-
-# Make sure the secrets in this file are kept private
-# if you're sharing your code publicly.
-
-development:
- secret_key_base: d91733e434c05e6905d6a0db58f91befa539464342558770b43c8acb11959cd3749bb196869a98ac8e82feeb9faafe9d6d92b2462a9e8c0642a1c881f0bbe608
-
-test:
- secret_key_base: b35e5485b128e991295e7649d4ba0b466d56208414ca842de01e38908a55b53442c33753a02898949883743d68c82bb039ee5adede75a7c9d400b05b76746e47
-
-# Do not keep production secrets in the repository,
-# instead read values from the environment.
-production:
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
diff --git a/sentry-rails/examples/rails-5.2/db/migrate/20210112160711_create_posts.rb b/sentry-rails/examples/rails-5.2/db/migrate/20210112160711_create_posts.rb
deleted file mode 100644
index 50e4fcbac..000000000
--- a/sentry-rails/examples/rails-5.2/db/migrate/20210112160711_create_posts.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class CreatePosts < ActiveRecord::Migration[5.2]
- def change
- create_table :posts do |t|
- t.string :title
- t.text :content
-
- t.timestamps
- end
- end
-end
diff --git a/sentry-rails/examples/rails-5.2/db/schema.rb b/sentry-rails/examples/rails-5.2/db/schema.rb
deleted file mode 100644
index 4e215786c..000000000
--- a/sentry-rails/examples/rails-5.2/db/schema.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# Note that this schema.rb definition is the authoritative source for your
-# database schema. If you need to create the application database on another
-# system, you should be using db:schema:load, not running all the migrations
-# from scratch. The latter is a flawed and unsustainable approach (the more migrations
-# you'll amass, the slower it'll run and the greater likelihood for issues).
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema.define(version: 2021_01_12_160711) do
- create_table "posts", force: :cascade do |t|
- t.string "title"
- t.text "content"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
-end
diff --git a/sentry-rails/examples/rails-5.2/db/seeds.rb b/sentry-rails/examples/rails-5.2/db/seeds.rb
deleted file mode 100644
index 1beea2acc..000000000
--- a/sentry-rails/examples/rails-5.2/db/seeds.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
-#
-# Examples:
-#
-# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
-# Character.create(name: 'Luke', movie: movies.first)
diff --git a/sentry-rails/examples/rails-5.2/public/404.html b/sentry-rails/examples/rails-5.2/public/404.html
deleted file mode 100644
index b612547fc..000000000
--- a/sentry-rails/examples/rails-5.2/public/404.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The page you were looking for doesn't exist (404)
-
-
-
-
-
-
-
-
-
The page you were looking for doesn't exist.
-
You may have mistyped the address or the page may have moved.
-
-
If you are the application owner check the logs for more information.
-
-
-
diff --git a/sentry-rails/examples/rails-5.2/public/422.html b/sentry-rails/examples/rails-5.2/public/422.html
deleted file mode 100644
index a21f82b3b..000000000
--- a/sentry-rails/examples/rails-5.2/public/422.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The change you wanted was rejected (422)
-
-
-
-
-
-
-
-
-
The change you wanted was rejected.
-
Maybe you tried to change something you didn't have access to.
-
-
If you are the application owner check the logs for more information.
-
-
-
diff --git a/sentry-rails/examples/rails-5.2/public/apple-touch-icon-precomposed.png b/sentry-rails/examples/rails-5.2/public/apple-touch-icon-precomposed.png
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-5.2/public/apple-touch-icon.png b/sentry-rails/examples/rails-5.2/public/apple-touch-icon.png
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-5.2/public/favicon.ico b/sentry-rails/examples/rails-5.2/public/favicon.ico
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-5.2/public/robots.txt b/sentry-rails/examples/rails-5.2/public/robots.txt
deleted file mode 100644
index 3c9c7c01f..000000000
--- a/sentry-rails/examples/rails-5.2/public/robots.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
-#
-# To ban all spiders from the entire site uncomment the next two lines:
-# User-agent: *
-# Disallow: /
diff --git a/sentry-rails/examples/rails-5.2/test/controllers/posts_controller_test.rb b/sentry-rails/examples/rails-5.2/test/controllers/posts_controller_test.rb
deleted file mode 100644
index c1b83587f..000000000
--- a/sentry-rails/examples/rails-5.2/test/controllers/posts_controller_test.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-require 'test_helper'
-
-class PostsControllerTest < ActionDispatch::IntegrationTest
- setup do
- @post = posts(:one)
- end
-
- test "should get index" do
- get posts_url
- assert_response :success
- end
-
- test "should get new" do
- get new_post_url
- assert_response :success
- end
-
- test "should create post" do
- assert_difference('Post.count') do
- post posts_url, params: { post: { content: @post.content, title: @post.title } }
- end
-
- assert_redirected_to post_url(Post.last)
- end
-
- test "should show post" do
- get post_url(@post)
- assert_response :success
- end
-
- test "should get edit" do
- get edit_post_url(@post)
- assert_response :success
- end
-
- test "should update post" do
- patch post_url(@post), params: { post: { content: @post.content, title: @post.title } }
- assert_redirected_to post_url(@post)
- end
-
- test "should destroy post" do
- assert_difference('Post.count', -1) do
- delete post_url(@post)
- end
-
- assert_redirected_to posts_url
- end
-end
diff --git a/sentry-rails/examples/rails-5.2/test/fixtures/posts.yml b/sentry-rails/examples/rails-5.2/test/fixtures/posts.yml
deleted file mode 100644
index 19db4509b..000000000
--- a/sentry-rails/examples/rails-5.2/test/fixtures/posts.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-
-one:
- title: MyString
- content: MyText
-
-two:
- title: MyString
- content: MyText
diff --git a/sentry-rails/examples/rails-5.2/test/models/post_test.rb b/sentry-rails/examples/rails-5.2/test/models/post_test.rb
deleted file mode 100644
index 6d9d463a7..000000000
--- a/sentry-rails/examples/rails-5.2/test/models/post_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class PostTest < ActiveSupport::TestCase
- # test "the truth" do
- # assert true
- # end
-end
diff --git a/sentry-rails/examples/rails-5.2/test/system/posts_test.rb b/sentry-rails/examples/rails-5.2/test/system/posts_test.rb
deleted file mode 100644
index 4cf73670a..000000000
--- a/sentry-rails/examples/rails-5.2/test/system/posts_test.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require "application_system_test_case"
-
-class PostsTest < ApplicationSystemTestCase
- setup do
- @post = posts(:one)
- end
-
- test "visiting the index" do
- visit posts_url
- assert_selector "h1", text: "Posts"
- end
-
- test "creating a Post" do
- visit posts_url
- click_on "New Post"
-
- fill_in "Content", with: @post.content
- fill_in "Title", with: @post.title
- click_on "Create Post"
-
- assert_text "Post was successfully created"
- click_on "Back"
- end
-
- test "updating a Post" do
- visit posts_url
- click_on "Edit", match: :first
-
- fill_in "Content", with: @post.content
- fill_in "Title", with: @post.title
- click_on "Update Post"
-
- assert_text "Post was successfully updated"
- click_on "Back"
- end
-
- test "destroying a Post" do
- visit posts_url
- page.accept_confirm do
- click_on "Destroy", match: :first
- end
-
- assert_text "Post was successfully destroyed"
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/.browserslistrc b/sentry-rails/examples/rails-6.0/.browserslistrc
deleted file mode 100644
index e94f8140c..000000000
--- a/sentry-rails/examples/rails-6.0/.browserslistrc
+++ /dev/null
@@ -1 +0,0 @@
-defaults
diff --git a/sentry-rails/examples/rails-6.0/.gitignore b/sentry-rails/examples/rails-6.0/.gitignore
deleted file mode 100644
index 757f720fa..000000000
--- a/sentry-rails/examples/rails-6.0/.gitignore
+++ /dev/null
@@ -1,35 +0,0 @@
-# See https://help.github.com/articles/ignoring-files for more about ignoring files.
-#
-# If you find yourself ignoring temporary files generated by your text editor
-# or operating system, you probably want to add a global ignore instead:
-# git config --global core.excludesfile '~/.gitignore_global'
-
-# Ignore bundler config.
-/.bundle
-
-# Ignore the default SQLite database.
-/db/*.sqlite3
-/db/*.sqlite3-journal
-
-# Ignore all logfiles and tempfiles.
-/log/*
-/tmp/*
-!/log/.keep
-!/tmp/.keep
-
-# Ignore uploaded files in development.
-/storage/*
-!/storage/.keep
-
-/public/assets
-.byebug_history
-
-# Ignore master key for decrypting credentials and more.
-/config/master.key
-
-/public/packs
-/public/packs-test
-/node_modules
-/yarn-error.log
-yarn-debug.log*
-.yarn-integrity
diff --git a/sentry-rails/examples/rails-6.0/Gemfile b/sentry-rails/examples/rails-6.0/Gemfile
deleted file mode 100644
index 2a113d7af..000000000
--- a/sentry-rails/examples/rails-6.0/Gemfile
+++ /dev/null
@@ -1,56 +0,0 @@
-source 'https://rubygems.org'
-git_source(:github) { |repo| "https://github.com/#{repo}.git" }
-
-ruby '> 2.6'
-
-# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
-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', '5.4.0'
-gem 'unicorn'
-# Use SCSS for stylesheets
-gem 'sass-rails', '~> 5'
-# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
-gem 'webpacker', '~> 4.0'
-# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
-gem 'turbolinks', '~> 5'
-# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
-gem 'jbuilder', '~> 2.7'
-# Use Redis adapter to run Action Cable in production
-# gem 'redis', '~> 4.0'
-# Use Active Model has_secure_password
-# gem 'bcrypt', '~> 3.1.7'
-
-gem 'image_processing', '~> 1.2'
-
-gem 'sentry-ruby', path: "../../../sentry-ruby"
-gem 'sentry-sidekiq', path: "../../../sentry-sidekiq"
-gem 'sentry-resque', path: "../../../sentry-resque"
-gem 'sentry-delayed_job', path: "../../../sentry-delayed_job"
-gem 'sentry-rails', path: "../../"
-
-gem "resque"
-gem "sidekiq"
-gem 'delayed_job_active_record'
-gem "daemons"
-
-# 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
- gem "debug", github: "ruby/debug", require: false
-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'
-end
-
-# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
-gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
diff --git a/sentry-rails/examples/rails-6.0/README.md b/sentry-rails/examples/rails-6.0/README.md
deleted file mode 100644
index 48fc23392..000000000
--- a/sentry-rails/examples/rails-6.0/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Rails 6 Example For Sentry's Ruby SDK
-
-## Setup
-
-1. `bundle install`
-2. Set your own Sentry DSN in `config/initializers/sentry.rb`
-
-## Send Some Events To Sentry
-
-### Normal Rails Exception
-
-1. Start the Rails server - `bundle exec rails s`
-2. Visit `localhost:3000/`
-
-### Rails View Exception
-
-1. Start the Rails server - `bundle exec rails s`
-2. Visit `localhost:3000/view_error`
-
-### Performance Monitoring
-
-1. Start the Rails server - `bundle exec rails s`
-2. Visit `/posts` and do some CRUD actions
-
-### Sidekiq Worker Exception
-
-1. Start `sidekiq` server - `bundle exec sidekiq`
-2. Run the job with Rails runner - `bundle exec rails runner "ErrorWorker.perform_async"`
-
diff --git a/sentry-rails/examples/rails-6.0/Rakefile b/sentry-rails/examples/rails-6.0/Rakefile
deleted file mode 100644
index e85f91391..000000000
--- a/sentry-rails/examples/rails-6.0/Rakefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require_relative 'config/application'
-
-Rails.application.load_tasks
diff --git a/sentry-rails/examples/rails-6.0/app/assets/config/manifest.js b/sentry-rails/examples/rails-6.0/app/assets/config/manifest.js
deleted file mode 100644
index 591819335..000000000
--- a/sentry-rails/examples/rails-6.0/app/assets/config/manifest.js
+++ /dev/null
@@ -1,2 +0,0 @@
-//= link_tree ../images
-//= link_directory ../stylesheets .css
diff --git a/sentry-rails/examples/rails-6.0/app/assets/images/.keep b/sentry-rails/examples/rails-6.0/app/assets/images/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-6.0/app/assets/stylesheets/application.css b/sentry-rails/examples/rails-6.0/app/assets/stylesheets/application.css
deleted file mode 100644
index d05ea0f51..000000000
--- a/sentry-rails/examples/rails-6.0/app/assets/stylesheets/application.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * This is a manifest file that'll be compiled into application.css, which will include all the files
- * listed below.
- *
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
- * vendor/assets/stylesheets directory can be referenced here using a relative path.
- *
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
- * files in this directory. Styles in this file should be added after the last require_* statement.
- * It is generally better to create a new file per style scope.
- *
- *= require_tree .
- *= require_self
- */
diff --git a/sentry-rails/examples/rails-6.0/app/assets/stylesheets/posts.scss b/sentry-rails/examples/rails-6.0/app/assets/stylesheets/posts.scss
deleted file mode 100644
index 1a7e15390..000000000
--- a/sentry-rails/examples/rails-6.0/app/assets/stylesheets/posts.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the posts controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/sentry-rails/examples/rails-6.0/app/assets/stylesheets/scaffolds.scss b/sentry-rails/examples/rails-6.0/app/assets/stylesheets/scaffolds.scss
deleted file mode 100644
index 604518803..000000000
--- a/sentry-rails/examples/rails-6.0/app/assets/stylesheets/scaffolds.scss
+++ /dev/null
@@ -1,84 +0,0 @@
-body {
- background-color: #fff;
- color: #333;
- margin: 33px;
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
-}
-
-p, ol, ul, td {
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
-}
-
-pre {
- background-color: #eee;
- padding: 10px;
- font-size: 11px;
-}
-
-a {
- color: #000;
-
- &:visited {
- color: #666;
- }
-
- &:hover {
- color: #fff;
- background-color: #000;
- }
-}
-
-th {
- padding-bottom: 5px;
-}
-
-td {
- padding: 0 5px 7px;
-}
-
-div {
- &.field, &.actions {
- margin-bottom: 10px;
- }
-}
-
-#notice {
- color: green;
-}
-
-.field_with_errors {
- padding: 2px;
- background-color: red;
- display: table;
-}
-
-#error_explanation {
- width: 450px;
- border: 2px solid red;
- padding: 7px 7px 0;
- margin-bottom: 20px;
- background-color: #f0f0f0;
-
- h2 {
- text-align: left;
- font-weight: bold;
- padding: 5px 5px 5px 15px;
- font-size: 12px;
- margin: -7px -7px 0;
- background-color: #c00;
- color: #fff;
- }
-
- ul li {
- font-size: 12px;
- list-style: square;
- }
-}
-
-label {
- display: block;
-}
diff --git a/sentry-rails/examples/rails-6.0/app/channels/appearance_channel.rb b/sentry-rails/examples/rails-6.0/app/channels/appearance_channel.rb
deleted file mode 100644
index d84cf4640..000000000
--- a/sentry-rails/examples/rails-6.0/app/channels/appearance_channel.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-class AppearanceChannel < ApplicationCable::Channel
- def subscribed
- end
-
- def unsubscribed
- end
-
- def hello
- end
-
- def goodbye(data)
- 1 / 0
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/channels/application_cable/channel.rb b/sentry-rails/examples/rails-6.0/app/channels/application_cable/channel.rb
deleted file mode 100644
index d67269728..000000000
--- a/sentry-rails/examples/rails-6.0/app/channels/application_cable/channel.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-module ApplicationCable
- class Channel < ActionCable::Channel::Base
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/channels/application_cable/connection.rb b/sentry-rails/examples/rails-6.0/app/channels/application_cable/connection.rb
deleted file mode 100644
index ccf8bec21..000000000
--- a/sentry-rails/examples/rails-6.0/app/channels/application_cable/connection.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-module ApplicationCable
- class Connection < ActionCable::Connection::Base
- def connect
- end
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/controllers/application_controller.rb b/sentry-rails/examples/rails-6.0/app/controllers/application_controller.rb
deleted file mode 100644
index 09705d12a..000000000
--- a/sentry-rails/examples/rails-6.0/app/controllers/application_controller.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class ApplicationController < ActionController::Base
-end
diff --git a/sentry-rails/examples/rails-6.0/app/controllers/concerns/.keep b/sentry-rails/examples/rails-6.0/app/controllers/concerns/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-6.0/app/controllers/posts_controller.rb b/sentry-rails/examples/rails-6.0/app/controllers/posts_controller.rb
deleted file mode 100644
index 15888b5c2..000000000
--- a/sentry-rails/examples/rails-6.0/app/controllers/posts_controller.rb
+++ /dev/null
@@ -1,80 +0,0 @@
-class PostsController < ApplicationController
- before_action :set_post, only: [:show, :edit, :update, :destroy]
-
- # GET /posts
- # GET /posts.json
- def index
- @posts = Post.all
- end
-
- # GET /posts/1
- # GET /posts/1.json
- def show
- @post.cover.attach(
- io: File.open(File.join(Rails.root, 'public', 'favicon.ico')),
- filename: 'favicon.ico',
- identify: false
- )
- @post
- end
-
- # GET /posts/new
- def new
- @post = Post.new
- end
-
- # GET /posts/1/edit
- def edit
- end
-
- # POST /posts
- # POST /posts.json
- def create
- @post = Post.new(post_params)
-
- respond_to do |format|
- if @post.save
- format.html { redirect_to @post, notice: 'Post was successfully created.' }
- format.json { render :show, status: :created, location: @post }
- else
- format.html { render :new }
- format.json { render json: @post.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /posts/1
- # PATCH/PUT /posts/1.json
- def update
- respond_to do |format|
- if @post.update(post_params)
- format.html { redirect_to @post, notice: 'Post was successfully updated.' }
- format.json { render :show, status: :ok, location: @post }
- else
- format.html { render :edit }
- format.json { render json: @post.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /posts/1
- # DELETE /posts/1.json
- def destroy
- @post.destroy
- respond_to do |format|
- format.html { redirect_to posts_url, notice: 'Post was successfully destroyed.' }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_post
- @post = Post.find(params[:id])
- end
-
- # Only allow a list of trusted parameters through.
- def post_params
- params.require(:post).permit(:title, :content, :cover)
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/controllers/welcome_controller.rb b/sentry-rails/examples/rails-6.0/app/controllers/welcome_controller.rb
deleted file mode 100644
index 4375f7511..000000000
--- a/sentry-rails/examples/rails-6.0/app/controllers/welcome_controller.rb
+++ /dev/null
@@ -1,54 +0,0 @@
-class WelcomeController < ApplicationController
- before_action :set_sentry_context
-
- def index
- a = 1
- b = 0
- a / b
- end
-
- def connect_trace
- # see the sinatra example under the `sentry-ruby` folder
- response = Net::HTTP.get_response(URI("http://localhost:4567/connect_trace"))
-
- render plain: response.code
- end
-
- def appearance
- end
-
- def view_error
- end
-
- def sidekiq_error
- ErrorWorker.perform_async
- render plain: "Remember to start sidekiq worker with '$ bundle exec sidekiq'"
- end
-
- def resque_error
- Resque.enqueue(RaiseError)
- render plain: "Remember to start resque worker with '$ QUEUE=* bundle exec rake resque:work'"
- end
-
- def delayed_job_error
- ErrorDelayedJob.delay.perform
- render plain: "Remember to start delayed_job worker with '$ bundle exec rake jobs:work'"
- end
-
- def job_error
- ErrorJob.perform_later
- render plain: "success"
- end
-
- def report_demo
- # @sentry_event_id = Raven.last_event_id
- render(status: 500)
- end
-
- private
-
- def set_sentry_context
- counter = (Sentry.get_current_scope.tags[:counter] || 0) + 1
- Sentry.set_tags(counter: counter)
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/delayed_jobs/error_delayed_job.rb b/sentry-rails/examples/rails-6.0/app/delayed_jobs/error_delayed_job.rb
deleted file mode 100644
index b23b0c3ae..000000000
--- a/sentry-rails/examples/rails-6.0/app/delayed_jobs/error_delayed_job.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class ErrorDelayedJob
- def self.perform
- 1/0
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/helpers/application_helper.rb b/sentry-rails/examples/rails-6.0/app/helpers/application_helper.rb
deleted file mode 100644
index de6be7945..000000000
--- a/sentry-rails/examples/rails-6.0/app/helpers/application_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
diff --git a/sentry-rails/examples/rails-6.0/app/helpers/posts_helper.rb b/sentry-rails/examples/rails-6.0/app/helpers/posts_helper.rb
deleted file mode 100644
index a7b8cec89..000000000
--- a/sentry-rails/examples/rails-6.0/app/helpers/posts_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module PostsHelper
-end
diff --git a/sentry-rails/examples/rails-6.0/app/javascript/channels/appearance_channel.js b/sentry-rails/examples/rails-6.0/app/javascript/channels/appearance_channel.js
deleted file mode 100644
index fc5feb9a6..000000000
--- a/sentry-rails/examples/rails-6.0/app/javascript/channels/appearance_channel.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import consumer from './consumer';
-
-consumer.subscriptions.create('AppearanceChannel', {
- initialized() {
- this.hello = this.hello.bind(this);
- this.goodbye = this.goodbye.bind(this);
- },
-
- connected() {
- document.querySelector('button#hello').addEventListener('click', this.hello);
- document.querySelector('button#goodbye').addEventListener('click', this.goodbye);
- },
-
- disconnect() {
- document.querySelector('button#hello').removeEventListener('click', this.hello);
- document.querySelector('button#goodbye').removeEventListener('click', this.goodbye);
- },
-
- hello() {
- this.perform('hello');
- },
-
- goodbye() {
- this.perform('goodbye', { forever: true });
- }
-});
diff --git a/sentry-rails/examples/rails-6.0/app/javascript/channels/consumer.js b/sentry-rails/examples/rails-6.0/app/javascript/channels/consumer.js
deleted file mode 100644
index 0eceb59b1..000000000
--- a/sentry-rails/examples/rails-6.0/app/javascript/channels/consumer.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// Action Cable provides the framework to deal with WebSockets in Rails.
-// You can generate new channels where WebSocket features live using the `rails generate channel` command.
-
-import { createConsumer } from "@rails/actioncable"
-
-export default createConsumer()
diff --git a/sentry-rails/examples/rails-6.0/app/javascript/channels/index.js b/sentry-rails/examples/rails-6.0/app/javascript/channels/index.js
deleted file mode 100644
index 0cfcf7491..000000000
--- a/sentry-rails/examples/rails-6.0/app/javascript/channels/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Load all the channels within this directory and all subdirectories.
-// Channel files must be named *_channel.js.
-
-const channels = require.context('.', true, /_channel\.js$/)
-channels.keys().forEach(channels)
diff --git a/sentry-rails/examples/rails-6.0/app/javascript/packs/application.js b/sentry-rails/examples/rails-6.0/app/javascript/packs/application.js
deleted file mode 100644
index 9cd55d4b9..000000000
--- a/sentry-rails/examples/rails-6.0/app/javascript/packs/application.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// This file is automatically compiled by Webpack, along with any other files
-// present in this directory. You're encouraged to place your actual application logic in
-// a relevant structure within app/javascript and only use these pack files to reference
-// that code so it'll be compiled.
-
-require("@rails/ujs").start()
-require("turbolinks").start()
-require("@rails/activestorage").start()
-require("channels")
-
-
-// Uncomment to copy all static images under ../images to the output folder and reference
-// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
-// or the `imagePath` JavaScript helper below.
-//
-// const images = require.context('../images', true)
-// const imagePath = (name) => images(name, true)
diff --git a/sentry-rails/examples/rails-6.0/app/jobs/application_job.rb b/sentry-rails/examples/rails-6.0/app/jobs/application_job.rb
deleted file mode 100644
index d394c3d10..000000000
--- a/sentry-rails/examples/rails-6.0/app/jobs/application_job.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class ApplicationJob < ActiveJob::Base
- # Automatically retry jobs that encountered a deadlock
- # retry_on ActiveRecord::Deadlocked
-
- # Most jobs are safe to ignore if the underlying records are no longer available
- # discard_on ActiveJob::DeserializationError
-end
diff --git a/sentry-rails/examples/rails-6.0/app/jobs/error_job.rb b/sentry-rails/examples/rails-6.0/app/jobs/error_job.rb
deleted file mode 100644
index f0bb41848..000000000
--- a/sentry-rails/examples/rails-6.0/app/jobs/error_job.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class ErrorJob < ApplicationJob
- self.queue_adapter = :async
-
- def perform
- a = 1
- b = 2
- raise "Job failed"
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/mailers/application_mailer.rb b/sentry-rails/examples/rails-6.0/app/mailers/application_mailer.rb
deleted file mode 100644
index 286b2239d..000000000
--- a/sentry-rails/examples/rails-6.0/app/mailers/application_mailer.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-class ApplicationMailer < ActionMailer::Base
- default from: 'from@example.com'
- layout 'mailer'
-end
diff --git a/sentry-rails/examples/rails-6.0/app/models/application_record.rb b/sentry-rails/examples/rails-6.0/app/models/application_record.rb
deleted file mode 100644
index 10a4cba84..000000000
--- a/sentry-rails/examples/rails-6.0/app/models/application_record.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class ApplicationRecord < ActiveRecord::Base
- self.abstract_class = true
-end
diff --git a/sentry-rails/examples/rails-6.0/app/models/concerns/.keep b/sentry-rails/examples/rails-6.0/app/models/concerns/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-6.0/app/models/post.rb b/sentry-rails/examples/rails-6.0/app/models/post.rb
deleted file mode 100644
index f735d001b..000000000
--- a/sentry-rails/examples/rails-6.0/app/models/post.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Post < ApplicationRecord
- has_one_attached :cover
-end
diff --git a/sentry-rails/examples/rails-6.0/app/resque_jobs/raise_error.rb b/sentry-rails/examples/rails-6.0/app/resque_jobs/raise_error.rb
deleted file mode 100644
index 596ac0715..000000000
--- a/sentry-rails/examples/rails-6.0/app/resque_jobs/raise_error.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class RaiseError
- @queue = :default
-
- def self.perform
- 1/0
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/app/views/layouts/application.html.erb b/sentry-rails/examples/rails-6.0/app/views/layouts/application.html.erb
deleted file mode 100644
index 60ee8159f..000000000
--- a/sentry-rails/examples/rails-6.0/app/views/layouts/application.html.erb
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
- Rails60
- <%= csrf_meta_tags %>
- <%= csp_meta_tag %>
-
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
- <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
-
-
-
- <%= yield %>
-
-
diff --git a/sentry-rails/examples/rails-6.0/app/views/layouts/mailer.html.erb b/sentry-rails/examples/rails-6.0/app/views/layouts/mailer.html.erb
deleted file mode 100644
index cbd34d2e9..000000000
--- a/sentry-rails/examples/rails-6.0/app/views/layouts/mailer.html.erb
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
- <%= yield %>
-
-
diff --git a/sentry-rails/examples/rails-6.0/app/views/layouts/mailer.text.erb b/sentry-rails/examples/rails-6.0/app/views/layouts/mailer.text.erb
deleted file mode 100644
index 37f0bddbd..000000000
--- a/sentry-rails/examples/rails-6.0/app/views/layouts/mailer.text.erb
+++ /dev/null
@@ -1 +0,0 @@
-<%= yield %>
diff --git a/sentry-rails/examples/rails-6.0/app/views/posts/_form.html.erb b/sentry-rails/examples/rails-6.0/app/views/posts/_form.html.erb
deleted file mode 100644
index b88a3e593..000000000
--- a/sentry-rails/examples/rails-6.0/app/views/posts/_form.html.erb
+++ /dev/null
@@ -1,32 +0,0 @@
-<%= form_with(model: post, local: true) do |form| %>
- <% if post.errors.any? %>
-
-
<%= pluralize(post.errors.count, "error") %> prohibited this post from being saved:
-
-
- <% post.errors.full_messages.each do |message| %>
-
-
- <% if @sentry_event_id %>
-
- <% end %>
-
-
-
diff --git a/sentry-rails/examples/rails-6.0/app/views/welcome/view_error.html.erb b/sentry-rails/examples/rails-6.0/app/views/welcome/view_error.html.erb
deleted file mode 100644
index 9ba7b5ad1..000000000
--- a/sentry-rails/examples/rails-6.0/app/views/welcome/view_error.html.erb
+++ /dev/null
@@ -1 +0,0 @@
-hey <%= foo %>
diff --git a/sentry-rails/examples/rails-6.0/app/workers/error_worker.rb b/sentry-rails/examples/rails-6.0/app/workers/error_worker.rb
deleted file mode 100644
index 9edbf87c3..000000000
--- a/sentry-rails/examples/rails-6.0/app/workers/error_worker.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class ErrorWorker
- include Sidekiq::Worker
- sidekiq_options retry: false
-
- def perform
- a = 1
- raise "Worker failed"
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/babel.config.js b/sentry-rails/examples/rails-6.0/babel.config.js
deleted file mode 100644
index 12f98da5a..000000000
--- a/sentry-rails/examples/rails-6.0/babel.config.js
+++ /dev/null
@@ -1,72 +0,0 @@
-module.exports = function(api) {
- var validEnv = ['development', 'test', 'production']
- var currentEnv = api.env()
- var isDevelopmentEnv = api.env('development')
- var isProductionEnv = api.env('production')
- var isTestEnv = api.env('test')
-
- if (!validEnv.includes(currentEnv)) {
- throw new Error(
- 'Please specify a valid `NODE_ENV` or ' +
- '`BABEL_ENV` environment variables. Valid values are "development", ' +
- '"test", and "production". Instead, received: ' +
- JSON.stringify(currentEnv) +
- '.'
- )
- }
-
- return {
- presets: [
- isTestEnv && [
- '@babel/preset-env',
- {
- targets: {
- node: 'current'
- }
- }
- ],
- (isProductionEnv || isDevelopmentEnv) && [
- '@babel/preset-env',
- {
- forceAllTransforms: true,
- useBuiltIns: 'entry',
- corejs: 3,
- modules: false,
- exclude: ['transform-typeof-symbol']
- }
- ]
- ].filter(Boolean),
- plugins: [
- 'babel-plugin-macros',
- '@babel/plugin-syntax-dynamic-import',
- isTestEnv && 'babel-plugin-dynamic-import-node',
- '@babel/plugin-transform-destructuring',
- [
- '@babel/plugin-proposal-class-properties',
- {
- loose: true
- }
- ],
- [
- '@babel/plugin-proposal-object-rest-spread',
- {
- useBuiltIns: true
- }
- ],
- [
- '@babel/plugin-transform-runtime',
- {
- helpers: false,
- regenerator: true,
- corejs: false
- }
- ],
- [
- '@babel/plugin-transform-regenerator',
- {
- async: false
- }
- ]
- ].filter(Boolean)
- }
-}
diff --git a/sentry-rails/examples/rails-6.0/bin/bundle b/sentry-rails/examples/rails-6.0/bin/bundle
deleted file mode 100755
index a71368e32..000000000
--- a/sentry-rails/examples/rails-6.0/bin/bundle
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/usr/bin/env ruby
-# frozen_string_literal: true
-
-#
-# This file was generated by Bundler.
-#
-# The application 'bundle' is installed as part of a gem, and
-# this file is here to facilitate running it.
-#
-
-require "rubygems"
-
-m = Module.new do
- module_function
-
- def invoked_as_script?
- File.expand_path($0) == File.expand_path(__FILE__)
- end
-
- def env_var_version
- ENV["BUNDLER_VERSION"]
- end
-
- def cli_arg_version
- return unless invoked_as_script? # don't want to hijack other binstubs
- return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
- bundler_version = nil
- update_index = nil
- ARGV.each_with_index do |a, i|
- if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
- bundler_version = a
- end
- next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
- bundler_version = $1
- update_index = i
- end
- bundler_version
- end
-
- def gemfile
- gemfile = ENV["BUNDLE_GEMFILE"]
- return gemfile if gemfile && !gemfile.empty?
-
- File.expand_path("../../Gemfile", __FILE__)
- end
-
- def lockfile
- lockfile =
- case File.basename(gemfile)
- when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
- else "#{gemfile}.lock"
- end
- File.expand_path(lockfile)
- end
-
- def lockfile_version
- return unless File.file?(lockfile)
- lockfile_contents = File.read(lockfile)
- return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
- Regexp.last_match(1)
- end
-
- def bundler_version
- @bundler_version ||=
- env_var_version || cli_arg_version ||
- lockfile_version
- end
-
- def bundler_requirement
- return "#{Gem::Requirement.default}.a" unless bundler_version
-
- bundler_gem_version = Gem::Version.new(bundler_version)
-
- requirement = bundler_gem_version.approximate_recommendation
-
- return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
-
- requirement += ".a" if bundler_gem_version.prerelease?
-
- requirement
- end
-
- def load_bundler!
- ENV["BUNDLE_GEMFILE"] ||= gemfile
-
- activate_bundler
- end
-
- def activate_bundler
- gem_error = activation_error_handling do
- gem "bundler", bundler_requirement
- end
- return if gem_error.nil?
- require_error = activation_error_handling do
- require "bundler/version"
- end
- return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
- warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
- exit 42
- end
-
- def activation_error_handling
- yield
- nil
- rescue StandardError, LoadError => e
- e
- end
-end
-
-m.load_bundler!
-
-if m.invoked_as_script?
- load Gem.bin_path("bundler", "bundle")
-end
diff --git a/sentry-rails/examples/rails-6.0/bin/delayed_job b/sentry-rails/examples/rails-6.0/bin/delayed_job
deleted file mode 100755
index edf195985..000000000
--- a/sentry-rails/examples/rails-6.0/bin/delayed_job
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env ruby
-
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
-require 'delayed/command'
-Delayed::Command.new(ARGV).daemonize
diff --git a/sentry-rails/examples/rails-6.0/bin/rails b/sentry-rails/examples/rails-6.0/bin/rails
deleted file mode 100755
index 5badb2fde..000000000
--- a/sentry-rails/examples/rails-6.0/bin/rails
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env ruby
-begin
- load File.expand_path('../spring', __FILE__)
-rescue LoadError => e
- raise unless e.message.include?('spring')
-end
-APP_PATH = File.expand_path('../config/application', __dir__)
-require_relative '../config/boot'
-require 'rails/commands'
diff --git a/sentry-rails/examples/rails-6.0/bin/rake b/sentry-rails/examples/rails-6.0/bin/rake
deleted file mode 100755
index d87d5f578..000000000
--- a/sentry-rails/examples/rails-6.0/bin/rake
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env ruby
-begin
- load File.expand_path('../spring', __FILE__)
-rescue LoadError => e
- raise unless e.message.include?('spring')
-end
-require_relative '../config/boot'
-require 'rake'
-Rake.application.run
diff --git a/sentry-rails/examples/rails-6.0/bin/setup b/sentry-rails/examples/rails-6.0/bin/setup
deleted file mode 100755
index 5853b5ea8..000000000
--- a/sentry-rails/examples/rails-6.0/bin/setup
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env ruby
-require 'fileutils'
-
-# path to your application root.
-APP_ROOT = File.expand_path('..', __dir__)
-
-def system!(*args)
- system(*args) || abort("\n== Command #{args} failed ==")
-end
-
-FileUtils.chdir APP_ROOT do
- # This script is a way to setup or update your development environment automatically.
- # This script is idempotent, so that you can run it at anytime and get an expectable outcome.
- # Add necessary setup steps to this file.
-
- puts '== Installing dependencies =='
- system! 'gem install bundler --conservative'
- system('bundle check') || system!('bundle install')
-
- # Install JavaScript dependencies
- # system('bin/yarn')
-
- # puts "\n== Copying sample files =="
- # unless File.exist?('config/database.yml')
- # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
- # end
-
- puts "\n== Preparing database =="
- system! 'bin/rails db:prepare'
-
- puts "\n== Removing old logs and tempfiles =="
- system! 'bin/rails log:clear tmp:clear'
-
- puts "\n== Restarting application server =="
- system! 'bin/rails restart'
-end
diff --git a/sentry-rails/examples/rails-6.0/bin/spring b/sentry-rails/examples/rails-6.0/bin/spring
deleted file mode 100755
index d89ee495f..000000000
--- a/sentry-rails/examples/rails-6.0/bin/spring
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env ruby
-
-# This file loads Spring without using Bundler, in order to be fast.
-# It gets overwritten when you run the `spring binstub` command.
-
-unless defined?(Spring)
- require 'rubygems'
- require 'bundler'
-
- lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
- spring = lockfile.specs.detect { |spec| spec.name == 'spring' }
- if spring
- Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
- gem 'spring', spring.version
- require 'spring/binstub'
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/bin/webpack b/sentry-rails/examples/rails-6.0/bin/webpack
deleted file mode 100755
index 1031168d0..000000000
--- a/sentry-rails/examples/rails-6.0/bin/webpack
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env ruby
-
-ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
-ENV["NODE_ENV"] ||= "development"
-
-require "pathname"
-ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
- Pathname.new(__FILE__).realpath)
-
-require "bundler/setup"
-
-require "webpacker"
-require "webpacker/webpack_runner"
-
-APP_ROOT = File.expand_path("..", __dir__)
-Dir.chdir(APP_ROOT) do
- Webpacker::WebpackRunner.run(ARGV)
-end
diff --git a/sentry-rails/examples/rails-6.0/bin/webpack-dev-server b/sentry-rails/examples/rails-6.0/bin/webpack-dev-server
deleted file mode 100755
index dd9662737..000000000
--- a/sentry-rails/examples/rails-6.0/bin/webpack-dev-server
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env ruby
-
-ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
-ENV["NODE_ENV"] ||= "development"
-
-require "pathname"
-ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
- Pathname.new(__FILE__).realpath)
-
-require "bundler/setup"
-
-require "webpacker"
-require "webpacker/dev_server_runner"
-
-APP_ROOT = File.expand_path("..", __dir__)
-Dir.chdir(APP_ROOT) do
- Webpacker::DevServerRunner.run(ARGV)
-end
diff --git a/sentry-rails/examples/rails-6.0/bin/yarn b/sentry-rails/examples/rails-6.0/bin/yarn
deleted file mode 100755
index 460dd565b..000000000
--- a/sentry-rails/examples/rails-6.0/bin/yarn
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env ruby
-APP_ROOT = File.expand_path('..', __dir__)
-Dir.chdir(APP_ROOT) do
- begin
- exec "yarnpkg", *ARGV
- rescue Errno::ENOENT
- $stderr.puts "Yarn executable was not detected in the system."
- $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
- exit 1
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/config.ru b/sentry-rails/examples/rails-6.0/config.ru
deleted file mode 100644
index f7ba0b527..000000000
--- a/sentry-rails/examples/rails-6.0/config.ru
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require_relative 'config/environment'
-
-run Rails.application
diff --git a/sentry-rails/examples/rails-6.0/config/application.rb b/sentry-rails/examples/rails-6.0/config/application.rb
deleted file mode 100644
index f5310f618..000000000
--- a/sentry-rails/examples/rails-6.0/config/application.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require_relative 'boot'
-
-require 'rails/all'
-
-# Require the gems listed in Gemfile, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(*Rails.groups)
-
-module Rails60
- class Application < Rails::Application
- # Initialize configuration defaults for originally generated Rails version.
- config.load_defaults 6.0
-
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration can go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded after loading
- # the framework and any gems in your application.
- config.consider_all_requests_local = false
-
- # https://github.com/getsentry/raven-ruby/issues/494
- config.exceptions_app = self.routes
-
- config.webpacker.check_yarn_integrity = false
- config.active_job.queue_adapter = :sidekiq
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/config/boot.rb b/sentry-rails/examples/rails-6.0/config/boot.rb
deleted file mode 100644
index b9e460cef..000000000
--- a/sentry-rails/examples/rails-6.0/config/boot.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
-
-require 'bundler/setup' # Set up gems listed in the Gemfile.
-require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
diff --git a/sentry-rails/examples/rails-6.0/config/cable.yml b/sentry-rails/examples/rails-6.0/config/cable.yml
deleted file mode 100644
index e320cade2..000000000
--- a/sentry-rails/examples/rails-6.0/config/cable.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-development:
- adapter: async
-
-test:
- adapter: test
-
-production:
- adapter: redis
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
- channel_prefix: rails_6_0_production
diff --git a/sentry-rails/examples/rails-6.0/config/credentials.yml.enc b/sentry-rails/examples/rails-6.0/config/credentials.yml.enc
deleted file mode 100644
index ad208d37a..000000000
--- a/sentry-rails/examples/rails-6.0/config/credentials.yml.enc
+++ /dev/null
@@ -1 +0,0 @@
-hDXHlKlYVp8a2hbUQivxYb2pDDtIRbzhkcRR0Xj8a3AYwFdRYHQ3DHqyvKsUGKZAddX8M9cEZ7RdPOZ2OO5szycKkecUKsgXgMjk645FdklX8p+oLAXgTkobTJZ90B6Bhkwm+Rf5of8cPSFDRwC+G0DwmiRnKy833BXFm2kxpiOmjtl8f9nzHmaT8ojK34ZdNiOOQOnr7MAjZwF0uGq6hYNqIbCF9Gz1v7+iICFM26mPOU+K3Fo9KVGQ23nx5m0VENpv97Dvo0cklrto3DEK6E9lH2FPecBD1sdIn/bYkIST7jhxT8JRYs3JwEdt8PyTYOBhH2WiZVNcJiBzTsbt5iCj7ggLscVyGe8/99GmY3/L/ZP+7bhFztZP/yF30oW61xy/jE8W+kkfguAV3i6KeMNFRj5YmSusRSxu--2uC96PHVlR9eYeAb--vADqgojfdxPaeOcD4js7xA==
\ No newline at end of file
diff --git a/sentry-rails/examples/rails-6.0/config/database.yml b/sentry-rails/examples/rails-6.0/config/database.yml
deleted file mode 100644
index 4a8a1b26f..000000000
--- a/sentry-rails/examples/rails-6.0/config/database.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# SQLite. Versions 3.8.0 and up are supported.
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-#
-default: &default
- adapter: sqlite3
- pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
- timeout: 5000
-
-development:
- <<: *default
- database: db/development.sqlite3
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- <<: *default
- database: db/test.sqlite3
-
-production:
- <<: *default
- database: db/production.sqlite3
diff --git a/sentry-rails/examples/rails-6.0/config/environment.rb b/sentry-rails/examples/rails-6.0/config/environment.rb
deleted file mode 100644
index 426333bb4..000000000
--- a/sentry-rails/examples/rails-6.0/config/environment.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Load the Rails application.
-require_relative 'application'
-
-# Initialize the Rails application.
-Rails.application.initialize!
diff --git a/sentry-rails/examples/rails-6.0/config/environments/development.rb b/sentry-rails/examples/rails-6.0/config/environments/development.rb
deleted file mode 100644
index 66df51f6f..000000000
--- a/sentry-rails/examples/rails-6.0/config/environments/development.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # In the development environment your application's code is reloaded on
- # every request. This slows down response time but is perfect for development
- # since you don't have to restart the web server when you make code changes.
- config.cache_classes = false
-
- # Do not eager load code on boot.
- config.eager_load = false
-
- # Show full error reports.
- config.consider_all_requests_local = true
-
- # Enable/disable caching. By default caching is disabled.
- # Run rails dev:cache to toggle caching.
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
- config.action_controller.perform_caching = true
- config.action_controller.enable_fragment_cache_logging = true
-
- config.cache_store = :memory_store
- config.public_file_server.headers = {
- 'Cache-Control' => "public, max-age=#{2.days.to_i}"
- }
- else
- config.action_controller.perform_caching = false
-
- config.cache_store = :null_store
- end
-
- # Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
-
- # Don't care if the mailer can't send.
- config.action_mailer.raise_delivery_errors = false
-
- config.action_mailer.perform_caching = false
-
- # Print deprecation notices to the Rails logger.
- config.active_support.deprecation = :log
-
- # Raise an error on page load if there are pending migrations.
- config.active_record.migration_error = :page_load
-
- # Highlight code that triggered database queries in logs.
- config.active_record.verbose_query_logs = true
-
- # Debug mode disables concatenation and preprocessing of assets.
- # This option may cause significant delays in view rendering with a large
- # number of complex assets.
- config.assets.debug = true
-
- # Suppress logger output for asset requests.
- config.assets.quiet = true
-
- # Raises error for missing translations.
- # config.action_view.raise_on_missing_translations = true
-
- # Use an evented file watcher to asynchronously detect changes in source code,
- # routes, locales, etc. This feature depends on the listen gem.
- config.file_watcher = ActiveSupport::EventedFileUpdateChecker
-end
diff --git a/sentry-rails/examples/rails-6.0/config/environments/production.rb b/sentry-rails/examples/rails-6.0/config/environments/production.rb
deleted file mode 100644
index e685e0e25..000000000
--- a/sentry-rails/examples/rails-6.0/config/environments/production.rb
+++ /dev/null
@@ -1,112 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Code is not reloaded between requests.
- config.cache_classes = true
-
- # Eager load code on boot. This eager loads most of Rails and
- # your application in memory, allowing both threaded web servers
- # and those relying on copy on write to perform better.
- # Rake tasks automatically ignore this option for performance.
- config.eager_load = true
-
- # Full error reports are disabled and caching is turned on.
- config.consider_all_requests_local = false
- config.action_controller.perform_caching = true
-
- # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
- # config.require_master_key = true
-
- # Disable serving static files from the `/public` folder by default since
- # Apache or NGINX already handles this.
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
-
- # Compress CSS using a preprocessor.
- # config.assets.css_compressor = :sass
-
- # Do not fallback to assets pipeline if a precompiled asset is missed.
- config.assets.compile = false
-
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
- # config.action_controller.asset_host = 'http://assets.example.com'
-
- # Specifies the header that your server uses for sending files.
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
-
- # Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
-
- # Mount Action Cable outside main process or domain.
- # config.action_cable.mount_path = nil
- # config.action_cable.url = 'wss://example.com/cable'
- # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
-
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
-
- # Use the lowest log level to ensure availability of diagnostic information
- # when problems arise.
- config.log_level = :debug
-
- # Prepend all log lines with the following tags.
- config.log_tags = [ :request_id ]
-
- # Use a different cache store in production.
- # config.cache_store = :mem_cache_store
-
- # Use a real queuing backend for Active Job (and separate queues per environment).
- # config.active_job.queue_adapter = :resque
- # config.active_job.queue_name_prefix = "rails_6_0_production"
-
- config.action_mailer.perform_caching = false
-
- # Ignore bad email addresses and do not raise email delivery errors.
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
- # config.action_mailer.raise_delivery_errors = false
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation cannot be found).
- config.i18n.fallbacks = true
-
- # Send deprecation notices to registered listeners.
- config.active_support.deprecation = :notify
-
- # Use default logging formatter so that PID and timestamp are not suppressed.
- config.log_formatter = ::Logger::Formatter.new
-
- # Use a different logger for distributed setups.
- # require 'syslog/logger'
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
-
- if ENV["RAILS_LOG_TO_STDOUT"].present?
- logger = ActiveSupport::Logger.new(STDOUT)
- logger.formatter = config.log_formatter
- config.logger = ActiveSupport::TaggedLogging.new(logger)
- end
-
- # Do not dump schema after migrations.
- config.active_record.dump_schema_after_migration = false
-
- # Inserts middleware to perform automatic connection switching.
- # The `database_selector` hash is used to pass options to the DatabaseSelector
- # middleware. The `delay` is used to determine how long to wait after a write
- # to send a subsequent read to the primary.
- #
- # The `database_resolver` class is used by the middleware to determine which
- # database is appropriate to use based on the time delay.
- #
- # The `database_resolver_context` class is used by the middleware to set
- # timestamps for the last write to the primary. The resolver uses the context
- # class timestamps to determine how long to wait before reading from the
- # replica.
- #
- # By default Rails will store a last write timestamp in the session. The
- # DatabaseSelector middleware is designed as such you can define your own
- # strategy for connection switching and pass that into the middleware through
- # these configuration options.
- # config.active_record.database_selector = { delay: 2.seconds }
- # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
- # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
-end
diff --git a/sentry-rails/examples/rails-6.0/config/environments/test.rb b/sentry-rails/examples/rails-6.0/config/environments/test.rb
deleted file mode 100644
index 1d62e91b3..000000000
--- a/sentry-rails/examples/rails-6.0/config/environments/test.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
-
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- config.cache_classes = false
-
- # Do not eager load code on boot. This avoids loading your whole application
- # just for the purpose of running a single test. If you are using a tool that
- # preloads Rails for running tests, you may have to set it to true.
- config.eager_load = false
-
- # Configure public file server for tests with Cache-Control for performance.
- config.public_file_server.enabled = true
- config.public_file_server.headers = {
- 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
- }
-
- # Show full error reports and disable caching.
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
- config.cache_store = :null_store
-
- # Raise exceptions instead of rendering exception templates.
- config.action_dispatch.show_exceptions = false
-
- # Disable request forgery protection in test environment.
- config.action_controller.allow_forgery_protection = false
-
- # Store uploaded files on the local file system in a temporary directory.
- config.active_storage.service = :test
-
- config.action_mailer.perform_caching = false
-
- # Tell Action Mailer not to deliver emails to the real world.
- # The :test delivery method accumulates sent emails in the
- # ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
-
- # Print deprecation notices to the stderr.
- config.active_support.deprecation = :stderr
-
- # Raises error for missing translations.
- # config.action_view.raise_on_missing_translations = true
-end
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/application_controller_renderer.rb b/sentry-rails/examples/rails-6.0/config/initializers/application_controller_renderer.rb
deleted file mode 100644
index 89d2efab2..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/application_controller_renderer.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# ActiveSupport::Reloader.to_prepare do
-# ApplicationController.renderer.defaults.merge!(
-# http_host: 'example.org',
-# https: false
-# )
-# end
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/assets.rb b/sentry-rails/examples/rails-6.0/config/initializers/assets.rb
deleted file mode 100644
index 4b828e80c..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/assets.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = '1.0'
-
-# Add additional assets to the asset load path.
-# Rails.application.config.assets.paths << Emoji.images_path
-# Add Yarn node_modules folder to the asset load path.
-Rails.application.config.assets.paths << Rails.root.join('node_modules')
-
-# Precompile additional assets.
-# application.js, application.css, and all non-JS/CSS in the app/assets
-# folder are already added.
-# Rails.application.config.assets.precompile += %w( admin.js admin.css )
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/backtrace_silencers.rb b/sentry-rails/examples/rails-6.0/config/initializers/backtrace_silencers.rb
deleted file mode 100644
index 59385cdf3..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/backtrace_silencers.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/content_security_policy.rb b/sentry-rails/examples/rails-6.0/config/initializers/content_security_policy.rb
deleted file mode 100644
index 35d0f26fc..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/content_security_policy.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Define an application-wide content security policy
-# For further information see the following documentation
-# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
-
-# Rails.application.config.content_security_policy do |policy|
-# policy.default_src :self, :https
-# policy.font_src :self, :https, :data
-# policy.img_src :self, :https, :data
-# policy.object_src :none
-# policy.script_src :self, :https
-# policy.style_src :self, :https
-# # If you are using webpack-dev-server then specify webpack-dev-server host
-# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
-
-# # Specify URI for violation reports
-# # policy.report_uri "/csp-violation-report-endpoint"
-# end
-
-# If you are using UJS then enable automatic nonce generation
-# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
-
-# Set the nonce only to specific directives
-# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
-
-# Report CSP violations to a specified URI
-# For further information see the following documentation:
-# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
-# Rails.application.config.content_security_policy_report_only = true
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/cookies_serializer.rb b/sentry-rails/examples/rails-6.0/config/initializers/cookies_serializer.rb
deleted file mode 100644
index 5a6a32d37..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/cookies_serializer.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Specify a serializer for the signed and encrypted cookie jars.
-# Valid options are :json, :marshal, and :hybrid.
-Rails.application.config.action_dispatch.cookies_serializer = :json
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/delayed_job.rb b/sentry-rails/examples/rails-6.0/config/initializers/delayed_job.rb
deleted file mode 100644
index f9cb5abe9..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/delayed_job.rb
+++ /dev/null
@@ -1 +0,0 @@
-Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/filter_parameter_logging.rb b/sentry-rails/examples/rails-6.0/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index 4a994e1e7..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure sensitive parameters which will be filtered from the log file.
-Rails.application.config.filter_parameters += [:password]
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/inflections.rb b/sentry-rails/examples/rails-6.0/config/initializers/inflections.rb
deleted file mode 100644
index ac033bf9d..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/inflections.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym 'RESTful'
-# end
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/mime_types.rb b/sentry-rails/examples/rails-6.0/config/initializers/mime_types.rb
deleted file mode 100644
index dc1899682..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/mime_types.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/resque.rb b/sentry-rails/examples/rails-6.0/config/initializers/resque.rb
deleted file mode 100644
index 1ddd65155..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/resque.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-Resque.logger = Logger.new("#{Rails.root}/log/resque.log")
-Resque.logger.level = Logger::DEBUG
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/sentry.rb b/sentry-rails/examples/rails-6.0/config/initializers/sentry.rb
deleted file mode 100644
index 70cb1aa18..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/sentry.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-Sentry.init do |config|
- config.breadcrumbs_logger = [:active_support_logger]
- config.background_worker_threads = 0
- config.send_default_pii = true
- config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
- config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
- config.release = `git branch --show-current`
- config.include_local_variables = true
- # you can use the pre-defined job for the async callback
- #
- # config.async = lambda do |event, hint|
- # Sentry::SendEventJob.perform_later(event, hint)
- # end
-end
diff --git a/sentry-rails/examples/rails-6.0/config/initializers/wrap_parameters.rb b/sentry-rails/examples/rails-6.0/config/initializers/wrap_parameters.rb
deleted file mode 100644
index bbfc3961b..000000000
--- a/sentry-rails/examples/rails-6.0/config/initializers/wrap_parameters.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json]
-end
-
-# To enable root element in JSON for ActiveRecord objects.
-# ActiveSupport.on_load(:active_record) do
-# self.include_root_in_json = true
-# end
diff --git a/sentry-rails/examples/rails-6.0/config/locales/en.yml b/sentry-rails/examples/rails-6.0/config/locales/en.yml
deleted file mode 100644
index cf9b342d0..000000000
--- a/sentry-rails/examples/rails-6.0/config/locales/en.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-# Files in the config/locales directory are used for internationalization
-# and are automatically loaded by Rails. If you want to use locales other
-# than English, add the necessary files in this directory.
-#
-# To use the locales, use `I18n.t`:
-#
-# I18n.t 'hello'
-#
-# In views, this is aliased to just `t`:
-#
-# <%= t('hello') %>
-#
-# To use a different locale, set it with `I18n.locale`:
-#
-# I18n.locale = :es
-#
-# This would use the information in config/locales/es.yml.
-#
-# The following keys must be escaped otherwise they will not be retrieved by
-# the default I18n backend:
-#
-# true, false, on, off, yes, no
-#
-# Instead, surround them with single quotes.
-#
-# en:
-# 'true': 'foo'
-#
-# To learn more, please read the Rails Internationalization guide
-# available at https://guides.rubyonrails.org/i18n.html.
-
-en:
- hello: "Hello world"
diff --git a/sentry-rails/examples/rails-6.0/config/puma.rb b/sentry-rails/examples/rails-6.0/config/puma.rb
deleted file mode 100644
index 5ed443774..000000000
--- a/sentry-rails/examples/rails-6.0/config/puma.rb
+++ /dev/null
@@ -1,38 +0,0 @@
-# Puma can serve each request in a thread from an internal thread pool.
-# The `threads` method setting takes two numbers: a minimum and maximum.
-# Any libraries that use thread pools should be configured to match
-# the maximum value specified for Puma. Default is set to 5 threads for minimum
-# and maximum; this matches the default thread size of Active Record.
-#
-max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
-min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
-threads min_threads_count, max_threads_count
-
-# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
-#
-port ENV.fetch("PORT") { 3000 }
-
-# Specifies the `environment` that Puma will run in.
-#
-environment ENV.fetch("RAILS_ENV") { "development" }
-
-# Specifies the `pidfile` that Puma will use.
-pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
-
-# Specifies the number of `workers` to boot in clustered mode.
-# Workers are forked web server processes. If using threads and workers together
-# the concurrency of the application would be max `threads` * `workers`.
-# Workers do not work on JRuby or Windows (both of which do not support
-# processes).
-#
-# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
-
-# Use the `preload_app!` method when specifying a `workers` number.
-# This directive tells Puma to first boot the application and load code
-# before forking the application. This takes advantage of Copy On Write
-# process behavior so workers use less memory.
-#
-# preload_app!
-
-# Allow puma to be restarted by `rails restart` command.
-plugin :tmp_restart
diff --git a/sentry-rails/examples/rails-6.0/config/routes.rb b/sentry-rails/examples/rails-6.0/config/routes.rb
deleted file mode 100644
index 71b6a5f73..000000000
--- a/sentry-rails/examples/rails-6.0/config/routes.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require "resque/server"
-
-Rails.application.routes.draw do
- resources :posts
- get '500', to: 'welcome#report_demo'
- root to: "welcome#index"
-
- get 'appearance', to: 'welcome#appearance'
- get 'connect_trace', to: 'welcome#connect_trace'
- get 'view_error', to: 'welcome#view_error'
- get 'sidekiq_error', to: 'welcome#sidekiq_error'
- get 'resque_error', to: 'welcome#resque_error'
- get 'delayed_job_error', to: 'welcome#delayed_job_error'
- get 'job_error', to: 'welcome#job_error'
-
- require 'sidekiq/web'
-
- mount Sidekiq::Web => '/sidekiq'
- mount Resque::Server.new, at: "/resque"
-end
diff --git a/sentry-rails/examples/rails-6.0/config/spring.rb b/sentry-rails/examples/rails-6.0/config/spring.rb
deleted file mode 100644
index db5bf1307..000000000
--- a/sentry-rails/examples/rails-6.0/config/spring.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-Spring.watch(
- ".ruby-version",
- ".rbenv-vars",
- "tmp/restart.txt",
- "tmp/caching-dev.txt"
-)
diff --git a/sentry-rails/examples/rails-6.0/config/storage.yml b/sentry-rails/examples/rails-6.0/config/storage.yml
deleted file mode 100644
index d32f76e8f..000000000
--- a/sentry-rails/examples/rails-6.0/config/storage.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-test:
- service: Disk
- root: <%= Rails.root.join("tmp/storage") %>
-
-local:
- service: Disk
- root: <%= Rails.root.join("storage") %>
-
-# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
-# amazon:
-# service: S3
-# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
-# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
-# region: us-east-1
-# bucket: your_own_bucket
-
-# Remember not to checkin your GCS keyfile to a repository
-# google:
-# service: GCS
-# project: your_project
-# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
-# bucket: your_own_bucket
-
-# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
-# microsoft:
-# service: AzureStorage
-# storage_account_name: your_account_name
-# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
-# container: your_container_name
-
-# mirror:
-# service: Mirror
-# primary: local
-# mirrors: [ amazon, google, microsoft ]
diff --git a/sentry-rails/examples/rails-6.0/config/unicorn.rb b/sentry-rails/examples/rails-6.0/config/unicorn.rb
deleted file mode 100644
index 5b4396f52..000000000
--- a/sentry-rails/examples/rails-6.0/config/unicorn.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
-timeout 200
-preload_app true
-
-before_fork do |server, worker|
- Signal.trap 'TERM' do
- puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
- Process.kill 'QUIT', Process.pid
- end
-
- defined?(ActiveRecord::Base) and
- ActiveRecord::Base.connection.disconnect!
-end
-
-after_fork do |server, worker|
- Signal.trap 'TERM' do
- puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
- end
-
- defined?(ActiveRecord::Base) and
- ActiveRecord::Base.establish_connection
-end
diff --git a/sentry-rails/examples/rails-6.0/config/webpack/development.js b/sentry-rails/examples/rails-6.0/config/webpack/development.js
deleted file mode 100644
index c5edff94a..000000000
--- a/sentry-rails/examples/rails-6.0/config/webpack/development.js
+++ /dev/null
@@ -1,5 +0,0 @@
-process.env.NODE_ENV = process.env.NODE_ENV || 'development'
-
-const environment = require('./environment')
-
-module.exports = environment.toWebpackConfig()
diff --git a/sentry-rails/examples/rails-6.0/config/webpack/environment.js b/sentry-rails/examples/rails-6.0/config/webpack/environment.js
deleted file mode 100644
index d16d9af74..000000000
--- a/sentry-rails/examples/rails-6.0/config/webpack/environment.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const { environment } = require('@rails/webpacker')
-
-module.exports = environment
diff --git a/sentry-rails/examples/rails-6.0/config/webpack/production.js b/sentry-rails/examples/rails-6.0/config/webpack/production.js
deleted file mode 100644
index be0f53aac..000000000
--- a/sentry-rails/examples/rails-6.0/config/webpack/production.js
+++ /dev/null
@@ -1,5 +0,0 @@
-process.env.NODE_ENV = process.env.NODE_ENV || 'production'
-
-const environment = require('./environment')
-
-module.exports = environment.toWebpackConfig()
diff --git a/sentry-rails/examples/rails-6.0/config/webpack/test.js b/sentry-rails/examples/rails-6.0/config/webpack/test.js
deleted file mode 100644
index c5edff94a..000000000
--- a/sentry-rails/examples/rails-6.0/config/webpack/test.js
+++ /dev/null
@@ -1,5 +0,0 @@
-process.env.NODE_ENV = process.env.NODE_ENV || 'development'
-
-const environment = require('./environment')
-
-module.exports = environment.toWebpackConfig()
diff --git a/sentry-rails/examples/rails-6.0/config/webpacker.yml b/sentry-rails/examples/rails-6.0/config/webpacker.yml
deleted file mode 100644
index 8581ac047..000000000
--- a/sentry-rails/examples/rails-6.0/config/webpacker.yml
+++ /dev/null
@@ -1,96 +0,0 @@
-# Note: You must restart bin/webpack-dev-server for changes to take effect
-
-default: &default
- source_path: app/javascript
- source_entry_path: packs
- public_root_path: public
- public_output_path: packs
- cache_path: tmp/cache/webpacker
- check_yarn_integrity: false
- webpack_compile_output: true
-
- # Additional paths webpack should lookup modules
- # ['app/assets', 'engine/foo/app/assets']
- resolved_paths: []
-
- # Reload manifest.json on all requests so we reload latest compiled packs
- cache_manifest: false
-
- # Extract and emit a css file
- extract_css: false
-
- static_assets_extensions:
- - .jpg
- - .jpeg
- - .png
- - .gif
- - .tiff
- - .ico
- - .svg
- - .eot
- - .otf
- - .ttf
- - .woff
- - .woff2
-
- extensions:
- - .mjs
- - .js
- - .sass
- - .scss
- - .css
- - .module.sass
- - .module.scss
- - .module.css
- - .png
- - .svg
- - .gif
- - .jpeg
- - .jpg
-
-development:
- <<: *default
- compile: true
-
- # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
- check_yarn_integrity: true
-
- # Reference: https://webpack.js.org/configuration/dev-server/
- dev_server:
- https: false
- host: localhost
- port: 3035
- public: localhost:3035
- hmr: false
- # Inline should be set to true if using HMR
- inline: true
- overlay: true
- compress: true
- disable_host_check: true
- use_local_ip: false
- quiet: false
- pretty: false
- headers:
- 'Access-Control-Allow-Origin': '*'
- watch_options:
- ignored: '**/node_modules/**'
-
-
-test:
- <<: *default
- compile: true
-
- # Compile test packs to a separate directory
- public_output_path: packs-test
-
-production:
- <<: *default
-
- # Production depends on precompilation of packs prior to booting for performance.
- compile: false
-
- # Extract and emit a css file
- extract_css: true
-
- # Cache manifest.json for performance
- cache_manifest: true
diff --git a/sentry-rails/examples/rails-6.0/db/migrate/20201120074001_create_posts.rb b/sentry-rails/examples/rails-6.0/db/migrate/20201120074001_create_posts.rb
deleted file mode 100644
index a23882f27..000000000
--- a/sentry-rails/examples/rails-6.0/db/migrate/20201120074001_create_posts.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class CreatePosts < ActiveRecord::Migration[6.0]
- def change
- create_table :posts do |t|
- t.string :title
- t.text :content
-
- t.timestamps
- end
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/db/migrate/20211002044752_create_active_storage_tables.active_storage.rb b/sentry-rails/examples/rails-6.0/db/migrate/20211002044752_create_active_storage_tables.active_storage.rb
deleted file mode 100644
index 87798267b..000000000
--- a/sentry-rails/examples/rails-6.0/db/migrate/20211002044752_create_active_storage_tables.active_storage.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# This migration comes from active_storage (originally 20170806125915)
-class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
- def change
- create_table :active_storage_blobs do |t|
- t.string :key, null: false
- t.string :filename, null: false
- t.string :content_type
- t.text :metadata
- t.string :service_name, null: false
- t.bigint :byte_size, null: false
- t.string :checksum, null: false
- t.datetime :created_at, null: false
-
- t.index [ :key ], unique: true
- end
-
- create_table :active_storage_attachments do |t|
- t.string :name, null: false
- t.references :record, null: false, polymorphic: true, index: false
- t.references :blob, null: false
-
- t.datetime :created_at, null: false
-
- t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
- t.foreign_key :active_storage_blobs, column: :blob_id
- end
-
- create_table :active_storage_variant_records do |t|
- t.belongs_to :blob, null: false, index: false
- t.string :variation_digest, null: false
-
- t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true
- t.foreign_key :active_storage_blobs, column: :blob_id
- end
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/db/migrate/20211219212232_create_delayed_jobs.rb b/sentry-rails/examples/rails-6.0/db/migrate/20211219212232_create_delayed_jobs.rb
deleted file mode 100644
index d55c28bc2..000000000
--- a/sentry-rails/examples/rails-6.0/db/migrate/20211219212232_create_delayed_jobs.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-class CreateDelayedJobs < ActiveRecord::Migration[6.1]
- def self.up
- create_table :delayed_jobs do |table|
- table.integer :priority, default: 0, null: false # Allows some jobs to jump to the front of the queue
- table.integer :attempts, default: 0, null: false # Provides for retries, but still fail eventually.
- table.text :handler, null: false # YAML-encoded string of the object that will do work
- table.text :last_error # reason for last failure (See Note below)
- table.datetime :run_at # When to run. Could be Time.zone.now for immediately, or sometime in the future.
- table.datetime :locked_at # Set when a client is working on this object
- table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
- table.string :locked_by # Who is working on this object (if locked)
- table.string :queue # The name of the queue this job is in
- table.timestamps null: true
- end
-
- add_index :delayed_jobs, [:priority, :run_at], name: "delayed_jobs_priority"
- end
-
- def self.down
- drop_table :delayed_jobs
- end
-end
diff --git a/sentry-rails/examples/rails-6.0/db/schema.rb b/sentry-rails/examples/rails-6.0/db/schema.rb
deleted file mode 100644
index 253a19189..000000000
--- a/sentry-rails/examples/rails-6.0/db/schema.rb
+++ /dev/null
@@ -1,66 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# This file is the source Rails uses to define your schema when running `bin/rails
-# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
-# be faster and is potentially less error prone than running all of your
-# migrations from scratch. Old migrations may fail to apply correctly if those
-# migrations use external dependencies or application code.
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema.define(version: 2021_12_19_212232) do
- create_table "active_storage_attachments", force: :cascade do |t|
- t.string "name", null: false
- t.string "record_type", null: false
- t.integer "record_id", null: false
- t.integer "blob_id", null: false
- t.datetime "created_at", null: false
- t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
- t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
- end
-
- create_table "active_storage_blobs", force: :cascade do |t|
- t.string "key", null: false
- t.string "filename", null: false
- t.string "content_type"
- t.text "metadata"
- t.string "service_name", null: false
- t.bigint "byte_size", null: false
- t.string "checksum", null: false
- t.datetime "created_at", null: false
- t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
- end
-
- create_table "active_storage_variant_records", force: :cascade do |t|
- t.integer "blob_id", null: false
- t.string "variation_digest", null: false
- t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
- end
-
- create_table "delayed_jobs", force: :cascade do |t|
- t.integer "priority", default: 0, null: false
- t.integer "attempts", default: 0, null: false
- t.text "handler", null: false
- t.text "last_error"
- t.datetime "run_at"
- t.datetime "locked_at"
- t.datetime "failed_at"
- t.string "locked_by"
- t.string "queue"
- t.datetime "created_at", precision: 6
- t.datetime "updated_at", precision: 6
- t.index ["priority", "run_at"], name: "delayed_jobs_priority"
- end
-
- create_table "posts", force: :cascade do |t|
- t.string "title"
- t.text "content"
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- end
-
- add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
- add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
-end
diff --git a/sentry-rails/examples/rails-6.0/db/seeds.rb b/sentry-rails/examples/rails-6.0/db/seeds.rb
deleted file mode 100644
index 1beea2acc..000000000
--- a/sentry-rails/examples/rails-6.0/db/seeds.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
-#
-# Examples:
-#
-# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
-# Character.create(name: 'Luke', movie: movies.first)
diff --git a/sentry-rails/examples/rails-6.0/lib/assets/.keep b/sentry-rails/examples/rails-6.0/lib/assets/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-6.0/lib/tasks/.keep b/sentry-rails/examples/rails-6.0/lib/tasks/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-6.0/lib/tasks/resque.rake b/sentry-rails/examples/rails-6.0/lib/tasks/resque.rake
deleted file mode 100644
index 6295b59fc..000000000
--- a/sentry-rails/examples/rails-6.0/lib/tasks/resque.rake
+++ /dev/null
@@ -1,2 +0,0 @@
-require 'resque/tasks'
-task "resque:setup" => :environment
diff --git a/sentry-rails/examples/rails-6.0/package.json b/sentry-rails/examples/rails-6.0/package.json
deleted file mode 100644
index 9ff0f0afb..000000000
--- a/sentry-rails/examples/rails-6.0/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "rails_6_0",
- "private": true,
- "dependencies": {
- "@rails/actioncable": "^6.0.0-alpha",
- "@rails/activestorage": "^6.0.0-alpha",
- "@rails/ujs": "^6.0.0-alpha",
- "@rails/webpacker": "4.2.2",
- "turbolinks": "^5.2.0"
- },
- "version": "0.1.0",
- "devDependencies": {
- "webpack-dev-server": "^3.11.0"
- }
-}
diff --git a/sentry-rails/examples/rails-6.0/postcss.config.js b/sentry-rails/examples/rails-6.0/postcss.config.js
deleted file mode 100644
index aa5998a80..000000000
--- a/sentry-rails/examples/rails-6.0/postcss.config.js
+++ /dev/null
@@ -1,12 +0,0 @@
-module.exports = {
- plugins: [
- require('postcss-import'),
- require('postcss-flexbugs-fixes'),
- require('postcss-preset-env')({
- autoprefixer: {
- flexbox: 'no-2009'
- },
- stage: 3
- })
- ]
-}
diff --git a/sentry-rails/examples/rails-6.0/public/404.html b/sentry-rails/examples/rails-6.0/public/404.html
deleted file mode 100644
index 2be3af26f..000000000
--- a/sentry-rails/examples/rails-6.0/public/404.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The page you were looking for doesn't exist (404)
-
-
-
-
-
-
-
-
-
The page you were looking for doesn't exist.
-
You may have mistyped the address or the page may have moved.
-
-
If you are the application owner check the logs for more information.
-
-
-
diff --git a/sentry-rails/examples/rails-6.0/public/422.html b/sentry-rails/examples/rails-6.0/public/422.html
deleted file mode 100644
index c08eac0d1..000000000
--- a/sentry-rails/examples/rails-6.0/public/422.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The change you wanted was rejected (422)
-
-
-
-
-
-
-
-
-
The change you wanted was rejected.
-
Maybe you tried to change something you didn't have access to.
-
-
If you are the application owner check the logs for more information.
-
- <% if @sentry_event_id %>
-
- <% end %>
-
-
-
diff --git a/sentry-rails/examples/rails-7.0/app/views/welcome/view_error.html.erb b/sentry-rails/examples/rails-7.0/app/views/welcome/view_error.html.erb
deleted file mode 100644
index 9ba7b5ad1..000000000
--- a/sentry-rails/examples/rails-7.0/app/views/welcome/view_error.html.erb
+++ /dev/null
@@ -1 +0,0 @@
-hey <%= foo %>
diff --git a/sentry-rails/examples/rails-7.0/app/workers/error_worker.rb b/sentry-rails/examples/rails-7.0/app/workers/error_worker.rb
deleted file mode 100644
index 9edbf87c3..000000000
--- a/sentry-rails/examples/rails-7.0/app/workers/error_worker.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class ErrorWorker
- include Sidekiq::Worker
- sidekiq_options retry: false
-
- def perform
- a = 1
- raise "Worker failed"
- end
-end
diff --git a/sentry-rails/examples/rails-7.0/bin/bundle b/sentry-rails/examples/rails-7.0/bin/bundle
deleted file mode 100755
index a71368e32..000000000
--- a/sentry-rails/examples/rails-7.0/bin/bundle
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/usr/bin/env ruby
-# frozen_string_literal: true
-
-#
-# This file was generated by Bundler.
-#
-# The application 'bundle' is installed as part of a gem, and
-# this file is here to facilitate running it.
-#
-
-require "rubygems"
-
-m = Module.new do
- module_function
-
- def invoked_as_script?
- File.expand_path($0) == File.expand_path(__FILE__)
- end
-
- def env_var_version
- ENV["BUNDLER_VERSION"]
- end
-
- def cli_arg_version
- return unless invoked_as_script? # don't want to hijack other binstubs
- return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
- bundler_version = nil
- update_index = nil
- ARGV.each_with_index do |a, i|
- if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
- bundler_version = a
- end
- next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
- bundler_version = $1
- update_index = i
- end
- bundler_version
- end
-
- def gemfile
- gemfile = ENV["BUNDLE_GEMFILE"]
- return gemfile if gemfile && !gemfile.empty?
-
- File.expand_path("../../Gemfile", __FILE__)
- end
-
- def lockfile
- lockfile =
- case File.basename(gemfile)
- when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
- else "#{gemfile}.lock"
- end
- File.expand_path(lockfile)
- end
-
- def lockfile_version
- return unless File.file?(lockfile)
- lockfile_contents = File.read(lockfile)
- return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
- Regexp.last_match(1)
- end
-
- def bundler_version
- @bundler_version ||=
- env_var_version || cli_arg_version ||
- lockfile_version
- end
-
- def bundler_requirement
- return "#{Gem::Requirement.default}.a" unless bundler_version
-
- bundler_gem_version = Gem::Version.new(bundler_version)
-
- requirement = bundler_gem_version.approximate_recommendation
-
- return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
-
- requirement += ".a" if bundler_gem_version.prerelease?
-
- requirement
- end
-
- def load_bundler!
- ENV["BUNDLE_GEMFILE"] ||= gemfile
-
- activate_bundler
- end
-
- def activate_bundler
- gem_error = activation_error_handling do
- gem "bundler", bundler_requirement
- end
- return if gem_error.nil?
- require_error = activation_error_handling do
- require "bundler/version"
- end
- return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
- warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
- exit 42
- end
-
- def activation_error_handling
- yield
- nil
- rescue StandardError, LoadError => e
- e
- end
-end
-
-m.load_bundler!
-
-if m.invoked_as_script?
- load Gem.bin_path("bundler", "bundle")
-end
diff --git a/sentry-rails/examples/rails-7.0/bin/rails b/sentry-rails/examples/rails-7.0/bin/rails
deleted file mode 100755
index efc037749..000000000
--- a/sentry-rails/examples/rails-7.0/bin/rails
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-APP_PATH = File.expand_path("../config/application", __dir__)
-require_relative "../config/boot"
-require "rails/commands"
diff --git a/sentry-rails/examples/rails-7.0/bin/rake b/sentry-rails/examples/rails-7.0/bin/rake
deleted file mode 100755
index 4fbf10b96..000000000
--- a/sentry-rails/examples/rails-7.0/bin/rake
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-require_relative "../config/boot"
-require "rake"
-Rake.application.run
diff --git a/sentry-rails/examples/rails-7.0/bin/setup b/sentry-rails/examples/rails-7.0/bin/setup
deleted file mode 100755
index ec47b79b3..000000000
--- a/sentry-rails/examples/rails-7.0/bin/setup
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env ruby
-require "fileutils"
-
-# path to your application root.
-APP_ROOT = File.expand_path("..", __dir__)
-
-def system!(*args)
- system(*args) || abort("\n== Command #{args} failed ==")
-end
-
-FileUtils.chdir APP_ROOT do
- # This script is a way to set up or update your development environment automatically.
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
- # Add necessary setup steps to this file.
-
- puts "== Installing dependencies =="
- system! "gem install bundler --conservative"
- system("bundle check") || system!("bundle install")
-
- # puts "\n== Copying sample files =="
- # unless File.exist?("config/database.yml")
- # FileUtils.cp "config/database.yml.sample", "config/database.yml"
- # end
-
- puts "\n== Preparing database =="
- system! "bin/rails db:prepare"
-
- puts "\n== Removing old logs and tempfiles =="
- system! "bin/rails log:clear tmp:clear"
-
- puts "\n== Restarting application server =="
- system! "bin/rails restart"
-end
diff --git a/sentry-rails/examples/rails-7.0/config.ru b/sentry-rails/examples/rails-7.0/config.ru
deleted file mode 100644
index 4a3c09a68..000000000
--- a/sentry-rails/examples/rails-7.0/config.ru
+++ /dev/null
@@ -1,6 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require_relative "config/environment"
-
-run Rails.application
-Rails.application.load_server
diff --git a/sentry-rails/examples/rails-7.0/config/application.rb b/sentry-rails/examples/rails-7.0/config/application.rb
deleted file mode 100644
index 4eda09121..000000000
--- a/sentry-rails/examples/rails-7.0/config/application.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require_relative "boot"
-
-require "rails/all"
-
-# Require the gems listed in Gemfile, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(*Rails.groups)
-
-module ExampleApp
- class Application < Rails::Application
- # Initialize configuration defaults for originally generated Rails version.
- config.load_defaults 7.0
-
- # Configuration for the application, engines, and railties goes here.
- #
- # These settings can be overridden in specific environments using the files
- # in config/environments, which are processed later.
- #
- # config.time_zone = "Central Time (US & Canada)"
- # config.eager_load_paths << Rails.root.join("extras")
- end
-end
diff --git a/sentry-rails/examples/rails-7.0/config/boot.rb b/sentry-rails/examples/rails-7.0/config/boot.rb
deleted file mode 100644
index 988a5ddc4..000000000
--- a/sentry-rails/examples/rails-7.0/config/boot.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
-
-require "bundler/setup" # Set up gems listed in the Gemfile.
-require "bootsnap/setup" # Speed up boot time by caching expensive operations.
diff --git a/sentry-rails/examples/rails-7.0/config/cable.yml b/sentry-rails/examples/rails-7.0/config/cable.yml
deleted file mode 100644
index d77ba7489..000000000
--- a/sentry-rails/examples/rails-7.0/config/cable.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-development:
- adapter: async
-
-test:
- adapter: test
-
-production:
- adapter: redis
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
- channel_prefix: example_app_production
diff --git a/sentry-rails/examples/rails-7.0/config/credentials.yml.enc b/sentry-rails/examples/rails-7.0/config/credentials.yml.enc
deleted file mode 100644
index 719489c9c..000000000
--- a/sentry-rails/examples/rails-7.0/config/credentials.yml.enc
+++ /dev/null
@@ -1 +0,0 @@
-hMzcp7KTXzFwv/URv0QKZFpTPQ7sm+euY78sT1+HM4blQSEHN2M5t9ngtyOlBFL5BXuOBMOeHeAbieS6cfTbxGszRV3tF4BhyzTF8lxpuCbC3Bz39KRO3Z4SW0PiCmE01v9CryvlL7T9cQ33BAGD+g6j5OfFaKZ01nLsLficUKtPKMSVb98k9a/fEGnmBnNaMQ50qr+uZ3ZEEFwmZdpZXUeONmbaJGPRibLMnrl3C8uD0OmHTVj2SahA+IF7pE3z0U5DY7gMeIr26shuuqbKlV/sPNNeeYctL0vH1B5bq4defA1Oh3/QSntyR4+yNBWeWtvKHa37h8Sx6QOnzuu4JcsLZWzJ2Gxv2vgdTK6ay+b5o/NMMPc3VPrfoq5BKQZa6o6KK47NYD1OeUPB8R+6hikSkxAJdA2waoAp--IMbuQeA4ovMZSNMw--XsI3lyNbL2NLWxm6EGstyw==
\ No newline at end of file
diff --git a/sentry-rails/examples/rails-7.0/config/database.yml b/sentry-rails/examples/rails-7.0/config/database.yml
deleted file mode 100644
index fcba57f19..000000000
--- a/sentry-rails/examples/rails-7.0/config/database.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# SQLite. Versions 3.8.0 and up are supported.
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem "sqlite3"
-#
-default: &default
- adapter: sqlite3
- pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
- timeout: 5000
-
-development:
- <<: *default
- database: db/development.sqlite3
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- <<: *default
- database: db/test.sqlite3
-
-production:
- <<: *default
- database: db/production.sqlite3
diff --git a/sentry-rails/examples/rails-7.0/config/environment.rb b/sentry-rails/examples/rails-7.0/config/environment.rb
deleted file mode 100644
index cac531577..000000000
--- a/sentry-rails/examples/rails-7.0/config/environment.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Load the Rails application.
-require_relative "application"
-
-# Initialize the Rails application.
-Rails.application.initialize!
diff --git a/sentry-rails/examples/rails-7.0/config/environments/development.rb b/sentry-rails/examples/rails-7.0/config/environments/development.rb
deleted file mode 100644
index 8500f459a..000000000
--- a/sentry-rails/examples/rails-7.0/config/environments/development.rb
+++ /dev/null
@@ -1,70 +0,0 @@
-require "active_support/core_ext/integer/time"
-
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # In the development environment your application's code is reloaded any time
- # it changes. This slows down response time but is perfect for development
- # since you don't have to restart the web server when you make code changes.
- config.cache_classes = false
-
- # Do not eager load code on boot.
- config.eager_load = false
-
- # Show full error reports.
- config.consider_all_requests_local = true
-
- # Enable server timing
- config.server_timing = true
-
- # Enable/disable caching. By default caching is disabled.
- # Run rails dev:cache to toggle caching.
- if Rails.root.join("tmp/caching-dev.txt").exist?
- config.action_controller.perform_caching = true
- config.action_controller.enable_fragment_cache_logging = true
-
- config.cache_store = :memory_store
- config.public_file_server.headers = {
- "Cache-Control" => "public, max-age=#{2.days.to_i}"
- }
- else
- config.action_controller.perform_caching = false
-
- config.cache_store = :null_store
- end
-
- # Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
-
- # Don't care if the mailer can't send.
- config.action_mailer.raise_delivery_errors = false
-
- config.action_mailer.perform_caching = false
-
- # Print deprecation notices to the Rails logger.
- config.active_support.deprecation = :log
-
- # Raise exceptions for disallowed deprecations.
- config.active_support.disallowed_deprecation = :raise
-
- # Tell Active Support which deprecation messages to disallow.
- config.active_support.disallowed_deprecation_warnings = []
-
- # Raise an error on page load if there are pending migrations.
- config.active_record.migration_error = :page_load
-
- # Highlight code that triggered database queries in logs.
- config.active_record.verbose_query_logs = true
-
- # Suppress logger output for asset requests.
- config.assets.quiet = true
-
- # Raises error for missing translations.
- # config.i18n.raise_on_missing_translations = true
-
- # Annotate rendered view with file names.
- # config.action_view.annotate_rendered_view_with_filenames = true
-
- # Uncomment if you wish to allow Action Cable access from any origin.
- # config.action_cable.disable_request_forgery_protection = true
-end
diff --git a/sentry-rails/examples/rails-7.0/config/environments/production.rb b/sentry-rails/examples/rails-7.0/config/environments/production.rb
deleted file mode 100644
index 2eac92a44..000000000
--- a/sentry-rails/examples/rails-7.0/config/environments/production.rb
+++ /dev/null
@@ -1,93 +0,0 @@
-require "active_support/core_ext/integer/time"
-
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Code is not reloaded between requests.
- config.cache_classes = true
-
- # Eager load code on boot. This eager loads most of Rails and
- # your application in memory, allowing both threaded web servers
- # and those relying on copy on write to perform better.
- # Rake tasks automatically ignore this option for performance.
- config.eager_load = true
-
- # Full error reports are disabled and caching is turned on.
- config.consider_all_requests_local = false
- config.action_controller.perform_caching = true
-
- # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
- # config.require_master_key = true
-
- # Disable serving static files from the `/public` folder by default since
- # Apache or NGINX already handles this.
- config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
-
- # Compress CSS using a preprocessor.
- # config.assets.css_compressor = :sass
-
- # Do not fallback to assets pipeline if a precompiled asset is missed.
- config.assets.compile = false
-
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
- # config.asset_host = "http://assets.example.com"
-
- # Specifies the header that your server uses for sending files.
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
- # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
-
- # Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
-
- # Mount Action Cable outside main process or domain.
- # config.action_cable.mount_path = nil
- # config.action_cable.url = "wss://example.com/cable"
- # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
-
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
-
- # Include generic and useful information about system operation, but avoid logging too much
- # information to avoid inadvertent exposure of personally identifiable information (PII).
- config.log_level = :info
-
- # Prepend all log lines with the following tags.
- config.log_tags = [ :request_id ]
-
- # Use a different cache store in production.
- # config.cache_store = :mem_cache_store
-
- # Use a real queuing backend for Active Job (and separate queues per environment).
- # config.active_job.queue_adapter = :resque
- # config.active_job.queue_name_prefix = "example_app_production"
-
- config.action_mailer.perform_caching = false
-
- # Ignore bad email addresses and do not raise email delivery errors.
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
- # config.action_mailer.raise_delivery_errors = false
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation cannot be found).
- config.i18n.fallbacks = true
-
- # Don't log any deprecations.
- config.active_support.report_deprecations = false
-
- # Use default logging formatter so that PID and timestamp are not suppressed.
- config.log_formatter = ::Logger::Formatter.new
-
- # Use a different logger for distributed setups.
- # require "syslog/logger"
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
-
- if ENV["RAILS_LOG_TO_STDOUT"].present?
- logger = ActiveSupport::Logger.new(STDOUT)
- logger.formatter = config.log_formatter
- config.logger = ActiveSupport::TaggedLogging.new(logger)
- end
-
- # Do not dump schema after migrations.
- config.active_record.dump_schema_after_migration = false
-end
diff --git a/sentry-rails/examples/rails-7.0/config/environments/test.rb b/sentry-rails/examples/rails-7.0/config/environments/test.rb
deleted file mode 100644
index 8a7113441..000000000
--- a/sentry-rails/examples/rails-7.0/config/environments/test.rb
+++ /dev/null
@@ -1,60 +0,0 @@
-require "active_support/core_ext/integer/time"
-
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
-
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Turn false under Spring and add config.action_view.cache_template_loading = true.
- config.cache_classes = true
-
- # Eager loading loads your whole application. When running a single test locally,
- # this probably isn't necessary. It's a good idea to do in a continuous integration
- # system, or in some way before deploying your code.
- config.eager_load = ENV["CI"].present?
-
- # Configure public file server for tests with Cache-Control for performance.
- config.public_file_server.enabled = true
- config.public_file_server.headers = {
- "Cache-Control" => "public, max-age=#{1.hour.to_i}"
- }
-
- # Show full error reports and disable caching.
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
- config.cache_store = :null_store
-
- # Raise exceptions instead of rendering exception templates.
- config.action_dispatch.show_exceptions = true
-
- # Disable request forgery protection in test environment.
- config.action_controller.allow_forgery_protection = false
-
- # Store uploaded files on the local file system in a temporary directory.
- config.active_storage.service = :test
-
- config.action_mailer.perform_caching = false
-
- # Tell Action Mailer not to deliver emails to the real world.
- # The :test delivery method accumulates sent emails in the
- # ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
-
- # Print deprecation notices to the stderr.
- config.active_support.deprecation = :stderr
-
- # Raise exceptions for disallowed deprecations.
- config.active_support.disallowed_deprecation = :raise
-
- # Tell Active Support which deprecation messages to disallow.
- config.active_support.disallowed_deprecation_warnings = []
-
- # Raises error for missing translations.
- # config.i18n.raise_on_missing_translations = true
-
- # Annotate rendered view with file names.
- # config.action_view.annotate_rendered_view_with_filenames = true
-end
diff --git a/sentry-rails/examples/rails-7.0/config/initializers/assets.rb b/sentry-rails/examples/rails-7.0/config/initializers/assets.rb
deleted file mode 100644
index 2eeef966f..000000000
--- a/sentry-rails/examples/rails-7.0/config/initializers/assets.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = "1.0"
-
-# Add additional assets to the asset load path.
-# Rails.application.config.assets.paths << Emoji.images_path
-
-# Precompile additional assets.
-# application.js, application.css, and all non-JS/CSS in the app/assets
-# folder are already added.
-# Rails.application.config.assets.precompile += %w( admin.js admin.css )
diff --git a/sentry-rails/examples/rails-7.0/config/initializers/content_security_policy.rb b/sentry-rails/examples/rails-7.0/config/initializers/content_security_policy.rb
deleted file mode 100644
index 3621f97f8..000000000
--- a/sentry-rails/examples/rails-7.0/config/initializers/content_security_policy.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Define an application-wide content security policy
-# For further information see the following documentation
-# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
-
-# Rails.application.configure do
-# config.content_security_policy do |policy|
-# policy.default_src :self, :https
-# policy.font_src :self, :https, :data
-# policy.img_src :self, :https, :data
-# policy.object_src :none
-# policy.script_src :self, :https
-# policy.style_src :self, :https
-# # Specify URI for violation reports
-# # policy.report_uri "/csp-violation-report-endpoint"
-# end
-#
-# # Generate session nonces for permitted importmap and inline scripts
-# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
-# config.content_security_policy_nonce_directives = %w(script-src)
-#
-# # Report CSP violations to a specified URI. See:
-# # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
-# # config.content_security_policy_report_only = true
-# end
diff --git a/sentry-rails/examples/rails-7.0/config/initializers/filter_parameter_logging.rb b/sentry-rails/examples/rails-7.0/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index adc6568ce..000000000
--- a/sentry-rails/examples/rails-7.0/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure parameters to be filtered from the log file. Use this to limit dissemination of
-# sensitive information. See the ActiveSupport::ParameterFilter documentation for supported
-# notations and behaviors.
-Rails.application.config.filter_parameters += [
- :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
-]
diff --git a/sentry-rails/examples/rails-7.0/config/initializers/inflections.rb b/sentry-rails/examples/rails-7.0/config/initializers/inflections.rb
deleted file mode 100644
index 3860f659e..000000000
--- a/sentry-rails/examples/rails-7.0/config/initializers/inflections.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, "\\1en"
-# inflect.singular /^(ox)en/i, "\\1"
-# inflect.irregular "person", "people"
-# inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym "RESTful"
-# end
diff --git a/sentry-rails/examples/rails-7.0/config/initializers/permissions_policy.rb b/sentry-rails/examples/rails-7.0/config/initializers/permissions_policy.rb
deleted file mode 100644
index 00f64d71b..000000000
--- a/sentry-rails/examples/rails-7.0/config/initializers/permissions_policy.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# Define an application-wide HTTP permissions policy. For further
-# information see https://developers.google.com/web/updates/2018/06/feature-policy
-#
-# Rails.application.config.permissions_policy do |f|
-# f.camera :none
-# f.gyroscope :none
-# f.microphone :none
-# f.usb :none
-# f.fullscreen :self
-# f.payment :self, "https://secure.example.com"
-# end
diff --git a/sentry-rails/examples/rails-7.0/config/initializers/sentry.rb b/sentry-rails/examples/rails-7.0/config/initializers/sentry.rb
deleted file mode 100644
index 70cb1aa18..000000000
--- a/sentry-rails/examples/rails-7.0/config/initializers/sentry.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-Sentry.init do |config|
- config.breadcrumbs_logger = [:active_support_logger]
- config.background_worker_threads = 0
- config.send_default_pii = true
- config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
- config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
- config.release = `git branch --show-current`
- config.include_local_variables = true
- # you can use the pre-defined job for the async callback
- #
- # config.async = lambda do |event, hint|
- # Sentry::SendEventJob.perform_later(event, hint)
- # end
-end
diff --git a/sentry-rails/examples/rails-7.0/config/locales/en.yml b/sentry-rails/examples/rails-7.0/config/locales/en.yml
deleted file mode 100644
index 8ca56fc74..000000000
--- a/sentry-rails/examples/rails-7.0/config/locales/en.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-# Files in the config/locales directory are used for internationalization
-# and are automatically loaded by Rails. If you want to use locales other
-# than English, add the necessary files in this directory.
-#
-# To use the locales, use `I18n.t`:
-#
-# I18n.t "hello"
-#
-# In views, this is aliased to just `t`:
-#
-# <%= t("hello") %>
-#
-# To use a different locale, set it with `I18n.locale`:
-#
-# I18n.locale = :es
-#
-# This would use the information in config/locales/es.yml.
-#
-# The following keys must be escaped otherwise they will not be retrieved by
-# the default I18n backend:
-#
-# true, false, on, off, yes, no
-#
-# Instead, surround them with single quotes.
-#
-# en:
-# "true": "foo"
-#
-# To learn more, please read the Rails Internationalization guide
-# available at https://guides.rubyonrails.org/i18n.html.
-
-en:
- hello: "Hello world"
diff --git a/sentry-rails/examples/rails-7.0/config/puma.rb b/sentry-rails/examples/rails-7.0/config/puma.rb
deleted file mode 100644
index daaf03699..000000000
--- a/sentry-rails/examples/rails-7.0/config/puma.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-# Puma can serve each request in a thread from an internal thread pool.
-# The `threads` method setting takes two numbers: a minimum and maximum.
-# Any libraries that use thread pools should be configured to match
-# the maximum value specified for Puma. Default is set to 5 threads for minimum
-# and maximum; this matches the default thread size of Active Record.
-#
-max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
-min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
-threads min_threads_count, max_threads_count
-
-# Specifies the `worker_timeout` threshold that Puma will use to wait before
-# terminating a worker in development environments.
-#
-worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
-
-# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
-#
-port ENV.fetch("PORT") { 3000 }
-
-# Specifies the `environment` that Puma will run in.
-#
-environment ENV.fetch("RAILS_ENV") { "development" }
-
-# Specifies the `pidfile` that Puma will use.
-pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
-
-# Specifies the number of `workers` to boot in clustered mode.
-# Workers are forked web server processes. If using threads and workers together
-# the concurrency of the application would be max `threads` * `workers`.
-# Workers do not work on JRuby or Windows (both of which do not support
-# processes).
-#
-# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
-
-# Use the `preload_app!` method when specifying a `workers` number.
-# This directive tells Puma to first boot the application and load code
-# before forking the application. This takes advantage of Copy On Write
-# process behavior so workers use less memory.
-#
-# preload_app!
-
-# Allow puma to be restarted by `bin/rails restart` command.
-plugin :tmp_restart
diff --git a/sentry-rails/examples/rails-7.0/config/routes.rb b/sentry-rails/examples/rails-7.0/config/routes.rb
deleted file mode 100644
index 71b6a5f73..000000000
--- a/sentry-rails/examples/rails-7.0/config/routes.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require "resque/server"
-
-Rails.application.routes.draw do
- resources :posts
- get '500', to: 'welcome#report_demo'
- root to: "welcome#index"
-
- get 'appearance', to: 'welcome#appearance'
- get 'connect_trace', to: 'welcome#connect_trace'
- get 'view_error', to: 'welcome#view_error'
- get 'sidekiq_error', to: 'welcome#sidekiq_error'
- get 'resque_error', to: 'welcome#resque_error'
- get 'delayed_job_error', to: 'welcome#delayed_job_error'
- get 'job_error', to: 'welcome#job_error'
-
- require 'sidekiq/web'
-
- mount Sidekiq::Web => '/sidekiq'
- mount Resque::Server.new, at: "/resque"
-end
diff --git a/sentry-rails/examples/rails-7.0/config/storage.yml b/sentry-rails/examples/rails-7.0/config/storage.yml
deleted file mode 100644
index 4942ab669..000000000
--- a/sentry-rails/examples/rails-7.0/config/storage.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-test:
- service: Disk
- root: <%= Rails.root.join("tmp/storage") %>
-
-local:
- service: Disk
- root: <%= Rails.root.join("storage") %>
-
-# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
-# amazon:
-# service: S3
-# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
-# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
-# region: us-east-1
-# bucket: your_own_bucket-<%= Rails.env %>
-
-# Remember not to checkin your GCS keyfile to a repository
-# google:
-# service: GCS
-# project: your_project
-# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
-# bucket: your_own_bucket-<%= Rails.env %>
-
-# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
-# microsoft:
-# service: AzureStorage
-# storage_account_name: your_account_name
-# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
-# container: your_container_name-<%= Rails.env %>
-
-# mirror:
-# service: Mirror
-# primary: local
-# mirrors: [ amazon, google, microsoft ]
diff --git a/sentry-rails/examples/rails-7.0/db/migrate/20220403110436_create_posts.rb b/sentry-rails/examples/rails-7.0/db/migrate/20220403110436_create_posts.rb
deleted file mode 100644
index 4117623a9..000000000
--- a/sentry-rails/examples/rails-7.0/db/migrate/20220403110436_create_posts.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class CreatePosts < ActiveRecord::Migration[7.0]
- def change
- create_table :posts do |t|
- t.string :title
- t.text :content
-
- t.timestamps
- end
- end
-end
diff --git a/sentry-rails/examples/rails-7.0/db/schema.rb b/sentry-rails/examples/rails-7.0/db/schema.rb
deleted file mode 100644
index a72ad45be..000000000
--- a/sentry-rails/examples/rails-7.0/db/schema.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# This file is the source Rails uses to define your schema when running `bin/rails
-# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
-# be faster and is potentially less error prone than running all of your
-# migrations from scratch. Old migrations may fail to apply correctly if those
-# migrations use external dependencies or application code.
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema[7.0].define(version: 2022_04_03_110436) do
- create_table "posts", force: :cascade do |t|
- t.string "title"
- t.text "content"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
-end
diff --git a/sentry-rails/examples/rails-7.0/db/seeds.rb b/sentry-rails/examples/rails-7.0/db/seeds.rb
deleted file mode 100644
index bc25fce30..000000000
--- a/sentry-rails/examples/rails-7.0/db/seeds.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
-#
-# Examples:
-#
-# movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
-# Character.create(name: "Luke", movie: movies.first)
diff --git a/sentry-rails/examples/rails-7.0/lib/assets/.keep b/sentry-rails/examples/rails-7.0/lib/assets/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/lib/tasks/.keep b/sentry-rails/examples/rails-7.0/lib/tasks/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/public/404.html b/sentry-rails/examples/rails-7.0/public/404.html
deleted file mode 100644
index 2be3af26f..000000000
--- a/sentry-rails/examples/rails-7.0/public/404.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The page you were looking for doesn't exist (404)
-
-
-
-
-
-
-
-
-
The page you were looking for doesn't exist.
-
You may have mistyped the address or the page may have moved.
-
-
If you are the application owner check the logs for more information.
-
-
-
diff --git a/sentry-rails/examples/rails-7.0/public/422.html b/sentry-rails/examples/rails-7.0/public/422.html
deleted file mode 100644
index c08eac0d1..000000000
--- a/sentry-rails/examples/rails-7.0/public/422.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The change you wanted was rejected (422)
-
-
-
-
-
-
-
-
-
The change you wanted was rejected.
-
Maybe you tried to change something you didn't have access to.
-
-
If you are the application owner check the logs for more information.
If you are the application owner check the logs for more information.
-
-
-
diff --git a/sentry-rails/examples/rails-7.0/public/apple-touch-icon-precomposed.png b/sentry-rails/examples/rails-7.0/public/apple-touch-icon-precomposed.png
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/public/apple-touch-icon.png b/sentry-rails/examples/rails-7.0/public/apple-touch-icon.png
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/public/favicon.ico b/sentry-rails/examples/rails-7.0/public/favicon.ico
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/public/robots.txt b/sentry-rails/examples/rails-7.0/public/robots.txt
deleted file mode 100644
index c19f78ab6..000000000
--- a/sentry-rails/examples/rails-7.0/public/robots.txt
+++ /dev/null
@@ -1 +0,0 @@
-# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
diff --git a/sentry-rails/examples/rails-7.0/spec/rails_helper.rb b/sentry-rails/examples/rails-7.0/spec/rails_helper.rb
deleted file mode 100644
index 20a6881d1..000000000
--- a/sentry-rails/examples/rails-7.0/spec/rails_helper.rb
+++ /dev/null
@@ -1,67 +0,0 @@
-# This file is copied to spec/ when you run 'rails generate rspec:install'
-require 'spec_helper'
-ENV['RAILS_ENV'] ||= 'test'
-require_relative '../config/environment'
-# Prevent database truncation if the environment is production
-abort("The Rails environment is running in production mode!") if Rails.env.production?
-require 'rspec/rails'
-require 'sentry/test_helper'
-
-# Add additional requires below this line. Rails is not loaded until this point!
-
-# Requires supporting ruby files with custom matchers and macros, etc, in
-# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
-# run as spec files by default. This means that files in spec/support that end
-# in _spec.rb will both be required and run as specs, causing the specs to be
-# run twice. It is recommended that you do not name files matching this glob to
-# end with _spec.rb. You can configure this pattern with the --pattern
-# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
-#
-# The following line is provided for convenience purposes. It has the downside
-# of increasing the boot-up time by auto-requiring all files in the support
-# directory. Alternatively, in the individual `*_spec.rb` files, manually
-# require only the support files necessary.
-#
-# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }
-
-# Checks for pending migrations and applies them before tests are run.
-# If you are not using ActiveRecord, you can remove these lines.
-begin
- ActiveRecord::Migration.maintain_test_schema!
-rescue ActiveRecord::PendingMigrationError => e
- puts e.to_s.strip
- exit 1
-end
-RSpec.configure do |config|
- config.include Sentry::TestHelper
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
-
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
- # examples within a transaction, remove the following line or assign false
- # instead of true.
- config.use_transactional_fixtures = true
-
- # You can uncomment this line to turn off ActiveRecord support entirely.
- # config.use_active_record = false
-
- # RSpec Rails can automatically mix in different behaviours to your tests
- # based on their file location, for example enabling you to call `get` and
- # `post` in specs under `spec/controllers`.
- #
- # You can disable this behaviour by removing the line below, and instead
- # explicitly tag your specs with their type, e.g.:
- #
- # RSpec.describe UsersController, type: :controller do
- # # ...
- # end
- #
- # The different available types are documented in the features, such as in
- # https://relishapp.com/rspec/rspec-rails/docs
- config.infer_spec_type_from_file_location!
-
- # Filter lines from Rails gems in backtraces.
- config.filter_rails_from_backtrace!
- # arbitrary gems may also be filtered via:
- # config.filter_gems_from_backtrace("gem name")
-end
diff --git a/sentry-rails/examples/rails-7.0/spec/requests/welcomes_spec.rb b/sentry-rails/examples/rails-7.0/spec/requests/welcomes_spec.rb
deleted file mode 100644
index 6ec8f5bcc..000000000
--- a/sentry-rails/examples/rails-7.0/spec/requests/welcomes_spec.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require 'rails_helper'
-
-RSpec.describe "Welcomes", type: :request do
- before do
- setup_sentry_test
- end
-
- after do
- teardown_sentry_test
- end
-
- describe "GET /" do
- it "captures and sends exception to Sentry" do
- get "/"
- expect(response).to have_http_status(500)
- expect(sentry_events.count).to eq(2)
-
- error_event = sentry_events.first
- expect(error_event.transaction).to eq("WelcomeController#index")
- error = extract_sentry_exceptions(error_event).first
- expect(error.type).to eq("ZeroDivisionError")
- expect(error_event.tags).to match(counter: 1, request_id: anything)
-
- transaction_event = sentry_events.last
- expect(transaction_event.spans.count).to eq(3)
- end
- end
-
- describe "GET /view_error" do
- it "captures and sends exception to Sentry" do
- get "/view_error"
- expect(response).to have_http_status(500)
- expect(sentry_events.count).to eq(2)
-
- error_event = sentry_events.first
- expect(error_event.transaction).to eq("WelcomeController#view_error")
- error = extract_sentry_exceptions(error_event).first
- expect(error.type).to eq("NameError")
- expect(error_event.tags).to match(counter: 1, request_id: anything)
-
- transaction_event = sentry_events.last
- expect(transaction_event.spans.count).to eq(4)
- end
- end
-end
diff --git a/sentry-rails/examples/rails-7.0/spec/spec_helper.rb b/sentry-rails/examples/rails-7.0/spec/spec_helper.rb
deleted file mode 100644
index a0d408059..000000000
--- a/sentry-rails/examples/rails-7.0/spec/spec_helper.rb
+++ /dev/null
@@ -1,94 +0,0 @@
-# This file was generated by the `rails generate rspec:install` command. Conventionally, all
-# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
-# The generated `.rspec` file contains `--require spec_helper` which will cause
-# this file to always be loaded, without a need to explicitly require it in any
-# files.
-#
-# Given that it is always loaded, you are encouraged to keep this file as
-# light-weight as possible. Requiring heavyweight dependencies from this file
-# will add to the boot time of your test suite on EVERY test run, even for an
-# individual file that may not need all of that loaded. Instead, consider making
-# a separate helper file that requires the additional dependencies and performs
-# the additional setup, and require it from the spec files that actually need
-# it.
-#
-# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
-RSpec.configure do |config|
- # rspec-expectations config goes here. You can use an alternate
- # assertion/expectation library such as wrong or the stdlib/minitest
- # assertions if you prefer.
- config.expect_with :rspec do |expectations|
- # This option will default to `true` in RSpec 4. It makes the `description`
- # and `failure_message` of custom matchers include text for helper methods
- # defined using `chain`, e.g.:
- # be_bigger_than(2).and_smaller_than(4).description
- # # => "be bigger than 2 and smaller than 4"
- # ...rather than:
- # # => "be bigger than 2"
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
- end
-
- # rspec-mocks config goes here. You can use an alternate test double
- # library (such as bogus or mocha) by changing the `mock_with` option here.
- config.mock_with :rspec do |mocks|
- # Prevents you from mocking or stubbing a method that does not exist on
- # a real object. This is generally recommended, and will default to
- # `true` in RSpec 4.
- mocks.verify_partial_doubles = true
- end
-
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
- # have no way to turn it off -- the option exists only for backwards
- # compatibility in RSpec 3). It causes shared context metadata to be
- # inherited by the metadata hash of host groups and examples, rather than
- # triggering implicit auto-inclusion in groups with matching metadata.
- config.shared_context_metadata_behavior = :apply_to_host_groups
-
-# The settings below are suggested to provide a good initial experience
-# with RSpec, but feel free to customize to your heart's content.
-=begin
- # This allows you to limit a spec run to individual examples or groups
- # you care about by tagging them with `:focus` metadata. When nothing
- # is tagged with `:focus`, all examples get run. RSpec also provides
- # aliases for `it`, `describe`, and `context` that include `:focus`
- # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
- config.filter_run_when_matching :focus
-
- # Allows RSpec to persist some state between runs in order to support
- # the `--only-failures` and `--next-failure` CLI options. We recommend
- # you configure your source control system to ignore this file.
- config.example_status_persistence_file_path = "spec/examples.txt"
-
- # Limits the available syntax to the non-monkey patched syntax that is
- # recommended. For more details, see:
- # https://relishapp.com/rspec/rspec-core/docs/configuration/zero-monkey-patching-mode
- config.disable_monkey_patching!
-
- # Many RSpec users commonly either run the entire suite or an individual
- # file, and it's useful to allow more verbose output when running an
- # individual spec file.
- if config.files_to_run.one?
- # Use the documentation formatter for detailed output,
- # unless a formatter has already been configured
- # (e.g. via a command-line flag).
- config.default_formatter = "doc"
- end
-
- # Print the 10 slowest examples and example groups at the
- # end of the spec run, to help surface which specs are running
- # particularly slow.
- config.profile_examples = 10
-
- # Run specs in random order to surface order dependencies. If you find an
- # order dependency and want to debug it, you can fix the order by providing
- # the seed, which is printed after each run.
- # --seed 1234
- config.order = :random
-
- # Seed global randomization in this process using the `--seed` CLI option.
- # Setting this allows you to use `--seed` to deterministically reproduce
- # test failures related to randomization by passing the same `--seed` value
- # as the one that triggered the failure.
- Kernel.srand config.seed
-=end
-end
diff --git a/sentry-rails/examples/rails-7.0/storage/.keep b/sentry-rails/examples/rails-7.0/storage/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/application_system_test_case.rb b/sentry-rails/examples/rails-7.0/test/application_system_test_case.rb
deleted file mode 100644
index d19212abd..000000000
--- a/sentry-rails/examples/rails-7.0/test/application_system_test_case.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require "test_helper"
-
-class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
- driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
-end
diff --git a/sentry-rails/examples/rails-7.0/test/channels/application_cable/connection_test.rb b/sentry-rails/examples/rails-7.0/test/channels/application_cable/connection_test.rb
deleted file mode 100644
index 800405f15..000000000
--- a/sentry-rails/examples/rails-7.0/test/channels/application_cable/connection_test.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require "test_helper"
-
-class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase
- # test "connects with cookies" do
- # cookies.signed[:user_id] = 42
- #
- # connect
- #
- # assert_equal connection.user_id, "42"
- # end
-end
diff --git a/sentry-rails/examples/rails-7.0/test/controllers/.keep b/sentry-rails/examples/rails-7.0/test/controllers/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/fixtures/files/.keep b/sentry-rails/examples/rails-7.0/test/fixtures/files/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/helpers/.keep b/sentry-rails/examples/rails-7.0/test/helpers/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/integration/.keep b/sentry-rails/examples/rails-7.0/test/integration/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/mailers/.keep b/sentry-rails/examples/rails-7.0/test/mailers/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/models/.keep b/sentry-rails/examples/rails-7.0/test/models/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/system/.keep b/sentry-rails/examples/rails-7.0/test/system/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-7.0/test/test_helper.rb b/sentry-rails/examples/rails-7.0/test/test_helper.rb
deleted file mode 100644
index d713e377c..000000000
--- a/sentry-rails/examples/rails-7.0/test/test_helper.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-ENV["RAILS_ENV"] ||= "test"
-require_relative "../config/environment"
-require "rails/test_help"
-
-class ActiveSupport::TestCase
- # Run tests in parallel with specified workers
- parallelize(workers: :number_of_processors)
-
- # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
- fixtures :all
-
- # Add more helper methods to be used by all tests here...
-end
diff --git a/sentry-rails/examples/rails-7.0/vendor/.keep b/sentry-rails/examples/rails-7.0/vendor/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/.dockerignore b/sentry-rails/examples/rails-8.0/.dockerignore
deleted file mode 100644
index 325bfc036..000000000
--- a/sentry-rails/examples/rails-8.0/.dockerignore
+++ /dev/null
@@ -1,51 +0,0 @@
-# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.
-
-# Ignore git directory.
-/.git/
-/.gitignore
-
-# Ignore bundler config.
-/.bundle
-
-# Ignore all environment files.
-/.env*
-
-# Ignore all default key files.
-/config/master.key
-/config/credentials/*.key
-
-# Ignore all logfiles and tempfiles.
-/log/*
-/tmp/*
-!/log/.keep
-!/tmp/.keep
-
-# Ignore pidfiles, but keep the directory.
-/tmp/pids/*
-!/tmp/pids/.keep
-
-# Ignore storage (uploaded files in development and any SQLite databases).
-/storage/*
-!/storage/.keep
-/tmp/storage/*
-!/tmp/storage/.keep
-
-# Ignore assets.
-/node_modules/
-/app/assets/builds/*
-!/app/assets/builds/.keep
-/public/assets
-
-# Ignore CI service files.
-/.github
-
-# Ignore Kamal files.
-/config/deploy*.yml
-/.kamal
-
-# Ignore development files
-/.devcontainer
-
-# Ignore Docker-related files
-/.dockerignore
-/Dockerfile*
diff --git a/sentry-rails/examples/rails-8.0/.gitattributes b/sentry-rails/examples/rails-8.0/.gitattributes
deleted file mode 100644
index 8dc432343..000000000
--- a/sentry-rails/examples/rails-8.0/.gitattributes
+++ /dev/null
@@ -1,9 +0,0 @@
-# See https://git-scm.com/docs/gitattributes for more about git attribute files.
-
-# Mark the database schema as having been generated.
-db/schema.rb linguist-generated
-
-# Mark any vendored files as having been vendored.
-vendor/* linguist-vendored
-config/credentials/*.yml.enc diff=rails_credentials
-config/credentials.yml.enc diff=rails_credentials
diff --git a/sentry-rails/examples/rails-8.0/.github/dependabot.yml b/sentry-rails/examples/rails-8.0/.github/dependabot.yml
deleted file mode 100644
index f0527e6be..000000000
--- a/sentry-rails/examples/rails-8.0/.github/dependabot.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-version: 2
-updates:
-- package-ecosystem: bundler
- directory: "/"
- schedule:
- interval: daily
- open-pull-requests-limit: 10
-- package-ecosystem: github-actions
- directory: "/"
- schedule:
- interval: daily
- open-pull-requests-limit: 10
diff --git a/sentry-rails/examples/rails-8.0/.github/workflows/ci.yml b/sentry-rails/examples/rails-8.0/.github/workflows/ci.yml
deleted file mode 100644
index abb548b40..000000000
--- a/sentry-rails/examples/rails-8.0/.github/workflows/ci.yml
+++ /dev/null
@@ -1,90 +0,0 @@
-name: CI
-
-on:
- pull_request:
- push:
- branches: [ main ]
-
-jobs:
- scan_ruby:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: .ruby-version
- bundler-cache: true
-
- - name: Scan for common Rails security vulnerabilities using static analysis
- run: bin/brakeman --no-pager
-
- scan_js:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: .ruby-version
- bundler-cache: true
-
- - name: Scan for security vulnerabilities in JavaScript dependencies
- run: bin/importmap audit
-
- lint:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: .ruby-version
- bundler-cache: true
-
- - name: Lint code for consistent style
- run: bin/rubocop -f github
-
- test:
- runs-on: ubuntu-latest
-
- # services:
- # redis:
- # image: redis
- # ports:
- # - 6379:6379
- # options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
- steps:
- - name: Install packages
- run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git pkg-config google-chrome-stable
-
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: .ruby-version
- bundler-cache: true
-
- - name: Run tests
- env:
- RAILS_ENV: test
- # REDIS_URL: redis://localhost:6379/0
- run: bin/rails db:test:prepare test test:system
-
- - name: Keep screenshots from failed system tests
- uses: actions/upload-artifact@v4
- if: failure()
- with:
- name: screenshots
- path: ${{ github.workspace }}/tmp/screenshots
- if-no-files-found: ignore
diff --git a/sentry-rails/examples/rails-8.0/.gitignore b/sentry-rails/examples/rails-8.0/.gitignore
deleted file mode 100644
index f92525ca5..000000000
--- a/sentry-rails/examples/rails-8.0/.gitignore
+++ /dev/null
@@ -1,34 +0,0 @@
-# See https://help.github.com/articles/ignoring-files for more about ignoring files.
-#
-# Temporary files generated by your text editor or operating system
-# belong in git's global ignore instead:
-# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`
-
-# Ignore bundler config.
-/.bundle
-
-# Ignore all environment files.
-/.env*
-
-# Ignore all logfiles and tempfiles.
-/log/*
-/tmp/*
-!/log/.keep
-!/tmp/.keep
-
-# Ignore pidfiles, but keep the directory.
-/tmp/pids/*
-!/tmp/pids/
-!/tmp/pids/.keep
-
-# Ignore storage (uploaded files in development and any SQLite databases).
-/storage/*
-!/storage/.keep
-/tmp/storage/*
-!/tmp/storage/
-!/tmp/storage/.keep
-
-/public/assets
-
-# Ignore master key for decrypting credentials and more.
-/config/master.key
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/docker-setup.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/docker-setup.sample
deleted file mode 100755
index 2fb07d7d7..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/docker-setup.sample
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-echo "Docker set up on $KAMAL_HOSTS..."
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/post-deploy.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/post-deploy.sample
deleted file mode 100755
index 75efafc10..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/post-deploy.sample
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# A sample post-deploy hook
-#
-# These environment variables are available:
-# KAMAL_RECORDED_AT
-# KAMAL_PERFORMER
-# KAMAL_VERSION
-# KAMAL_HOSTS
-# KAMAL_ROLE (if set)
-# KAMAL_DESTINATION (if set)
-# KAMAL_RUNTIME
-
-echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds"
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/post-proxy-reboot.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/post-proxy-reboot.sample
deleted file mode 100755
index 1435a677f..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/post-proxy-reboot.sample
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-echo "Rebooted kamal-proxy on $KAMAL_HOSTS"
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-build.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-build.sample
deleted file mode 100755
index f87d81130..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-build.sample
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-# A sample pre-build hook
-#
-# Checks:
-# 1. We have a clean checkout
-# 2. A remote is configured
-# 3. The branch has been pushed to the remote
-# 4. The version we are deploying matches the remote
-#
-# These environment variables are available:
-# KAMAL_RECORDED_AT
-# KAMAL_PERFORMER
-# KAMAL_VERSION
-# KAMAL_HOSTS
-# KAMAL_ROLE (if set)
-# KAMAL_DESTINATION (if set)
-
-if [ -n "$(git status --porcelain)" ]; then
- echo "Git checkout is not clean, aborting..." >&2
- git status --porcelain >&2
- exit 1
-fi
-
-first_remote=$(git remote)
-
-if [ -z "$first_remote" ]; then
- echo "No git remote set, aborting..." >&2
- exit 1
-fi
-
-current_branch=$(git branch --show-current)
-
-if [ -z "$current_branch" ]; then
- echo "Not on a git branch, aborting..." >&2
- exit 1
-fi
-
-remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1)
-
-if [ -z "$remote_head" ]; then
- echo "Branch not pushed to remote, aborting..." >&2
- exit 1
-fi
-
-if [ "$KAMAL_VERSION" != "$remote_head" ]; then
- echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2
- exit 1
-fi
-
-exit 0
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-connect.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-connect.sample
deleted file mode 100755
index 18e61d7e5..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-connect.sample
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env ruby
-
-# A sample pre-connect check
-#
-# Warms DNS before connecting to hosts in parallel
-#
-# These environment variables are available:
-# KAMAL_RECORDED_AT
-# KAMAL_PERFORMER
-# KAMAL_VERSION
-# KAMAL_HOSTS
-# KAMAL_ROLE (if set)
-# KAMAL_DESTINATION (if set)
-# KAMAL_RUNTIME
-
-hosts = ENV["KAMAL_HOSTS"].split(",")
-results = nil
-max = 3
-
-elapsed = Benchmark.realtime do
- results = hosts.map do |host|
- Thread.new do
- tries = 1
-
- begin
- Socket.getaddrinfo(host, 0, Socket::AF_UNSPEC, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME)
- rescue SocketError
- if tries < max
- puts "Retrying DNS warmup: #{host}"
- tries += 1
- sleep rand
- retry
- else
- puts "DNS warmup failed: #{host}"
- host
- end
- end
-
- tries
- end
- end.map(&:value)
-end
-
-retries = results.sum - hosts.size
-nopes = results.count { |r| r == max }
-
-puts "Prewarmed %d DNS lookups in %.2f sec: %d retries, %d failures" % [ hosts.size, elapsed, retries, nopes ]
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-deploy.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-deploy.sample
deleted file mode 100755
index 1b280c719..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-deploy.sample
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env ruby
-
-# A sample pre-deploy hook
-#
-# Checks the Github status of the build, waiting for a pending build to complete for up to 720 seconds.
-#
-# Fails unless the combined status is "success"
-#
-# These environment variables are available:
-# KAMAL_RECORDED_AT
-# KAMAL_PERFORMER
-# KAMAL_VERSION
-# KAMAL_HOSTS
-# KAMAL_COMMAND
-# KAMAL_SUBCOMMAND
-# KAMAL_ROLE (if set)
-# KAMAL_DESTINATION (if set)
-
-# Only check the build status for production deployments
-if ENV["KAMAL_COMMAND"] == "rollback" || ENV["KAMAL_DESTINATION"] != "production"
- exit 0
-end
-
-require "bundler/inline"
-
-# true = install gems so this is fast on repeat invocations
-gemfile(true, quiet: true) do
- source "https://rubygems.org"
-
- gem "octokit"
- gem "faraday-retry"
-end
-
-MAX_ATTEMPTS = 72
-ATTEMPTS_GAP = 10
-
-def exit_with_error(message)
- $stderr.puts message
- exit 1
-end
-
-class GithubStatusChecks
- attr_reader :remote_url, :git_sha, :github_client, :combined_status
-
- def initialize
- @remote_url = `git config --get remote.origin.url`.strip.delete_prefix("https://github.com/")
- @git_sha = `git rev-parse HEAD`.strip
- @github_client = Octokit::Client.new(access_token: ENV["GITHUB_TOKEN"])
- refresh!
- end
-
- def refresh!
- @combined_status = github_client.combined_status(remote_url, git_sha)
- end
-
- def state
- combined_status[:state]
- end
-
- def first_status_url
- first_status = combined_status[:statuses].find { |status| status[:state] == state }
- first_status && first_status[:target_url]
- end
-
- def complete_count
- combined_status[:statuses].count { |status| status[:state] != "pending"}
- end
-
- def total_count
- combined_status[:statuses].count
- end
-
- def current_status
- if total_count > 0
- "Completed #{complete_count}/#{total_count} checks, see #{first_status_url} ..."
- else
- "Build not started..."
- end
- end
-end
-
-
-$stdout.sync = true
-
-puts "Checking build status..."
-attempts = 0
-checks = GithubStatusChecks.new
-
-begin
- loop do
- case checks.state
- when "success"
- puts "Checks passed, see #{checks.first_status_url}"
- exit 0
- when "failure"
- exit_with_error "Checks failed, see #{checks.first_status_url}"
- when "pending"
- attempts += 1
- end
-
- exit_with_error "Checks are still pending, gave up after #{MAX_ATTEMPTS * ATTEMPTS_GAP} seconds" if attempts == MAX_ATTEMPTS
-
- puts checks.current_status
- sleep(ATTEMPTS_GAP)
- checks.refresh!
- end
-rescue Octokit::NotFound
- exit_with_error "Build status could not be found"
-end
diff --git a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-proxy-reboot.sample b/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-proxy-reboot.sample
deleted file mode 100755
index 061f8059e..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/hooks/pre-proxy-reboot.sample
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-echo "Rebooting kamal-proxy on $KAMAL_HOSTS..."
diff --git a/sentry-rails/examples/rails-8.0/.kamal/secrets b/sentry-rails/examples/rails-8.0/.kamal/secrets
deleted file mode 100644
index 9a771a398..000000000
--- a/sentry-rails/examples/rails-8.0/.kamal/secrets
+++ /dev/null
@@ -1,17 +0,0 @@
-# Secrets defined here are available for reference under registry/password, env/secret, builder/secrets,
-# and accessories/*/env/secret in config/deploy.yml. All secrets should be pulled from either
-# password manager, ENV, or a file. DO NOT ENTER RAW CREDENTIALS HERE! This file needs to be safe for git.
-
-# Example of extracting secrets from 1password (or another compatible pw manager)
-# SECRETS=$(kamal secrets fetch --adapter 1password --account your-account --from Vault/Item KAMAL_REGISTRY_PASSWORD RAILS_MASTER_KEY)
-# KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD ${SECRETS})
-# RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY ${SECRETS})
-
-# Use a GITHUB_TOKEN if private repositories are needed for the image
-# GITHUB_TOKEN=$(gh config get -h github.com oauth_token)
-
-# Grab the registry password from ENV
-KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD
-
-# Improve security by using a password manager. Never check config/master.key into git!
-RAILS_MASTER_KEY=$(cat config/master.key)
diff --git a/sentry-rails/examples/rails-8.0/.rubocop.yml b/sentry-rails/examples/rails-8.0/.rubocop.yml
deleted file mode 100644
index f9d86d4a5..000000000
--- a/sentry-rails/examples/rails-8.0/.rubocop.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-# Omakase Ruby styling for Rails
-inherit_gem: { rubocop-rails-omakase: rubocop.yml }
-
-# Overwrite or add rules to create your own house style
-#
-# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
-# Layout/SpaceInsideArrayLiteralBrackets:
-# Enabled: false
diff --git a/sentry-rails/examples/rails-8.0/Dockerfile b/sentry-rails/examples/rails-8.0/Dockerfile
deleted file mode 100644
index d9124f6c9..000000000
--- a/sentry-rails/examples/rails-8.0/Dockerfile
+++ /dev/null
@@ -1,72 +0,0 @@
-# syntax=docker/dockerfile:1
-# check=error=true
-
-# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand:
-# docker build -t rails_8_0 .
-# docker run -d -p 80:80 -e RAILS_MASTER_KEY= --name rails_8_0 rails_8_0
-
-# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
-
-# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
-ARG RUBY_VERSION=3.3.1
-FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
-
-# Rails app lives here
-WORKDIR /rails
-
-# Install base packages
-RUN apt-get update -qq && \
- apt-get install --no-install-recommends -y curl libjemalloc2 libvips sqlite3 && \
- rm -rf /var/lib/apt/lists /var/cache/apt/archives
-
-# Set production environment
-ENV RAILS_ENV="production" \
- BUNDLE_DEPLOYMENT="1" \
- BUNDLE_PATH="/usr/local/bundle" \
- BUNDLE_WITHOUT="development"
-
-# Throw-away build stage to reduce size of final image
-FROM base AS build
-
-# Install packages needed to build gems
-RUN apt-get update -qq && \
- apt-get install --no-install-recommends -y build-essential git pkg-config && \
- rm -rf /var/lib/apt/lists /var/cache/apt/archives
-
-# Install application gems
-COPY Gemfile Gemfile.lock ./
-RUN bundle install && \
- rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
- bundle exec bootsnap precompile --gemfile
-
-# Copy application code
-COPY . .
-
-# Precompile bootsnap code for faster boot times
-RUN bundle exec bootsnap precompile app/ lib/
-
-# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
-RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
-
-
-
-
-# Final stage for app image
-FROM base
-
-# Copy built artifacts: gems, application
-COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
-COPY --from=build /rails /rails
-
-# Run and own only the runtime files as a non-root user for security
-RUN groupadd --system --gid 1000 rails && \
- useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
- chown -R rails:rails db log storage tmp
-USER 1000:1000
-
-# Entrypoint prepares the database.
-ENTRYPOINT ["/rails/bin/docker-entrypoint"]
-
-# Start server via Thruster by default, this can be overwritten at runtime
-EXPOSE 80
-CMD ["./bin/thrust", "./bin/rails", "server"]
diff --git a/sentry-rails/examples/rails-8.0/Gemfile b/sentry-rails/examples/rails-8.0/Gemfile
deleted file mode 100644
index 47f4a0f86..000000000
--- a/sentry-rails/examples/rails-8.0/Gemfile
+++ /dev/null
@@ -1,66 +0,0 @@
-source "https://rubygems.org"
-
-# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
-gem "rails", "~> 8.0.1"
-# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
-gem "propshaft"
-# Use sqlite3 as the database for Active Record
-gem "sqlite3", ">= 2.1"
-# Use the Puma web server [https://github.com/puma/puma]
-gem "puma", ">= 5.0"
-# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
-gem "importmap-rails"
-# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
-gem "turbo-rails"
-# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
-gem "stimulus-rails"
-# Build JSON APIs with ease [https://github.com/rails/jbuilder]
-gem "jbuilder"
-
-# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
-# gem "bcrypt", "~> 3.1.7"
-
-# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
-gem "tzinfo-data", platforms: %i[ windows jruby ]
-
-# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
-gem "solid_cache"
-gem "solid_queue"
-gem "solid_cable"
-
-# Reduces boot times through caching; required in config/boot.rb
-gem "bootsnap", require: false
-
-# Deploy this application anywhere as a Docker container [https://kamal-deploy.org]
-gem "kamal", require: false
-
-# Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/]
-gem "thruster", require: false
-
-# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
-# gem "image_processing", "~> 1.2"
-
-group :development, :test do
- # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
- gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
-
- # Static analysis for security vulnerabilities [https://brakemanscanner.org/]
- gem "brakeman", require: false
-
- # Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
- gem "rubocop-rails-omakase", require: false
-end
-
-group :development do
- # Use console on exceptions pages [https://github.com/rails/web-console]
- gem "web-console"
-end
-
-group :test do
- # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
- gem "capybara"
- gem "selenium-webdriver"
-end
-
-gem "sentry-rails", path: "../../"
-gem "sentry-ruby", path: "../../../sentry-ruby"
diff --git a/sentry-rails/examples/rails-8.0/README.md b/sentry-rails/examples/rails-8.0/README.md
deleted file mode 100644
index 7db80e4ca..000000000
--- a/sentry-rails/examples/rails-8.0/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# README
-
-This README would normally document whatever steps are necessary to get the
-application up and running.
-
-Things you may want to cover:
-
-* Ruby version
-
-* System dependencies
-
-* Configuration
-
-* Database creation
-
-* Database initialization
-
-* How to run the test suite
-
-* Services (job queues, cache servers, search engines, etc.)
-
-* Deployment instructions
-
-* ...
diff --git a/sentry-rails/examples/rails-8.0/Rakefile b/sentry-rails/examples/rails-8.0/Rakefile
deleted file mode 100644
index 9a5ea7383..000000000
--- a/sentry-rails/examples/rails-8.0/Rakefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require_relative "config/application"
-
-Rails.application.load_tasks
diff --git a/sentry-rails/examples/rails-8.0/app/assets/images/.keep b/sentry-rails/examples/rails-8.0/app/assets/images/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/app/assets/stylesheets/application.css b/sentry-rails/examples/rails-8.0/app/assets/stylesheets/application.css
deleted file mode 100644
index fe93333c0..000000000
--- a/sentry-rails/examples/rails-8.0/app/assets/stylesheets/application.css
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * This is a manifest file that'll be compiled into application.css.
- *
- * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
- * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
- * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
- * depending on specificity.
- *
- * Consider organizing styles into separate files for maintainability.
- */
diff --git a/sentry-rails/examples/rails-8.0/app/controllers/application_controller.rb b/sentry-rails/examples/rails-8.0/app/controllers/application_controller.rb
deleted file mode 100644
index 0d95db22b..000000000
--- a/sentry-rails/examples/rails-8.0/app/controllers/application_controller.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-class ApplicationController < ActionController::Base
- # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
- allow_browser versions: :modern
-end
diff --git a/sentry-rails/examples/rails-8.0/app/controllers/concerns/.keep b/sentry-rails/examples/rails-8.0/app/controllers/concerns/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/app/helpers/application_helper.rb b/sentry-rails/examples/rails-8.0/app/helpers/application_helper.rb
deleted file mode 100644
index de6be7945..000000000
--- a/sentry-rails/examples/rails-8.0/app/helpers/application_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
diff --git a/sentry-rails/examples/rails-8.0/app/javascript/application.js b/sentry-rails/examples/rails-8.0/app/javascript/application.js
deleted file mode 100644
index 0d7b49404..000000000
--- a/sentry-rails/examples/rails-8.0/app/javascript/application.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
-import "@hotwired/turbo-rails"
-import "controllers"
diff --git a/sentry-rails/examples/rails-8.0/app/javascript/controllers/application.js b/sentry-rails/examples/rails-8.0/app/javascript/controllers/application.js
deleted file mode 100644
index 1213e85c7..000000000
--- a/sentry-rails/examples/rails-8.0/app/javascript/controllers/application.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import { Application } from "@hotwired/stimulus"
-
-const application = Application.start()
-
-// Configure Stimulus development experience
-application.debug = false
-window.Stimulus = application
-
-export { application }
diff --git a/sentry-rails/examples/rails-8.0/app/javascript/controllers/hello_controller.js b/sentry-rails/examples/rails-8.0/app/javascript/controllers/hello_controller.js
deleted file mode 100644
index 5975c0789..000000000
--- a/sentry-rails/examples/rails-8.0/app/javascript/controllers/hello_controller.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import { Controller } from "@hotwired/stimulus"
-
-export default class extends Controller {
- connect() {
- this.element.textContent = "Hello World!"
- }
-}
diff --git a/sentry-rails/examples/rails-8.0/app/javascript/controllers/index.js b/sentry-rails/examples/rails-8.0/app/javascript/controllers/index.js
deleted file mode 100644
index 1156bf836..000000000
--- a/sentry-rails/examples/rails-8.0/app/javascript/controllers/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// Import and register all your controllers from the importmap via controllers/**/*_controller
-import { application } from "controllers/application"
-import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
-eagerLoadControllersFrom("controllers", application)
diff --git a/sentry-rails/examples/rails-8.0/app/jobs/application_job.rb b/sentry-rails/examples/rails-8.0/app/jobs/application_job.rb
deleted file mode 100644
index d394c3d10..000000000
--- a/sentry-rails/examples/rails-8.0/app/jobs/application_job.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class ApplicationJob < ActiveJob::Base
- # Automatically retry jobs that encountered a deadlock
- # retry_on ActiveRecord::Deadlocked
-
- # Most jobs are safe to ignore if the underlying records are no longer available
- # discard_on ActiveJob::DeserializationError
-end
diff --git a/sentry-rails/examples/rails-8.0/app/jobs/error_job.rb b/sentry-rails/examples/rails-8.0/app/jobs/error_job.rb
deleted file mode 100644
index 6d3723253..000000000
--- a/sentry-rails/examples/rails-8.0/app/jobs/error_job.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class ErrorJob < ApplicationJob
- queue_as :default
-
- def perform(*args)
- foo
- end
-end
diff --git a/sentry-rails/examples/rails-8.0/app/mailers/application_mailer.rb b/sentry-rails/examples/rails-8.0/app/mailers/application_mailer.rb
deleted file mode 100644
index 3c34c8148..000000000
--- a/sentry-rails/examples/rails-8.0/app/mailers/application_mailer.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-class ApplicationMailer < ActionMailer::Base
- default from: "from@example.com"
- layout "mailer"
-end
diff --git a/sentry-rails/examples/rails-8.0/app/models/application_record.rb b/sentry-rails/examples/rails-8.0/app/models/application_record.rb
deleted file mode 100644
index b63caeb8a..000000000
--- a/sentry-rails/examples/rails-8.0/app/models/application_record.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class ApplicationRecord < ActiveRecord::Base
- primary_abstract_class
-end
diff --git a/sentry-rails/examples/rails-8.0/app/models/concerns/.keep b/sentry-rails/examples/rails-8.0/app/models/concerns/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/app/views/layouts/application.html.erb b/sentry-rails/examples/rails-8.0/app/views/layouts/application.html.erb
deleted file mode 100644
index cd69b0e8d..000000000
--- a/sentry-rails/examples/rails-8.0/app/views/layouts/application.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- <%= content_for(:title) || "Rails 8 0" %>
-
-
-
- <%= csrf_meta_tags %>
- <%= csp_meta_tag %>
-
- <%= yield :head %>
-
- <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
- <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
-
-
-
-
-
- <%# Includes all stylesheet files in app/assets/stylesheets %>
- <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
- <%= javascript_importmap_tags %>
-
-
-
- <%= yield %>
-
-
diff --git a/sentry-rails/examples/rails-8.0/app/views/layouts/mailer.html.erb b/sentry-rails/examples/rails-8.0/app/views/layouts/mailer.html.erb
deleted file mode 100644
index 3aac9002e..000000000
--- a/sentry-rails/examples/rails-8.0/app/views/layouts/mailer.html.erb
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
- <%= yield %>
-
-
diff --git a/sentry-rails/examples/rails-8.0/app/views/layouts/mailer.text.erb b/sentry-rails/examples/rails-8.0/app/views/layouts/mailer.text.erb
deleted file mode 100644
index 37f0bddbd..000000000
--- a/sentry-rails/examples/rails-8.0/app/views/layouts/mailer.text.erb
+++ /dev/null
@@ -1 +0,0 @@
-<%= yield %>
diff --git a/sentry-rails/examples/rails-8.0/app/views/pwa/manifest.json.erb b/sentry-rails/examples/rails-8.0/app/views/pwa/manifest.json.erb
deleted file mode 100644
index 7416da152..000000000
--- a/sentry-rails/examples/rails-8.0/app/views/pwa/manifest.json.erb
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "Rails80",
- "icons": [
- {
- "src": "/icon.png",
- "type": "image/png",
- "sizes": "512x512"
- },
- {
- "src": "/icon.png",
- "type": "image/png",
- "sizes": "512x512",
- "purpose": "maskable"
- }
- ],
- "start_url": "/",
- "display": "standalone",
- "scope": "/",
- "description": "Rails80.",
- "theme_color": "red",
- "background_color": "red"
-}
diff --git a/sentry-rails/examples/rails-8.0/app/views/pwa/service-worker.js b/sentry-rails/examples/rails-8.0/app/views/pwa/service-worker.js
deleted file mode 100644
index b3a13fb7b..000000000
--- a/sentry-rails/examples/rails-8.0/app/views/pwa/service-worker.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// Add a service worker for processing Web Push notifications:
-//
-// self.addEventListener("push", async (event) => {
-// const { title, options } = await event.data.json()
-// event.waitUntil(self.registration.showNotification(title, options))
-// })
-//
-// self.addEventListener("notificationclick", function(event) {
-// event.notification.close()
-// event.waitUntil(
-// clients.matchAll({ type: "window" }).then((clientList) => {
-// for (let i = 0; i < clientList.length; i++) {
-// let client = clientList[i]
-// let clientPath = (new URL(client.url)).pathname
-//
-// if (clientPath == event.notification.data.path && "focus" in client) {
-// return client.focus()
-// }
-// }
-//
-// if (clients.openWindow) {
-// return clients.openWindow(event.notification.data.path)
-// }
-// })
-// )
-// })
diff --git a/sentry-rails/examples/rails-8.0/bin/brakeman b/sentry-rails/examples/rails-8.0/bin/brakeman
deleted file mode 100755
index ace1c9ba0..000000000
--- a/sentry-rails/examples/rails-8.0/bin/brakeman
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env ruby
-require "rubygems"
-require "bundler/setup"
-
-ARGV.unshift("--ensure-latest")
-
-load Gem.bin_path("brakeman", "brakeman")
diff --git a/sentry-rails/examples/rails-8.0/bin/bundle b/sentry-rails/examples/rails-8.0/bin/bundle
deleted file mode 100755
index 50da5fdf9..000000000
--- a/sentry-rails/examples/rails-8.0/bin/bundle
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env ruby
-# frozen_string_literal: true
-
-#
-# This file was generated by Bundler.
-#
-# The application 'bundle' is installed as part of a gem, and
-# this file is here to facilitate running it.
-#
-
-require "rubygems"
-
-m = Module.new do
- module_function
-
- def invoked_as_script?
- File.expand_path($0) == File.expand_path(__FILE__)
- end
-
- def env_var_version
- ENV["BUNDLER_VERSION"]
- end
-
- def cli_arg_version
- return unless invoked_as_script? # don't want to hijack other binstubs
- return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
- bundler_version = nil
- update_index = nil
- ARGV.each_with_index do |a, i|
- if update_index && update_index.succ == i && a.match?(Gem::Version::ANCHORED_VERSION_PATTERN)
- bundler_version = a
- end
- next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
- bundler_version = $1
- update_index = i
- end
- bundler_version
- end
-
- def gemfile
- gemfile = ENV["BUNDLE_GEMFILE"]
- return gemfile if gemfile && !gemfile.empty?
-
- File.expand_path("../Gemfile", __dir__)
- end
-
- def lockfile
- lockfile =
- case File.basename(gemfile)
- when "gems.rb" then gemfile.sub(/\.rb$/, ".locked")
- else "#{gemfile}.lock"
- end
- File.expand_path(lockfile)
- end
-
- def lockfile_version
- return unless File.file?(lockfile)
- lockfile_contents = File.read(lockfile)
- return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
- Regexp.last_match(1)
- end
-
- def bundler_requirement
- @bundler_requirement ||=
- env_var_version ||
- cli_arg_version ||
- bundler_requirement_for(lockfile_version)
- end
-
- def bundler_requirement_for(version)
- return "#{Gem::Requirement.default}.a" unless version
-
- bundler_gem_version = Gem::Version.new(version)
-
- bundler_gem_version.approximate_recommendation
- end
-
- def load_bundler!
- ENV["BUNDLE_GEMFILE"] ||= gemfile
-
- activate_bundler
- end
-
- def activate_bundler
- gem_error = activation_error_handling do
- gem "bundler", bundler_requirement
- end
- return if gem_error.nil?
- require_error = activation_error_handling do
- require "bundler/version"
- end
- return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
- warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
- exit 42
- end
-
- def activation_error_handling
- yield
- nil
- rescue StandardError, LoadError => e
- e
- end
-end
-
-m.load_bundler!
-
-if m.invoked_as_script?
- load Gem.bin_path("bundler", "bundle")
-end
diff --git a/sentry-rails/examples/rails-8.0/bin/dev b/sentry-rails/examples/rails-8.0/bin/dev
deleted file mode 100755
index 5f91c2054..000000000
--- a/sentry-rails/examples/rails-8.0/bin/dev
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/env ruby
-exec "./bin/rails", "server", *ARGV
diff --git a/sentry-rails/examples/rails-8.0/bin/docker-entrypoint b/sentry-rails/examples/rails-8.0/bin/docker-entrypoint
deleted file mode 100755
index 57567d69b..000000000
--- a/sentry-rails/examples/rails-8.0/bin/docker-entrypoint
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash -e
-
-# Enable jemalloc for reduced memory usage and latency.
-if [ -z "${LD_PRELOAD+x}" ]; then
- LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
- export LD_PRELOAD
-fi
-
-# If running the rails server then create or migrate existing database
-if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
- ./bin/rails db:prepare
-fi
-
-exec "${@}"
diff --git a/sentry-rails/examples/rails-8.0/bin/importmap b/sentry-rails/examples/rails-8.0/bin/importmap
deleted file mode 100755
index 36502ab16..000000000
--- a/sentry-rails/examples/rails-8.0/bin/importmap
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-
-require_relative "../config/application"
-require "importmap/commands"
diff --git a/sentry-rails/examples/rails-8.0/bin/jobs b/sentry-rails/examples/rails-8.0/bin/jobs
deleted file mode 100755
index dcf59f309..000000000
--- a/sentry-rails/examples/rails-8.0/bin/jobs
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env ruby
-
-require_relative "../config/environment"
-require "solid_queue/cli"
-
-SolidQueue::Cli.start(ARGV)
diff --git a/sentry-rails/examples/rails-8.0/bin/kamal b/sentry-rails/examples/rails-8.0/bin/kamal
deleted file mode 100755
index cbe59b95e..000000000
--- a/sentry-rails/examples/rails-8.0/bin/kamal
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env ruby
-# frozen_string_literal: true
-
-#
-# This file was generated by Bundler.
-#
-# The application 'kamal' is installed as part of a gem, and
-# this file is here to facilitate running it.
-#
-
-ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
-
-bundle_binstub = File.expand_path("bundle", __dir__)
-
-if File.file?(bundle_binstub)
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
- load(bundle_binstub)
- else
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
-Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
- end
-end
-
-require "rubygems"
-require "bundler/setup"
-
-load Gem.bin_path("kamal", "kamal")
diff --git a/sentry-rails/examples/rails-8.0/bin/rails b/sentry-rails/examples/rails-8.0/bin/rails
deleted file mode 100755
index efc037749..000000000
--- a/sentry-rails/examples/rails-8.0/bin/rails
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-APP_PATH = File.expand_path("../config/application", __dir__)
-require_relative "../config/boot"
-require "rails/commands"
diff --git a/sentry-rails/examples/rails-8.0/bin/rake b/sentry-rails/examples/rails-8.0/bin/rake
deleted file mode 100755
index 4fbf10b96..000000000
--- a/sentry-rails/examples/rails-8.0/bin/rake
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-require_relative "../config/boot"
-require "rake"
-Rake.application.run
diff --git a/sentry-rails/examples/rails-8.0/bin/rubocop b/sentry-rails/examples/rails-8.0/bin/rubocop
deleted file mode 100755
index 40330c0ff..000000000
--- a/sentry-rails/examples/rails-8.0/bin/rubocop
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env ruby
-require "rubygems"
-require "bundler/setup"
-
-# explicit rubocop config increases performance slightly while avoiding config confusion.
-ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
-
-load Gem.bin_path("rubocop", "rubocop")
diff --git a/sentry-rails/examples/rails-8.0/bin/setup b/sentry-rails/examples/rails-8.0/bin/setup
deleted file mode 100755
index be3db3c0d..000000000
--- a/sentry-rails/examples/rails-8.0/bin/setup
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env ruby
-require "fileutils"
-
-APP_ROOT = File.expand_path("..", __dir__)
-
-def system!(*args)
- system(*args, exception: true)
-end
-
-FileUtils.chdir APP_ROOT do
- # This script is a way to set up or update your development environment automatically.
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
- # Add necessary setup steps to this file.
-
- puts "== Installing dependencies =="
- system("bundle check") || system!("bundle install")
-
- # puts "\n== Copying sample files =="
- # unless File.exist?("config/database.yml")
- # FileUtils.cp "config/database.yml.sample", "config/database.yml"
- # end
-
- puts "\n== Preparing database =="
- system! "bin/rails db:prepare"
-
- puts "\n== Removing old logs and tempfiles =="
- system! "bin/rails log:clear tmp:clear"
-
- unless ARGV.include?("--skip-server")
- puts "\n== Starting development server =="
- STDOUT.flush # flush the output before exec(2) so that it displays
- exec "bin/dev"
- end
-end
diff --git a/sentry-rails/examples/rails-8.0/bin/thrust b/sentry-rails/examples/rails-8.0/bin/thrust
deleted file mode 100755
index 36bde2d83..000000000
--- a/sentry-rails/examples/rails-8.0/bin/thrust
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env ruby
-require "rubygems"
-require "bundler/setup"
-
-load Gem.bin_path("thruster", "thrust")
diff --git a/sentry-rails/examples/rails-8.0/config.ru b/sentry-rails/examples/rails-8.0/config.ru
deleted file mode 100644
index 4a3c09a68..000000000
--- a/sentry-rails/examples/rails-8.0/config.ru
+++ /dev/null
@@ -1,6 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require_relative "config/environment"
-
-run Rails.application
-Rails.application.load_server
diff --git a/sentry-rails/examples/rails-8.0/config/application.rb b/sentry-rails/examples/rails-8.0/config/application.rb
deleted file mode 100644
index 8b056fd7b..000000000
--- a/sentry-rails/examples/rails-8.0/config/application.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-require_relative "boot"
-
-require "rails/all"
-
-# Require the gems listed in Gemfile, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(*Rails.groups)
-
-module Rails80
- class Application < Rails::Application
- # Initialize configuration defaults for originally generated Rails version.
- config.load_defaults 8.0
-
- # Please, add to the `ignore` list any other `lib` subdirectories that do
- # not contain `.rb` files, or that should not be reloaded or eager loaded.
- # Common ones are `templates`, `generators`, or `middleware`, for example.
- config.autoload_lib(ignore: %w[assets tasks])
-
- # Configuration for the application, engines, and railties goes here.
- #
- # These settings can be overridden in specific environments using the files
- # in config/environments, which are processed later.
- #
- # config.time_zone = "Central Time (US & Canada)"
- # config.eager_load_paths << Rails.root.join("extras")
- end
-end
diff --git a/sentry-rails/examples/rails-8.0/config/boot.rb b/sentry-rails/examples/rails-8.0/config/boot.rb
deleted file mode 100644
index 988a5ddc4..000000000
--- a/sentry-rails/examples/rails-8.0/config/boot.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
-
-require "bundler/setup" # Set up gems listed in the Gemfile.
-require "bootsnap/setup" # Speed up boot time by caching expensive operations.
diff --git a/sentry-rails/examples/rails-8.0/config/cable.yml b/sentry-rails/examples/rails-8.0/config/cable.yml
deleted file mode 100644
index b9adc5aa3..000000000
--- a/sentry-rails/examples/rails-8.0/config/cable.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# Async adapter only works within the same process, so for manually triggering cable updates from a console,
-# and seeing results in the browser, you must do so from the web console (running inside the dev process),
-# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view
-# to make the web console appear.
-development:
- adapter: async
-
-test:
- adapter: test
-
-production:
- adapter: solid_cable
- connects_to:
- database:
- writing: cable
- polling_interval: 0.1.seconds
- message_retention: 1.day
diff --git a/sentry-rails/examples/rails-8.0/config/cache.yml b/sentry-rails/examples/rails-8.0/config/cache.yml
deleted file mode 100644
index 19d490843..000000000
--- a/sentry-rails/examples/rails-8.0/config/cache.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-default: &default
- store_options:
- # Cap age of oldest cache entry to fulfill retention policies
- # max_age: <%= 60.days.to_i %>
- max_size: <%= 256.megabytes %>
- namespace: <%= Rails.env %>
-
-development:
- <<: *default
-
-test:
- <<: *default
-
-production:
- database: cache
- <<: *default
diff --git a/sentry-rails/examples/rails-8.0/config/credentials.yml.enc b/sentry-rails/examples/rails-8.0/config/credentials.yml.enc
deleted file mode 100644
index 5d5f3e075..000000000
--- a/sentry-rails/examples/rails-8.0/config/credentials.yml.enc
+++ /dev/null
@@ -1 +0,0 @@
-E+SIdgyaMdcLJJ1uDfpAixhzBM/NtLAAAei4QsxywnDDfUHLO/Xt0Epk8rFz2v4B3NBBjj04p08rDLSxIzOLHZC5rbknqTt7gpqkPwtxrnaqml7hOI6H/NKg4ORBppsw3uksdTwwxZHz7ZMj+wAycf4bbiSnnyRikAffxCy93ckZBeGTj7c11laGzF+M1hGPsFZn7vU2ZqTYGXBNE+zw3Dh3Uhg8CeyyKk02O5x06StyeLLOIsXVM3KoFnyORn2NxLerFOHueXFAEDZKQnnVxaYxXuAkBBEOVVh7SGHbJOXqWoSxnqKhVg92+apQFsCnjkjEJ6bUONtym3an1K+T43GsTOzAhGKPT+u0+fDYgZEC7nscOjekPJTPxR9sjVEelaQHmOCCzgvUio0jxsMc+ecDFq3MUmoxz7ofG27IvzwWSTJETJMzOcukOePxfaXt8BHiQ80Vkm0EgAz6jMcFGPxqb06vHeCll206/x3gENKd0cOr0rK0vl1t--nfjbRzwAXJP+xi5h--t+Gj+uuKI40mdFBWYeGHKg==
\ No newline at end of file
diff --git a/sentry-rails/examples/rails-8.0/config/database.yml b/sentry-rails/examples/rails-8.0/config/database.yml
deleted file mode 100644
index 6d01b6394..000000000
--- a/sentry-rails/examples/rails-8.0/config/database.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-# SQLite. Versions 3.8.0 and up are supported.
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem "sqlite3"
-#
-default: &default
- adapter: sqlite3
- pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
- timeout: 5000
-
-development:
- primary:
- <<: *default
- database: storage/development.sqlite3
- queue:
- <<: *default
- database: storage/development_queue.sqlite3
- migrations_paths: db/queue_migrate
-
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- <<: *default
- database: storage/test.sqlite3
-
-
-# Store production database in the storage/ directory, which by default
-# is mounted as a persistent Docker volume in config/deploy.yml.
-production:
- primary:
- <<: *default
- database: storage/production.sqlite3
- cache:
- <<: *default
- database: storage/production_cache.sqlite3
- migrations_paths: db/cache_migrate
- queue:
- <<: *default
- database: storage/production_queue.sqlite3
- migrations_paths: db/queue_migrate
- cable:
- <<: *default
- database: storage/production_cable.sqlite3
- migrations_paths: db/cable_migrate
diff --git a/sentry-rails/examples/rails-8.0/config/deploy.yml b/sentry-rails/examples/rails-8.0/config/deploy.yml
deleted file mode 100644
index c527ec0ee..000000000
--- a/sentry-rails/examples/rails-8.0/config/deploy.yml
+++ /dev/null
@@ -1,116 +0,0 @@
-# Name of your application. Used to uniquely configure containers.
-service: rails_8_0
-
-# Name of the container image.
-image: your-user/rails_8_0
-
-# Deploy to these servers.
-servers:
- web:
- - 192.168.0.1
- # job:
- # hosts:
- # - 192.168.0.1
- # cmd: bin/jobs
-
-# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server.
-# Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
-#
-# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
-proxy:
- ssl: true
- host: app.example.com
-
-# Credentials for your image host.
-registry:
- # Specify the registry server, if you're not using Docker Hub
- # server: registry.digitalocean.com / ghcr.io / ...
- username: your-user
-
- # Always use an access token rather than real password when possible.
- password:
- - KAMAL_REGISTRY_PASSWORD
-
-# Inject ENV variables into containers (secrets come from .kamal/secrets).
-env:
- secret:
- - RAILS_MASTER_KEY
- clear:
- # Run the Solid Queue Supervisor inside the web server's Puma process to do jobs.
- # When you start using multiple servers, you should split out job processing to a dedicated machine.
- SOLID_QUEUE_IN_PUMA: true
-
- # Set number of processes dedicated to Solid Queue (default: 1)
- # JOB_CONCURRENCY: 3
-
- # Set number of cores available to the application on each server (default: 1).
- # WEB_CONCURRENCY: 2
-
- # Match this to any external database server to configure Active Record correctly
- # Use rails_8_0-db for a db accessory server on same machine via local kamal docker network.
- # DB_HOST: 192.168.0.2
-
- # Log everything from Rails
- # RAILS_LOG_LEVEL: debug
-
-# Aliases are triggered with "bin/kamal ". You can overwrite arguments on invocation:
-# "bin/kamal logs -r job" will tail logs from the first server in the job section.
-aliases:
- console: app exec --interactive --reuse "bin/rails console"
- shell: app exec --interactive --reuse "bash"
- logs: app logs -f
- dbc: app exec --interactive --reuse "bin/rails dbconsole"
-
-
-# Use a persistent storage volume for sqlite database files and local Active Storage files.
-# Recommended to change this to a mounted volume path that is backed up off server.
-volumes:
- - "rails_8_0_storage:/rails/storage"
-
-
-# Bridge fingerprinted assets, like JS and CSS, between versions to avoid
-# hitting 404 on in-flight requests. Combines all files from new and old
-# version inside the asset_path.
-asset_path: /rails/public/assets
-
-# Configure the image builder.
-builder:
- arch: amd64
-
- # # Build image via remote server (useful for faster amd64 builds on arm64 computers)
- # remote: ssh://docker@docker-builder-server
- #
- # # Pass arguments and secrets to the Docker build process
- # args:
- # RUBY_VERSION: ruby-3.3.1
- # secrets:
- # - GITHUB_TOKEN
- # - RAILS_MASTER_KEY
-
-# Use a different ssh user than root
-# ssh:
-# user: app
-
-# Use accessory services (secrets come from .kamal/secrets).
-# accessories:
-# db:
-# image: mysql:8.0
-# host: 192.168.0.2
-# # Change to 3306 to expose port to the world instead of just local network.
-# port: "127.0.0.1:3306:3306"
-# env:
-# clear:
-# MYSQL_ROOT_HOST: '%'
-# secret:
-# - MYSQL_ROOT_PASSWORD
-# files:
-# - config/mysql/production.cnf:/etc/mysql/my.cnf
-# - db/production.sql:/docker-entrypoint-initdb.d/setup.sql
-# directories:
-# - data:/var/lib/mysql
-# redis:
-# image: redis:7.0
-# host: 192.168.0.2
-# port: 6379
-# directories:
-# - data:/data
diff --git a/sentry-rails/examples/rails-8.0/config/environment.rb b/sentry-rails/examples/rails-8.0/config/environment.rb
deleted file mode 100644
index cac531577..000000000
--- a/sentry-rails/examples/rails-8.0/config/environment.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Load the Rails application.
-require_relative "application"
-
-# Initialize the Rails application.
-Rails.application.initialize!
diff --git a/sentry-rails/examples/rails-8.0/config/environments/development.rb b/sentry-rails/examples/rails-8.0/config/environments/development.rb
deleted file mode 100644
index 5a5714f10..000000000
--- a/sentry-rails/examples/rails-8.0/config/environments/development.rb
+++ /dev/null
@@ -1,75 +0,0 @@
-require "active_support/core_ext/integer/time"
-
-Rails.application.configure do
- config.active_job.queue_adapter = :solid_queue
- config.solid_queue.connects_to = { database: { writing: :queue } }
-
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Make code changes take effect immediately without server restart.
- config.enable_reloading = true
-
- # Do not eager load code on boot.
- config.eager_load = false
-
- # Show full error reports.
- config.consider_all_requests_local = true
-
- # Enable server timing.
- config.server_timing = true
-
- # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
- # Run rails dev:cache to toggle Action Controller caching.
- if Rails.root.join("tmp/caching-dev.txt").exist?
- config.action_controller.perform_caching = true
- config.action_controller.enable_fragment_cache_logging = true
- config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
- else
- config.action_controller.perform_caching = false
- end
-
- # Change to :null_store to avoid any caching.
- config.cache_store = :memory_store
-
- # Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
-
- # Don't care if the mailer can't send.
- config.action_mailer.raise_delivery_errors = false
-
- # Make template changes take effect immediately.
- config.action_mailer.perform_caching = false
-
- # Set localhost to be used by links generated in mailer templates.
- config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
-
- # Print deprecation notices to the Rails logger.
- config.active_support.deprecation = :log
-
- # Raise an error on page load if there are pending migrations.
- config.active_record.migration_error = :page_load
-
- # Highlight code that triggered database queries in logs.
- config.active_record.verbose_query_logs = true
-
- # Append comments with runtime information tags to SQL queries in logs.
- config.active_record.query_log_tags_enabled = true
-
- # Highlight code that enqueued background job in logs.
- config.active_job.verbose_enqueue_logs = true
-
- # Raises error for missing translations.
- # config.i18n.raise_on_missing_translations = true
-
- # Annotate rendered view with file names.
- config.action_view.annotate_rendered_view_with_filenames = true
-
- # Uncomment if you wish to allow Action Cable access from any origin.
- # config.action_cable.disable_request_forgery_protection = true
-
- # Raise error when a before_action's only/except options reference missing actions.
- config.action_controller.raise_on_missing_callback_actions = true
-
- # Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
- # config.generators.apply_rubocop_autocorrect_after_generate!
-end
diff --git a/sentry-rails/examples/rails-8.0/config/environments/production.rb b/sentry-rails/examples/rails-8.0/config/environments/production.rb
deleted file mode 100644
index bdcd01d1b..000000000
--- a/sentry-rails/examples/rails-8.0/config/environments/production.rb
+++ /dev/null
@@ -1,90 +0,0 @@
-require "active_support/core_ext/integer/time"
-
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Code is not reloaded between requests.
- config.enable_reloading = false
-
- # Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
- config.eager_load = true
-
- # Full error reports are disabled.
- config.consider_all_requests_local = false
-
- # Turn on fragment caching in view templates.
- config.action_controller.perform_caching = true
-
- # Cache assets for far-future expiry since they are all digest stamped.
- config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
-
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
- # config.asset_host = "http://assets.example.com"
-
- # Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
-
- # Assume all access to the app is happening through a SSL-terminating reverse proxy.
- config.assume_ssl = true
-
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- config.force_ssl = true
-
- # Skip http-to-https redirect for the default health check endpoint.
- # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
-
- # Log to STDOUT with the current request id as a default log tag.
- config.log_tags = [ :request_id ]
- config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
-
- # Change to "debug" to log everything (including potentially personally-identifiable information!)
- config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
-
- # Prevent health checks from clogging up the logs.
- config.silence_healthcheck_path = "/up"
-
- # Don't log any deprecations.
- config.active_support.report_deprecations = false
-
- # Replace the default in-process memory cache store with a durable alternative.
- config.cache_store = :solid_cache_store
-
- # Replace the default in-process and non-durable queuing backend for Active Job.
- config.active_job.queue_adapter = :solid_queue
- config.solid_queue.connects_to = { database: { writing: :queue } }
-
- # Ignore bad email addresses and do not raise email delivery errors.
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
- # config.action_mailer.raise_delivery_errors = false
-
- # Set host to be used by links generated in mailer templates.
- config.action_mailer.default_url_options = { host: "example.com" }
-
- # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
- # config.action_mailer.smtp_settings = {
- # user_name: Rails.application.credentials.dig(:smtp, :user_name),
- # password: Rails.application.credentials.dig(:smtp, :password),
- # address: "smtp.example.com",
- # port: 587,
- # authentication: :plain
- # }
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation cannot be found).
- config.i18n.fallbacks = true
-
- # Do not dump schema after migrations.
- config.active_record.dump_schema_after_migration = false
-
- # Only use :id for inspections in production.
- config.active_record.attributes_for_inspect = [ :id ]
-
- # Enable DNS rebinding protection and other `Host` header attacks.
- # config.hosts = [
- # "example.com", # Allow requests from example.com
- # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
- # ]
- #
- # Skip DNS rebinding protection for the default health check endpoint.
- # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
-end
diff --git a/sentry-rails/examples/rails-8.0/config/importmap.rb b/sentry-rails/examples/rails-8.0/config/importmap.rb
deleted file mode 100644
index 909dfc542..000000000
--- a/sentry-rails/examples/rails-8.0/config/importmap.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Pin npm packages by running ./bin/importmap
-
-pin "application"
-pin "@hotwired/turbo-rails", to: "turbo.min.js"
-pin "@hotwired/stimulus", to: "stimulus.min.js"
-pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
-pin_all_from "app/javascript/controllers", under: "controllers"
diff --git a/sentry-rails/examples/rails-8.0/config/initializers/assets.rb b/sentry-rails/examples/rails-8.0/config/initializers/assets.rb
deleted file mode 100644
index 487324424..000000000
--- a/sentry-rails/examples/rails-8.0/config/initializers/assets.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = "1.0"
-
-# Add additional assets to the asset load path.
-# Rails.application.config.assets.paths << Emoji.images_path
diff --git a/sentry-rails/examples/rails-8.0/config/initializers/content_security_policy.rb b/sentry-rails/examples/rails-8.0/config/initializers/content_security_policy.rb
deleted file mode 100644
index b3076b38f..000000000
--- a/sentry-rails/examples/rails-8.0/config/initializers/content_security_policy.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Define an application-wide content security policy.
-# See the Securing Rails Applications Guide for more information:
-# https://guides.rubyonrails.org/security.html#content-security-policy-header
-
-# Rails.application.configure do
-# config.content_security_policy do |policy|
-# policy.default_src :self, :https
-# policy.font_src :self, :https, :data
-# policy.img_src :self, :https, :data
-# policy.object_src :none
-# policy.script_src :self, :https
-# policy.style_src :self, :https
-# # Specify URI for violation reports
-# # policy.report_uri "/csp-violation-report-endpoint"
-# end
-#
-# # Generate session nonces for permitted importmap, inline scripts, and inline styles.
-# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
-# config.content_security_policy_nonce_directives = %w(script-src style-src)
-#
-# # Report violations without enforcing the policy.
-# # config.content_security_policy_report_only = true
-# end
diff --git a/sentry-rails/examples/rails-8.0/config/initializers/filter_parameter_logging.rb b/sentry-rails/examples/rails-8.0/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index c0b717f7e..000000000
--- a/sentry-rails/examples/rails-8.0/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
-# Use this to limit dissemination of sensitive information.
-# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
-Rails.application.config.filter_parameters += [
- :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
-]
diff --git a/sentry-rails/examples/rails-8.0/config/initializers/inflections.rb b/sentry-rails/examples/rails-8.0/config/initializers/inflections.rb
deleted file mode 100644
index 3860f659e..000000000
--- a/sentry-rails/examples/rails-8.0/config/initializers/inflections.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, "\\1en"
-# inflect.singular /^(ox)en/i, "\\1"
-# inflect.irregular "person", "people"
-# inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym "RESTful"
-# end
diff --git a/sentry-rails/examples/rails-8.0/config/initializers/sentry.rb b/sentry-rails/examples/rails-8.0/config/initializers/sentry.rb
deleted file mode 100644
index 0e9bd0790..000000000
--- a/sentry-rails/examples/rails-8.0/config/initializers/sentry.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-Sentry.init do |config|
- config.breadcrumbs_logger = [:active_support_logger]
- config.background_worker_threads = 0
- config.send_default_pii = true
- config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
- config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
- config.release = `git branch --show-current`
-end
diff --git a/sentry-rails/examples/rails-8.0/config/locales/en.yml b/sentry-rails/examples/rails-8.0/config/locales/en.yml
deleted file mode 100644
index 6c349ae5e..000000000
--- a/sentry-rails/examples/rails-8.0/config/locales/en.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-# Files in the config/locales directory are used for internationalization and
-# are automatically loaded by Rails. If you want to use locales other than
-# English, add the necessary files in this directory.
-#
-# To use the locales, use `I18n.t`:
-#
-# I18n.t "hello"
-#
-# In views, this is aliased to just `t`:
-#
-# <%= t("hello") %>
-#
-# To use a different locale, set it with `I18n.locale`:
-#
-# I18n.locale = :es
-#
-# This would use the information in config/locales/es.yml.
-#
-# To learn more about the API, please read the Rails Internationalization guide
-# at https://guides.rubyonrails.org/i18n.html.
-#
-# Be aware that YAML interprets the following case-insensitive strings as
-# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
-# must be quoted to be interpreted as strings. For example:
-#
-# en:
-# "yes": yup
-# enabled: "ON"
-
-en:
- hello: "Hello world"
diff --git a/sentry-rails/examples/rails-8.0/config/puma.rb b/sentry-rails/examples/rails-8.0/config/puma.rb
deleted file mode 100644
index a248513b2..000000000
--- a/sentry-rails/examples/rails-8.0/config/puma.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-# This configuration file will be evaluated by Puma. The top-level methods that
-# are invoked here are part of Puma's configuration DSL. For more information
-# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
-#
-# Puma starts a configurable number of processes (workers) and each process
-# serves each request in a thread from an internal thread pool.
-#
-# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
-# should only set this value when you want to run 2 or more workers. The
-# default is already 1.
-#
-# The ideal number of threads per worker depends both on how much time the
-# application spends waiting for IO operations and on how much you wish to
-# prioritize throughput over latency.
-#
-# As a rule of thumb, increasing the number of threads will increase how much
-# traffic a given process can handle (throughput), but due to CRuby's
-# Global VM Lock (GVL) it has diminishing returns and will degrade the
-# response time (latency) of the application.
-#
-# The default is set to 3 threads as it's deemed a decent compromise between
-# throughput and latency for the average Rails application.
-#
-# Any libraries that use a connection pool or another resource pool should
-# be configured to provide at least as many connections as the number of
-# threads. This includes Active Record's `pool` parameter in `database.yml`.
-threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
-threads threads_count, threads_count
-
-# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
-port ENV.fetch("PORT", 3000)
-
-# Allow puma to be restarted by `bin/rails restart` command.
-plugin :tmp_restart
-
-# Run the Solid Queue supervisor inside of Puma for single-server deployments
-plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]
-
-# Specify the PID file. Defaults to tmp/pids/server.pid in development.
-# In other environments, only set the PID file if requested.
-pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
diff --git a/sentry-rails/examples/rails-8.0/config/queue.yml b/sentry-rails/examples/rails-8.0/config/queue.yml
deleted file mode 100644
index 9eace59c4..000000000
--- a/sentry-rails/examples/rails-8.0/config/queue.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-default: &default
- dispatchers:
- - polling_interval: 1
- batch_size: 500
- workers:
- - queues: "*"
- threads: 3
- processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %>
- polling_interval: 0.1
-
-development:
- <<: *default
-
-test:
- <<: *default
-
-production:
- <<: *default
diff --git a/sentry-rails/examples/rails-8.0/config/recurring.yml b/sentry-rails/examples/rails-8.0/config/recurring.yml
deleted file mode 100644
index d045b1914..000000000
--- a/sentry-rails/examples/rails-8.0/config/recurring.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-# production:
-# periodic_cleanup:
-# class: CleanSoftDeletedRecordsJob
-# queue: background
-# args: [ 1000, { batch_size: 500 } ]
-# schedule: every hour
-# periodic_command:
-# command: "SoftDeletedRecord.due.delete_all"
-# priority: 2
-# schedule: at 5am every day
diff --git a/sentry-rails/examples/rails-8.0/config/routes.rb b/sentry-rails/examples/rails-8.0/config/routes.rb
deleted file mode 100644
index 48254e88e..000000000
--- a/sentry-rails/examples/rails-8.0/config/routes.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-Rails.application.routes.draw do
- # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
-
- # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
- # Can be used by load balancers and uptime monitors to verify that the app is live.
- get "up" => "rails/health#show", as: :rails_health_check
-
- # Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
- # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
- # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
-
- # Defines the root path route ("/")
- # root "posts#index"
-end
diff --git a/sentry-rails/examples/rails-8.0/config/storage.yml b/sentry-rails/examples/rails-8.0/config/storage.yml
deleted file mode 100644
index 4942ab669..000000000
--- a/sentry-rails/examples/rails-8.0/config/storage.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-test:
- service: Disk
- root: <%= Rails.root.join("tmp/storage") %>
-
-local:
- service: Disk
- root: <%= Rails.root.join("storage") %>
-
-# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
-# amazon:
-# service: S3
-# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
-# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
-# region: us-east-1
-# bucket: your_own_bucket-<%= Rails.env %>
-
-# Remember not to checkin your GCS keyfile to a repository
-# google:
-# service: GCS
-# project: your_project
-# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
-# bucket: your_own_bucket-<%= Rails.env %>
-
-# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
-# microsoft:
-# service: AzureStorage
-# storage_account_name: your_account_name
-# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
-# container: your_container_name-<%= Rails.env %>
-
-# mirror:
-# service: Mirror
-# primary: local
-# mirrors: [ amazon, google, microsoft ]
diff --git a/sentry-rails/examples/rails-8.0/db/cable_schema.rb b/sentry-rails/examples/rails-8.0/db/cable_schema.rb
deleted file mode 100644
index 23666604a..000000000
--- a/sentry-rails/examples/rails-8.0/db/cable_schema.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-ActiveRecord::Schema[7.1].define(version: 1) do
- create_table "solid_cable_messages", force: :cascade do |t|
- t.binary "channel", limit: 1024, null: false
- t.binary "payload", limit: 536870912, null: false
- t.datetime "created_at", null: false
- t.integer "channel_hash", limit: 8, null: false
- t.index ["channel"], name: "index_solid_cable_messages_on_channel"
- t.index ["channel_hash"], name: "index_solid_cable_messages_on_channel_hash"
- t.index ["created_at"], name: "index_solid_cable_messages_on_created_at"
- end
-end
diff --git a/sentry-rails/examples/rails-8.0/db/cache_schema.rb b/sentry-rails/examples/rails-8.0/db/cache_schema.rb
deleted file mode 100644
index 6005a2972..000000000
--- a/sentry-rails/examples/rails-8.0/db/cache_schema.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# frozen_string_literal: true
-
-ActiveRecord::Schema[7.2].define(version: 1) do
- create_table "solid_cache_entries", force: :cascade do |t|
- t.binary "key", limit: 1024, null: false
- t.binary "value", limit: 536870912, null: false
- t.datetime "created_at", null: false
- t.integer "key_hash", limit: 8, null: false
- t.integer "byte_size", limit: 4, null: false
- t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size"
- t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size"
- t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true
- end
-end
diff --git a/sentry-rails/examples/rails-8.0/db/queue_schema.rb b/sentry-rails/examples/rails-8.0/db/queue_schema.rb
deleted file mode 100644
index 4b2cdcdc6..000000000
--- a/sentry-rails/examples/rails-8.0/db/queue_schema.rb
+++ /dev/null
@@ -1,141 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# This file is the source Rails uses to define your schema when running `bin/rails
-# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
-# be faster and is potentially less error prone than running all of your
-# migrations from scratch. Old migrations may fail to apply correctly if those
-# migrations use external dependencies or application code.
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema[8.0].define(version: 1) do
- create_table "solid_queue_blocked_executions", force: :cascade do |t|
- t.bigint "job_id", null: false
- t.string "queue_name", null: false
- t.integer "priority", default: 0, null: false
- t.string "concurrency_key", null: false
- t.datetime "expires_at", null: false
- t.datetime "created_at", null: false
- t.index ["concurrency_key", "priority", "job_id"], name: "index_solid_queue_blocked_executions_for_release"
- t.index ["expires_at", "concurrency_key"], name: "index_solid_queue_blocked_executions_for_maintenance"
- t.index ["job_id"], name: "index_solid_queue_blocked_executions_on_job_id", unique: true
- end
-
- create_table "solid_queue_claimed_executions", force: :cascade do |t|
- t.bigint "job_id", null: false
- t.bigint "process_id"
- t.datetime "created_at", null: false
- t.index ["job_id"], name: "index_solid_queue_claimed_executions_on_job_id", unique: true
- t.index ["process_id", "job_id"], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id"
- end
-
- create_table "solid_queue_failed_executions", force: :cascade do |t|
- t.bigint "job_id", null: false
- t.text "error"
- t.datetime "created_at", null: false
- t.index ["job_id"], name: "index_solid_queue_failed_executions_on_job_id", unique: true
- end
-
- create_table "solid_queue_jobs", force: :cascade do |t|
- t.string "queue_name", null: false
- t.string "class_name", null: false
- t.text "arguments"
- t.integer "priority", default: 0, null: false
- t.string "active_job_id"
- t.datetime "scheduled_at"
- t.datetime "finished_at"
- t.string "concurrency_key"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- t.index ["active_job_id"], name: "index_solid_queue_jobs_on_active_job_id"
- t.index ["class_name"], name: "index_solid_queue_jobs_on_class_name"
- t.index ["finished_at"], name: "index_solid_queue_jobs_on_finished_at"
- t.index ["queue_name", "finished_at"], name: "index_solid_queue_jobs_for_filtering"
- t.index ["scheduled_at", "finished_at"], name: "index_solid_queue_jobs_for_alerting"
- end
-
- create_table "solid_queue_pauses", force: :cascade do |t|
- t.string "queue_name", null: false
- t.datetime "created_at", null: false
- t.index ["queue_name"], name: "index_solid_queue_pauses_on_queue_name", unique: true
- end
-
- create_table "solid_queue_processes", force: :cascade do |t|
- t.string "kind", null: false
- t.datetime "last_heartbeat_at", null: false
- t.bigint "supervisor_id"
- t.integer "pid", null: false
- t.string "hostname"
- t.text "metadata"
- t.datetime "created_at", null: false
- t.string "name", null: false
- t.index ["last_heartbeat_at"], name: "index_solid_queue_processes_on_last_heartbeat_at"
- t.index ["name", "supervisor_id"], name: "index_solid_queue_processes_on_name_and_supervisor_id", unique: true
- t.index ["supervisor_id"], name: "index_solid_queue_processes_on_supervisor_id"
- end
-
- create_table "solid_queue_ready_executions", force: :cascade do |t|
- t.bigint "job_id", null: false
- t.string "queue_name", null: false
- t.integer "priority", default: 0, null: false
- t.datetime "created_at", null: false
- t.index ["job_id"], name: "index_solid_queue_ready_executions_on_job_id", unique: true
- t.index ["priority", "job_id"], name: "index_solid_queue_poll_all"
- t.index ["queue_name", "priority", "job_id"], name: "index_solid_queue_poll_by_queue"
- end
-
- create_table "solid_queue_recurring_executions", force: :cascade do |t|
- t.bigint "job_id", null: false
- t.string "task_key", null: false
- t.datetime "run_at", null: false
- t.datetime "created_at", null: false
- t.index ["job_id"], name: "index_solid_queue_recurring_executions_on_job_id", unique: true
- t.index ["task_key", "run_at"], name: "index_solid_queue_recurring_executions_on_task_key_and_run_at", unique: true
- end
-
- create_table "solid_queue_recurring_tasks", force: :cascade do |t|
- t.string "key", null: false
- t.string "schedule", null: false
- t.string "command", limit: 2048
- t.string "class_name"
- t.text "arguments"
- t.string "queue_name"
- t.integer "priority", default: 0
- t.boolean "static", default: true, null: false
- t.text "description"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- t.index ["key"], name: "index_solid_queue_recurring_tasks_on_key", unique: true
- t.index ["static"], name: "index_solid_queue_recurring_tasks_on_static"
- end
-
- create_table "solid_queue_scheduled_executions", force: :cascade do |t|
- t.bigint "job_id", null: false
- t.string "queue_name", null: false
- t.integer "priority", default: 0, null: false
- t.datetime "scheduled_at", null: false
- t.datetime "created_at", null: false
- t.index ["job_id"], name: "index_solid_queue_scheduled_executions_on_job_id", unique: true
- t.index ["scheduled_at", "priority", "job_id"], name: "index_solid_queue_dispatch_all"
- end
-
- create_table "solid_queue_semaphores", force: :cascade do |t|
- t.string "key", null: false
- t.integer "value", default: 1, null: false
- t.datetime "expires_at", null: false
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- t.index ["expires_at"], name: "index_solid_queue_semaphores_on_expires_at"
- t.index ["key", "value"], name: "index_solid_queue_semaphores_on_key_and_value"
- t.index ["key"], name: "index_solid_queue_semaphores_on_key", unique: true
- end
-
- add_foreign_key "solid_queue_blocked_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
- add_foreign_key "solid_queue_claimed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
- add_foreign_key "solid_queue_failed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
- add_foreign_key "solid_queue_ready_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
- add_foreign_key "solid_queue_recurring_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
- add_foreign_key "solid_queue_scheduled_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
-end
diff --git a/sentry-rails/examples/rails-8.0/db/schema.rb b/sentry-rails/examples/rails-8.0/db/schema.rb
deleted file mode 100644
index 0f651a43a..000000000
--- a/sentry-rails/examples/rails-8.0/db/schema.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# This file is the source Rails uses to define your schema when running `bin/rails
-# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
-# be faster and is potentially less error prone than running all of your
-# migrations from scratch. Old migrations may fail to apply correctly if those
-# migrations use external dependencies or application code.
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema[8.0].define(version: 0) do
-end
diff --git a/sentry-rails/examples/rails-8.0/db/seeds.rb b/sentry-rails/examples/rails-8.0/db/seeds.rb
deleted file mode 100644
index 4fbd6ed97..000000000
--- a/sentry-rails/examples/rails-8.0/db/seeds.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-# This file should ensure the existence of records required to run the application in every environment (production,
-# development, test). The code here should be idempotent so that it can be executed at any point in every environment.
-# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
-#
-# Example:
-#
-# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|
-# MovieGenre.find_or_create_by!(name: genre_name)
-# end
diff --git a/sentry-rails/examples/rails-8.0/lib/tasks/.keep b/sentry-rails/examples/rails-8.0/lib/tasks/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/public/400.html b/sentry-rails/examples/rails-8.0/public/400.html
deleted file mode 100644
index 282dbc8cc..000000000
--- a/sentry-rails/examples/rails-8.0/public/400.html
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
- The server cannot process the request due to a client error (400 Bad Request)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
The server cannot process the request due to a client error. Please check the request and try again. If you’re the application owner check the logs for more information.
The page you were looking for doesn’t exist. You may have mistyped the address or the page may have moved. If you’re the application owner check the logs for more information.
The change you wanted was rejected. Maybe you tried to change something you didn’t have access to. If you’re the application owner check the logs for more information.