rollbar 2.27.0 → 3.1.1
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.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +25 -0
- data/.github/workflows/ci.yml +101 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +6 -13
- data/README.md +10 -8
- data/data/rollbar.snippet.js +1 -1
- data/docs/configuration.md +7 -0
- data/gemfiles/rails30.gemfile +11 -27
- data/gemfiles/rails31.gemfile +13 -28
- data/gemfiles/rails32.gemfile +11 -27
- data/gemfiles/rails40.gemfile +12 -29
- data/gemfiles/rails41.gemfile +11 -27
- data/gemfiles/rails42.gemfile +9 -27
- data/gemfiles/rails50.gemfile +7 -22
- data/gemfiles/rails51.gemfile +7 -22
- data/gemfiles/rails52.gemfile +1 -9
- data/gemfiles/rails60.gemfile +0 -8
- data/lib/rollbar/configuration.rb +10 -0
- data/lib/rollbar/item.rb +17 -4
- data/lib/rollbar/language_support.rb +0 -6
- data/lib/rollbar/lazy_store.rb +2 -4
- data/lib/rollbar/notifier.rb +5 -7
- data/lib/rollbar/plugins/delayed_job/plugin.rb +4 -0
- data/lib/rollbar/scrubbers/url.rb +10 -5
- data/lib/rollbar/version.rb +1 -1
- data/rollbar.gemspec +1 -1
- metadata +5 -4
- data/.travis.yml +0 -284
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ef8a408c33b0058ec6162fb4e6854d605a26591b2122ba8073b38c62ee2e43
|
4
|
+
data.tar.gz: e1f4519ab50a4889fd137167c9d34d377096f56ffaa46ca5e8529fd5214156e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13fa331540a1d24b04f89da681a417f2454dead503262a746830a88a6d824fb33790bd46417df3cd52f6f356f4cdeac299e19c2336c1296c96f8c9284bd61a15
|
7
|
+
data.tar.gz: 9cd9c545282d7f762bd9ca787f2b3fa8591fefd7d9d432256eedb1e9d04488fcc509fb98c37840fff9ef7da535c4d5c399c18136bf7a341d3bb993b205ee237e
|
@@ -0,0 +1,25 @@
|
|
1
|
+
## Description of the change
|
2
|
+
|
3
|
+
> Description here
|
4
|
+
## Type of change
|
5
|
+
- [ ] Bug fix (non-breaking change that fixes an issue)
|
6
|
+
- [ ] New feature (non-breaking change that adds functionality)
|
7
|
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
8
|
+
|
9
|
+
## Related issues
|
10
|
+
|
11
|
+
> Fix [#1]()
|
12
|
+
## Checklists
|
13
|
+
|
14
|
+
### Development
|
15
|
+
|
16
|
+
- [ ] Lint rules pass locally
|
17
|
+
- [ ] The code changed/added as part of this pull request has been covered with tests
|
18
|
+
- [ ] All tests related to the changed code pass in development
|
19
|
+
|
20
|
+
### Code review
|
21
|
+
|
22
|
+
- [ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
|
23
|
+
- [ ] "Ready for review" label attached to the PR and reviewers mentioned in a comment
|
24
|
+
- [ ] Changes have been reviewed by at least one other engineer
|
25
|
+
- [ ] Issue from task tracker has a link to this pull request
|
@@ -0,0 +1,101 @@
|
|
1
|
+
name: Rollbar-gem CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
runs-on: ubuntu-18.04
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version: [2.2.10, 2.3.0, 2.3.8, 2.4.5, 2.5.3, 2.6.0]
|
15
|
+
gemfile:
|
16
|
+
- gemfiles/rails42.gemfile
|
17
|
+
- gemfiles/rails50.gemfile
|
18
|
+
- gemfiles/rails51.gemfile
|
19
|
+
- gemfiles/rails52.gemfile
|
20
|
+
- gemfiles/rails60.gemfile
|
21
|
+
exclude:
|
22
|
+
- gemfile: gemfiles/rails42.gemfile
|
23
|
+
ruby-version: 2.6.0
|
24
|
+
- gemfile: gemfiles/rails52.gemfile
|
25
|
+
ruby-version: 2.2.10
|
26
|
+
- gemfile: gemfiles/rails60.gemfile
|
27
|
+
ruby-version: 2.2.10
|
28
|
+
- gemfile: gemfiles/rails60.gemfile
|
29
|
+
ruby-version: 2.3.0
|
30
|
+
- gemfile: gemfiles/rails60.gemfile
|
31
|
+
ruby-version: 2.3.8
|
32
|
+
- gemfile: gemfiles/rails60.gemfile
|
33
|
+
ruby-version: 2.4.5
|
34
|
+
include:
|
35
|
+
- gemfile: gemfiles/rails41.gemfile
|
36
|
+
ruby-version: 2.3.0
|
37
|
+
- gemfile: gemfiles/rails41.gemfile
|
38
|
+
ruby-version: 2.2.10
|
39
|
+
- gemfile: gemfiles/rails41.gemfile
|
40
|
+
ruby-version: 2.1.9
|
41
|
+
- gemfile: gemfiles/rails40.gemfile
|
42
|
+
ruby-version: 2.3.0
|
43
|
+
- gemfile: gemfiles/rails40.gemfile
|
44
|
+
ruby-version: 2.2.10
|
45
|
+
- gemfile: gemfiles/rails40.gemfile
|
46
|
+
ruby-version: 2.1.9
|
47
|
+
- gemfile: gemfiles/rails32.gemfile
|
48
|
+
ruby-version: 2.2.10
|
49
|
+
- gemfile: gemfiles/rails32.gemfile
|
50
|
+
ruby-version: 2.1.9
|
51
|
+
- gemfile: gemfiles/rails31.gemfile
|
52
|
+
ruby-version: 2.0.0
|
53
|
+
- gemfile: gemfiles/rails30.gemfile
|
54
|
+
ruby-version: 2.0.0
|
55
|
+
|
56
|
+
steps:
|
57
|
+
- uses: actions/checkout@v2
|
58
|
+
with:
|
59
|
+
submodules: recursive
|
60
|
+
|
61
|
+
- name: Start Redis
|
62
|
+
uses: supercharge/redis-github-action@1.1.0
|
63
|
+
with:
|
64
|
+
redis-version: 4
|
65
|
+
|
66
|
+
- name: Setup Ruby > 2.0
|
67
|
+
uses: ruby/setup-ruby@v1
|
68
|
+
if: ${{ matrix.ruby-version != '2.0.0' }}
|
69
|
+
with:
|
70
|
+
ruby-version: ${{ matrix.ruby-version }}
|
71
|
+
|
72
|
+
- name: Setup Ruby 2.0.0
|
73
|
+
if: ${{ matrix.ruby-version == '2.0.0' }}
|
74
|
+
timeout-minutes: 15
|
75
|
+
run: |
|
76
|
+
sudo apt-get update -y
|
77
|
+
sudo apt-get install -y libssl1.0-dev
|
78
|
+
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.gz
|
79
|
+
tar xvfz ruby-2.0.0-p648.tar.gz
|
80
|
+
cd ruby-2.0.0-p648
|
81
|
+
./configure && make && sudo make install-nodoc
|
82
|
+
|
83
|
+
- name: Ruby 2.0.0, install bundler
|
84
|
+
if: ${{ matrix.ruby-version == '2.0.0' }}
|
85
|
+
run: sudo gem install bundler -v 1.17.3
|
86
|
+
|
87
|
+
- name: Rails 4.2 ensure bundler version
|
88
|
+
if: ${{ matrix.gemfile == 'gemfiles/rails42.gemfile' }}
|
89
|
+
run: |
|
90
|
+
gem uninstall bundler
|
91
|
+
gem install bundler -v '< 2.0.0'
|
92
|
+
|
93
|
+
- name: Bundle Install
|
94
|
+
run: |
|
95
|
+
export BUNDLE_GEMFILE=${{ matrix.gemfile }}
|
96
|
+
bundle config path vendor/bundle
|
97
|
+
bundle config gemfile ${{ matrix.gemfile }}
|
98
|
+
bundle install --jobs 4 --retry 3
|
99
|
+
|
100
|
+
- name: Rspec
|
101
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
@@ -51,7 +51,7 @@ Style/Documentation:
|
|
51
51
|
# As is, we currently add :nodoc: if anything at all.
|
52
52
|
Enabled: false
|
53
53
|
|
54
|
-
Naming/
|
54
|
+
Naming/MethodParameterName:
|
55
55
|
# It's possible to configure this cop to allow just about anything, but what's the point.
|
56
56
|
# The default min length of a param name is 3, but the the default whitelist includes things
|
57
57
|
# like `db` and `io`. So, short names really can be useful.
|
data/Gemfile
CHANGED
@@ -44,18 +44,11 @@ platforms :rbx do
|
|
44
44
|
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
45
45
|
end
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
elsif RUBY_VERSION.start_with?('2')
|
53
|
-
gem 'capistrano', :require => false # rubocop:disable Bundler/DuplicatedGem
|
54
|
-
gem 'codacy-coverage'
|
55
|
-
gem 'shoryuken' # rubocop:disable Bundler/DuplicatedGem
|
56
|
-
gem 'simplecov'
|
57
|
-
gem 'sucker_punch', '~> 2.0' # rubocop:disable Bundler/DuplicatedGem
|
58
|
-
end
|
47
|
+
gem 'capistrano', :require => false
|
48
|
+
gem 'codacy-coverage'
|
49
|
+
gem 'shoryuken'
|
50
|
+
gem 'simplecov'
|
51
|
+
gem 'sucker_punch', '~> 2.0'
|
59
52
|
|
60
53
|
unless is_jruby
|
61
54
|
# JRuby doesn't support fork, which is required for this test helper.
|
@@ -73,7 +66,7 @@ gem 'generator_spec'
|
|
73
66
|
gem 'girl_friday', '>= 0.11.1'
|
74
67
|
gem 'redis'
|
75
68
|
gem 'resque', '< 2.0.0'
|
76
|
-
gem 'rubocop', :require => false
|
69
|
+
gem 'rubocop', '~> 0.93.0', :require => false
|
77
70
|
gem 'rubocop-performance', :require => false
|
78
71
|
gem 'sinatra'
|
79
72
|
gem 'webmock', :require => false
|
data/README.md
CHANGED
@@ -4,14 +4,6 @@
|
|
4
4
|
[](https://dependabot.com/compatibility-score.html?dependency-name=rollbar&package-manager=bundler&version-scheme=semver&new-version=latest)
|
5
5
|
|
6
6
|
|
7
|
-
> WARNING: Ruby 2.6.0 introduced a new bug bug ([#15472 -
|
8
|
-
Invalid JSON data being sent from Net::HTTP in some cases with Ruby 2.6.0](https://bugs.ruby-lang.org/issues/15472)) that may result in the Rollbar API returning an error when an exception is reported. (See [rollbar-gem issue #797](https://github.com/rollbar/rollbar-gem/issues/797)).
|
9
|
-
|
10
|
-
> UPDATE: This bug is fixed in Ruby 2.6.1, and rollbar-gem has a safe workaround in version >= 2.19.0.
|
11
|
-
If you need to stay on Ruby 2.6.0 for any reason, make sure you have the latest rollbar-gem.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
7
|
[Rollbar](https://rollbar.com) is a real-time exception reporting service for Ruby and other languages. The Rollbar service will alert you of problems with your code and help you understand them in a ways never possible before. We love it and we hope you will too.
|
16
8
|
|
17
9
|
Rollbar-gem is the SDK for Ruby apps and includes support for apps using Rails, Sinatra, Rack, plain Ruby, and other frameworks.
|
@@ -27,10 +19,20 @@ For complete usage instructions and configuration reference, see our [Ruby SDK d
|
|
27
19
|
|
28
20
|
## Compatibility
|
29
21
|
|
22
|
+
Version >= 3.0.0 is compatible with Ruby >= 2.0.0.
|
23
|
+
|
30
24
|
Version >= 2.19.0 is compatible with Ruby >= 1.9.3.
|
31
25
|
|
32
26
|
Version < 2.19.0 is compatible with Ruby >= 1.8.7.
|
33
27
|
|
28
|
+
### Ruby 2.6.0
|
29
|
+
|
30
|
+
> WARNING: Ruby 2.6.0 introduced a new bug bug ([#15472 -
|
31
|
+
Invalid JSON data being sent from Net::HTTP in some cases with Ruby 2.6.0](https://bugs.ruby-lang.org/issues/15472)) that may result in the Rollbar API returning an error when an exception is reported. (See [rollbar-gem issue #797](https://github.com/rollbar/rollbar-gem/issues/797)).
|
32
|
+
|
33
|
+
> UPDATE: This bug is fixed in Ruby 2.6.1, and rollbar-gem has a safe workaround in version >= 2.19.0.
|
34
|
+
If you need to stay on Ruby 2.6.0 for any reason, make sure you have the latest rollbar-gem.
|
35
|
+
|
34
36
|
## Release History & Changelog
|
35
37
|
|
36
38
|
See our [Releases](https://github.com/rollbar/rollbar-gem/releases) page for a list of all releases, including changes.
|
data/data/rollbar.snippet.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(r){var e={};function o(n){if(e[n])return e[n].exports;var t=e[n]={i:n,l:!1,exports:{}};return r[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=e,o.d=function(r,e,n){o.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(r,e){if(1&e&&(r=o(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var t in r)o.d(n,t,function(e){return r[e]}.bind(null,t));return n},o.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(e,"a",e),e},o.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},o.p="",o(o.s=0)}([function(r,e,o){"use strict";var n=o(1),t=o(5);_rollbarConfig=_rollbarConfig||{},_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||"https://cdn.rollbar.com/rollbarjs/refs/tags/v2.19.
|
1
|
+
!function(r){var e={};function o(n){if(e[n])return e[n].exports;var t=e[n]={i:n,l:!1,exports:{}};return r[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=e,o.d=function(r,e,n){o.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(r,e){if(1&e&&(r=o(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var t in r)o.d(n,t,function(e){return r[e]}.bind(null,t));return n},o.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(e,"a",e),e},o.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},o.p="",o(o.s=0)}([function(r,e,o){"use strict";var n=o(1),t=o(5);_rollbarConfig=_rollbarConfig||{},_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||"https://cdn.rollbar.com/rollbarjs/refs/tags/v2.19.3/rollbar.min.js",_rollbarConfig.async=void 0===_rollbarConfig.async||_rollbarConfig.async;var a=n.setupShim(window,_rollbarConfig),l=t(_rollbarConfig);window.rollbar=n.Rollbar,a.loadFull(window,document,!_rollbarConfig.async,_rollbarConfig,l)},function(r,e,o){"use strict";var n=o(2),t=o(3);function a(r){return function(){try{return r.apply(this,arguments)}catch(r){try{console.error("[Rollbar]: Internal error",r)}catch(r){}}}}var l=0;function i(r,e){this.options=r,this._rollbarOldOnError=null;var o=l++;this.shimId=function(){return o},"undefined"!=typeof window&&window._rollbarShims&&(window._rollbarShims[o]={handler:e,messages:[]})}var s=o(4),d=function(r,e){return new i(r,e)},c=function(r){return new s(d,r)};function u(r){return a((function(){var e=this,o=Array.prototype.slice.call(arguments,0),n={shim:e,method:r,args:o,ts:new Date};window._rollbarShims[this.shimId()].messages.push(n)}))}i.prototype.loadFull=function(r,e,o,n,t){var l=!1,i=e.createElement("script"),s=e.getElementsByTagName("script")[0],d=s.parentNode;i.crossOrigin="",i.src=n.rollbarJsUrl,o||(i.async=!0),i.onload=i.onreadystatechange=a((function(){if(!(l||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)){i.onload=i.onreadystatechange=null;try{d.removeChild(i)}catch(r){}l=!0,function(){var e;if(void 0===r._rollbarDidLoad){e=new Error("rollbar.js did not load");for(var o,n,a,l,i=0;o=r._rollbarShims[i++];)for(o=o.messages||[];n=o.shift();)for(a=n.args||[],i=0;i<a.length;++i)if("function"==typeof(l=a[i])){l(e);break}}"function"==typeof t&&t(e)}()}})),d.insertBefore(i,s)},i.prototype.wrap=function(r,e,o){try{var n;if(n="function"==typeof e?e:function(){return e||{}},"function"!=typeof r)return r;if(r._isWrap)return r;if(!r._rollbar_wrapped&&(r._rollbar_wrapped=function(){o&&"function"==typeof o&&o.apply(this,arguments);try{return r.apply(this,arguments)}catch(o){var e=o;throw e&&("string"==typeof e&&(e=new String(e)),e._rollbarContext=n()||{},e._rollbarContext._wrappedSource=r.toString(),window._rollbarWrappedError=e),e}},r._rollbar_wrapped._isWrap=!0,r.hasOwnProperty))for(var t in r)r.hasOwnProperty(t)&&(r._rollbar_wrapped[t]=r[t]);return r._rollbar_wrapped}catch(e){return r}};for(var p="log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleAnonymousErrors,handleUnhandledRejection,captureEvent,captureDomContentLoaded,captureLoad".split(","),f=0;f<p.length;++f)i.prototype[p[f]]=u(p[f]);r.exports={setupShim:function(r,e){if(r){var o=e.globalAlias||"Rollbar";if("object"==typeof r[o])return r[o];r._rollbarShims={},r._rollbarWrappedError=null;var l=new c(e);return a((function(){e.captureUncaught&&(l._rollbarOldOnError=r.onerror,n.captureUncaughtExceptions(r,l,!0),e.wrapGlobalEventHandlers&&t(r,l,!0)),e.captureUnhandledRejections&&n.captureUnhandledRejections(r,l,!0);var a=e.autoInstrument;return!1!==e.enabled&&(void 0===a||!0===a||"object"==typeof a&&a.network)&&r.addEventListener&&(r.addEventListener("load",l.captureLoad.bind(l)),r.addEventListener("DOMContentLoaded",l.captureDomContentLoaded.bind(l))),r[o]=l,l}))()}},Rollbar:c}},function(r,e,o){"use strict";function n(r,e,o,n){r._rollbarWrappedError&&(n[4]||(n[4]=r._rollbarWrappedError),n[5]||(n[5]=r._rollbarWrappedError._rollbarContext),r._rollbarWrappedError=null);var t=e.handleUncaughtException.apply(e,n);o&&o.apply(r,n),"anonymous"===t&&(e.anonymousErrorsPending+=1)}r.exports={captureUncaughtExceptions:function(r,e,o){if(r){var t;if("function"==typeof e._rollbarOldOnError)t=e._rollbarOldOnError;else if(r.onerror){for(t=r.onerror;t._rollbarOldOnError;)t=t._rollbarOldOnError;e._rollbarOldOnError=t}e.handleAnonymousErrors();var a=function(){var o=Array.prototype.slice.call(arguments,0);n(r,e,t,o)};o&&(a._rollbarOldOnError=t),r.onerror=a}},captureUnhandledRejections:function(r,e,o){if(r){"function"==typeof r._rollbarURH&&r._rollbarURH.belongsToShim&&r.removeEventListener("unhandledrejection",r._rollbarURH);var n=function(r){var o,n,t;try{o=r.reason}catch(r){o=void 0}try{n=r.promise}catch(r){n="[unhandledrejection] error getting `promise` from event"}try{t=r.detail,!o&&t&&(o=t.reason,n=t.promise)}catch(r){}o||(o="[unhandledrejection] error getting `reason` from event"),e&&e.handleUnhandledRejection&&e.handleUnhandledRejection(o,n)};n.belongsToShim=o,r._rollbarURH=n,r.addEventListener("unhandledrejection",n)}}}},function(r,e,o){"use strict";function n(r,e,o){if(e.hasOwnProperty&&e.hasOwnProperty("addEventListener")){for(var n=e.addEventListener;n._rollbarOldAdd&&n.belongsToShim;)n=n._rollbarOldAdd;var t=function(e,o,t){n.call(this,e,r.wrap(o),t)};t._rollbarOldAdd=n,t.belongsToShim=o,e.addEventListener=t;for(var a=e.removeEventListener;a._rollbarOldRemove&&a.belongsToShim;)a=a._rollbarOldRemove;var l=function(r,e,o){a.call(this,r,e&&e._rollbar_wrapped||e,o)};l._rollbarOldRemove=a,l.belongsToShim=o,e.removeEventListener=l}}r.exports=function(r,e,o){if(r){var t,a,l="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(t=0;t<l.length;++t)r[a=l[t]]&&r[a].prototype&&n(e,r[a].prototype,o)}}},function(r,e,o){"use strict";function n(r,e){this.impl=r(e,this),this.options=e,function(r){for(var e=function(r){return function(){var e=Array.prototype.slice.call(arguments,0);if(this.impl[r])return this.impl[r].apply(this.impl,e)}},o="log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleAnonymousErrors,handleUnhandledRejection,_createItem,wrap,loadFull,shimId,captureEvent,captureDomContentLoaded,captureLoad".split(","),n=0;n<o.length;n++)r[o[n]]=e(o[n])}(n.prototype)}n.prototype._swapAndProcessMessages=function(r,e){var o,n,t;for(this.impl=r(this.options);o=e.shift();)n=o.method,t=o.args,this[n]&&"function"==typeof this[n]&&("captureDomContentLoaded"===n||"captureLoad"===n?this[n].apply(this,[t[0],o.ts]):this[n].apply(this,t));return this},r.exports=n},function(r,e,o){"use strict";r.exports=function(r){return function(e){if(!e&&!window._rollbarInitialized){for(var o,n,t=(r=r||{}).globalAlias||"Rollbar",a=window.rollbar,l=function(r){return new a(r)},i=0;o=window._rollbarShims[i++];)n||(n=o.handler),o.handler._swapAndProcessMessages(l,o.messages);window[t]=n,window._rollbarInitialized=!0}}}}]);
|
data/docs/configuration.md
CHANGED
@@ -108,6 +108,13 @@ Rollbar notifier.
|
|
108
108
|
|
109
109
|
The number of job failures before reporting the failure to Rollbar.
|
110
110
|
|
111
|
+
### async_skip_report_handler
|
112
|
+
|
113
|
+
**Default** `nil`
|
114
|
+
**Example** `-> (job) { job.cron? }`
|
115
|
+
|
116
|
+
A handler, should respond to `#call`, receives the job and returns a boolean. If true, reporting errors will be skipped. If provided, dj_threshold isn't checked.
|
117
|
+
|
111
118
|
### enabled
|
112
119
|
|
113
120
|
**Default** `true`
|
data/gemfiles/rails30.gemfile
CHANGED
@@ -2,21 +2,16 @@ require 'rubygems/version'
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
# Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
|
6
|
-
# new process is created during tests. (Testing rake tasks, for example.)
|
7
|
-
# This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
|
8
|
-
# We use the ||= assignment because Travis loads the gemfile twice, the second time
|
9
|
-
# with the wrong gemfile path.
|
10
|
-
ENV['CURRENT_GEMFILE'] ||= __FILE__
|
11
|
-
|
12
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
13
6
|
|
14
7
|
gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
|
15
8
|
gem 'jruby-openssl', :platform => :jruby
|
16
9
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
17
|
-
gem 'appraisal', '= 1.0.2'
|
18
10
|
gem 'rails', '3.0.20'
|
19
11
|
gem 'hitimes', '< 1.2.2'
|
12
|
+
gem 'mixlib-shellout', '<= 2.0.0'
|
13
|
+
gem 'net-ssh', '<= 3.1.1'
|
14
|
+
gem 'public_suffix', '<= 2.0.5'
|
20
15
|
gem 'rake', '< 11'
|
21
16
|
gem 'rspec-rails', '>= 2.14.0'
|
22
17
|
|
@@ -34,33 +29,22 @@ platforms :rbx do
|
|
34
29
|
gem 'rubysl-test-unit'
|
35
30
|
end
|
36
31
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
gem 'capistrano', :require => false
|
43
|
-
gem 'sucker_punch', '~> 2.0'
|
44
|
-
gem 'shoryuken'
|
45
|
-
gem 'codacy-coverage'
|
46
|
-
gem 'simplecov'
|
47
|
-
end
|
32
|
+
gem 'capistrano', :require => false
|
33
|
+
gem 'sucker_punch', '~> 2.0'
|
34
|
+
gem 'shoryuken'
|
35
|
+
gem 'codacy-coverage'
|
36
|
+
gem 'simplecov', '<= 0.17.1'
|
48
37
|
|
49
38
|
gem 'sinatra'
|
50
39
|
gem 'delayed_job', :require => false
|
51
|
-
gem 'redis'
|
40
|
+
gem 'redis', '<= 3.3.5'
|
41
|
+
gem 'redis-namespace', '<= 1.5.0'
|
52
42
|
gem 'database_cleaner', '~> 1.0.0'
|
53
43
|
gem 'genspec', '>= 0.2.8'
|
54
44
|
gem 'girl_friday', '>= 0.11.1'
|
55
45
|
gem 'rspec-command'
|
56
46
|
|
57
|
-
|
58
|
-
gem 'public_suffix', '< 1.5'
|
59
|
-
gem 'mime-types', '< 3.0'
|
60
|
-
gem 'webmock', '< 2.3.0', :require => false
|
61
|
-
else
|
62
|
-
gem 'webmock', :require => false
|
63
|
-
end
|
47
|
+
gem 'webmock', :require => false
|
64
48
|
|
65
49
|
gem 'resque', '< 2.0.0'
|
66
50
|
gem 'aws-sdk-sqs'
|
data/gemfiles/rails31.gemfile
CHANGED
@@ -2,22 +2,17 @@ require 'rubygems/version'
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
# Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
|
6
|
-
# new process is created during tests. (Testing rake tasks, for example.)
|
7
|
-
# This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
|
8
|
-
# We use the ||= assignment because Travis loads the gemfile twice, the second time
|
9
|
-
# with the wrong gemfile path.
|
10
|
-
ENV['CURRENT_GEMFILE'] ||= __FILE__
|
11
|
-
|
12
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
13
6
|
|
14
7
|
gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
|
15
8
|
gem 'jruby-openssl', :platform => :jruby
|
16
9
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
17
|
-
gem '
|
10
|
+
gem 'mixlib-shellout', '<= 2.0.0'
|
11
|
+
gem 'net-ssh', '<= 3.1.1'
|
12
|
+
gem 'public_suffix', '<= 2.0.5'
|
18
13
|
gem 'rails', '3.1.12'
|
19
14
|
gem 'rspec-rails', '~> 3.4'
|
20
|
-
gem 'rake'
|
15
|
+
gem 'rake', '< 11'
|
21
16
|
|
22
17
|
if RUBY_VERSION < '2.2.2'
|
23
18
|
gem 'sidekiq', '~> 2.13.0'
|
@@ -33,33 +28,23 @@ platforms :rbx do
|
|
33
28
|
gem 'rubysl-test-unit'
|
34
29
|
end
|
35
30
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
gem 'capistrano', :require => false
|
42
|
-
gem 'sucker_punch'
|
43
|
-
gem 'shoryuken'
|
44
|
-
gem 'codacy-coverage'
|
45
|
-
gem 'simplecov'
|
46
|
-
end
|
31
|
+
gem 'capistrano', :require => false
|
32
|
+
gem 'sucker_punch'
|
33
|
+
gem 'shoryuken'
|
34
|
+
gem 'codacy-coverage'
|
35
|
+
gem 'simplecov', '<= 0.17.1'
|
47
36
|
|
48
37
|
gem 'sinatra'
|
49
38
|
gem 'delayed_job', :require => false
|
50
|
-
gem '
|
39
|
+
gem 'rack-cache', '<= 1.9.0'
|
40
|
+
gem 'redis', '<= 3.3.5'
|
41
|
+
gem 'redis-namespace', '<= 1.5.0'
|
51
42
|
gem 'database_cleaner'
|
52
43
|
gem 'girl_friday'
|
53
44
|
gem 'generator_spec'
|
54
45
|
gem 'rspec-command'
|
55
46
|
|
56
|
-
|
57
|
-
gem 'mime-types', '< 3.0'
|
58
|
-
gem 'public_suffix', '< 1.5'
|
59
|
-
gem 'webmock', '< 2.3.0', :require => false
|
60
|
-
else
|
61
|
-
gem 'webmock', :require => false
|
62
|
-
end
|
47
|
+
gem 'webmock', :require => false
|
63
48
|
|
64
49
|
gem 'resque', '< 2.0.0'
|
65
50
|
gem 'aws-sdk-sqs'
|
data/gemfiles/rails32.gemfile
CHANGED
@@ -2,18 +2,13 @@ require 'rubygems/version'
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
# Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
|
6
|
-
# new process is created during tests. (Testing rake tasks, for example.)
|
7
|
-
# This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
|
8
|
-
# We use the ||= assignment because Travis loads the gemfile twice, the second time
|
9
|
-
# with the wrong gemfile path.
|
10
|
-
ENV['CURRENT_GEMFILE'] ||= __FILE__
|
11
|
-
|
12
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
13
6
|
|
14
|
-
gem 'appraisal'
|
15
7
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
16
8
|
gem 'jruby-openssl', :platform => :jruby
|
9
|
+
gem 'mixlib-shellout', '<= 2.0.0'
|
10
|
+
gem 'net-ssh', '<= 3.1.1'
|
11
|
+
gem 'public_suffix', '<= 2.0.5'
|
17
12
|
gem 'rails', '3.2.22'
|
18
13
|
gem 'rake'
|
19
14
|
gem 'rspec-rails', '~> 3.4'
|
@@ -35,20 +30,15 @@ platforms :rbx do
|
|
35
30
|
gem 'rubysl-test-unit'
|
36
31
|
end
|
37
32
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
gem 'capistrano', :require => false
|
44
|
-
gem 'sucker_punch', '~> 2.0'
|
45
|
-
gem 'shoryuken'
|
46
|
-
gem 'codacy-coverage'
|
47
|
-
gem 'simplecov'
|
48
|
-
end
|
33
|
+
gem 'capistrano', :require => false
|
34
|
+
gem 'sucker_punch', '~> 2.0'
|
35
|
+
gem 'shoryuken'
|
36
|
+
gem 'codacy-coverage'
|
37
|
+
gem 'simplecov', '<= 0.17.1'
|
49
38
|
|
50
39
|
gem 'delayed_job', :require => false
|
51
|
-
gem 'redis'
|
40
|
+
gem 'redis', '<= 3.3.5'
|
41
|
+
gem 'redis-namespace', '<= 1.5.0'
|
52
42
|
gem 'sinatra'
|
53
43
|
|
54
44
|
gem 'database_cleaner', '~> 1.0.0'
|
@@ -56,13 +46,7 @@ gem 'generator_spec'
|
|
56
46
|
gem 'girl_friday', '>= 0.11.1'
|
57
47
|
gem 'rspec-command'
|
58
48
|
|
59
|
-
|
60
|
-
gem 'mime-types', '< 3.0'
|
61
|
-
gem 'public_suffix', '< 1.5'
|
62
|
-
gem 'webmock', '< 2.3.0', :require => false
|
63
|
-
else
|
64
|
-
gem 'webmock', :require => false
|
65
|
-
end
|
49
|
+
gem 'webmock', :require => false
|
66
50
|
|
67
51
|
gem 'resque', '< 2.0.0'
|
68
52
|
gem 'aws-sdk-sqs'
|
data/gemfiles/rails40.gemfile
CHANGED
@@ -2,18 +2,13 @@ require 'rubygems/version'
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
# Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
|
6
|
-
# new process is created during tests. (Testing rake tasks, for example.)
|
7
|
-
# This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
|
8
|
-
# We use the ||= assignment because Travis loads the gemfile twice, the second time
|
9
|
-
# with the wrong gemfile path.
|
10
|
-
ENV['CURRENT_GEMFILE'] ||= __FILE__
|
11
|
-
|
12
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
13
6
|
|
14
|
-
gem 'appraisal'
|
15
7
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
16
8
|
gem 'jruby-openssl', :platform => :jruby
|
9
|
+
gem 'mixlib-shellout', '<= 2.0.0'
|
10
|
+
gem 'net-ssh', '<= 3.1.1'
|
11
|
+
gem 'public_suffix', '<= 2.0.5'
|
17
12
|
gem 'rails', '4.0.13'
|
18
13
|
gem 'rake'
|
19
14
|
gem 'rspec-rails', '~> 3.4'
|
@@ -35,22 +30,16 @@ platforms :rbx do
|
|
35
30
|
gem 'rubysl-test-unit'
|
36
31
|
end
|
37
32
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
gem 'capistrano', :require => false
|
45
|
-
gem 'sucker_punch', '~> 2.0'
|
46
|
-
gem 'json', '~> 2.0'
|
47
|
-
gem 'shoryuken'
|
48
|
-
gem 'codacy-coverage'
|
49
|
-
gem 'simplecov'
|
50
|
-
end
|
33
|
+
gem 'capistrano', :require => false
|
34
|
+
gem 'sucker_punch', '~> 2.0'
|
35
|
+
gem 'json', '~> 2.0'
|
36
|
+
gem 'shoryuken'
|
37
|
+
gem 'codacy-coverage'
|
38
|
+
gem 'simplecov', '<= 0.17.1'
|
51
39
|
|
52
40
|
gem 'delayed_job', :require => false
|
53
|
-
gem 'redis'
|
41
|
+
gem 'redis', '<= 3.3.5'
|
42
|
+
gem 'redis-namespace', '<= 1.5.0'
|
54
43
|
gem 'resque'
|
55
44
|
gem 'sinatra'
|
56
45
|
|
@@ -59,13 +48,7 @@ gem 'generator_spec'
|
|
59
48
|
gem 'girl_friday', '>= 0.11.1'
|
60
49
|
gem 'rspec-command'
|
61
50
|
|
62
|
-
|
63
|
-
gem 'mime-types', '< 3.0'
|
64
|
-
gem 'public_suffix', '< 1.5'
|
65
|
-
gem 'webmock', '< 2.3.0', :require => false
|
66
|
-
else
|
67
|
-
gem 'webmock', :require => false
|
68
|
-
end
|
51
|
+
gem 'webmock', :require => false
|
69
52
|
|
70
53
|
gem 'aws-sdk-sqs'
|
71
54
|
|