rollbar 2.23.1 → 2.23.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91d9d3035d6e146b45e596ce67d71b5a1ff21c56a61dd9783eaf89309207a74d
4
- data.tar.gz: c4165be529fcd66a89b78bf30451f5c9ff8ac200d8a3b4cd9afc109ae1188b4c
3
+ metadata.gz: 9073beef837ad644c6679c6f95599b7eb6e387d089c9f8d88448cbf39960ea22
4
+ data.tar.gz: 148751730bba10444641bd319314b7af7ee69a51e2c15cc686a909f797eec379
5
5
  SHA512:
6
- metadata.gz: 5bd909dd41462a78b7861e9147c42916436337710171e1984203c8ccc75544a92a13a476d11efa73dbe08be5a3056759fb3f902861132c208b2fcaff1271ff35
7
- data.tar.gz: 12c880143d6a3b98d7d70ceb48429db392ecf50fbfc8207f933aa222ef05ab54f31a39304615787dea9f6a9ec219ec90a15828fe3adb555d3cda2e4496eeb12e
6
+ metadata.gz: c8b0529b951944385beba61f53f43c3ea4270fe38c94fb85639a55a833d2e67c92ae61e88325ba3e3c4a0b64492aab3c95bc6faa6f458df1e9ad792c1e38e77d
7
+ data.tar.gz: 6d12a2415ac6ba94b7e5b00b944a4de7afe5a4fa6e43c9d86618c944d0968e0aeb8d601a34363fd97b89bc4ff5316b7dfa2cff6a54aee1a7f198b5690391da23
@@ -3,12 +3,6 @@ dist: trusty
3
3
  services:
4
4
  - redis-server
5
5
  language: ruby
6
- # Broken bundler on travis CI - https://github.com/bundler/bundler/issues/2784
7
- before_install:
8
- - gem update --system 2.7.7
9
- - gem --version
10
- - gem install bundler -v 1.6.1
11
- - bundle --version
12
6
 
13
7
  rvm:
14
8
  - 1.9.3
@@ -18,8 +12,8 @@ rvm:
18
12
  - 2.3.8
19
13
  - 2.4.5
20
14
  - 2.5.3
21
- - 2.6.0
22
- - 2.6.3
15
+ - 2.6.5
16
+ - 2.7.0
23
17
  - rbx
24
18
  # Travis's own rvm installer is failing on JRuby builds, TODO: reenable when fixed.
25
19
  # - jruby-9.1.9.0
@@ -73,9 +67,6 @@ matrix:
73
67
  allow_failures:
74
68
  - rvm: ruby-head
75
69
  - rvm: jruby-head
76
- # Ruby 2.6.x is still being eveluated and may have test failures
77
- - rvm: 2.6.0
78
- - rvm: 2.6.3
79
70
  # oraclejdk9 has a dependency issue that needs to be investigated
80
71
  - jdk: oraclejdk9
81
72
 
@@ -124,17 +115,17 @@ matrix:
124
115
  jdk: oraclejdk8
125
116
  - rvm: 2.5.3
126
117
  jdk: oraclejdk9
127
- - rvm: 2.6.0
118
+ - rvm: 2.6.5
128
119
  jdk: openjdk8
129
- - rvm: 2.6.0
120
+ - rvm: 2.6.5
130
121
  jdk: oraclejdk8
131
- - rvm: 2.6.0
122
+ - rvm: 2.6.5
132
123
  jdk: oraclejdk9
133
- - rvm: 2.6.3
124
+ - rvm: 2.7.0
134
125
  jdk: openjdk8
135
- - rvm: 2.6.3
126
+ - rvm: 2.7.0
136
127
  jdk: oraclejdk8
137
- - rvm: 2.6.3
128
+ - rvm: 2.7.0
138
129
  jdk: oraclejdk9
139
130
 
140
131
  - rvm: ruby-head
@@ -225,30 +216,39 @@ matrix:
225
216
  gemfile: gemfiles/rails40.gemfile
226
217
  - rvm: 2.5.3
227
218
  gemfile: gemfiles/rails41.gemfile
228
- - rvm: 2.6.0
219
+ - rvm: 2.6.5
229
220
  gemfile: gemfiles/rails30.gemfile
230
- - rvm: 2.6.0
221
+ - rvm: 2.6.5
231
222
  gemfile: gemfiles/rails31.gemfile
232
- - rvm: 2.6.0
223
+ - rvm: 2.6.5
233
224
  gemfile: gemfiles/rails32.gemfile
234
- - rvm: 2.6.0
225
+ - rvm: 2.6.5
235
226
  gemfile: gemfiles/rails40.gemfile
236
- - rvm: 2.6.0
227
+ - rvm: 2.6.5
237
228
  gemfile: gemfiles/rails41.gemfile
238
- - rvm: 2.6.0
229
+ - rvm: 2.6.5
239
230
  gemfile: gemfiles/rails42.gemfile
240
- - rvm: 2.6.3
231
+ # Rails 6.x tries to be compatible with Ruby 2.7, though
232
+ # it still throws a lot of warnings. No point testing earlier
233
+ # Rails with Ruby 2.7.
234
+ - rvm: 2.7.0
241
235
  gemfile: gemfiles/rails30.gemfile
242
- - rvm: 2.6.3
236
+ - rvm: 2.7.0
243
237
  gemfile: gemfiles/rails31.gemfile
244
- - rvm: 2.6.3
238
+ - rvm: 2.7.0
245
239
  gemfile: gemfiles/rails32.gemfile
246
- - rvm: 2.6.3
240
+ - rvm: 2.7.0
247
241
  gemfile: gemfiles/rails40.gemfile
248
- - rvm: 2.6.3
242
+ - rvm: 2.7.0
249
243
  gemfile: gemfiles/rails41.gemfile
250
- - rvm: 2.6.3
244
+ - rvm: 2.7.0
251
245
  gemfile: gemfiles/rails42.gemfile
246
+ - rvm: 2.7.0
247
+ gemfile: gemfiles/rails50.gemfile
248
+ - rvm: 2.7.0
249
+ gemfile: gemfiles/rails51.gemfile
250
+ - rvm: 2.7.0
251
+ gemfile: gemfiles/rails52.gemfile
252
252
  # JRuby JDBC Adapter is only compatible with Rails >= 5.x
253
253
  - rvm: jruby-9.1.9.0
254
254
  gemfile: gemfiles/rails30.gemfile
@@ -15,7 +15,7 @@ is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_
15
15
  gem 'appraisal'
16
16
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
17
17
  gem 'jruby-openssl', :platform => :jruby
18
- gem 'rails', '6.0.0.rc1'
18
+ gem 'rails', '6.0.2.1'
19
19
  gem 'sqlite3', '~> 1.4', :platform => [:ruby, :mswin, :mingw]
20
20
 
21
21
  gem 'rspec-core', '~> 3.8.0'
@@ -3,7 +3,6 @@ module Rollbar
3
3
  class Encoder
4
4
  ALL_ENCODINGS = [::Encoding::UTF_8, ::Encoding::ISO_8859_1, ::Encoding::ASCII_8BIT, ::Encoding::US_ASCII].freeze
5
5
  ASCII_ENCODINGS = [::Encoding::US_ASCII, ::Encoding::ASCII_8BIT, ::Encoding::ISO_8859_1].freeze
6
- ENCODING_OPTIONS = { :invalid => :replace, :undef => :replace, :replace => '' }.freeze
7
6
  UTF8 = 'UTF-8'.freeze
8
7
  BINARY = 'binary'.freeze
9
8
 
@@ -21,7 +20,13 @@ module Rollbar
21
20
  encoded_value = if encoding == ::Encoding::UTF_8 && value.valid_encoding?
22
21
  value
23
22
  else
24
- force_encoding(value).encode(*encoding_args(value))
23
+ force_encoding(value).encode(
24
+ *encoding_args(value),
25
+ # Ruby 2.7 requires this to look like keyword args,
26
+ # and Ruby 1.9.3 doesn't understand keyword args, so
27
+ # don't use hash rockets here and both will be happy.
28
+ invalid: :replace, undef: :replace, replace: '' # rubocop:disable Style/HashSyntax
29
+ )
25
30
  end
26
31
 
27
32
  object.is_a?(Symbol) ? encoded_value.to_sym : encoded_value
@@ -54,7 +59,6 @@ module Rollbar
54
59
  def encoding_args(value)
55
60
  args = [UTF8]
56
61
  args << BINARY if ASCII_ENCODINGS.include?(value.encoding)
57
- args << ENCODING_OPTIONS
58
62
 
59
63
  args
60
64
  end
@@ -83,7 +83,12 @@ module Rollbar
83
83
  response = ::Rack::Response.new(response_string, app_result[0],
84
84
  app_result[1])
85
85
 
86
- response.finish
86
+ finished = response.finish
87
+
88
+ # Rack < 2.x Response#finish returns self in array[2]. Rack >= 2.x returns self.body.
89
+ # Always return with the response object here regardless of rack version.
90
+ finished[2] = response
91
+ finished
87
92
  end
88
93
 
89
94
  def build_body_with_js(env, body, head_open_end)
@@ -14,7 +14,7 @@ module Rollbar
14
14
  end
15
15
  end
16
16
 
17
- if defined?(ActiveSupport)
17
+ if defined?(ActiveSupport) && ActiveSupport.respond_to?(:on_load)
18
18
  ActiveSupport.on_load(:action_mailer) do
19
19
  # Automatically add to ActionMailer::DeliveryJob
20
20
  ActionMailer::DeliveryJob.send(:include, Rollbar::ActiveJob) if defined?(ActionMailer::DeliveryJob)
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = '2.23.1'.freeze
2
+ VERSION = '2.23.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.1
4
+ version: 2.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rollbar, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Easy and powerful exception tracking for Ruby
14
14
  email:
@@ -158,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.7.7
161
+ rubygems_version: 3.1.2
163
162
  signing_key:
164
163
  specification_version: 4
165
164
  summary: Reports exceptions to Rollbar