diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a482349e7..21cd1d5ce 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -379,13 +379,13 @@ Style/SingleLineBlockParams: # Cop supports --auto-correct. Style/SingleSpaceBeforeFirstArg: Exclude: - - 'bin/raven' + - 'exe/raven' # Offense count: 45 # Cop supports --auto-correct. Style/SpaceAfterComma: Exclude: - - 'bin/raven' + - 'exe/raven' - 'lib/raven/integrations/sidekiq.rb' - 'lib/raven/processor/sanitizedata.rb' - 'spec/raven/processors/sanitizedata_processor_spec.rb' diff --git a/bin/raven b/exe/raven similarity index 100% rename from bin/raven rename to exe/raven diff --git a/lib/raven/backtrace.rb b/lib/raven/backtrace.rb index 4d259cb9b..f46b6aeb9 100644 --- a/lib/raven/backtrace.rb +++ b/lib/raven/backtrace.rb @@ -12,7 +12,7 @@ class Line # org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170) JAVA_INPUT_FORMAT = %r{^(.+)\.([^\.]+)\(([^\:]+)\:(\d+)\)$}.freeze - APP_DIRS_PATTERN = /(bin|app|config|lib|test)/ + APP_DIRS_PATTERN = /(bin|exe|app|config|lib|test)/ # The file portion of the line (such as app/models/user.rb) attr_reader :file diff --git a/sentry-raven.gemspec b/sentry-raven.gemspec index e5127e6da..d663a2e57 100644 --- a/sentry-raven.gemspec +++ b/sentry-raven.gemspec @@ -4,7 +4,6 @@ require 'raven/version' Gem::Specification.new do |gem| gem.name = "sentry-raven" gem.version = Raven::VERSION - gem.executables << "raven" gem.platform = Gem::Platform::RUBY gem.description = gem.summary = "A gem that provides a client interface for the Sentry error logger" gem.email = "getsentry@googlegroups.com" @@ -13,6 +12,7 @@ Gem::Specification.new do |gem| gem.has_rdoc = true gem.extra_rdoc_files = ["README.md", "LICENSE"] gem.files = Dir['lib/**/*'] + gem.executables = gem.files.grep(%r{^exe/}) { |f| File.basename(f) } gem.license = 'Apache-2.0' gem.required_ruby_version = '>= 1.8.7'