-
- <% 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 c0b0d08fb..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.capture_exception_frame_locals = 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 c0b0d08fb..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.capture_exception_frame_locals = 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.
We’re sorry, but something went wrong. If you’re the application owner check the logs for more information.
-
-
-
-
-
-
diff --git a/sentry-rails/examples/rails-8.0/public/icon.png b/sentry-rails/examples/rails-8.0/public/icon.png
deleted file mode 100644
index c4c9dbfbb..000000000
Binary files a/sentry-rails/examples/rails-8.0/public/icon.png and /dev/null differ
diff --git a/sentry-rails/examples/rails-8.0/public/icon.svg b/sentry-rails/examples/rails-8.0/public/icon.svg
deleted file mode 100644
index 04b34bf83..000000000
--- a/sentry-rails/examples/rails-8.0/public/icon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/sentry-rails/examples/rails-8.0/public/robots.txt b/sentry-rails/examples/rails-8.0/public/robots.txt
deleted file mode 100644
index c19f78ab6..000000000
--- a/sentry-rails/examples/rails-8.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-8.0/script/.keep b/sentry-rails/examples/rails-8.0/script/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/storage/.keep b/sentry-rails/examples/rails-8.0/storage/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/application_system_test_case.rb b/sentry-rails/examples/rails-8.0/test/application_system_test_case.rb
deleted file mode 100644
index cee29fd21..000000000
--- a/sentry-rails/examples/rails-8.0/test/application_system_test_case.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require "test_helper"
-
-class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
- driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
-end
diff --git a/sentry-rails/examples/rails-8.0/test/controllers/.keep b/sentry-rails/examples/rails-8.0/test/controllers/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/fixtures/files/.keep b/sentry-rails/examples/rails-8.0/test/fixtures/files/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/helpers/.keep b/sentry-rails/examples/rails-8.0/test/helpers/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/integration/.keep b/sentry-rails/examples/rails-8.0/test/integration/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/jobs/error_job_test.rb b/sentry-rails/examples/rails-8.0/test/jobs/error_job_test.rb
deleted file mode 100644
index bd766b7d3..000000000
--- a/sentry-rails/examples/rails-8.0/test/jobs/error_job_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require "test_helper"
-
-class ErrorJobTest < ActiveJob::TestCase
- # test "the truth" do
- # assert true
- # end
-end
diff --git a/sentry-rails/examples/rails-8.0/test/mailers/.keep b/sentry-rails/examples/rails-8.0/test/mailers/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/models/.keep b/sentry-rails/examples/rails-8.0/test/models/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/system/.keep b/sentry-rails/examples/rails-8.0/test/system/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/test/test_helper.rb b/sentry-rails/examples/rails-8.0/test/test_helper.rb
deleted file mode 100644
index 0c22470ec..000000000
--- a/sentry-rails/examples/rails-8.0/test/test_helper.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-ENV["RAILS_ENV"] ||= "test"
-require_relative "../config/environment"
-require "rails/test_help"
-
-module ActiveSupport
- class 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
-end
diff --git a/sentry-rails/examples/rails-8.0/vendor/.keep b/sentry-rails/examples/rails-8.0/vendor/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/examples/rails-8.0/vendor/javascript/.keep b/sentry-rails/examples/rails-8.0/vendor/javascript/.keep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/sentry-rails/lib/sentry/rails/active_job.rb b/sentry-rails/lib/sentry/rails/active_job.rb
index 2f5a134d0..df7f27ecd 100644
--- a/sentry-rails/lib/sentry/rails/active_job.rb
+++ b/sentry-rails/lib/sentry/rails/active_job.rb
@@ -32,17 +32,13 @@ def record(job, &block)
Sentry.with_scope do |scope|
begin
scope.set_transaction_name(job.class.name, source: :task)
- transaction =
- if job.is_a?(::Sentry::SendEventJob)
- nil
- else
- Sentry.start_transaction(
- name: scope.transaction_name,
- source: scope.transaction_source,
- op: OP_NAME,
- origin: SPAN_ORIGIN
- )
- end
+
+ transaction = Sentry.start_transaction(
+ name: scope.transaction_name,
+ source: scope.transaction_source,
+ op: OP_NAME,
+ origin: SPAN_ORIGIN
+ )
scope.set_span(transaction) if transaction
diff --git a/sentry-rails/lib/sentry/rails/breadcrumb/monotonic_active_support_logger.rb b/sentry-rails/lib/sentry/rails/breadcrumb/monotonic_active_support_logger.rb
deleted file mode 100644
index 541f9bea3..000000000
--- a/sentry-rails/lib/sentry/rails/breadcrumb/monotonic_active_support_logger.rb
+++ /dev/null
@@ -1,46 +0,0 @@
-# frozen_string_literal: true
-
-require "sentry/rails/instrument_payload_cleanup_helper"
-
-module Sentry
- module Rails
- module Breadcrumb
- module MonotonicActiveSupportLogger
- class << self
- include InstrumentPayloadCleanupHelper
-
- def add(name, started, _finished, _unique_id, data)
- # skip Rails' internal events
- return if name.start_with?("!")
-
- if data.is_a?(Hash)
- # we should only mutate the copy of the data
- data = data.dup
- cleanup_data(data)
- end
-
- crumb = Sentry::Breadcrumb.new(
- data: data,
- category: name,
- timestamp: started.to_i
- )
- Sentry.add_breadcrumb(crumb)
- end
-
- def inject
- @subscriber = ::ActiveSupport::Notifications.monotonic_subscribe(/.*/) do |name, started, finished, unique_id, data|
- # we only record events that has a float as started timestamp
- if started.is_a?(Float)
- add(name, started, finished, unique_id, data)
- end
- end
- end
-
- def detach
- ::ActiveSupport::Notifications.unsubscribe(@subscriber)
- end
- end
- end
- end
- end
-end
diff --git a/sentry-rails/lib/sentry/rails/configuration.rb b/sentry-rails/lib/sentry/rails/configuration.rb
index 7b27a9152..42306e07f 100644
--- a/sentry-rails/lib/sentry/rails/configuration.rb
+++ b/sentry-rails/lib/sentry/rails/configuration.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true
-require "sentry/rails/tracing/action_controller_subscriber"
require "sentry/rails/tracing/action_view_subscriber"
require "sentry/rails/tracing/active_record_subscriber"
require "sentry/rails/tracing/active_storage_subscriber"
diff --git a/sentry-rails/lib/sentry/rails/instrument_payload_cleanup_helper.rb b/sentry-rails/lib/sentry/rails/instrument_payload_cleanup_helper.rb
deleted file mode 100644
index 07422c5e8..000000000
--- a/sentry-rails/lib/sentry/rails/instrument_payload_cleanup_helper.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# frozen_string_literal: true
-
-module Sentry
- module Rails
- module InstrumentPayloadCleanupHelper
- IGNORED_DATA_TYPES = [:request, :response, :headers, :exception, :exception_object, Tracing::START_TIMESTAMP_NAME]
-
- def cleanup_data(data)
- IGNORED_DATA_TYPES.each do |key|
- data.delete(key) if data.key?(key)
- end
- end
- end
- end
-end
diff --git a/sentry-rails/lib/sentry/rails/overrides/streaming_reporter.rb b/sentry-rails/lib/sentry/rails/overrides/streaming_reporter.rb
index 1fdd4ad60..d1bc1b1dd 100644
--- a/sentry-rails/lib/sentry/rails/overrides/streaming_reporter.rb
+++ b/sentry-rails/lib/sentry/rails/overrides/streaming_reporter.rb
@@ -9,17 +9,6 @@ def log_error(exception)
super
end
end
-
- module OldStreamingReporter
- def self.included(base)
- base.send(:alias_method_chain, :log_error, :raven)
- end
-
- def log_error_with_raven(exception)
- Sentry::Rails.capture_exception(exception)
- log_error_without_raven(exception)
- end
- end
end
end
end
diff --git a/sentry-rails/lib/sentry/rails/railtie.rb b/sentry-rails/lib/sentry/rails/railtie.rb
index b514df3cd..a86093768 100644
--- a/sentry-rails/lib/sentry/rails/railtie.rb
+++ b/sentry-rails/lib/sentry/rails/railtie.rb
@@ -101,17 +101,12 @@ def patch_background_worker
end
def inject_breadcrumbs_logger
- if Sentry.configuration.breadcrumbs_logger.include?(:active_support_logger)
+ if Sentry.configuration.breadcrumbs_logger.include?(:active_support_logger) ||
+ ## legacy name redirected for backwards compat
+ Sentry.configuration.breadcrumbs_logger.include?(:monotonic_active_support_logger)
require "sentry/rails/breadcrumb/active_support_logger"
Sentry::Rails::Breadcrumb::ActiveSupportLogger.inject(Sentry.configuration.rails.active_support_logger_subscription_items)
end
-
- if Sentry.configuration.breadcrumbs_logger.include?(:monotonic_active_support_logger)
- return warn "Usage of `monotonic_active_support_logger` require a version of Rails >= 6.1, please upgrade your Rails version or use another logger" if ::Rails.version.to_f < 6.1
-
- require "sentry/rails/breadcrumb/monotonic_active_support_logger"
- Sentry::Rails::Breadcrumb::MonotonicActiveSupportLogger.inject
- end
end
def setup_backtrace_cleanup_callback
diff --git a/sentry-rails/lib/sentry/rails/tracing/action_controller_subscriber.rb b/sentry-rails/lib/sentry/rails/tracing/action_controller_subscriber.rb
deleted file mode 100644
index 996332bb5..000000000
--- a/sentry-rails/lib/sentry/rails/tracing/action_controller_subscriber.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-# frozen_string_literal: true
-
-require "sentry/rails/tracing/abstract_subscriber"
-require "sentry/rails/instrument_payload_cleanup_helper"
-
-module Sentry
- module Rails
- module Tracing
- class ActionControllerSubscriber < AbstractSubscriber
- extend InstrumentPayloadCleanupHelper
-
- EVENT_NAMES = ["process_action.action_controller"].freeze
- OP_NAME = "view.process_action.action_controller"
- SPAN_ORIGIN = "auto.view.rails"
-
- def self.subscribe!
- Sentry.sdk_logger.warn <<~MSG
- DEPRECATION WARNING: sentry-rails has changed its approach on controller span recording and #{self.name} is now depreacted.
- Please stop using or referencing #{self.name} as it will be removed in the next major release.
- MSG
-
- subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
- controller = payload[:controller]
- action = payload[:action]
-
- record_on_current_span(
- op: OP_NAME,
- origin: SPAN_ORIGIN,
- start_timestamp: payload[START_TIMESTAMP_NAME],
- description: "#{controller}##{action}",
- duration: duration
- ) do |span|
- payload = payload.dup
- cleanup_data(payload)
- span.set_data(:payload, payload)
- span.set_http_status(payload[:status])
- end
- end
- end
- end
- end
- end
-end
diff --git a/sentry-rails/sentry-rails.gemspec b/sentry-rails/sentry-rails.gemspec
index e889f6054..0f9ad3654 100644
--- a/sentry-rails/sentry-rails.gemspec
+++ b/sentry-rails/sentry-rails.gemspec
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
spec.license = 'MIT'
spec.platform = Gem::Platform::RUBY
- spec.required_ruby_version = '>= 2.4'
+ spec.required_ruby_version = '>= 2.7'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
- spec.add_dependency "railties", ">= 5.0"
+ spec.add_dependency "railties", ">= 5.2.0"
spec.add_dependency "sentry-ruby", "~> 5.28.0"
end
diff --git a/sentry-rails/spec/dummy/test_rails_app/app.rb b/sentry-rails/spec/dummy/test_rails_app/app.rb
index 42f4d8d04..85eadf39b 100644
--- a/sentry-rails/spec/dummy/test_rails_app/app.rb
+++ b/sentry-rails/spec/dummy/test_rails_app/app.rb
@@ -105,7 +105,7 @@ def self.name
config.transport.transport_class = Sentry::DummyTransport
# for sending events synchronously
config.background_worker_threads = 0
- config.capture_exception_frame_locals = true
+ config.include_local_variables = true
yield(config, app) if block_given?
end
end
diff --git a/sentry-rails/spec/sentry/rails/activejob_spec.rb b/sentry-rails/spec/sentry/rails/activejob_spec.rb
index 8431bffff..c7f6c423a 100644
--- a/sentry-rails/spec/sentry/rails/activejob_spec.rb
+++ b/sentry-rails/spec/sentry/rails/activejob_spec.rb
@@ -229,50 +229,6 @@ def perform
event = transport.events.last.to_json_compatible
expect(event.dig("exception", "values", 0, "type")).to eq("ZeroDivisionError")
end
-
- context "and in user-defined reporting job too" do
- before do
- Sentry.configuration.async = lambda do |event, hint|
- UserDefinedReportingJob.perform_now(event, hint)
- end
- end
-
- class UserDefinedReportingJob < ActiveJob::Base
- def perform(event, hint)
- Post.find(0)
- rescue
- raise ActiveJob::DeserializationError
- end
- end
-
- it "doesn't cause infinite loop because of excluded exceptions" do
- expect do
- DeserializationErrorJob.perform_now
- end.to raise_error(ActiveJob::DeserializationError, /divided by 0/)
- end
- end
-
- context "and in customized SentryJob too" do
- before do
- class CustomSentryJob < ::Sentry::SendEventJob
- def perform(event, hint)
- raise "Not excluded exception"
- rescue
- raise ActiveJob::DeserializationError
- end
- end
-
- Sentry.configuration.async = lambda do |event, hint|
- CustomSentryJob.perform_now(event, hint)
- end
- end
-
- it "doesn't cause infinite loop" do
- expect do
- DeserializationErrorJob.perform_now
- end.to raise_error(ActiveJob::DeserializationError, /divided by 0/)
- end
- end
end
context 'using rescue_from' do
@@ -293,7 +249,7 @@ def perform(event, hint)
expect(transport.events.size).to eq(1)
event = transport.events.first
- exceptions_data = event.exception.to_hash[:values]
+ exceptions_data = event.exception.to_h[:values]
expect(exceptions_data.count).to eq(2)
expect(exceptions_data[0][:type]).to eq("FailedJob::TestError")
@@ -331,7 +287,7 @@ def perform(event, hint)
first = transport.events[0]
check_in_id = first.check_in_id
expect(first).to be_a(Sentry::CheckInEvent)
- expect(first.to_hash).to include(
+ expect(first.to_h).to include(
type: 'check_in',
check_in_id: check_in_id,
monitor_slug: "normaljobwithcron",
@@ -340,7 +296,7 @@ def perform(event, hint)
second = transport.events[1]
expect(second).to be_a(Sentry::CheckInEvent)
- expect(second.to_hash).to include(
+ expect(second.to_h).to include(
:duration,
type: 'check_in',
check_in_id: check_in_id,
@@ -359,7 +315,7 @@ def perform(event, hint)
first = transport.events[0]
check_in_id = first.check_in_id
expect(first).to be_a(Sentry::CheckInEvent)
- expect(first.to_hash).to include(
+ expect(first.to_h).to include(
type: 'check_in',
check_in_id: check_in_id,
monitor_slug: "failed_job",
@@ -369,7 +325,7 @@ def perform(event, hint)
second = transport.events[1]
expect(second).to be_a(Sentry::CheckInEvent)
- expect(second.to_hash).to include(
+ expect(second.to_h).to include(
:duration,
type: 'check_in',
check_in_id: check_in_id,
diff --git a/sentry-rails/spec/sentry/rails/breadcrumbs/active_support_logger_spec.rb b/sentry-rails/spec/sentry/rails/breadcrumbs/active_support_logger_spec.rb
index e6a0ae6e3..2fb493793 100644
--- a/sentry-rails/spec/sentry/rails/breadcrumbs/active_support_logger_spec.rb
+++ b/sentry-rails/spec/sentry/rails/breadcrumbs/active_support_logger_spec.rb
@@ -93,6 +93,33 @@
end
end
+ context "redirects legacy :monotonic_active_support_logger" do
+ before do
+ make_basic_app do |sentry_config|
+ sentry_config.breadcrumbs_logger = [:monotonic_active_support_logger]
+ end
+ end
+
+ it "captures correct data of exception requests" do
+ get "/exception"
+
+ expect(response.status).to eq(500)
+ breadcrumbs = event.dig("breadcrumbs", "values")
+ expect(breadcrumbs.count).to eq(2)
+
+ breadcrumb = breadcrumbs.detect { |b| b["category"] == "process_action.action_controller" }
+ expect(breadcrumb["data"]).to include(
+ {
+ "controller" => "HelloController",
+ "action" => "exception",
+ "params" => { "controller" => "hello", "action" => "exception" },
+ "format" => "html",
+ "method" => "GET", "path" => "/exception"
+ }
+ )
+ end
+ end
+
context "with tracing" do
before do
make_basic_app do |sentry_config|
@@ -130,7 +157,7 @@
expect(transport.events.count).to eq(1)
- transaction = transport.events.last.to_hash
+ transaction = transport.events.last.to_h
breadcrumbs = transaction[:breadcrumbs][:values]
process_action_crumb = breadcrumbs.last
expect(process_action_crumb[:category]).to eq("process_action.action_controller")
diff --git a/sentry-rails/spec/sentry/rails/breadcrumbs/monotonic_active_support_logger_spec.rb b/sentry-rails/spec/sentry/rails/breadcrumbs/monotonic_active_support_logger_spec.rb
deleted file mode 100644
index 031443c25..000000000
--- a/sentry-rails/spec/sentry/rails/breadcrumbs/monotonic_active_support_logger_spec.rb
+++ /dev/null
@@ -1,145 +0,0 @@
-# frozen_string_literal: true
-
-require "spec_helper"
-
-
-RSpec.describe "Sentry::Breadcrumbs::MonotonicActiveSupportLogger", type: :request do
- after do
- # even though we cleanup breadcrumbs in the rack middleware
- # Breadcrumbs::MonotonicActiveSupportLogger subscribes to "every" instrumentation
- # so it'll create other instrumentations "after" the request is finished
- # and we should clear those as well
- Sentry.get_current_scope.clear_breadcrumbs
- end
-
- let(:transport) do
- Sentry.get_current_client.transport
- end
-
- let(:breadcrumb_buffer) do
- Sentry.get_current_scope.breadcrumbs
- end
-
- let(:event) do
- transport.events.first.to_json_compatible
- end
- context "without tracing" do
- before do
- make_basic_app do |sentry_config|
- sentry_config.breadcrumbs_logger = [:monotonic_active_support_logger]
- end
- end
-
- context "given a Rails version < 6.1", skip: Rails.version.to_f >= 6.1 do
- it "does not run instrumentation" do
- get "/exception"
-
- breadcrumbs = event.dig("breadcrumbs", "values")
- expect(breadcrumbs.count).to be_zero
- end
- end
-
- context "given a Rails version >= 6.1", skip: Rails.version.to_f < 6.1 do
- after do
- Sentry::Rails::Breadcrumb::MonotonicActiveSupportLogger.detach
- end
-
- it "captures correct data of exception requests" do
- get "/exception"
-
- expect(response.status).to eq(500)
- breadcrumbs = event.dig("breadcrumbs", "values")
- expect(breadcrumbs.count).to eq(2)
-
- breadcrumb = breadcrumbs.detect { |b| b["category"] == "process_action.action_controller" }
- expect(breadcrumb["data"]).to include(
- {
- "controller" => "HelloController",
- "action" => "exception",
- "params" => { "controller" => "hello", "action" => "exception" },
- "format" => "html",
- "method" => "GET", "path" => "/exception"
- }
- )
- expect(breadcrumb["data"].keys).not_to include("headers")
- expect(breadcrumb["data"].keys).not_to include("request")
- expect(breadcrumb["data"].keys).not_to include("response")
- end
-
- it "ignores exception data" do
- get "/view_exception"
-
- expect(event.dig("breadcrumbs", "values", -1, "data").keys).not_to include("exception")
- expect(event.dig("breadcrumbs", "values", -1, "data").keys).not_to include("exception_object")
- end
-
- it "ignores events that doesn't have a float as started attributes" do
- expect do
- ActiveSupport::Notifications.publish "foo", Time.now
- end.not_to raise_error
-
- expect(breadcrumb_buffer.count).to be_zero
- end
- end
- end
-
- context "with tracing" do
- before do
- make_basic_app do |sentry_config|
- sentry_config.breadcrumbs_logger = [:monotonic_active_support_logger]
- sentry_config.traces_sample_rate = 1.0
- end
- end
-
- context "given a Rails version < 6.1", skip: Rails.version.to_f >= 6.1 do
- it "does not run instrumentation" do
- get "/exception"
-
- breadcrumbs = event.dig("breadcrumbs", "values")
- expect(breadcrumbs.count).to be_zero
- end
- end
-
- context "given a Rails version >= 6.1", skip: Rails.version.to_f < 6.1 do
- after do
- Sentry::Rails::Breadcrumb::MonotonicActiveSupportLogger.detach
- end
-
- it "captures correct request data of normal requests" do
- p = Post.create!
-
- get "/posts/#{p.id}"
-
- breadcrumbs = event.dig("breadcrumbs", "values")
-
- breadcrumb = breadcrumbs.detect { |b| b["category"] == "process_action.action_controller" }
- expect(breadcrumb["data"]).to include(
- {
- "controller" => "PostsController",
- "action" => "show",
- "params" => { "controller" => "posts", "action" => "show", "id" => p.id.to_s },
- "format" => "html",
- "method" => "GET", "path" => "/posts/#{p.id}"
- }
- )
- expect(breadcrumb["data"].keys).not_to include("headers")
- expect(breadcrumb["data"].keys).not_to include("request")
- expect(breadcrumb["data"].keys).not_to include("response")
- end
-
- it "doesn't add internal start timestamp payload to breadcrumbs data" do
- p = Post.create!
-
- get "/posts/#{p.id}"
-
- expect(transport.events.count).to eq(1)
-
- transaction = transport.events.last.to_hash
- breadcrumbs = transaction[:breadcrumbs][:values]
- process_action_crumb = breadcrumbs.last
- expect(process_action_crumb[:category]).to eq("process_action.action_controller")
- expect(process_action_crumb[:data].has_key?(Sentry::Rails::Tracing::START_TIMESTAMP_NAME)).to eq(false)
- end
- end
- end
-end
diff --git a/sentry-rails/spec/sentry/rails/controller_methods_spec.rb b/sentry-rails/spec/sentry/rails/controller_methods_spec.rb
index 6254dc290..0f9c82af6 100644
--- a/sentry-rails/spec/sentry/rails/controller_methods_spec.rb
+++ b/sentry-rails/spec/sentry/rails/controller_methods_spec.rb
@@ -37,7 +37,7 @@ def request
event = transport.events.last
expect(event.message).to eq("foo")
expect(event.tags).to eq({ new_tag: true })
- expect(event.to_hash.dig(:request, :url)).to eq("http://example.org/test")
+ expect(event.to_h.dig(:request, :url)).to eq("http://example.org/test")
end
end
@@ -49,8 +49,8 @@ def request
event = transport.events.last
expect(event.tags).to eq({ new_tag: true })
- expect(event.to_hash.dig(:exception, :values, 0, :type)).to eq("ZeroDivisionError")
- expect(event.to_hash.dig(:request, :url)).to eq("http://example.org/test")
+ expect(event.to_h.dig(:exception, :values, 0, :type)).to eq("ZeroDivisionError")
+ expect(event.to_h.dig(:request, :url)).to eq("http://example.org/test")
end
end
end
diff --git a/sentry-rails/spec/sentry/rails/event_spec.rb b/sentry-rails/spec/sentry/rails/event_spec.rb
index 8dc969d08..92db6f0c3 100644
--- a/sentry-rails/spec/sentry/rails/event_spec.rb
+++ b/sentry-rails/spec/sentry/rails/event_spec.rb
@@ -8,7 +8,7 @@
end
it "sets right SDK information" do
- event_hash = Sentry::Rails.capture_message("foo").to_hash
+ event_hash = Sentry::Rails.capture_message("foo").to_h
expect(event_hash[:sdk]).to eq(name: "sentry.ruby.rails", version: Sentry::Rails::VERSION)
end
@@ -27,7 +27,7 @@
e
end
- let(:hash) { Sentry::Rails.capture_exception(exception).to_hash }
+ let(:hash) { Sentry::Rails.capture_exception(exception).to_h }
it 'marks in_app correctly' do
frames = hash[:exception][:values][0][:stacktrace][:frames]
diff --git a/sentry-rails/spec/sentry/rails/tracing/action_controller_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/action_controller_subscriber_spec.rb
deleted file mode 100644
index 59c69f849..000000000
--- a/sentry-rails/spec/sentry/rails/tracing/action_controller_subscriber_spec.rb
+++ /dev/null
@@ -1,65 +0,0 @@
-# frozen_string_literal: true
-
-require "spec_helper"
-
-RSpec.describe Sentry::Rails::Tracing::ActionControllerSubscriber, :subscriber, type: :request do
- let(:transport) do
- Sentry.get_current_client.transport
- end
-
- context "when transaction is sampled" do
- let(:string_io) { StringIO.new }
- let(:logger) do
- ::Logger.new(string_io)
- end
-
- before do
- make_basic_app do |config|
- config.traces_sample_rate = 1.0
- config.rails.tracing_subscribers = [described_class]
- config.sdk_logger = logger
- end
- end
-
- it "logs deprecation message" do
- expect(string_io.string).to include(
- "DEPRECATION WARNING: sentry-rails has changed its approach on controller span recording and Sentry::Rails::Tracing::ActionControllerSubscriber is now depreacted."
- )
- end
-
- it "records controller action processing event" do
- get "/world"
-
- expect(transport.events.count).to eq(1)
-
- transaction = transport.events.first.to_hash
- expect(transaction[:type]).to eq("transaction")
- expect(transaction[:spans].count).to eq(2)
-
- span = transaction[:spans][0]
- expect(span[:op]).to eq("view.process_action.action_controller")
- expect(span[:origin]).to eq("auto.view.rails")
- expect(span[:description]).to eq("HelloController#world")
- expect(span[:trace_id]).to eq(transaction.dig(:contexts, :trace, :trace_id))
- expect(span[:data].keys).to match_array(["http.response.status_code", :format, :method, :path, :params])
- end
- end
-
- context "when transaction is not sampled" do
- before do
- make_basic_app
- end
-
- it "doesn't record spans" do
- transaction = Sentry::Transaction.new(sampled: false, hub: Sentry.get_current_hub)
- Sentry.get_current_scope.set_span(transaction)
-
- get "/world"
-
- transaction.finish
-
- expect(transport.events.count).to eq(0)
- expect(transaction.span_recorder.spans).to eq([transaction])
- end
- end
-end
diff --git a/sentry-rails/spec/sentry/rails/tracing/action_view_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/action_view_subscriber_spec.rb
index 555584024..b847089b6 100644
--- a/sentry-rails/spec/sentry/rails/tracing/action_view_subscriber_spec.rb
+++ b/sentry-rails/spec/sentry/rails/tracing/action_view_subscriber_spec.rb
@@ -20,7 +20,7 @@
expect(transport.events.count).to eq(1)
- transaction = transport.events.first.to_hash
+ transaction = transport.events.first.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:spans].count).to eq(2)
@@ -39,7 +39,7 @@
end
it "doesn't record spans" do
- transaction = Sentry::Transaction.new(sampled: false, hub: Sentry.get_current_hub)
+ transaction = Sentry::Transaction.new(sampled: false)
Sentry.get_current_scope.set_span(transaction)
get "/view"
diff --git a/sentry-rails/spec/sentry/rails/tracing/active_record_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/active_record_subscriber_spec.rb
index be674869f..ef688b2b0 100644
--- a/sentry-rails/spec/sentry/rails/tracing/active_record_subscriber_spec.rb
+++ b/sentry-rails/spec/sentry/rails/tracing/active_record_subscriber_spec.rb
@@ -21,7 +21,7 @@
end
it "records database query events" do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Post.all.to_a
@@ -30,7 +30,7 @@
expect(transport.events.count).to eq(1)
- transaction = transport.events.first.to_hash
+ transaction = transport.events.first.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:spans].count).to eq(1)
@@ -54,7 +54,7 @@ def foo
rspec_class = self.name # RSpec::ExampleGroups::[....]
before do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
foo
@@ -68,7 +68,7 @@ def foo
it "doesn't record query's source location" do
expect(transport.events.count).to eq(1)
- transaction = transport.events.first.to_hash
+ transaction = transport.events.first.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:spans].count).to eq(1)
@@ -87,7 +87,7 @@ def foo
it "records query's source location" do
expect(transport.events.count).to eq(1)
- transaction = transport.events.first.to_hash
+ transaction = transport.events.first.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:spans].count).to eq(1)
@@ -106,7 +106,7 @@ def foo
it "doesn't record query's source location" do
expect(transport.events.count).to eq(1)
- transaction = transport.events.first.to_hash
+ transaction = transport.events.first.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:spans].count).to eq(1)
@@ -121,7 +121,7 @@ def foo
end
it "records database cached query events", skip: Rails.version.to_f < 5.1 do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
ActiveRecord::Base.connection.cache do
@@ -133,7 +133,7 @@ def foo
expect(transport.events.count).to eq(1)
- transaction = transport.events.first.to_hash
+ transaction = transport.events.first.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:spans].count).to eq(2)
@@ -155,7 +155,7 @@ def foo
end
it "doesn't record spans" do
- transaction = Sentry::Transaction.new(sampled: false, hub: Sentry.get_current_hub)
+ transaction = Sentry::Transaction.new(sampled: false)
Sentry.get_current_scope.set_span(transaction)
Post.all.to_a
diff --git a/sentry-rails/spec/sentry/rails/tracing/active_storage_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/active_storage_subscriber_spec.rb
index 9e93f2c8f..9a8a63b5a 100644
--- a/sentry-rails/spec/sentry/rails/tracing/active_storage_subscriber_spec.rb
+++ b/sentry-rails/spec/sentry/rails/tracing/active_storage_subscriber_spec.rb
@@ -25,7 +25,7 @@
expect(response).to have_http_status(:ok)
expect(transport.events.count).to eq(2)
- analysis_transaction = transport.events.first.to_hash
+ analysis_transaction = transport.events.first.to_h
expect(analysis_transaction[:type]).to eq("transaction")
if Rails.version.to_f > 6.1
@@ -40,7 +40,7 @@
expect(analysis_transaction[:spans][0][:origin]).to eq("auto.file.rails")
end
- request_transaction = transport.events.last.to_hash
+ request_transaction = transport.events.last.to_h
expect(request_transaction[:type]).to eq("transaction")
expect(request_transaction[:spans].count).to eq(2)
@@ -68,7 +68,7 @@
p = Post.create!
get "/posts/#{p.id}/attach"
- request_transaction = transport.events.last.to_hash
+ request_transaction = transport.events.last.to_h
expect(request_transaction[:type]).to eq("transaction")
expect(request_transaction[:spans].count).to eq(2)
diff --git a/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb
index c276063da..0efaa33d5 100644
--- a/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb
+++ b/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb
@@ -16,14 +16,14 @@
end
it "tracks cache write" do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.write("my_cache_key", "my_cache_value")
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(1)
@@ -37,7 +37,7 @@
Rails.cache.write("my_cache_key", 0)
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.increment("my_cache_key")
@@ -45,7 +45,7 @@
expect(Rails.cache.read("my_cache_key")).to eq(1)
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(1)
expect(cache_transaction[:spans][0][:op]).to eq("cache.put")
@@ -57,14 +57,14 @@
Rails.cache.write("my_cache_key", 0)
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.decrement("my_cache_key")
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(1)
expect(cache_transaction[:spans][0][:op]).to eq("cache.put")
@@ -72,14 +72,14 @@
end
it "tracks cache read" do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.read("my_cache_key")
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(1)
expect(cache_transaction[:spans][0][:op]).to eq("cache.get")
@@ -87,7 +87,7 @@
end
it "tracks cache delete" do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.read("my_cache_key")
@@ -95,14 +95,14 @@
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(1)
expect(cache_transaction[:spans][0][:op]).to eq("cache.get")
expect(cache_transaction[:spans][0][:origin]).to eq("auto.cache.rails")
end
it "tracks cache prune" do
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.write("my_cache_key", 123, expires_in: 0.seconds)
@@ -112,7 +112,7 @@
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(2)
expect(cache_transaction[:spans][1][:op]).to eq("cache.flush")
@@ -123,14 +123,14 @@
skip("cache.hit is unset on Rails 6.0.x.") if Rails.version.to_i == 6
Rails.cache.write("my_cache_key", "my_cache_value")
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.read("my_cache_key")
Rails.cache.read("my_cache_key_non_existing")
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(2)
expect(cache_transaction[:spans][0][:op]).to eq("cache.get")
@@ -146,13 +146,13 @@
it "tracks cache delete" do
Rails.cache.write("my_cache_key", "my_cache_value")
- transaction = Sentry::Transaction.new(sampled: true, hub: Sentry.get_current_hub)
+ transaction = Sentry.start_transaction(sampled: true)
Sentry.get_current_scope.set_span(transaction)
Rails.cache.delete("my_cache_key")
transaction.finish
expect(transport.events.count).to eq(1)
- cache_transaction = transport.events.first.to_hash
+ cache_transaction = transport.events.first.to_h
expect(cache_transaction[:type]).to eq("transaction")
expect(cache_transaction[:spans].count).to eq(1)
expect(cache_transaction[:spans][0][:op]).to eq("cache.remove")
diff --git a/sentry-rails/spec/sentry/rails/tracing_spec.rb b/sentry-rails/spec/sentry/rails/tracing_spec.rb
index 629f78aa9..aee2c38f9 100644
--- a/sentry-rails/spec/sentry/rails/tracing_spec.rb
+++ b/sentry-rails/spec/sentry/rails/tracing_spec.rb
@@ -26,8 +26,8 @@
expect(response).to have_http_status(:internal_server_error)
expect(transport.events.count).to eq(2)
- event = transport.events.first.to_hash
- transaction = transport.events.last.to_hash
+ event = transport.events.first.to_h
+ transaction = transport.events.last.to_h
expect(event.dig(:contexts, :trace, :trace_id).length).to eq(32)
expect(event.dig(:contexts, :trace, :trace_id)).to eq(transaction.dig(:contexts, :trace, :trace_id))
@@ -67,7 +67,7 @@
expect(response).to have_http_status(:ok)
expect(transport.events.count).to eq(1)
- transaction = transport.events.last.to_hash
+ transaction = transport.events.last.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction.dig(:contexts, :trace, :op)).to eq("http.server")
@@ -123,7 +123,7 @@
it "does not record sensitive params" do
get "/posts?foo=bar&password=42&secret=baz"
- transaction = transport.events.last.to_hash
+ transaction = transport.events.last.to_h
params = transaction[:spans][0][:data][:params]
expect(params["foo"]).to eq("bar")
@@ -145,7 +145,7 @@
it "records all params" do
get "/posts?foo=bar&password=42&secret=baz"
- transaction = transport.events.last.to_hash
+ transaction = transport.events.last.to_h
params = transaction[:spans][0][:data][:params]
expect(params["foo"]).to eq("bar")
@@ -260,7 +260,7 @@
expect(transport.events.count).to eq(3)
- transaction = transport.events.last.to_hash
+ transaction = transport.events.last.to_h
expect(transaction[:type]).to eq("transaction")
expect(transaction[:transaction]).to eq("PostsController#show")
@@ -275,7 +275,6 @@
status: "ok",
sampled: true,
name: "a/path",
- hub: Sentry.get_current_hub
)
end
diff --git a/sentry-rails/spec/sentry/send_event_job_spec.rb b/sentry-rails/spec/sentry/send_event_job_spec.rb
deleted file mode 100644
index 00f89b2ed..000000000
--- a/sentry-rails/spec/sentry/send_event_job_spec.rb
+++ /dev/null
@@ -1,105 +0,0 @@
-# frozen_string_literal: true
-
-require "active_job"
-require "spec_helper"
-
-RSpec.describe "Sentry::SendEventJob" do
- let(:event) do
- Sentry.get_current_client.event_from_message("test message")
- end
- let(:transport) do
- Sentry.get_current_client.transport
- end
-
- context "when ActiveJob is not loaded" do
- before do
- TempActiveJob = ActiveJob
- Object.send(:remove_const, "ActiveJob")
- reload_send_event_job
- end
-
- after do
- ActiveJob = TempActiveJob
- reload_send_event_job
- end
-
- it "gets defined as a blank class" do
- expect(Sentry::SendEventJob.superclass).to eq(Object)
- end
- end
-
- context "when ActiveJob is loaded" do
- after do
- reload_send_event_job
- end
-
- it "reports events to Sentry" do
- make_basic_app
-
- Sentry.configuration.before_send = lambda do |event, hint|
- event.tags[:hint] = hint
- event
- end
-
- Sentry::SendEventJob.perform_now(event, { foo: "bar" })
-
- expect(transport.events.count).to eq(1)
- event = transport.events.first
- expect(event.message).to eq("test message")
- expect(event.tags[:hint][:foo]).to eq("bar")
- end
-
- it "doesn't create a new transaction" do
- make_basic_app do |config|
- config.traces_sample_rate = 1.0
- end
-
- Sentry::SendEventJob.perform_now(event)
-
- expect(transport.events.count).to eq(1)
- event = transport.events.first
- expect(event.type).to eq("event")
- end
-
- context "when ApplicationJob is not defined" do
- before do
- make_basic_app
- end
- it "uses ActiveJob::Base as the parent class" do
- expect(Sentry::SendEventJob.superclass).to eq(ActiveJob::Base)
- end
- end
-
- context "when ApplicationJob is defined" do
- before do
- class ApplicationJob < ActiveJob::Base; end
- reload_send_event_job
- make_basic_app
- end
-
- after do
- Object.send(:remove_const, "ApplicationJob")
- end
-
- it "uses ApplicationJob as the parent class" do
- expect(Sentry::SendEventJob.superclass).to eq(ApplicationJob)
- end
- end
-
- context "when ApplicationJob is defined but it's something else" do
- before do
- class ApplicationJob; end
- reload_send_event_job
- make_basic_app
- end
-
- after do
- Object.send(:remove_const, "ApplicationJob")
- end
-
- it "uses ActiveJob::Base as the parent class" do
- expect(Sentry::SendEventJob.superclass).to eq(ActiveJob::Base)
- end
- end
- end
-end
diff --git a/sentry-raven/.craft.yml b/sentry-raven/.craft.yml
deleted file mode 100644
index ba6de9cd2..000000000
--- a/sentry-raven/.craft.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-minVersion: '0.13.2'
-github:
- owner: getsentry
- repo: sentry-ruby
-changelogPolicy: simple
-preReleaseCommand: ruby .scripts/bump-version.rb
-releaseBranchPrefix: release-sentry-raven
-statusProvider:
- name: github
-artifactProvider:
- name: github
-targets:
- - name: gem
- - name: registry
- type: sdk
- config:
- canonical: 'gem:sentry-raven'
- - name: github
- tagPrefix: sentry-raven-v
diff --git a/sentry-raven/.scripts/bump-version.rb b/sentry-raven/.scripts/bump-version.rb
deleted file mode 100755
index 2526cbab0..000000000
--- a/sentry-raven/.scripts/bump-version.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-file_name = "lib/raven/version.rb"
-
-text = File.read(file_name)
-new_contents = text.gsub(/VERSION = ".*"/, "VERSION = \"#{ARGV[1]}\"")
-File.open(file_name, "w") {|file| file.puts new_contents }
diff --git a/sentry-raven/CHANGELOG.md b/sentry-raven/CHANGELOG.md
deleted file mode 100644
index 4b186fd9c..000000000
--- a/sentry-raven/CHANGELOG.md
+++ /dev/null
@@ -1,707 +0,0 @@
-# Changelog
-
-## Unreleased
-
-- fix: user_context with block does not reset context after block exits
-
-## 3.1.2
-
-- Fix Delayed::Plugins::Raven when job raises exception [#1057](https://github.com/getsentry/sentry-ruby/pull/1057)
-- Merge hash instead of replacing the original value in user_context [#1064](https://github.com/getsentry/sentry-ruby/pull/1064)
-- Don't exclude ActionView::MissingTemplate error by default [#1092](https://github.com/getsentry/sentry-ruby/pull/1092)
-- Fix typo: much -> must for Raven::Event [#1106](https://github.com/getsentry/sentry-ruby/pull/1106)
-- Fix undefined local variable or method logger [#1143](https://github.com/getsentry/sentry-ruby/pull/1143)
- - Fixes [#1110](https://github.com/getsentry/sentry-ruby/issues/1110)
-- fix format headers for sentry-raven [#1198](https://github.com/getsentry/sentry-ruby/pull/1198)
-- Print deprecation message after sentry-raven is installed [#1206](https://github.com/getsentry/sentry-ruby/pull/1206)
-
-## 3.1.1
-
-**Feature**
-
-- Add request id to headers if exists ([#1033](https://github.com/getsentry/sentry-ruby/pull/1033))
-
-- Allow blocks on user_context ([#1023](https://github.com/getsentry/sentry-ruby/pull/1023))
-
-- Enable configurable rack environment recorded parameters ([#860](https://github.com/getsentry/sentry-ruby/pull/860))
-
-- Remove ActiveJob keys for both Sidekiq and DelayedJob ([#898](https://github.com/getsentry/sentry-ruby/pull/898))
-
-**Fix**
-
-- Remove circular dependency in transport/http.rb ([#1035](https://github.com/getsentry/sentry-ruby/pull/1035))
-
-## 3.1.0
-
-**Feature**
-
-- Exclude all 4xx Rails errors ([#1004](https://github.com/getsentry/raven-ruby/pull/1004))
-
- See the full list [here](https://github.com/getsentry/raven-ruby/blob/master/lib/raven/configuration.rb#L198-L219)
-
-- Add some error context in `transport_failure_callback` ([#1003](https://github.com/getsentry/raven-ruby/pull/1003))
-
- Before:
-
- ```ruby
- config.transport_failure_callback = lambda { |event|
- AdminMailer.email_admins("Oh god, it's on fire!", event).deliver_later
- }
- ```
-
- After:
-
- ```ruby
- config.transport_failure_callback = lambda { |event, error|
- AdminMailer.email_admins("Oh god, it's on fire because #{error.message}!", event).deliver_later
- }
- ```
-
-- Support cleaning up exception backtrace with customized backtrace_cleaner ([#1011](https://github.com/getsentry/raven-ruby/pull/1011))
-
- The new config `backtrace_cleanup_callback` takes a lambda/proc object (default is `nil`) and will be called with exception's backtrace
-
- ```ruby
- Raven.configure do |config|
- config.backtrace_cleanup_callback = lambda do |backtrace|
- Rails.backtrace_cleaner.clean(backtrace)
- end
- end
- ```
-
- And with the Rails integration, it'll automatically use a customized `Raven::Rails::BacktraceCleaner` to clean up exception's backtrace. It's basically Rails 6's [backtrace cleaner](https://github.com/rails/rails/blob/master/railties/lib/rails/backtrace_cleaner.rb) but without silencers.
-
- The main reason to add this cleaner is to remove template methods from the trace, e.g.
-
- ```
- app/views/welcome/view_error.html.erb in _app_views_welcome_view_error_html_erb__2807287320172182514_65600 at line 1
- ```
-
- will become
-
- ```
- app/views/welcome/view_error.html.erb at line 1
- ```
-
- This can help Sentry group issues more accurately. See [#957](https://github.com/getsentry/raven-ruby/issues/957) for more information about this.
-
- If you don't want this change, you can disable it with:
-
- ```ruby
- Raven.configure do |config|
- config.backtrace_cleanup_callback = nil
- end
- ```
-
-
-- Make dsn value accessable from config ([#1012](https://github.com/getsentry/raven-ruby/pull/1012))
-
- You can now access the dsn value via `Raven.configuration.dsn`
-
-**Deprecation**
-
-- Deprecate dasherized filenames ([#1006](https://github.com/getsentry/raven-ruby/pull/1006))
-
- If you're using
-
- ```ruby
- gem 'sentry-raven', require: 'sentry-raven-without-integrations'
- # or
- require "sentry-raven-without-integrations"
- ```
-
- you will start seeing deprecation warnings. Please change them into
-
- ```ruby
- gem 'sentry-raven', require: 'sentry_raven_without_integrations'
- # or
- require "sentry_raven_without_integrations"
- ```
-
-- Unify breadcrumb loggers activation ([#1016](https://github.com/getsentry/raven-ruby/pull/1016))
-
- Currently, we activate our breadcrumb loggers differently:
-
- ```ruby
- require "raven/breadcrumbs/sentry_logger"
- Raven.configuration.rails_activesupport_breadcrumbs = true
- ```
-
- It's not a nice user interface, so this PR adds a new configuration
- option `breadcrumbs_logger` to improve this:
-
- ```ruby
- Raven.configuration.breadcrumbs_logger = :sentry_logger
- Raven.configuration.breadcrumbs_logger = :active_support_logger
- Raven.configuration.breadcrumbs_logger = [:sentry_logger, :active_support_logger]
- ```
-
- Please migrate to the new activation apporach, otherwise you'll see depraction warnings. And old ones will be dropped in version 4.0.
-
-**Refactor**
-
-- Accept non-string message in Event.from_exception ([#1005](https://github.com/getsentry/raven-ruby/pull/1005))
-- Refactor event initialization ([#1010](https://github.com/getsentry/raven-ruby/pull/1010))
-- Refactor sidekiq integration ([#1019](https://github.com/getsentry/raven-ruby/pull/1019))
-
-**Fix**
-
-- Replace sys_command usages in context.rb ([#1017](https://github.com/getsentry/raven-ruby/pull/1017))
-- Fix merge error from rack-timeout raven_context on old releases ([#1007](https://github.com/getsentry/raven-ruby/pull/1007))
-- Return value of `rescue_with_handler` when intercepting ActiveJob exceptions ([#1027](https://github.com/getsentry/raven-ruby/pull/1027))
-
-## 3.0.4
-
-- fix: Don't log warning messages when it doesn't need to (#1000)
-- fix: Revert "Refactor Raven::Client class" (#1002)
-
-## 3.0.3
-
-- fix: Ensure Processor::Cookie can run after Processor::RemoveCircularReferences (#996)
-- fix: Avoid mutating user passed in options (#994)
-- fix: Fix/Refactor Raven::Cli (#989)
-- ref: Refactor Raven::Client class (#995)
- - It adds `Event#message_from_exception` and `Event#log_message` interfaces
-
-## 3.0.2
-
-- fix: Add gem target for craft
-
-## 3.0.1
-
-- fix: Improve SanitizeData processor (#984)
-- fix: Masking cookies as key/pair instead of a single string (#983)
-- fix: Transports classes' requiring issue (#986)
-- fix: Frozen string issues (#977)
-- feat: Officially support Rails 6 (#982)
-
-3.0.0
-----
-
-* SDK now requires Ruby >= 2.3
-* REF: Retain any literal "HTTP-" in header names [@elliterate, #950]
-* REF: Delete JSON spec for recursive hashes [@ksylvest, #952]
-* FEAT: Bump faraday version to latest [@ksylvest, #946]
-
-2.13.0
-----
-
-* FIX: Sanitize event data before they are sent to async job. [@edariedl, #895]
-* FIX: Serialization MongoDB ObjectId to JSON problem with gem delayed_job_mongoid conjunction. [@eagleas, #935]
-* FEAT: Skip ActiveJob integration if there is a better one [@fsateler, #909]
-* FIX: Bugs with send_event in asynchronous mode (#940) [@cstyles, #940]
-
-2.12.3
-----
-
-* FIX: crash when Process.wait is used [@asBrettisay, #895]
-
-2.12.2
-----
-
-* FIX: return tags/extra for [@rivayama, #931]
-
-2.12.1
-----
-
-* FIX: undefined method `[]' for nil:NilClass [@HazAT, #932]
-
-2.12.0
-----
-
-* FIX: Remove duplicate message when exception is emitted
-* FIX: Frozen string bug in utf8conversation
-* FEATURE: Allow block on tags_context and extra_context
-
-2.11.3
-----
-
-* FIX: infinite backoff under pressure [@Bonias, #886]
-
-2.11.2
-----
-
-* REF: Warn on 4xx error [@iloveitaly, #862]
-
-2.11.1
-----
-
-* FIX: Call `to_s` on breadcrumb message [@halkeye, #914]
-
-2.11.0
-----
-
-* FEATURE: Prepend the transaction around_action so libraries with controllers can alter the value. [@drcapulet, #887]
-
-2.10.0
------
-
-* FEATURE: Added support for `SENTRY_ENVIRONMENT` [@mtsmfm, #910]
-* FEATURE: Added support for `SENTRY_RELEASE` [@coorasse, #911]
-
-2.9.0
------
-
-* FEATURE: Added `config.inspect_exception_causes_for_exclusion`. Determines if the exception cause should be inspected for `config.excluded_exceptions` option. [@effron, #872]
-
-
-2.8.0
------
-
-* FEATURE: Added `config.before_send`. Provide a lambda or proc to this config setting, which will be `call`ed before sending an event to Sentry. Receives `event` and `hint` as parameters. `hint` is a hash `{:exception => ex | nil, :message => message | nil}`. [@hazat, #882]
-
-2.7.4
------
-
-* BUGFIX: Correctly handle public only DSNs [@mitsuhiko, #847]
-* BUGFIX: context attributes with nil raised error [@joker-777, 824]
-* BUGFIX: Suppress warning about enabling dyno metadata in Heroku CI [@meganemura, #833]
-
-2.7.3
------
-
-* BUGFIX: Fix proxy settings for Faraday [@Strnadj, #820]
-* BUGFIX: Fix duplicated events in ActiveJob w/DelayedJob and Sidekiq [@BrentWheeldon, #815]
-
-2.7.2
------
-
-* BUGFIX: GlobalIDs are now displayed correctly in Sidekiq contexts [@louim, #798]
-* BUGFIX: If git is not installed, fail silently during release detection [@nateberkopec]
-* BUGFIX: We do not support rack-timeout <= 0.2, fix errors when incompat version present [@nateberkopec]
-* BUGFIX: Put cookies in the correct spot of event [@nateberkopec, #812]
-* BUGFIX: Exception context is deep_merged [@janklimo, #782]
-
-2.7.1
------
-
-* BUGFIX: Fixed LocalJumpError in Rails controllers [@nateberkopec w/@frodsan, #774]
-
-2.7.0
------
-
-* FEATURE: Add random sampling. [@nateberkopec, #734]
-* FEATURE: Transactions. See Context docs for usage. [@nateberkopec, #743]
-* FEATURE: You can set the current environment for Sentry via `SENTRY_CURRENT_ENV` env variable. Useful if your staging environment's RACK_ENV is "production", for example. [@tijmenb, #736]
-
-* BUGFIX: Fix wrapped classnames in old versions of Sidekiq and ActiveJob [@nateberkopec, #702]
-* BUGFIX: Server names on Heroku were pretty useless before - now they follow the dyno name ("worker.1", "web.2") [@nateberkopec, #703]
-* BUGFIX: ActiveJob::DeserializationError is now ignored by default. Not doing so can cause infinite loops if you are using an ActiveJob async callback. [@nateberkopec, #701]
-* BUGFIX: Binary conversion to UTF-8 when binary is frozen is fixed [@nateberkopec, #757]
-* BUGFIX: Our credit-card regex now matches Sentry's server behavior, which means it does not censor milliseconds since the epoch [@nateberkopec, #771]
-
-* REFACTOR: We now use an updated port of Rails' deep_merge which should be 5-10% faster [@nateberkopec, #770]
-* REFACTOR: Tests have been cleaned up, and now run in random order. [@nateberkopec]
-* REFACTOR: Raven::Event has been refactored a bit [@nateberkopec]
-
-2.6.3
------
-
-* BUGFIX: Fixed typo in the Heroku warning [@greysteil, #728]
-* BUGFIX: Swallow IOErrors when reading the Rack request body [@nateberkopec]
-* BUGFIX: Fix invalid UTF-8/circular references when using async [@nateberkopec, #730]
-
-2.6.2
------
-
-* BUGFIX: If using the Sidekiq or DelayedJob adapters with ActiveJob, ActiveJob wouldn't re-raise upon capturing an exception. [@nateberkopec, 5b02ad4ff2]
-
-* KNOWN ISSUE: When using `async`, Rack integration is not thread-safe [#721]
-* KNOWN ISSUE: When using `async`, encoding errors may be raised [#725]
-
-2.6.1
------
-
-* BUGFIX: Fix cases where ActionDispatch::RemoteIP would blow up during event creation [@cmoylan, #722]
-* BUGFIX: In ActiveJob, don't report exceptions which can be rescued by rescue_from handlers [@bensheldon, #719]
-
-2.6.0
------
-
-* FEATURE: raven-ruby now marks itself as the "ruby" logger by default, to match raven-js behavior [@nateberkopec]
-* FEATURE: You may now override the default sanitization parameters [#712, @nateberkopec]
-* FEATURE: Breadcrumb buffers are now publicly accessible [#686, @nateberkopec]
-* FEATURE: We yell at you now if you're using Heroku but don't have runtime-dyno-metadata enabled [#715, @nateberkopec]
-* FEATURE: project_root will always be set, regardless of framework [#716, @nateberkopec]
-
-* BUGFIX: Request body and message limits now match Sentry server defaults [#714, @nateberkopec]
-* BUGFIX: Sidekiq context now works as expected [#713, @nateberkopec]
-* BUGFIX: Capture exceptions in ActiveJob when not using Sidekiq adapter [#709, #671, @nateberkopec]
-
-2.5.3
------
-
-* BUGFIX: Deal properly with ASCII_8BIT/BINARY encodings [#689, #696, @nateberkopec]
-
-2.5.2
------
-
-* BUGFIX: raven test executable should be available [#691, @nateberkopec]
-* BUGFIX: Fix stack overflow when calling Backtrace#inspect [#690, @nateberkopec]
-
-* KNOWN ISSUE: Character encoding errors [#689]
-
-2.5.1
------
-
-* BUGFIX: Fix case where Pathname objects are on the load path [@nateberkopec]
-* BUGFIX: Fix bad UTF-8 characters in the URL querystring [@nateberkopec]
-* BUGFIX: Fix case where rack-timeout could be required twice [@nateberkopec]
-
-* REFACTOR: Slightly cleaner character encoding fixing [@nateberkopec, @bf4]
-
-2.5.0
------
-
-* FEATURE: Greatly improved performance (2-3x faster capture) [@nateberkopec]
-* FEATURE: Frozen objects are now sanitized [@nateberkopec]
-
-* BUGFIX: Grabbing Sidekiq context from "wrapped" classes works [@nateberkopec]
-* BUGFIX: Relaxed Faraday dependency [@nateberkopec]
-
-2.4.0
------
-
-* FEATURE: Allow customization of the Faraday adapter [#639, @StupidCodeFactory]
-
-* BUGFIX: Report the SDK name as "raven-ruby", not "sentry-raven" [#641, @bretthoerner]
-* BUGFIX: Sidekiq jobs now clear context/breadcrumbs properly between jobs [#637, @drewish]
-* BUGFIX: Overriding the logger in Rails wasn't working [#638, @eugeneius]
-
-2.3.1
------
-
-* BUGFIX: Backtrace parser fixed for JRuby 9k [#619, @the-michael-toy]
-* BUGFIX: Rake tasks should show the correct task name [#621, @Bugagazavr]
-* BUGFIX: Formatted messages work if params are `nil` [#625, @miyachik]
-* BUGFIX: Backtrace logger on failed event send works with custom formatters [#627, @chulkilee]
-* BUGFIX: Fix typo that caused Version headers to not be corrected [#628, @nateberkopec]
-* BUGFIX: Faraday errors are more descriptive when no server response [#629, @drewish]
-* BUGFIX: DelayedJob handler no longer truncates unneccessarily short [#633, @darrennix]
-* BUGFIX: Fix several processors not working correctly w/async jobs stored in backends like Redis [#634, @nateberkopec]
-
-2.3.0
------
-
-* CHANGE: Log levels of some messages have been changed. Raven logger is INFO level by default. [@nateberkopec]
-* BUGFIX: Exception messages are now limited to 10,000 bytes. [#617, @mattrobenolt]
-
-2.2.0
------
-
-* ENHANCEMENT: Sentry server errors now return some information about the response headers. [#585, @rafadc]
-* BUGFIX/ENHANCEMENT: Frozen objects are no longer sanitized. This prevents some bugs, but you can now also freeze objects if you don't want them to be sanitized by the SanitizeData processor. [#594, @nateberkopec]
-* ENHANCEMENT: The ability to use Raven::Instance alone is greatly improved. You can now call #capture_exception directly on an Instance (#595), give it it's own Logger (#599), and set it's own config which will be used when creating Events (#601). Thanks to
-* ENHANCEMENT: You may now provide your own LineCache-like class to Raven. This is useful if you have source code which is not available on disk. [#606, @nateberkopec]
-* BUGFIX: Raven no longer emits anything to STDOUT if a system command fails [#596, @nateberkopec]
-* ENHANCEMENT: Raven now tells you exactly why it will not send an event in the logs [#602, @nateberkopec]
-
-2.1.4
------
-
-* FIX: Remove `contexts` key, because it was disabling browser auto-tagging [#587, @nateberkopec]
-
-2.1.3
------
-
-* Move `os` context key to `server_os` [@nateberkopec]
-
-2.1.2
------
-
-* FIX: `sys_command` not falling back to Windows commands properly, logging output [@jmalves, @nateberkopec]
-
-2.1.1
------
-
-* FIX: Message params should accept nil [@jmalves, #570]
-
-2.1.0
------
-
-ENHANCEMENTS:
-
-* Your client version is now included in all Events. [@nateberkopec, #559]
-* OS and Ruby runtime information now included in all Events. [@nateberkopec, #560]
-* Transport errors (like Sentry 4XX errors) now raise Sentry::Error, not Faraday errors. [@nateberkopec, #565]
-* Sidekiq integration is streamlined and improved. Supports Sidekiq 3.x and up. [@nateberkopec, #555]
-
-FIXES:
-
-* Heroku release detection is improved and more accurate. You must `heroku labs:enable runtime-dyno-metadata` for it to work. [@nateberkopec, #566]
-
-2.0.2
------
-
-* FIX: Don't set up Rack-Timeout middleware. [@janraasch, #558]
-
-2.0.1
------
-
-* FIX: UUIDs were being rejected by Sentry as being too long [@nateberkopec]
-
-2.0.0
------
-
-BREAKING CHANGES:
-
-* The object passed to the `async` callback is now a JSON-compatible hash, not a Raven::Event. This fixes many bugs with backend job processors like DelayedJob. [@nateberkopec, #547]
-* Several deprecated accessors have been removed [@nateberkopec, #543]
-* You can no longer pass an object which cannot be called to `should_capture` [@nateberkopec, #542]
-
-ENHANCEMENTS:
-
-* Rack::Timeout exceptions are now fingerprinted by URL, making them more useful [@nateberkopec, #538]
-* Added an HTTP header processor by default. We now scrub `Authorization` headers correctly. You can use `config.sanitize_http_headers` to add a list of HTTP headers you don't want sent to Sentry (e.g. ["Via", "Referer", "User-Agent", "Server", "From"]) [@nateberkopec]
-
-FIXES:
-
-* User/Event IP addresses are now set more accurately. This will fix many issues with local proxy setups (nginx, etc). [@nateberkopec, #546]
-* We now generate a real UUID in the correct format for Event IDs [@nateberkopec, #549]
-* If `async` sending fails, we retry with sync sending. [@nateberkopec, #548]
-* Changed truncation approach - event messages and HTTP bodies now limited to the same amount of characters they're limited to at the Sentry server [@nateberkopec, #536]
-
-OTHER:
-
-* Codebase cleaned up with Rubocop [@nateberkopec, #544]
-
-1.2.3
------
-
-* ENHANCEMENT: Send the current environment to Sentry [@dcramer, #530]
-* BUGFIX: Fix all warnings emitted by Ruby verbose mode [@nateberkopec]
-* BUGFIX: Fix compat with `log4r` [@nateberkopec, #535]
-
-1.2.2
------
-
-* BUGFIX: NameError in DelayedJob integration. [janraasch, #525]
-
-1.2.1
------
-
-* BUGFIX: Context clearing should now work properly in DelayedJob and Sidekiq. Also, we properly clear context if Sentry causes an exception. [nateberkopec, #520]
-* BUGFIX: If Sentry will not send the event (due to environments or no DSN set), it will not attempt to "capture" (construct an event) [nateberkopec, #518]
-
-1.2.0
------
-
-* FEATURE: Raven now supports Breadcrumbs, though they aren't on by default. Check the docs for how to enable. [dcramer, #497]
-* FEATURE: Raven is no longer a singleton, you may have many `Raven::Instance`s. [phillbaker, #504]
-* PERFORMANCE: Raven no longer uses a vendored JSON implementation. JSON processing and encoding should be up to 6x faster. [dcramer, #510]
-* BUGFIX: silence_ready now works for Rails apps. [ream88, #512]
-* BUGFIX: transport_failure_callback now works correctly [nateberkopec, #508]
-
-1.1.0
------
-
-* The client exposes a ``last_event_id`` accessor at `Raven.last_event_id`. [dcramer, #493]
-* PERFORMANCE: Skip identical backtraces from "re-raised" exceptions [databus23, #499]
-* Support for ActionController::Live and Rails template streaming [nateberkopec, #486]
-
-1.0.0
------
-
-We (i.e. @nateberkopec) decided that `raven-ruby` has been stable enough for some time that it's time for a 1.0.0 release!
-
-BREAKING CHANGES:
-
-- Dropped support for Ruby 1.8.7 [nateberkopec, #465]
-- `raven-ruby` no longer reports form POST data or web cookies by default. To re-enable this behavior, remove the appropriate Processors from your config (see docs or PR) [nateberkopec, #466]
-- UDP transport has been removed [dcramer, #472]
-
-OTHER CHANGES:
-
-- Improved performance [zanker]
-- Deprecated `config.catch_debugged_exceptions`, replaced with `config.rails_report_rescued_exceptions`. `catch_debugged_exceptions` will be removed in 1.1. [nateberkopec, #483]
-- Added `config.transport_failure_callback`. Provide a lambda or proc to this config setting, which will be `call`ed when Sentry returns a 4xx/5xx response. [nateberkopec, #484]
-- JRuby builds fixed [RobinDaugherty]
-- Fix problems with duplicate exceptions and `Exception.cause` [dcramer, #490]
-- Added Exception Context. Any Exception class can define a `raven_context` instance variable, which will be merged into any Event's context which contains this exception. [nateberkopec, #491]
-+ Documentation from shaneog, squirly, dcramer, ehfeng, nateberkopec.
-
-0.15.6
-------
-
-- Fixed bug where return value of debug middleware was nil [eugeneius, #461]
-- Fixed a bug in checking `catch_debugged_exceptions` [greysteil, #458]
-- Fixed a deprecation warning for Rails 5 [Elektron1c97, #457]
-
-0.15.5
-------
-
-- DelayedJob integration fixed when last_error not present [dcramer, #454]
-- Release detection doesn't overwrite manual release setting in Rails [eugeneius, #450]
-- Deal properly with Cap 3.0/3.1 revision logs [timcheadle, #449]
-- Rails 5 support [nateberkopec, #423]
-
-0.15.4
-------
-
-- DelayedJob integration now also truncates last_error to 100 characters [nateberkopec]
-- Fix several issues with release detection - silence git log message, fix Capistrano detection [nateberkopec, kkumler]
-
-
-0.15.3
-------
-
-- Double exception reporting in Rails FIXED! [nateberkopec, #422]
-- Rails 3 users having issues with undefined runner fixed [nateberkopec, #428]
-- Sidekiq integration works properly when ActiveJob enabled [mattrobenolt]
-- Fix problems with invalid UTF-8 in exception messages [nateberkopec, #426]
-- Backtraces now consider "exe" directories part of the app [nateberkopec, #420]
-- Sinatra::NotFound now ignored by default [drcapulet, #383]
-- Release versions now properly set. Support for Heroku, Capistrano, and Git. [iloveitaly #377, Sija #380]
-- DelayedJob integration plays well with ActiveJob [kkumler, #378]
-- DelayedJob handlers now truncated [nateberkopec, #431]
-- Tons of code quality improvements [amatsuda, ddrmanxbxfr, pmbrent, cpizzaia, wdhorton, PepperTeasdale]
-
-0.15.2
-------
-
-- Reverted ActiveJob support due to conflicts [#368]
-
-0.15.1
-------
-
-- Fix ActiveJob support [greysteil, #367]
-
-0.15.0
-------
-
-- Remove Certifi and use default Ruby SSL config [zanker, #352]
-- Support for ``fingerprint`` [dcramer]
-- Improved documentation and tests around various attributes [dcramer]
-- Allow configurable integrations [cthornton]
-- Prevent recursion with ``Exception.cause`` [dcramer, #357]
-- Use empty hash if false-y value [GeekOnCoffee, #354]
-- Correct some behavior with at_exit error capturing [kratob, #355]
-- Sanitize matches whole words [alyssa, #361]
-- Expose more debugging info to active_job integration [tonywok, #365]
-- Capture exceptions swallowed by rails [robertclancy, #343]
-- Sanitize the query string when the key is a symbol [jason-o-matic, #349]
-- Moved documentation to docs.getsentry.com [mitsuhiko]
-
-0.14.0
-------
-
-- Correct handling of JRuby stacktraces [dcramer]
-- Better handling of unreachable file contexts [dcramer, #335]
-- SSL is now default ON [dcramer, #338]
-- Capture exceptions in runner tasks [eugeneius, #339]
-- ActiveJob integration [lucasmazza, #327]
-- Cleanup return values of async blocks [lucasmazza, #344]
-- Better handling when sending NaN/Infinity JSON values [Alric, #345]
-- Fix issues with digest/md5 namespace [lsb, #346]
-
-0.13.3
-------
-
-- Fix a deprecation warning being shown in regular operation [ripta, #332]
-
-0.13.2
-------
-
-- DelayedJob integration now includes the job id [javawizard, #321]
-- Rails integration now works properly when you're not using all parts of Rails (e.g. just ActiveRecord) [lucasmazza, #323]
-- Bugfix CLI tool when async config is on [if1live, #324]
-- Fix and standardize tag hierarchies. Event tags > context tags > configuration tags in all cases. [JonathanBatten, #322 and eugeneius, #330]
-- Using #send on Client, Base, and Transports is now deprecated. See [the commit](https://github.com/getsentry/raven-ruby/commit/9f482022a648ab662c22177ba24fd2e2b6794c34) (or the deprecation message) for their replacements. [nateberkopec, #326]
-- You can now disable credit-card-like value filtering. [codekitchen, #329]
-
-0.13.1
-------
-
-- Raven::Transports::HTTP#send returns the response now. [eagletmt, #317]
-- Filenames now work a lot better when you vendor your gems. [eugeneius, #316]
-- Fix raven:test issue when testing non-async configurations. [weynsee, #318]
-- Fix blockless Raven#capture. [dinosaurjr, #320]
-- Fix some log messages [eagletmt, #319]
-
-0.13.0
-------
-
-- Support exception chaining [javawizard, #312]
-- Add support for sending release version [eugeneius, #310]
-- Better status reports on configuration [faber, #309]
-- Client "send" method accepts an event in object or hash format - this will make it much easier to send Sentry events in a delayed job! [marclennox, #300]
-- Fix duplicate fields in SanitizeData [wyattisimo, #294]
-- Always preserve filename paths under project_root [eugeneius, #291]
-- Truncate project root prefixes from filenames [eagletmt, #278]
-- Renamed should_send callback to should_capture [nateberkopec, #270]
-- Silencing the ready message now happens in the config as normal [nateberkopec, #260]
-- Various internal refactorings [see here](https://github.com/getsentry/raven-ruby/compare/0-12-stable...master)
-
-0.12.3
-------
-
-- URL query parameters are now sanitized for sensitive data [pcorliss, #275]
-- Raven::Client can now use a proxy server when sending events to Sentry [dcramer, #277]
-- Raven::Client will now use a timed backoff strategy if the server fails [codekitchen, #267]
-- Automatic integration loading is now a lot less brittle [dcramer, handlers, #263, #264]
-- Fixed some issues with prefixes and DSN strings [nateberkopec, #259]
-- If Raven is initialized without a server config, it will no longer send events [nateberkopec, #258]
-- Slightly nicer credit-card-like number scrubbing [nateberkopec, #254]
-- Fix some exceptions not being caught by Sidekiq middleware [nateberkopec, #251]
-- Uncommon types are now encoded correctly [nateberkopec, #249]
-
-0.12.2
-------
-
-- Security fix where exponential numbers in specially crafted params could cause a CPU attack [dcramer, #262]
-
-0.12.1
-------
-
-- Integrations (Sidekiq, DelayedJob, etc) now load independently of your Gemfile order. [nateberkopec, #236]
-- Fixed bug where setting tags mutated your configuration [berg, #239]
-- Fixed several issues with SanitizeData and UTF8 sanitization processors [nateberkopec, #238, #241, #244]
-
-0.12.0
-------
-
-- You can now give additional fields to the SanitizeData processor. Values matched are replaced by the string mask (*********). Full documentation (and how to use with Rails config.filter_parameters) [here](https://docs.sentry.io/platforms/ruby/config/). [jamescway, #232]
-- An additional processor has been added, though it isn't turned on by default: RemoveStacktrace. Use it to remove stacktraces from exception reports. [nateberkopec, #233]
-- Dependency on `uuidtools` has been removed. [nateberkopec, #231]
-
-0.11.2
-------
-
-- Fix some issues with the SanitizeData processor when processing strings that look like JSON
-
-
-0.11.1
-------
-
-- Raven now captures exceptions in Rake tasks automatically. [nateberkopec, troelskn #222]
-- There is now a configuration option called ```should_send``` that can be configured to use a Proc to determine whether or not an event should be sent to Sentry. This can be used to implement rate limiters, etc. [nateberkopec, #221]
-- Raven now includes three event processors by default instead of one, which can be turned on and off independently. [nateberkopec, #223]
-- Fixed bug with YAJL compatibility. [nateberkopec, #223]
-
-0.10.1
-------
-
-- Updated to RSpec 3.
-- Apply filters to encoded JSON data.
-
-
-0.10.0
-------
-
-- Events are now sent to Sentry in all environments. To change this behavior, either unset ```SENTRY_DSN``` or explicitly configure it via ```Raven.configure```.
-- gzip is now the default encoding
-- Removed hashie dependency
-
-
-0.9.0
------
-
-- Native support for Delayed::Job [pkuczynski, #176]
-- Updated to Sentry protocol version 5
-
-
-0.5.0
------
-- Rails 2 support [sluukonen, #45]
-- Controller methods in Rails [jfirebaugh]
-- Runs by default in any environment other than test, cucumber, or development. [#81]
diff --git a/sentry-raven/CONTRIBUTING.md b/sentry-raven/CONTRIBUTING.md
deleted file mode 100644
index 71cb77042..000000000
--- a/sentry-raven/CONTRIBUTING.md
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-# Contributing
-
-You can contribute this project in the following ways:
-
-- File a [bug report] or propose a feature
-- Open a PR for bug fixes or implementing requested features
-- Give feedback to opened issues/pull requests
-- Test the latest version - `gem 'sentry-raven', github: 'getsentry/raven-ruby'`
-- Contribute documentation in the [document repo]
-
-
-And if you have any questions, please feel free to reach out on [Discord].
-
-
-[bug report]: https://github.com/getsentry/raven-ruby/issues/new?template=bug_report.md
-[document repo]: https://github.com/getsentry/sentry-docs
-[Discord]: https://discord.gg/Ww9hbqr
-
-## How To Contribute
-
-### Running Tests
-
-#### RAILS_VERSION
-
-Because this SDK supports multiple versions of Rails, or even without Rails, you might want to run your test against different versions of Rails.
-
-You can do this by changing the `RAILS_VERSION` environment variable:
-
-
-```
-$ echo RAILS_VERSION=6.0
-$ bundle update # this is necessary if you're switching between Rails versions
-$ bundle exec rake
-```
-
-If not specified, it runs tests against `Rails 5.2`.
-
-And if you don't want to run the Rails related test cases, you can use `RAILS_VERSION=0`
-
-```
-$ RAILS_VERSION=0 bundle exec rake # runs without Rails related test cases
-```
-
-### Testing Your Change Against Example Rails Apps
-
-We have a few example apps for different Rails versions under the `/examples` folder. You can use them to perform an end-to-end testing on your changes (just remember to change the DSN to your project's).
-
-At this moment, we recommend testing against the [Rails 6 example](https://github.com/getsentry/raven-ruby/tree/master/examples/rails-6.0) first. Please read its readme to see what kind of testing you can perform with it.
-
-
-## Making a release
-
-Install and use `craft`: https://github.com/getsentry/craft
-
-Make sure the `CHANGELOG.md` is update and latest `master` contains all changes.
-
-Run:
-
-```bash
-craft prepare x.x.x
-```
-
-Where `x.x.x` stands for the version you want to release.
-Afterwards reach out to an employee of Sentry, they will cut a release by running the `publish` process of `craft`.
diff --git a/sentry-raven/Gemfile b/sentry-raven/Gemfile
deleted file mode 100644
index 5ee60968a..000000000
--- a/sentry-raven/Gemfile
+++ /dev/null
@@ -1,41 +0,0 @@
-source "https://rubygems.org/"
-git_source(:github) { |name| "https://github.com/#{name}.git" }
-
-gemspec
-
-rails_version = ENV["RAILS_VERSION"]
-rails_version = "5.2" if rails_version.nil?
-
-if rails_version.to_f != 0
- gem "rails", "~> #{rails_version}"
- gem "rspec-rails", "~> 4.0"
-end
-
-gem "delayed_job"
-gem "sidekiq", "< 7.0"
-
-gem "rack", "< 3.0"
-gem "rack-timeout"
-
-# TODO: Remove this if https://github.com/jruby/jruby/issues/6547 is addressed
-gem "i18n", "<= 1.8.7"
-
-gem "pry"
-gem "benchmark-ips"
-gem "benchmark_driver"
-gem "benchmark-ipsa"
-gem "benchmark-memory"
-gem "ruby-prof", platform: :mri
-gem "rake", "> 12"
-gem "rspec", "~> 3.9.0"
-gem "capybara", "~> 3.15.0" # rspec system tests
-gem "puma" # rspec system tests
-
-# https://github.com/flavorjones/loofah/pull/267
-# loofah changed the required ruby version in a patch so we need to explicitly pin it
-gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
-
-gem "timecop"
-gem "test-unit"
-gem "simplecov"
-gem "codecov", "<= 0.2.12"
diff --git a/sentry-raven/LICENSE b/sentry-raven/LICENSE
deleted file mode 100644
index 40e74dccd..000000000
--- a/sentry-raven/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
-Copyright 2015 Functional Software, Inc
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
diff --git a/sentry-raven/Makefile b/sentry-raven/Makefile
deleted file mode 100644
index d218a238e..000000000
--- a/sentry-raven/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-build:
- bundle install
- gem build sentry-raven.gemspec
diff --git a/sentry-raven/README.md b/sentry-raven/README.md
deleted file mode 100644
index 551143426..000000000
--- a/sentry-raven/README.md
+++ /dev/null
@@ -1,164 +0,0 @@
-