bugsnag 6.9.0 → 6.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile +0 -1
- data/VERSION +1 -1
- data/features/delayed_job.feature +9 -10
- data/features/fixtures/delayed_job/Dockerfile +2 -2
- data/features/fixtures/delayed_job/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/docker-compose.yml +118 -124
- data/features/fixtures/plain/Dockerfile +5 -6
- data/features/fixtures/plain/app/Gemfile +1 -1
- data/features/fixtures/plain/app/app.rb +19 -19
- data/features/fixtures/plain/app/configuration/api_key.rb +1 -1
- data/features/fixtures/plain/app/stack_frame_modification/initiators/handled_before_notify.rb +5 -1
- data/features/fixtures/rack1/Dockerfile +7 -6
- data/features/fixtures/rack1/Gemfile +1 -1
- data/features/fixtures/rack2/Dockerfile +7 -6
- data/features/fixtures/rack2/Gemfile +1 -1
- data/features/fixtures/rails3/Dockerfile +5 -6
- data/features/fixtures/rails3/app/Gemfile +1 -1
- data/features/fixtures/rails3/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/rails4/Dockerfile +7 -5
- data/features/fixtures/rails4/app/Gemfile +1 -1
- data/features/fixtures/rails4/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/rails5/Dockerfile +5 -6
- data/features/fixtures/rails5/app/Gemfile +1 -1
- data/features/fixtures/rails5/app/config/initializers/bugsnag.rb +12 -12
- data/features/fixtures/resque/Dockerfile +6 -5
- data/features/fixtures/resque/Gemfile +1 -1
- data/features/fixtures/sidekiq/Dockerfile +4 -2
- data/features/fixtures/sidekiq/app/Gemfile +3 -1
- data/features/fixtures/sidekiq/app/app.rb +4 -4
- data/features/fixtures/sinatra1/Dockerfile +6 -5
- data/features/fixtures/sinatra1/Gemfile +1 -1
- data/features/fixtures/sinatra2/Dockerfile +6 -5
- data/features/fixtures/sinatra2/Gemfile +1 -1
- data/features/plain_features/add_tab.feature +15 -17
- data/features/plain_features/api_key.feature +2 -3
- data/features/plain_features/app_type.feature +3 -5
- data/features/plain_features/app_version.feature +3 -5
- data/features/plain_features/auto_notify.feature +1 -3
- data/features/plain_features/delivery.feature +3 -5
- data/features/plain_features/exception_data.feature +4 -6
- data/features/plain_features/filters.feature +4 -6
- data/features/plain_features/handled_errors.feature +48 -30
- data/features/plain_features/ignore_classes.feature +0 -2
- data/features/plain_features/ignore_report.feature +0 -2
- data/features/plain_features/proxies.feature +4 -6
- data/features/plain_features/release_stages.feature +8 -10
- data/features/plain_features/report_api_key.feature +1 -3
- data/features/plain_features/report_severity.feature +3 -5
- data/features/plain_features/report_stack_frames.feature +54 -21
- data/features/plain_features/report_user.feature +10 -12
- data/features/plain_features/unhandled_errors.feature +4 -6
- data/features/rails_features/api_key.feature +3 -3
- data/features/rails_features/app_type.feature +4 -4
- data/features/rails_features/app_version.feature +2 -2
- data/features/rails_features/auto_capture_sessions.feature +4 -4
- data/features/rails_features/auto_notify.feature +5 -5
- data/features/rails_features/before_notify.feature +4 -4
- data/features/rails_features/handled.feature +6 -6
- data/features/rails_features/ignore_classes.feature +2 -2
- data/features/rails_features/meta_data_filters.feature +2 -2
- data/features/rails_features/project_root.feature +8 -8
- data/features/rails_features/release_stage.feature +2 -2
- data/features/rails_features/send_code.feature +2 -2
- data/features/rails_features/send_environment.feature +3 -3
- data/features/rails_features/unhandled.feature +4 -4
- data/features/rails_features/user_info.feature +4 -4
- data/features/sidekiq.feature +9 -10
- data/features/steps/ruby_notifier_steps.rb +6 -25
- data/features/support/env.rb +18 -9
- data/lib/bugsnag/configuration.rb +3 -3
- data/lib/bugsnag/integrations/mailman.rb +0 -1
- data/lib/bugsnag/integrations/shoryuken.rb +6 -8
- data/lib/bugsnag/integrations/sidekiq.rb +14 -11
- data/lib/bugsnag/stacktrace.rb +1 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/integrations/sidekiq_spec.rb +73 -7
- data/spec/report_spec.rb +62 -20
- data/spec/spec_helper.rb +1 -1
- data/spec/stacktrace_spec.rb +20 -16
- metadata +2 -2
@@ -3,31 +3,31 @@ require 'pp'
|
|
3
3
|
|
4
4
|
def configure_basics
|
5
5
|
Bugsnag.configure do |conf|
|
6
|
-
conf.api_key = ENV['
|
7
|
-
conf.endpoint = ENV['
|
8
|
-
conf.session_endpoint = ENV["
|
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["
|
16
|
-
conf.app_version = ENV["
|
17
|
-
conf.auto_capture_sessions = ENV["
|
18
|
-
conf.auto_notify = ENV["
|
19
|
-
conf.ignore_classes << lambda { |ex| ex.class.to_s == ENV["
|
20
|
-
conf.meta_data_filters << ENV["
|
21
|
-
conf.notify_release_stages = [ENV["
|
22
|
-
conf.project_root = ENV["
|
23
|
-
conf.proxy_host = ENV["
|
24
|
-
conf.proxy_password = ENV["
|
25
|
-
conf.proxy_port = ENV["
|
26
|
-
conf.proxy_user = ENV["
|
27
|
-
conf.release_stage = ENV["
|
28
|
-
conf.send_environment = ENV["
|
29
|
-
conf.send_code = ENV["
|
30
|
-
conf.timeout = ENV["
|
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
|
|
@@ -1,12 +1,13 @@
|
|
1
|
-
ARG
|
2
|
-
FROM ruby:$
|
1
|
+
ARG RUBY_VERSION
|
2
|
+
FROM ruby:$RUBY_VERSION
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
6
6
|
|
7
|
-
|
7
|
+
WORKDIR /usr/src/app
|
8
|
+
COPY app/Gemfile /usr/src/app/
|
8
9
|
RUN bundle install
|
9
10
|
|
10
|
-
COPY
|
11
|
+
COPY app/ /usr/src/app
|
11
12
|
|
12
13
|
CMD ["ruby", "app.rb"]
|
@@ -1,12 +1,13 @@
|
|
1
|
-
ARG
|
2
|
-
FROM ruby:$
|
1
|
+
ARG RUBY_VERSION
|
2
|
+
FROM ruby:$RUBY_VERSION
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
6
6
|
|
7
|
-
|
7
|
+
WORKDIR /usr/src/app
|
8
|
+
COPY app/Gemfile /usr/src/app/
|
8
9
|
RUN bundle install
|
9
10
|
|
10
|
-
COPY
|
11
|
+
COPY app/ /usr/src/app
|
11
12
|
|
12
13
|
CMD ["ruby", "app.rb"]
|
@@ -1,15 +1,14 @@
|
|
1
1
|
ARG RUBY_VERSION
|
2
2
|
FROM ruby:$RUBY_VERSION
|
3
3
|
|
4
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
5
6
|
|
6
|
-
|
7
|
-
|
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
|
11
|
+
COPY app/ /usr/src/app
|
13
12
|
|
14
13
|
RUN bundle exec rake db:migrate
|
15
14
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
Bugsnag.configure do |config|
|
2
|
-
config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["
|
3
|
-
config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["
|
4
|
-
config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["
|
5
|
-
config.app_type = ENV["
|
6
|
-
config.app_version = ENV["
|
7
|
-
config.auto_notify = ENV["
|
8
|
-
config.project_root = ENV["
|
9
|
-
config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["
|
10
|
-
config.auto_capture_sessions = ENV["
|
11
|
-
config.release_stage = ENV["
|
12
|
-
config.send_code = ENV["
|
13
|
-
config.send_environment = ENV["
|
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
|
4
|
+
ARG RUBY_VERSION
|
5
|
+
FROM ruby:$RUBY_VERSION
|
5
6
|
|
6
|
-
|
7
|
-
|
7
|
+
WORKDIR /bugsnag
|
8
|
+
COPY temp-bugsnag-lib ./
|
8
9
|
|
9
|
-
|
10
|
+
WORKDIR /usr/src/app
|
11
|
+
COPY app/Gemfile /usr/src/app/
|
10
12
|
RUN bundle install
|
11
13
|
|
12
|
-
COPY app
|
14
|
+
COPY app/ /usr/src/app
|
13
15
|
|
14
16
|
RUN bundle exec rake db:migrate
|
15
17
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
Bugsnag.configure do |config|
|
2
|
-
config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["
|
3
|
-
config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["
|
4
|
-
config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["
|
5
|
-
config.app_type = ENV["
|
6
|
-
config.app_version = ENV["
|
7
|
-
config.auto_notify = ENV["
|
8
|
-
config.project_root = ENV["
|
9
|
-
config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["
|
10
|
-
config.auto_capture_sessions = ENV["
|
11
|
-
config.release_stage = ENV["
|
12
|
-
config.send_code = ENV["
|
13
|
-
config.send_environment = ENV["
|
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
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
5
6
|
|
6
|
-
|
7
|
-
|
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
|
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
|
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["
|
3
|
-
config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["
|
4
|
-
config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["
|
5
|
-
config.app_type = ENV["
|
6
|
-
config.app_version = ENV["
|
7
|
-
config.auto_notify = ENV["
|
8
|
-
config.project_root = ENV["
|
9
|
-
config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["
|
10
|
-
config.auto_capture_sessions = ENV["
|
11
|
-
config.release_stage = ENV["
|
12
|
-
config.send_code = ENV["
|
13
|
-
config.send_environment = ENV["
|
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
|
2
|
-
FROM ruby:$
|
1
|
+
ARG RUBY_VERSION
|
2
|
+
FROM ruby:$RUBY_VERSION
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
6
6
|
|
7
|
-
|
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,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"]
|
@@ -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['
|
6
|
-
conf.api_key = ENV['
|
7
|
-
puts "Configuring `endpoint` to #{ENV['
|
8
|
-
conf.endpoint = ENV['
|
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
|
2
|
-
FROM ruby:$
|
1
|
+
ARG RUBY_VERSION
|
2
|
+
FROM ruby:$RUBY_VERSION
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
6
6
|
|
7
|
-
|
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,10 +1,11 @@
|
|
1
|
-
ARG
|
2
|
-
FROM ruby:$
|
1
|
+
ARG RUBY_VERSION
|
2
|
+
FROM ruby:$RUBY_VERSION
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
WORKDIR /bugsnag
|
5
|
+
COPY temp-bugsnag-lib ./
|
6
6
|
|
7
|
-
|
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
|
@@ -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"
|
20
|
-
And the event "metaData.additional_metadata.bar.0"
|
21
|
-
And the event "metaData.additional_metadata.bar.1"
|
22
|
-
And the event "metaData.additional_metadata.bar.2"
|
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"
|
59
|
-
And the event "metaData.additional_metadata.bar.0"
|
60
|
-
And the event "metaData.additional_metadata.bar.1"
|
61
|
-
And the event "metaData.additional_metadata.bar.2"
|
62
|
-
And the event "metaData.additional_metadata.foobar.first"
|
63
|
-
And the event "metaData.additional_metadata.foobar.then"
|
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"
|
100
|
-
And the event "metaData.additional_metadata.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 |
|