bugsnag 6.9.0 → 6.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/Gemfile +0 -1
  4. data/VERSION +1 -1
  5. data/features/delayed_job.feature +9 -10
  6. data/features/fixtures/delayed_job/Dockerfile +2 -2
  7. data/features/fixtures/delayed_job/app/config/initializers/bugsnag.rb +12 -12
  8. data/features/fixtures/docker-compose.yml +118 -124
  9. data/features/fixtures/plain/Dockerfile +5 -6
  10. data/features/fixtures/plain/app/Gemfile +1 -1
  11. data/features/fixtures/plain/app/app.rb +19 -19
  12. data/features/fixtures/plain/app/configuration/api_key.rb +1 -1
  13. data/features/fixtures/plain/app/stack_frame_modification/initiators/handled_before_notify.rb +5 -1
  14. data/features/fixtures/rack1/Dockerfile +7 -6
  15. data/features/fixtures/rack1/Gemfile +1 -1
  16. data/features/fixtures/rack2/Dockerfile +7 -6
  17. data/features/fixtures/rack2/Gemfile +1 -1
  18. data/features/fixtures/rails3/Dockerfile +5 -6
  19. data/features/fixtures/rails3/app/Gemfile +1 -1
  20. data/features/fixtures/rails3/app/config/initializers/bugsnag.rb +12 -12
  21. data/features/fixtures/rails4/Dockerfile +7 -5
  22. data/features/fixtures/rails4/app/Gemfile +1 -1
  23. data/features/fixtures/rails4/app/config/initializers/bugsnag.rb +12 -12
  24. data/features/fixtures/rails5/Dockerfile +5 -6
  25. data/features/fixtures/rails5/app/Gemfile +1 -1
  26. data/features/fixtures/rails5/app/config/initializers/bugsnag.rb +12 -12
  27. data/features/fixtures/resque/Dockerfile +6 -5
  28. data/features/fixtures/resque/Gemfile +1 -1
  29. data/features/fixtures/sidekiq/Dockerfile +4 -2
  30. data/features/fixtures/sidekiq/app/Gemfile +3 -1
  31. data/features/fixtures/sidekiq/app/app.rb +4 -4
  32. data/features/fixtures/sinatra1/Dockerfile +6 -5
  33. data/features/fixtures/sinatra1/Gemfile +1 -1
  34. data/features/fixtures/sinatra2/Dockerfile +6 -5
  35. data/features/fixtures/sinatra2/Gemfile +1 -1
  36. data/features/plain_features/add_tab.feature +15 -17
  37. data/features/plain_features/api_key.feature +2 -3
  38. data/features/plain_features/app_type.feature +3 -5
  39. data/features/plain_features/app_version.feature +3 -5
  40. data/features/plain_features/auto_notify.feature +1 -3
  41. data/features/plain_features/delivery.feature +3 -5
  42. data/features/plain_features/exception_data.feature +4 -6
  43. data/features/plain_features/filters.feature +4 -6
  44. data/features/plain_features/handled_errors.feature +48 -30
  45. data/features/plain_features/ignore_classes.feature +0 -2
  46. data/features/plain_features/ignore_report.feature +0 -2
  47. data/features/plain_features/proxies.feature +4 -6
  48. data/features/plain_features/release_stages.feature +8 -10
  49. data/features/plain_features/report_api_key.feature +1 -3
  50. data/features/plain_features/report_severity.feature +3 -5
  51. data/features/plain_features/report_stack_frames.feature +54 -21
  52. data/features/plain_features/report_user.feature +10 -12
  53. data/features/plain_features/unhandled_errors.feature +4 -6
  54. data/features/rails_features/api_key.feature +3 -3
  55. data/features/rails_features/app_type.feature +4 -4
  56. data/features/rails_features/app_version.feature +2 -2
  57. data/features/rails_features/auto_capture_sessions.feature +4 -4
  58. data/features/rails_features/auto_notify.feature +5 -5
  59. data/features/rails_features/before_notify.feature +4 -4
  60. data/features/rails_features/handled.feature +6 -6
  61. data/features/rails_features/ignore_classes.feature +2 -2
  62. data/features/rails_features/meta_data_filters.feature +2 -2
  63. data/features/rails_features/project_root.feature +8 -8
  64. data/features/rails_features/release_stage.feature +2 -2
  65. data/features/rails_features/send_code.feature +2 -2
  66. data/features/rails_features/send_environment.feature +3 -3
  67. data/features/rails_features/unhandled.feature +4 -4
  68. data/features/rails_features/user_info.feature +4 -4
  69. data/features/sidekiq.feature +9 -10
  70. data/features/steps/ruby_notifier_steps.rb +6 -25
  71. data/features/support/env.rb +18 -9
  72. data/lib/bugsnag/configuration.rb +3 -3
  73. data/lib/bugsnag/integrations/mailman.rb +0 -1
  74. data/lib/bugsnag/integrations/shoryuken.rb +6 -8
  75. data/lib/bugsnag/integrations/sidekiq.rb +14 -11
  76. data/lib/bugsnag/stacktrace.rb +1 -2
  77. data/spec/configuration_spec.rb +1 -1
  78. data/spec/integrations/sidekiq_spec.rb +73 -7
  79. data/spec/report_spec.rb +62 -20
  80. data/spec/spec_helper.rb +1 -1
  81. data/spec/stacktrace_spec.rb +20 -16
  82. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
@@ -3,31 +3,31 @@ require 'pp'
3
3
 
4
4
  def configure_basics
5
5
  Bugsnag.configure do |conf|
6
- conf.api_key = ENV['MAZE_API_KEY']
7
- conf.endpoint = ENV['MAZE_ENDPOINT']
8
- conf.session_endpoint = ENV["MAZE_SESSION_ENDPOINT"] if ENV.include? "MAZE_SESSION_ENDPOINT"
6
+ conf.api_key = ENV['BUGSNAG_API_KEY']
7
+ conf.endpoint = ENV['BUGSNAG_ENDPOINT']
8
+ conf.session_endpoint = ENV["BUGSNAG_SESSION_ENDPOINT"] if ENV.include? "BUGSNAG_SESSION_ENDPOINT"
9
9
  end
10
10
  end
11
11
 
12
12
  def configure_using_environment
13
13
  pp ENV
14
14
  Bugsnag.configure do |conf|
15
- conf.app_type = ENV["MAZE_APP_TYPE"] if ENV.include? "MAZE_APP_TYPE"
16
- conf.app_version = ENV["MAZE_APP_VERSION"] if ENV.include? "MAZE_APP_VERSION"
17
- conf.auto_capture_sessions = ENV["MAZE_AUTO_CAPTURE_SESSIONS"] != "false"
18
- conf.auto_notify = ENV["MAZE_AUTO_NOTIFY"] != "false"
19
- conf.ignore_classes << lambda { |ex| ex.class.to_s == ENV["MAZE_IGNORE_CLASS"] } if ENV.include? "MAZE_IGNORE_CLASS"
20
- conf.meta_data_filters << ENV["MAZE_META_DATA_FILTERS"] if ENV.include? "MAZE_META_DATA_FILTERS"
21
- conf.notify_release_stages = [ENV["MAZE_NOTIFY_RELEASE_STAGE"]] if ENV.include? "MAZE_NOTIFY_RELEASE_STAGE"
22
- conf.project_root = ENV["MAZE_PROJECT_ROOT"] if ENV.include? "MAZE_PROJECT_ROOT"
23
- conf.proxy_host = ENV["MAZE_PROXY_HOST"] if ENV.include? "MAZE_PROXY_HOST"
24
- conf.proxy_password = ENV["MAZE_PROXY_PASSWORD"] if ENV.include? "MAZE_PROXY_PASSWORD"
25
- conf.proxy_port = ENV["MAZE_PROXY_PORT"] if ENV.include? "MAZE_PROXY_PORT"
26
- conf.proxy_user = ENV["MAZE_PROXY_USER"] if ENV.include? "MAZE_PROXY_USER"
27
- conf.release_stage = ENV["MAZE_RELEASE_STAGE"] if ENV.include? "MAZE_RELEASE_STAGE"
28
- conf.send_environment = ENV["MAZE_SEND_ENVIRONMENT"] != "false"
29
- conf.send_code = ENV["MAZE_SEND_CODE"] != "false"
30
- conf.timeout = ENV["MAZE_TIMEOUT"] if ENV.include? "MAZE_TIMEOUT"
15
+ conf.app_type = ENV["BUGSNAG_APP_TYPE"] if ENV.include? "BUGSNAG_APP_TYPE"
16
+ conf.app_version = ENV["BUGSNAG_APP_VERSION"] if ENV.include? "BUGSNAG_APP_VERSION"
17
+ conf.auto_capture_sessions = ENV["BUGSNAG_AUTO_CAPTURE_SESSIONS"] != "false"
18
+ conf.auto_notify = ENV["BUGSNAG_AUTO_NOTIFY"] != "false"
19
+ conf.ignore_classes << lambda { |ex| ex.class.to_s == ENV["BUGSNAG_IGNORE_CLASS"] } if ENV.include? "BUGSNAG_IGNORE_CLASS"
20
+ conf.meta_data_filters << ENV["BUGSNAG_META_DATA_FILTERS"] if ENV.include? "BUGSNAG_META_DATA_FILTERS"
21
+ conf.notify_release_stages = [ENV["BUGSNAG_NOTIFY_RELEASE_STAGE"]] if ENV.include? "BUGSNAG_NOTIFY_RELEASE_STAGE"
22
+ conf.project_root = ENV["BUGSNAG_PROJECT_ROOT"] if ENV.include? "BUGSNAG_PROJECT_ROOT"
23
+ conf.proxy_host = ENV["BUGSNAG_PROXY_HOST"] if ENV.include? "BUGSNAG_PROXY_HOST"
24
+ conf.proxy_password = ENV["BUGSNAG_PROXY_PASSWORD"] if ENV.include? "BUGSNAG_PROXY_PASSWORD"
25
+ conf.proxy_port = ENV["BUGSNAG_PROXY_PORT"] if ENV.include? "BUGSNAG_PROXY_PORT"
26
+ conf.proxy_user = ENV["BUGSNAG_PROXY_USER"] if ENV.include? "BUGSNAG_PROXY_USER"
27
+ conf.release_stage = ENV["BUGSNAG_RELEASE_STAGE"] if ENV.include? "BUGSNAG_RELEASE_STAGE"
28
+ conf.send_environment = ENV["BUGSNAG_SEND_ENVIRONMENT"] != "false"
29
+ conf.send_code = ENV["BUGSNAG_SEND_CODE"] != "false"
30
+ conf.timeout = ENV["BUGSNAG_TIMEOUT"] if ENV.include? "BUGSNAG_TIMEOUT"
31
31
  end
32
32
  end
33
33
 
@@ -3,7 +3,7 @@ require './app'
3
3
  configure_basics
4
4
 
5
5
  Bugsnag.configure do |conf|
6
- conf.api_key = ENV["MAZE_API_KEY"]
6
+ conf.api_key = ENV["BUGSNAG_API_KEY"]
7
7
  end
8
8
 
9
9
  Bugsnag.notify(RuntimeError.new("Oh no"))
@@ -21,5 +21,9 @@ def step_three
21
21
  end
22
22
 
23
23
  def crash
24
- Bugsnag.notify(RuntimeError.new("oh no"))
24
+ begin
25
+ "Test".insrt(-1, "!")
26
+ rescue Exception => e
27
+ Bugsnag.notify(e)
28
+ end
25
29
  end
@@ -1,12 +1,13 @@
1
- ARG ruby_version
2
- FROM ruby:$ruby_version
1
+ ARG RUBY_VERSION
2
+ FROM ruby:$RUBY_VERSION
3
3
 
4
- RUN mkdir -p /usr/src/app
5
- WORKDIR /usr/src/app
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
6
6
 
7
- COPY Gemfile /usr/src/app/
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
8
9
  RUN bundle install
9
10
 
10
- COPY . /usr/src/app
11
+ COPY app/ /usr/src/app
11
12
 
12
13
  CMD ["ruby", "app.rb"]
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
4
4
  gem 'rack', '~> 1'
@@ -1,12 +1,13 @@
1
- ARG ruby_version
2
- FROM ruby:$ruby_version
1
+ ARG RUBY_VERSION
2
+ FROM ruby:$RUBY_VERSION
3
3
 
4
- RUN mkdir -p /usr/src/app
5
- WORKDIR /usr/src/app
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
6
6
 
7
- COPY Gemfile /usr/src/app/
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
8
9
  RUN bundle install
9
10
 
10
- COPY . /usr/src/app
11
+ COPY app/ /usr/src/app
11
12
 
12
13
  CMD ["ruby", "app.rb"]
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
4
4
  gem 'rack', '~> 2'
@@ -1,15 +1,14 @@
1
1
  ARG RUBY_VERSION
2
2
  FROM ruby:$RUBY_VERSION
3
3
 
4
- ARG APP_PATH
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
5
6
 
6
- RUN mkdir -p $APP_PATH
7
- WORKDIR $APP_PATH
8
-
9
- COPY app/Gemfile $APP_PATH
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
10
9
  RUN bundle install
11
10
 
12
- COPY app $APP_PATH
11
+ COPY app/ /usr/src/app
13
12
 
14
13
  RUN bundle exec rake db:migrate
15
14
 
@@ -8,6 +8,6 @@ gem 'sqlite3'
8
8
 
9
9
  gem 'jquery-rails'
10
10
 
11
- gem "bugsnag"
11
+ gem 'bugsnag', path: '/bugsnag'
12
12
 
13
13
  gem "warden"
@@ -1,14 +1,14 @@
1
1
  Bugsnag.configure do |config|
2
- config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["MAZE_API_KEY"]
3
- config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"]
4
- config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"]
5
- config.app_type = ENV["MAZE_APP_TYPE"] if ENV.include? "MAZE_APP_TYPE"
6
- config.app_version = ENV["MAZE_APP_VERSION"] if ENV.include? "MAZE_APP_VERSION"
7
- config.auto_notify = ENV["MAZE_AUTO_NOTIFY"] != "false"
8
- config.project_root = ENV["MAZE_PROJECT_ROOT"] if ENV.include? "MAZE_PROJECT_ROOT"
9
- config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["MAZE_IGNORE_CLASS"] } if ENV.include? "MAZE_IGNORE_CLASS"
10
- config.auto_capture_sessions = ENV["MAZE_AUTO_CAPTURE_SESSIONS"] == "true"
11
- config.release_stage = ENV["MAZE_RELEASE_STAGE"] if ENV.include? "MAZE_RELEASE_STAGE"
12
- config.send_code = ENV["MAZE_SEND_CODE"] != "false"
13
- config.send_environment = ENV["MAZE_SEND_ENVIRONMENT"] == "true"
2
+ config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["BUGSNAG_API_KEY"]
3
+ config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
4
+ config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
5
+ config.app_type = ENV["BUGSNAG_APP_TYPE"] if ENV.include? "BUGSNAG_APP_TYPE"
6
+ config.app_version = ENV["BUGSNAG_APP_VERSION"] if ENV.include? "BUGSNAG_APP_VERSION"
7
+ config.auto_notify = ENV["BUGSNAG_AUTO_NOTIFY"] != "false"
8
+ config.project_root = ENV["BUGSNAG_PROJECT_ROOT"] if ENV.include? "BUGSNAG_PROJECT_ROOT"
9
+ config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["BUGSNAG_IGNORE_CLASS"] } if ENV.include? "BUGSNAG_IGNORE_CLASS"
10
+ config.auto_capture_sessions = ENV["BUGSNAG_AUTO_CAPTURE_SESSIONS"] == "true"
11
+ config.release_stage = ENV["BUGSNAG_RELEASE_STAGE"] if ENV.include? "BUGSNAG_RELEASE_STAGE"
12
+ config.send_code = ENV["BUGSNAG_SEND_CODE"] != "false"
13
+ config.send_environment = ENV["BUGSNAG_SEND_ENVIRONMENT"] == "true"
14
14
  end
@@ -1,15 +1,17 @@
1
1
  ARG RUBY_VERSION
2
2
  FROM ruby:$RUBY_VERSION
3
3
 
4
- ARG APP_PATH
4
+ ARG RUBY_VERSION
5
+ FROM ruby:$RUBY_VERSION
5
6
 
6
- RUN mkdir -p $APP_PATH
7
- WORKDIR $APP_PATH
7
+ WORKDIR /bugsnag
8
+ COPY temp-bugsnag-lib ./
8
9
 
9
- COPY app/Gemfile $APP_PATH
10
+ WORKDIR /usr/src/app
11
+ COPY app/Gemfile /usr/src/app/
10
12
  RUN bundle install
11
13
 
12
- COPY app $APP_PATH
14
+ COPY app/ /usr/src/app
13
15
 
14
16
  RUN bundle exec rake db:migrate
15
17
 
@@ -37,6 +37,6 @@ end
37
37
  # gem 'debugger', group: [:development, :test]
38
38
 
39
39
  # Added at 2018-03-26 15:02:53 +0100 by amoinet:
40
- gem "bugsnag"
40
+ gem 'bugsnag', path: '/bugsnag'
41
41
 
42
42
  gem 'devise'
@@ -1,14 +1,14 @@
1
1
  Bugsnag.configure do |config|
2
- config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["MAZE_API_KEY"]
3
- config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"]
4
- config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"]
5
- config.app_type = ENV["MAZE_APP_TYPE"] if ENV.include? "MAZE_APP_TYPE"
6
- config.app_version = ENV["MAZE_APP_VERSION"] if ENV.include? "MAZE_APP_VERSION"
7
- config.auto_notify = ENV["MAZE_AUTO_NOTIFY"] != "false"
8
- config.project_root = ENV["MAZE_PROJECT_ROOT"] if ENV.include? "MAZE_PROJECT_ROOT"
9
- config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["MAZE_IGNORE_CLASS"] } if ENV.include? "MAZE_IGNORE_CLASS"
10
- config.auto_capture_sessions = ENV["MAZE_AUTO_CAPTURE_SESSIONS"] == "true"
11
- config.release_stage = ENV["MAZE_RELEASE_STAGE"] if ENV.include? "MAZE_RELEASE_STAGE"
12
- config.send_code = ENV["MAZE_SEND_CODE"] != "false"
13
- config.send_environment = ENV["MAZE_SEND_ENVIRONMENT"] == "true"
2
+ config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["BUGSNAG_API_KEY"]
3
+ config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
4
+ config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
5
+ config.app_type = ENV["BUGSNAG_APP_TYPE"] if ENV.include? "BUGSNAG_APP_TYPE"
6
+ config.app_version = ENV["BUGSNAG_APP_VERSION"] if ENV.include? "BUGSNAG_APP_VERSION"
7
+ config.auto_notify = ENV["BUGSNAG_AUTO_NOTIFY"] != "false"
8
+ config.project_root = ENV["BUGSNAG_PROJECT_ROOT"] if ENV.include? "BUGSNAG_PROJECT_ROOT"
9
+ config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["BUGSNAG_IGNORE_CLASS"] } if ENV.include? "BUGSNAG_IGNORE_CLASS"
10
+ config.auto_capture_sessions = ENV["BUGSNAG_AUTO_CAPTURE_SESSIONS"] == "true"
11
+ config.release_stage = ENV["BUGSNAG_RELEASE_STAGE"] if ENV.include? "BUGSNAG_RELEASE_STAGE"
12
+ config.send_code = ENV["BUGSNAG_SEND_CODE"] != "false"
13
+ config.send_environment = ENV["BUGSNAG_SEND_ENVIRONMENT"] == "true"
14
14
  end
@@ -1,15 +1,14 @@
1
1
  ARG RUBY_VERSION
2
2
  FROM ruby:$RUBY_VERSION
3
3
 
4
- ARG APP_PATH
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
5
6
 
6
- RUN mkdir -p $APP_PATH
7
- WORKDIR $APP_PATH
8
-
9
- COPY app/Gemfile $APP_PATH
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
10
9
  RUN bundle install
11
10
 
12
- COPY app $APP_PATH
11
+ COPY app/ /usr/src/app
13
12
 
14
13
  RUN bundle exec rake db:migrate
15
14
 
@@ -41,7 +41,7 @@ end
41
41
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
42
42
 
43
43
  # Added at 2018-03-26 15:20:23 +0100 by amoinet:
44
- gem "bugsnag"
44
+ gem 'bugsnag', path: '/bugsnag'
45
45
 
46
46
  # Added at 2018-04-26 10:20:10 +0100 by amoinet:
47
47
  gem "clearance", "~> 1.16"
@@ -1,14 +1,14 @@
1
1
  Bugsnag.configure do |config|
2
- config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["MAZE_API_KEY"]
3
- config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"]
4
- config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["MAZE_ENDPOINT"]
5
- config.app_type = ENV["MAZE_APP_TYPE"] if ENV.include? "MAZE_APP_TYPE"
6
- config.app_version = ENV["MAZE_APP_VERSION"] if ENV.include? "MAZE_APP_VERSION"
7
- config.auto_notify = ENV["MAZE_AUTO_NOTIFY"] != "false"
8
- config.project_root = ENV["MAZE_PROJECT_ROOT"] if ENV.include? "MAZE_PROJECT_ROOT"
9
- config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["MAZE_IGNORE_CLASS"] } if ENV.include? "MAZE_IGNORE_CLASS"
10
- config.auto_capture_sessions = ENV["MAZE_AUTO_CAPTURE_SESSIONS"] == "true"
11
- config.release_stage = ENV["MAZE_RELEASE_STAGE"] if ENV.include? "MAZE_RELEASE_STAGE"
12
- config.send_code = ENV["MAZE_SEND_CODE"] != "false"
13
- config.send_environment = ENV["MAZE_SEND_ENVIRONMENT"] == "true"
2
+ config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["BUGSNAG_API_KEY"]
3
+ config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
4
+ config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
5
+ config.app_type = ENV["BUGSNAG_APP_TYPE"] if ENV.include? "BUGSNAG_APP_TYPE"
6
+ config.app_version = ENV["BUGSNAG_APP_VERSION"] if ENV.include? "BUGSNAG_APP_VERSION"
7
+ config.auto_notify = ENV["BUGSNAG_AUTO_NOTIFY"] != "false"
8
+ config.project_root = ENV["BUGSNAG_PROJECT_ROOT"] if ENV.include? "BUGSNAG_PROJECT_ROOT"
9
+ config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["BUGSNAG_IGNORE_CLASS"] } if ENV.include? "BUGSNAG_IGNORE_CLASS"
10
+ config.auto_capture_sessions = ENV["BUGSNAG_AUTO_CAPTURE_SESSIONS"] == "true"
11
+ config.release_stage = ENV["BUGSNAG_RELEASE_STAGE"] if ENV.include? "BUGSNAG_RELEASE_STAGE"
12
+ config.send_code = ENV["BUGSNAG_SEND_CODE"] != "false"
13
+ config.send_environment = ENV["BUGSNAG_SEND_ENVIRONMENT"] == "true"
14
14
  end
@@ -1,10 +1,11 @@
1
- ARG ruby_version
2
- FROM ruby:$ruby_version
1
+ ARG RUBY_VERSION
2
+ FROM ruby:$RUBY_VERSION
3
3
 
4
- RUN mkdir -p /usr/src/app
5
- WORKDIR /usr/src/app
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
6
6
 
7
- COPY Gemfile /usr/src/app/
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
8
9
  RUN bundle install
9
10
 
10
11
  COPY . /usr/src/app
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
4
4
  gem 'resque'
5
5
  gem 'rake'
6
6
  gem 'redis'
@@ -1,9 +1,11 @@
1
1
  ARG RUBY_VERSION
2
2
  FROM ruby:$RUBY_VERSION
3
3
 
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
6
+
4
7
  ARG APP_PATH
5
8
 
6
- RUN mkdir -p $APP_PATH
7
9
  WORKDIR $APP_PATH
8
10
 
9
11
  ARG SIDEKIQ_VERSION
@@ -12,6 +14,6 @@ ENV SIDEKIQ_VERSION $SIDEKIQ_VERSION
12
14
  COPY app/Gemfile $APP_PATH
13
15
  RUN bundle install
14
16
 
15
- COPY app $APP_PATH
17
+ COPY app/ $APP_PATH
16
18
 
17
19
  CMD ["bundle", "exec", "sidekiq", "-r", "./app.rb"]
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
4
4
  gem 'sidekiq', ENV['SIDEKIQ_VERSION']
5
+ gem 'timers', '~> 4.1.1'
6
+ gem 'redis', '~> 3.3.5'
@@ -2,10 +2,10 @@ require 'bundler'
2
2
  Bundler.require
3
3
 
4
4
  Bugsnag.configure do |conf|
5
- puts "Configuring `api_key` to #{ENV['MAZE_API_KEY']}"
6
- conf.api_key = ENV['MAZE_API_KEY']
7
- puts "Configuring `endpoint` to #{ENV['MAZE_ENDPOINT']}"
8
- conf.endpoint = ENV['MAZE_ENDPOINT']
5
+ puts "Configuring `api_key` to #{ENV['BUGSNAG_API_KEY']}"
6
+ conf.api_key = ENV['BUGSNAG_API_KEY']
7
+ puts "Configuring `endpoint` to #{ENV['BUGSNAG_ENDPOINT']}"
8
+ conf.endpoint = ENV['BUGSNAG_ENDPOINT']
9
9
  end
10
10
 
11
11
  Sidekiq.configure_client do |config|
@@ -1,10 +1,11 @@
1
- ARG ruby_version
2
- FROM ruby:$ruby_version
1
+ ARG RUBY_VERSION
2
+ FROM ruby:$RUBY_VERSION
3
3
 
4
- RUN mkdir -p /usr/src/app
5
- WORKDIR /usr/src/app
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
6
6
 
7
- COPY Gemfile /usr/src/app/
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
8
9
  RUN bundle install
9
10
 
10
11
  COPY . /usr/src/app
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
4
4
  gem 'sinatra', '~> 1'
@@ -1,10 +1,11 @@
1
- ARG ruby_version
2
- FROM ruby:$ruby_version
1
+ ARG RUBY_VERSION
2
+ FROM ruby:$RUBY_VERSION
3
3
 
4
- RUN mkdir -p /usr/src/app
5
- WORKDIR /usr/src/app
4
+ WORKDIR /bugsnag
5
+ COPY temp-bugsnag-lib ./
6
6
 
7
- COPY Gemfile /usr/src/app/
7
+ WORKDIR /usr/src/app
8
+ COPY app/Gemfile /usr/src/app/
8
9
  RUN bundle install
9
10
 
10
11
  COPY . /usr/src/app
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'bugsnag'
3
+ gem 'bugsnag', path: '/bugsnag'
4
4
  gem 'sinatra', '~> 2'
@@ -2,8 +2,6 @@ Feature: Plain add tab to metadata
2
2
 
3
3
  Background:
4
4
  Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
6
- And I set environment variable "APP_PATH" to "/usr/src"
7
5
  And I configure the bugsnag endpoint
8
6
 
9
7
  Scenario Outline: Metadata can be added to a report using add_tab
@@ -13,13 +11,13 @@ Scenario Outline: Metadata can be added to a report using add_tab
13
11
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/add_tab.rb"
14
12
  And I wait for 1 second
15
13
  Then I should receive a request
16
- And the request used the Ruby notifier
14
+ And the request used the "Ruby Bugsnag Notifier" notifier
17
15
  And the request used payload v4 headers
18
16
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
19
- And the event "metaData.additional_metadata.foo" is "foo"
20
- And the event "metaData.additional_metadata.bar.0" is "b"
21
- And the event "metaData.additional_metadata.bar.1" is "a"
22
- And the event "metaData.additional_metadata.bar.2" is "r"
17
+ And the event "metaData.additional_metadata.foo" equals "foo"
18
+ And the event "metaData.additional_metadata.bar.0" equals "b"
19
+ And the event "metaData.additional_metadata.bar.1" equals "a"
20
+ And the event "metaData.additional_metadata.bar.2" equals "r"
23
21
 
24
22
  Examples:
25
23
  | ruby version | initiator |
@@ -52,15 +50,15 @@ Scenario Outline: Metadata can be added to an existing tab using add_tab
52
50
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/add_tab_existing.rb"
53
51
  And I wait for 1 second
54
52
  Then I should receive a request
55
- And the request used the Ruby notifier
53
+ And the request used the "Ruby Bugsnag Notifier" notifier
56
54
  And the request used payload v4 headers
57
55
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
58
- And the event "metaData.additional_metadata.foo" is "foo"
59
- And the event "metaData.additional_metadata.bar.0" is "b"
60
- And the event "metaData.additional_metadata.bar.1" is "a"
61
- And the event "metaData.additional_metadata.bar.2" is "r"
62
- And the event "metaData.additional_metadata.foobar.first" is "foo"
63
- And the event "metaData.additional_metadata.foobar.then" is "bar"
56
+ And the event "metaData.additional_metadata.foo" equals "foo"
57
+ And the event "metaData.additional_metadata.bar.0" equals "b"
58
+ And the event "metaData.additional_metadata.bar.1" equals "a"
59
+ And the event "metaData.additional_metadata.bar.2" equals "r"
60
+ And the event "metaData.additional_metadata.foobar.first" equals "foo"
61
+ And the event "metaData.additional_metadata.foobar.then" equals "bar"
64
62
 
65
63
  Examples:
66
64
  | ruby version | initiator |
@@ -93,11 +91,11 @@ Scenario Outline: Metadata can be overwritten using add_tab
93
91
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/add_tab_override.rb"
94
92
  And I wait for 1 second
95
93
  Then I should receive a request
96
- And the request used the Ruby notifier
94
+ And the request used the "Ruby Bugsnag Notifier" notifier
97
95
  And the request used payload v4 headers
98
96
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
99
- And the event "metaData.additional_metadata.foo" is "foo"
100
- And the event "metaData.additional_metadata.bar" is "bar"
97
+ And the event "metaData.additional_metadata.foo" equals "foo"
98
+ And the event "metaData.additional_metadata.bar" equals "bar"
101
99
 
102
100
  Examples:
103
101
  | ruby version | initiator |