bugsnag 6.12.1 → 6.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.buildkite/pipeline.yml +470 -0
- data/.rubocop.yml +55 -0
- data/.rubocop_todo.yml +530 -160
- data/CHANGELOG.md +73 -0
- data/CONTRIBUTING.md +1 -9
- data/Gemfile +14 -7
- data/TESTING.md +81 -0
- data/VERSION +1 -1
- data/docker-compose.yml +46 -0
- data/dockerfiles/Dockerfile.jruby-unit-tests +13 -0
- data/dockerfiles/Dockerfile.ruby-maze-runner +26 -0
- data/dockerfiles/Dockerfile.ruby-unit-tests +12 -0
- data/features/delayed_job.feature +6 -22
- data/features/fixtures/delayed_job/Dockerfile +2 -4
- data/features/fixtures/delayed_job/app/Gemfile +1 -1
- data/features/fixtures/delayed_job/app/Rakefile +18 -0
- data/features/fixtures/docker-compose.yml +32 -40
- data/features/fixtures/expected_breadcrumbs/active_job.json +9 -0
- data/features/fixtures/expected_breadcrumbs/mongo_failed.json +15 -0
- data/features/fixtures/expected_breadcrumbs/mongo_filtered_request.json +15 -0
- data/features/fixtures/expected_breadcrumbs/mongo_filtered_result.json +15 -0
- data/features/fixtures/expected_breadcrumbs/mongo_success.json +14 -0
- data/features/fixtures/expected_breadcrumbs/request.json +13 -0
- data/features/fixtures/expected_breadcrumbs/sql_with_bindings.json +12 -0
- data/features/fixtures/expected_breadcrumbs/sql_without_bindings.json +11 -0
- data/features/fixtures/plain/Dockerfile +2 -2
- data/features/fixtures/plain/app/app.rb +1 -3
- data/features/fixtures/plain/app/delivery/fork_threadpool.rb +3 -1
- data/features/fixtures/plain/app/report_modification/initiators/handled_on_error.rb +10 -0
- data/features/fixtures/plain/app/report_modification/initiators/unhandled_on_error.rb +11 -0
- data/features/fixtures/plain/app/stack_frame_modification/initiators/handled_on_error.rb +29 -0
- data/features/fixtures/plain/app/stack_frame_modification/initiators/unhandled_on_error.rb +26 -0
- data/features/fixtures/plain/app/unhandled/{Interrupt.rb → interrupt.rb} +0 -0
- data/features/fixtures/rack1/Dockerfile +2 -2
- data/features/fixtures/rack2/Dockerfile +2 -2
- data/features/fixtures/rails3/Dockerfile +2 -2
- data/features/fixtures/rails3/app/Gemfile +4 -0
- data/features/fixtures/rails3/app/config/initializers/bugsnag.rb +11 -2
- data/features/fixtures/rails4/Dockerfile +2 -5
- data/features/fixtures/rails4/app/config/initializers/bugsnag.rb +10 -1
- data/features/fixtures/rails5/Dockerfile +2 -2
- data/features/fixtures/rails5/app/Gemfile +3 -2
- data/features/fixtures/rails5/app/config/initializers/bugsnag.rb +10 -1
- data/features/fixtures/rails6/Dockerfile +2 -2
- data/features/fixtures/rails6/app/Gemfile +3 -2
- data/features/fixtures/rails6/app/app/controllers/mongo_controller.rb +22 -0
- data/features/fixtures/rails6/app/app/models/mongo_model.rb +6 -0
- data/features/fixtures/rails6/app/config/environments/development.rb +2 -0
- data/features/fixtures/rails6/app/config/environments/production.rb +1 -0
- data/features/fixtures/rails6/app/config/environments/rails_env.rb +1 -0
- data/features/fixtures/rails6/app/config/environments/test.rb +1 -0
- data/features/fixtures/rails6/app/config/initializers/bugsnag.rb +10 -1
- data/features/fixtures/rails6/app/config/mongoid.yml +23 -0
- data/features/fixtures/rails6/app/config/routes.rb +4 -0
- data/features/fixtures/resque/Dockerfile +2 -2
- data/features/fixtures/sidekiq/Dockerfile +5 -7
- data/features/fixtures/sidekiq/app/Gemfile +2 -1
- data/features/fixtures/sidekiq/app/Rakefile.rb +14 -0
- data/features/fixtures/sinatra1/Dockerfile +2 -2
- data/features/fixtures/sinatra2/Dockerfile +2 -2
- data/features/plain_features/add_tab.feature +30 -97
- data/features/plain_features/app_type.feature +6 -25
- data/features/plain_features/app_version.feature +6 -25
- data/features/plain_features/auto_notify.feature +4 -20
- data/features/plain_features/delivery.feature +12 -60
- data/features/plain_features/exception_data.feature +24 -94
- data/features/plain_features/filters.feature +9 -43
- data/features/plain_features/handled_errors.feature +16 -78
- data/features/plain_features/ignore_classes.feature +5 -23
- data/features/plain_features/ignore_report.feature +8 -24
- data/features/plain_features/proxies.feature +13 -56
- data/features/plain_features/release_stages.feature +9 -40
- data/features/plain_features/report_api_key.feature +11 -35
- data/features/plain_features/report_severity.feature +10 -35
- data/features/plain_features/report_stack_frames.feature +29 -93
- data/features/plain_features/report_user.feature +29 -96
- data/features/plain_features/unhandled_errors.feature +17 -88
- data/features/rails_features/api_key.feature +12 -58
- data/features/rails_features/app_type.feature +13 -58
- data/features/rails_features/app_version.feature +19 -80
- data/features/rails_features/auto_capture_sessions.feature +31 -112
- data/features/rails_features/auto_notify.feature +28 -105
- data/features/rails_features/before_notify.feature +18 -83
- data/features/rails_features/breadcrumbs.feature +40 -137
- data/features/rails_features/handled.feature +18 -82
- data/features/rails_features/ignore_classes.feature +12 -51
- data/features/rails_features/meta_data_filters.feature +9 -33
- data/features/rails_features/mongo_breadcrumbs.feature +22 -96
- data/features/rails_features/on_error.feature +29 -0
- data/features/rails_features/project_root.feature +19 -84
- data/features/rails_features/release_stage.feature +20 -82
- data/features/rails_features/send_code.feature +13 -55
- data/features/rails_features/send_environment.feature +7 -33
- data/features/rails_features/unhandled.feature +6 -31
- data/features/rails_features/user_info.feature +27 -65
- data/features/sidekiq.feature +12 -79
- data/features/steps/ruby_notifier_steps.rb +59 -15
- data/features/support/env.rb +12 -45
- data/lib/bugsnag.rb +109 -21
- data/lib/bugsnag/breadcrumbs/breadcrumbs.rb +0 -2
- data/lib/bugsnag/breadcrumbs/validator.rb +0 -6
- data/lib/bugsnag/cleaner.rb +129 -60
- data/lib/bugsnag/code_extractor.rb +137 -0
- data/lib/bugsnag/configuration.rb +58 -1
- data/lib/bugsnag/helpers.rb +2 -4
- data/lib/bugsnag/integrations/que.rb +7 -4
- data/lib/bugsnag/middleware/discard_error_class.rb +30 -0
- data/lib/bugsnag/middleware/exception_meta_data.rb +15 -9
- data/lib/bugsnag/middleware/ignore_error_class.rb +2 -0
- data/lib/bugsnag/middleware/rack_request.rb +2 -4
- data/lib/bugsnag/middleware_stack.rb +38 -3
- data/lib/bugsnag/on_error_callbacks.rb +33 -0
- data/lib/bugsnag/report.rb +4 -14
- data/lib/bugsnag/session_tracker.rb +3 -3
- data/lib/bugsnag/stacktrace.rb +28 -75
- data/spec/breadcrumbs/breadcrumb_spec.rb +1 -1
- data/spec/breadcrumbs/validator_spec.rb +1 -26
- data/spec/bugsnag_spec.rb +2 -2
- data/spec/cleaner_spec.rb +202 -10
- data/spec/code_extractor_spec.rb +129 -0
- data/spec/configuration_spec.rb +16 -1
- data/spec/fixtures/apps/rails-initializer-config/Gemfile +5 -1
- data/spec/fixtures/apps/rails-invalid-initializer-config/Gemfile +5 -1
- data/spec/fixtures/apps/rails-no-config/Gemfile +5 -1
- data/spec/fixtures/crashes/file1.rb +29 -0
- data/spec/fixtures/crashes/file2.rb +25 -0
- data/spec/fixtures/crashes/file_with_long_lines.rb +7 -0
- data/spec/fixtures/crashes/functions.rb +29 -0
- data/spec/fixtures/crashes/short_file.rb +2 -0
- data/spec/helper_spec.rb +0 -31
- data/spec/integrations/logger_spec.rb +1 -1
- data/spec/integrations/rack_spec.rb +8 -6
- data/spec/integrations/rake_spec.rb +1 -1
- data/spec/on_error_spec.rb +332 -0
- data/spec/report_spec.rb +331 -30
- data/spec/spec_helper.rb +14 -1
- data/spec/stacktrace_spec.rb +427 -74
- metadata +36 -7
- data/.travis.yml +0 -117
- data/features/plain_features/api_key.feature +0 -25
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -33,22 +33,27 @@ extra_rdoc_files:
|
|
33
33
|
- README.md
|
34
34
|
- CHANGELOG.md
|
35
35
|
files:
|
36
|
+
- ".buildkite/pipeline.yml"
|
36
37
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
37
38
|
- ".gitignore"
|
38
39
|
- ".rdoc_options"
|
39
40
|
- ".rspec"
|
40
41
|
- ".rubocop.yml"
|
41
42
|
- ".rubocop_todo.yml"
|
42
|
-
- ".travis.yml"
|
43
43
|
- CHANGELOG.md
|
44
44
|
- CONTRIBUTING.md
|
45
45
|
- Gemfile
|
46
46
|
- LICENSE.txt
|
47
47
|
- README.md
|
48
48
|
- Rakefile
|
49
|
+
- TESTING.md
|
49
50
|
- UPGRADING.md
|
50
51
|
- VERSION
|
51
52
|
- bugsnag.gemspec
|
53
|
+
- docker-compose.yml
|
54
|
+
- dockerfiles/Dockerfile.jruby-unit-tests
|
55
|
+
- dockerfiles/Dockerfile.ruby-maze-runner
|
56
|
+
- dockerfiles/Dockerfile.ruby-unit-tests
|
52
57
|
- features/.gitignore
|
53
58
|
- features/delayed_job.feature
|
54
59
|
- features/fixtures/delayed_job/Dockerfile
|
@@ -127,6 +132,14 @@ files:
|
|
127
132
|
- features/fixtures/delayed_job/app/test/test_helper.rb
|
128
133
|
- features/fixtures/delayed_job/app/tmp/.keep
|
129
134
|
- features/fixtures/docker-compose.yml
|
135
|
+
- features/fixtures/expected_breadcrumbs/active_job.json
|
136
|
+
- features/fixtures/expected_breadcrumbs/mongo_failed.json
|
137
|
+
- features/fixtures/expected_breadcrumbs/mongo_filtered_request.json
|
138
|
+
- features/fixtures/expected_breadcrumbs/mongo_filtered_result.json
|
139
|
+
- features/fixtures/expected_breadcrumbs/mongo_success.json
|
140
|
+
- features/fixtures/expected_breadcrumbs/request.json
|
141
|
+
- features/fixtures/expected_breadcrumbs/sql_with_bindings.json
|
142
|
+
- features/fixtures/expected_breadcrumbs/sql_without_bindings.json
|
130
143
|
- features/fixtures/plain/.dockerignore
|
131
144
|
- features/fixtures/plain/Dockerfile
|
132
145
|
- features/fixtures/plain/app/Gemfile
|
@@ -162,7 +175,9 @@ files:
|
|
162
175
|
- features/fixtures/plain/app/report_modification/ignore_report.rb
|
163
176
|
- features/fixtures/plain/app/report_modification/initiators/handled_before_notify.rb
|
164
177
|
- features/fixtures/plain/app/report_modification/initiators/handled_block.rb
|
178
|
+
- features/fixtures/plain/app/report_modification/initiators/handled_on_error.rb
|
165
179
|
- features/fixtures/plain/app/report_modification/initiators/unhandled_before_notify.rb
|
180
|
+
- features/fixtures/plain/app/report_modification/initiators/unhandled_on_error.rb
|
166
181
|
- features/fixtures/plain/app/report_modification/modify_api_key.rb
|
167
182
|
- features/fixtures/plain/app/report_modification/modify_severity.rb
|
168
183
|
- features/fixtures/plain/app/report_modification/remove_user_details.rb
|
@@ -170,12 +185,14 @@ files:
|
|
170
185
|
- features/fixtures/plain/app/report_modification/set_user_details.rb
|
171
186
|
- features/fixtures/plain/app/stack_frame_modification/initiators/handled_before_notify.rb
|
172
187
|
- features/fixtures/plain/app/stack_frame_modification/initiators/handled_block.rb
|
188
|
+
- features/fixtures/plain/app/stack_frame_modification/initiators/handled_on_error.rb
|
173
189
|
- features/fixtures/plain/app/stack_frame_modification/initiators/unhandled_before_notify.rb
|
190
|
+
- features/fixtures/plain/app/stack_frame_modification/initiators/unhandled_on_error.rb
|
174
191
|
- features/fixtures/plain/app/stack_frame_modification/mark_frames_in_project.rb
|
175
192
|
- features/fixtures/plain/app/stack_frame_modification/remove_stack_frame.rb
|
176
|
-
- features/fixtures/plain/app/unhandled/Interrupt.rb
|
177
193
|
- features/fixtures/plain/app/unhandled/bad_syntax.rb
|
178
194
|
- features/fixtures/plain/app/unhandled/custom_error.rb
|
195
|
+
- features/fixtures/plain/app/unhandled/interrupt.rb
|
179
196
|
- features/fixtures/plain/app/unhandled/load_error.rb
|
180
197
|
- features/fixtures/plain/app/unhandled/local_jump_error.rb
|
181
198
|
- features/fixtures/plain/app/unhandled/name_error.rb
|
@@ -450,6 +467,7 @@ files:
|
|
450
467
|
- features/fixtures/rails6/app/app/controllers/handled_controller.rb
|
451
468
|
- features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
|
452
469
|
- features/fixtures/rails6/app/app/controllers/metadata_filters_controller.rb
|
470
|
+
- features/fixtures/rails6/app/app/controllers/mongo_controller.rb
|
453
471
|
- features/fixtures/rails6/app/app/controllers/project_root_controller.rb
|
454
472
|
- features/fixtures/rails6/app/app/controllers/release_stage_controller.rb
|
455
473
|
- features/fixtures/rails6/app/app/controllers/send_code_controller.rb
|
@@ -465,6 +483,7 @@ files:
|
|
465
483
|
- features/fixtures/rails6/app/app/mailers/application_mailer.rb
|
466
484
|
- features/fixtures/rails6/app/app/models/application_record.rb
|
467
485
|
- features/fixtures/rails6/app/app/models/concerns/.keep
|
486
|
+
- features/fixtures/rails6/app/app/models/mongo_model.rb
|
468
487
|
- features/fixtures/rails6/app/app/models/user.rb
|
469
488
|
- features/fixtures/rails6/app/app/views/layouts/application.html.erb
|
470
489
|
- features/fixtures/rails6/app/app/views/layouts/mailer.html.erb
|
@@ -492,6 +511,7 @@ files:
|
|
492
511
|
- features/fixtures/rails6/app/config/initializers/mime_types.rb
|
493
512
|
- features/fixtures/rails6/app/config/initializers/wrap_parameters.rb
|
494
513
|
- features/fixtures/rails6/app/config/locales/en.yml
|
514
|
+
- features/fixtures/rails6/app/config/mongoid.yml
|
495
515
|
- features/fixtures/rails6/app/config/puma.rb
|
496
516
|
- features/fixtures/rails6/app/config/routes.rb
|
497
517
|
- features/fixtures/rails6/app/config/secrets.yml
|
@@ -540,6 +560,7 @@ files:
|
|
540
560
|
- features/fixtures/sidekiq/.dockerignore
|
541
561
|
- features/fixtures/sidekiq/Dockerfile
|
542
562
|
- features/fixtures/sidekiq/app/Gemfile
|
563
|
+
- features/fixtures/sidekiq/app/Rakefile.rb
|
543
564
|
- features/fixtures/sidekiq/app/app.rb
|
544
565
|
- features/fixtures/sidekiq/app/initializers/HandledError.rb
|
545
566
|
- features/fixtures/sidekiq/app/initializers/UnhandledError.rb
|
@@ -556,7 +577,6 @@ files:
|
|
556
577
|
- features/fixtures/sinatra2/Gemfile
|
557
578
|
- features/fixtures/sinatra2/app.rb
|
558
579
|
- features/plain_features/add_tab.feature
|
559
|
-
- features/plain_features/api_key.feature
|
560
580
|
- features/plain_features/app_type.feature
|
561
581
|
- features/plain_features/app_version.feature
|
562
582
|
- features/plain_features/auto_notify.feature
|
@@ -584,6 +604,7 @@ files:
|
|
584
604
|
- features/rails_features/ignore_classes.feature
|
585
605
|
- features/rails_features/meta_data_filters.feature
|
586
606
|
- features/rails_features/mongo_breadcrumbs.feature
|
607
|
+
- features/rails_features/on_error.feature
|
587
608
|
- features/rails_features/project_root.feature
|
588
609
|
- features/rails_features/release_stage.feature
|
589
610
|
- features/rails_features/send_code.feature
|
@@ -599,6 +620,7 @@ files:
|
|
599
620
|
- lib/bugsnag/breadcrumbs/breadcrumbs.rb
|
600
621
|
- lib/bugsnag/breadcrumbs/validator.rb
|
601
622
|
- lib/bugsnag/cleaner.rb
|
623
|
+
- lib/bugsnag/code_extractor.rb
|
602
624
|
- lib/bugsnag/configuration.rb
|
603
625
|
- lib/bugsnag/delivery.rb
|
604
626
|
- lib/bugsnag/delivery/synchronous.rb
|
@@ -623,6 +645,7 @@ files:
|
|
623
645
|
- lib/bugsnag/middleware/classify_error.rb
|
624
646
|
- lib/bugsnag/middleware/clearance_user.rb
|
625
647
|
- lib/bugsnag/middleware/delayed_job.rb
|
648
|
+
- lib/bugsnag/middleware/discard_error_class.rb
|
626
649
|
- lib/bugsnag/middleware/exception_meta_data.rb
|
627
650
|
- lib/bugsnag/middleware/ignore_error_class.rb
|
628
651
|
- lib/bugsnag/middleware/mailman.rb
|
@@ -634,6 +657,7 @@ files:
|
|
634
657
|
- lib/bugsnag/middleware/suggestion_data.rb
|
635
658
|
- lib/bugsnag/middleware/warden_user.rb
|
636
659
|
- lib/bugsnag/middleware_stack.rb
|
660
|
+
- lib/bugsnag/on_error_callbacks.rb
|
637
661
|
- lib/bugsnag/report.rb
|
638
662
|
- lib/bugsnag/session_tracker.rb
|
639
663
|
- lib/bugsnag/stacktrace.rb
|
@@ -646,6 +670,7 @@ files:
|
|
646
670
|
- spec/breadcrumbs/validator_spec.rb
|
647
671
|
- spec/bugsnag_spec.rb
|
648
672
|
- spec/cleaner_spec.rb
|
673
|
+
- spec/code_extractor_spec.rb
|
649
674
|
- spec/configuration_spec.rb
|
650
675
|
- spec/fixtures/apps/rails-initializer-config/Gemfile
|
651
676
|
- spec/fixtures/apps/rails-initializer-config/config.ru
|
@@ -660,6 +685,10 @@ files:
|
|
660
685
|
- spec/fixtures/apps/scripts/configure_key.rb
|
661
686
|
- spec/fixtures/apps/scripts/no_config.rb
|
662
687
|
- spec/fixtures/crashes/end_of_file.rb
|
688
|
+
- spec/fixtures/crashes/file1.rb
|
689
|
+
- spec/fixtures/crashes/file2.rb
|
690
|
+
- spec/fixtures/crashes/file_with_long_lines.rb
|
691
|
+
- spec/fixtures/crashes/functions.rb
|
663
692
|
- spec/fixtures/crashes/short_file.rb
|
664
693
|
- spec/fixtures/crashes/start_of_file.rb
|
665
694
|
- spec/fixtures/middleware/internal_info_setter.rb
|
@@ -682,6 +711,7 @@ files:
|
|
682
711
|
- spec/middleware/exception_meta_data_spec.rb
|
683
712
|
- spec/middleware_spec.rb
|
684
713
|
- spec/middleware_stack_spec.rb
|
714
|
+
- spec/on_error_spec.rb
|
685
715
|
- spec/report_spec.rb
|
686
716
|
- spec/session_tracker_spec.rb
|
687
717
|
- spec/spec_helper.rb
|
@@ -706,8 +736,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
706
736
|
- !ruby/object:Gem::Version
|
707
737
|
version: '0'
|
708
738
|
requirements: []
|
709
|
-
|
710
|
-
rubygems_version: 2.7.6.2
|
739
|
+
rubygems_version: 3.1.2
|
711
740
|
signing_key:
|
712
741
|
specification_version: 4
|
713
742
|
summary: Ruby notifier for bugsnag.com
|
data/.travis.yml
DELETED
@@ -1,117 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
before_install:
|
5
|
-
- gem update --system 2.6.14
|
6
|
-
- gem --version
|
7
|
-
- gem install bundler -v $BUNDLE_VERSION
|
8
|
-
- bundle _${BUNDLE_VERSION}_ --version
|
9
|
-
|
10
|
-
install:
|
11
|
-
- bundle _${BUNDLE_VERSION}_ install --with "$GEMSETS" --binstubs
|
12
|
-
|
13
|
-
script:
|
14
|
-
- bundle exec ./bin/rake spec
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
include:
|
18
|
-
- stage: test
|
19
|
-
env:
|
20
|
-
- BUNDLE_VERSION=1.16.1
|
21
|
-
- GEMSETS=test
|
22
|
-
rvm: jruby-19mode
|
23
|
-
- stage: test
|
24
|
-
rvm: 1.9.3
|
25
|
-
env:
|
26
|
-
- BUNDLE_VERSION=1.12.0
|
27
|
-
- GEMSETS=test
|
28
|
-
- stage: test
|
29
|
-
rvm: 2.0
|
30
|
-
env:
|
31
|
-
- BUNDLE_VERSION=1.12.0
|
32
|
-
- GEMSETS=test
|
33
|
-
- stage: test
|
34
|
-
rvm: 2.1
|
35
|
-
env:
|
36
|
-
- BUNDLE_VERSION=1.12.0
|
37
|
-
- GEMSETS=test
|
38
|
-
- stage: test
|
39
|
-
env:
|
40
|
-
- BUNDLE_VERSION=1.12.0
|
41
|
-
- GEMSETS="test sidekiq"
|
42
|
-
rvm: 2.2
|
43
|
-
- stage: test
|
44
|
-
env:
|
45
|
-
- BUNDLE_VERSION=1.12.0
|
46
|
-
- GEMSETS="test sidekiq"
|
47
|
-
rvm: 2.3
|
48
|
-
- stage: test
|
49
|
-
env:
|
50
|
-
- BUNDLE_VERSION=1.12.0
|
51
|
-
- GEMSETS="test sidekiq"
|
52
|
-
rvm: 2.4
|
53
|
-
- stage: test
|
54
|
-
env:
|
55
|
-
- BUNDLE_VERSION=1.12.0
|
56
|
-
- GEMSETS="test sidekiq coverage"
|
57
|
-
rvm: 2.5
|
58
|
-
- stage: test
|
59
|
-
env:
|
60
|
-
- BUNDLE_VERSION=1.12.0
|
61
|
-
- GEMSETS="test rubocop"
|
62
|
-
rvm: 2.5
|
63
|
-
script: bundle exec ./bin/rubocop lib/
|
64
|
-
# - stage: test
|
65
|
-
# addons:
|
66
|
-
# apt:
|
67
|
-
# packages:
|
68
|
-
# - docker-ce
|
69
|
-
# sudo: required
|
70
|
-
# sevices:
|
71
|
-
# - docker
|
72
|
-
# env:
|
73
|
-
# - BUNDLE_VERSION=1.12.0
|
74
|
-
# - GEMSETS="test maze"
|
75
|
-
# rmv: 2.4.1
|
76
|
-
# script: bundle exec bugsnag-maze-runner -c features/plain_features
|
77
|
-
# - stage: test
|
78
|
-
# addons:
|
79
|
-
# apt:
|
80
|
-
# packages:
|
81
|
-
# - docker-ce
|
82
|
-
# sudo: required
|
83
|
-
# sevices:
|
84
|
-
# - docker
|
85
|
-
# env:
|
86
|
-
# - BUNDLE_VERSION=1.12.0
|
87
|
-
# - GEMSETS="test maze"
|
88
|
-
# rmv: 2.4.1
|
89
|
-
# script: bundle exec bugsnag-maze-runner -c features/sidekiq.feature
|
90
|
-
# - stage: test
|
91
|
-
# addons:
|
92
|
-
# apt:
|
93
|
-
# packages:
|
94
|
-
# - docker-ce
|
95
|
-
# sudo: required
|
96
|
-
# sevices:
|
97
|
-
# - docker
|
98
|
-
# env:
|
99
|
-
# - BUNDLE_VERSION=1.12.0
|
100
|
-
# - GEMSETS="test maze"
|
101
|
-
# - MAX_MAZE_CONNECT_ATTEMPTS=20
|
102
|
-
# rmv: 2.4.1
|
103
|
-
# script: bundle exec bugsnag-maze-runner -c features/rails_features
|
104
|
-
- stage: deploy
|
105
|
-
env:
|
106
|
-
- BUNDLE_VERSION=1.12.0
|
107
|
-
- GEMSETS="test doc"
|
108
|
-
rvm: 2.4.1
|
109
|
-
script: bundle exec rake rdoc
|
110
|
-
if: tag =~ ^v[1-9]
|
111
|
-
deploy:
|
112
|
-
provider: pages
|
113
|
-
local_dir: rdoc # only include the contents of the generated docs dir
|
114
|
-
skip_cleanup: true
|
115
|
-
github_token: $GITHUB_TOKEN # set in travis-ci dashboard
|
116
|
-
on:
|
117
|
-
tags: true # only deploy when tag is applied to commit
|
@@ -1,25 +0,0 @@
|
|
1
|
-
Feature: API Key configuration options
|
2
|
-
|
3
|
-
Background:
|
4
|
-
And I configure the bugsnag endpoint
|
5
|
-
|
6
|
-
Scenario Outline: The API key configuration option can be set
|
7
|
-
Given I set environment variable "RUBY_VERSION" to "<ruby version>"
|
8
|
-
And I set environment variable "BUGSNAG_API_KEY" to "b35a2a72bd230ac0aa0f52715bbdc6aa"
|
9
|
-
And I have built the service "plain-ruby"
|
10
|
-
And I run the service "plain-ruby" with the command "bundle exec ruby configuration/api_key.rb"
|
11
|
-
And I wait for 1 second
|
12
|
-
Then I should receive a request
|
13
|
-
And the request used the "Ruby Bugsnag Notifier" notifier
|
14
|
-
And the request used payload v4 headers
|
15
|
-
And the request contained the api key "b35a2a72bd230ac0aa0f52715bbdc6aa"
|
16
|
-
|
17
|
-
Examples:
|
18
|
-
| ruby version |
|
19
|
-
| 1.9.3 |
|
20
|
-
| 2.0 |
|
21
|
-
| 2.1 |
|
22
|
-
| 2.2 |
|
23
|
-
| 2.3 |
|
24
|
-
| 2.4 |
|
25
|
-
| 2.5 |
|