rollbar 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 624449078b1bb27b9cc3823079379c16f911a436
4
+ data.tar.gz: 9b8264e3a4b51ff029f9bc8911d0acc3611ba5a3
5
+ SHA512:
6
+ metadata.gz: 4703b2a859825b5b23f682e9e0b3d5e784c1e3f0448e31716d254a1b8ef39295f456b630dfc94589bf866e96101e7a1b9883e7ec0a20caa466a92190de001686
7
+ data.tar.gz: ebe79ef4941d4bcc616e4c353c2eff00c19e049128357fe6245f3d451cad2d7e52f6cd335a5b6bea3285924073738f509726f2735ce78847b3ebd0479325c2f4
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.5.1
4
+
5
+ Bug fix:
6
+
7
+ - Fix Rollbar::JSON for MultiJson <= 1.6.0. See [#328](https://github.com/rollbar/rollbar-gem/pull/328)
8
+
3
9
  ## 2.5.0
4
10
 
5
11
  Features:
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rollbar notifier for Ruby [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.5.0)](https://travis-ci.org/rollbar/rollbar-gem/branches)
1
+ # Rollbar notifier for Ruby [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.5.1)](https://travis-ci.org/rollbar/rollbar-gem/branches)
2
2
 
3
3
  <!-- RemoveNext -->
4
4
  [Rollbar](https://rollbar.com) is an error tracking 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.
@@ -12,7 +12,7 @@ This is the Ruby library for Rollbar. It will instrument many kinds of Ruby appl
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'rollbar', '~> 2.5.0'
15
+ gem 'rollbar', '~> 2.5.1'
16
16
  ```
17
17
 
18
18
  If you are not using JRuby we suggest using [Oj](https://github.com/ohler55/oj) for JSON serialization. In order to install Oj you can add this line to your Gemfile:
@@ -59,7 +59,7 @@ module Rollbar
59
59
  #
60
60
  # In this method we just get the last module name.
61
61
  def multi_json_adapter_module_name
62
- MultiJson.current_adapter.name[/^MultiJson::Adapters::(.*)$/, 1]
62
+ detect_multi_json_adapter.name[/^MultiJson::Adapters::(.*)$/, 1]
63
63
  end
64
64
  end
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
3
3
  end
@@ -75,10 +75,6 @@ describe Rollbar::JSON do
75
75
  end
76
76
  end
77
77
 
78
- describe '.detect_multi_json_adapter' do
79
-
80
- end
81
-
82
78
  describe '.adapter_options' do
83
79
  it 'calls .options in adapter module' do
84
80
  expect(described_class.options_module).to receive(:options)
@@ -88,25 +84,26 @@ describe Rollbar::JSON do
88
84
  end
89
85
 
90
86
  describe '.options_module' do
91
- before { described_class.options_module = nil }
87
+ before do
88
+ described_class.options_module = nil
89
+ allow(MultiJson).to receive(:current_adapter).and_return(multi_json_module)
90
+ end
92
91
 
93
92
  context 'with a defined rollbar adapter' do
93
+ let(:multi_json_module) { MultiJson::Adapters::MockAdapter }
94
94
  let(:expected_adapter) { Rollbar::JSON::MockAdapter }
95
95
 
96
96
  it 'returns the correct options' do
97
- MultiJson.with_adapter(MultiJson::Adapters::MockAdapter) do
98
- expect(described_class.options_module).to be(expected_adapter)
99
- end
97
+ expect(described_class.options_module).to be(expected_adapter)
100
98
  end
101
99
  end
102
100
 
103
101
  context 'without a defined rollbar adapter' do
102
+ let(:multi_json_module) { MultiJson::Adapters::MissingCustomOptions }
104
103
  let(:expected_adapter) { Rollbar::JSON::Default }
105
104
 
106
105
  it 'returns the correct options' do
107
- MultiJson.with_adapter(MultiJson::Adapters::MissingCustomOptions) do
108
- expect(described_class.options_module).to be(expected_adapter)
109
- end
106
+ expect(described_class.options_module).to be(expected_adapter)
110
107
  end
111
108
  end
112
109
  end
metadata CHANGED
@@ -1,217 +1,221 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
6
- segments:
7
- - 2
8
- - 5
9
- - 0
10
- version: 2.5.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.5.1
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Rollbar, Inc.
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2015-10-24 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
27
17
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 3
32
- - 0
33
- - 0
18
+ - !ruby/object:Gem::Version
34
19
  version: 3.0.0
35
20
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rspec-rails
39
21
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
43
24
  - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 55
46
- segments:
47
- - 2
48
- - 14
49
- - 0
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
50
33
  version: 2.14.0
51
34
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: database_cleaner
55
35
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 23
62
- segments:
63
- - 1
64
- - 0
65
- - 0
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: database_cleaner
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
66
47
  version: 1.0.0
67
48
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.0
55
+ - !ruby/object:Gem::Dependency
70
56
  name: girl_friday
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.11.1
62
+ type: :development
71
63
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
75
66
  - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 49
78
- segments:
79
- - 0
80
- - 11
81
- - 1
67
+ - !ruby/object:Gem::Version
82
68
  version: 0.11.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: sucker_punch
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 1.0.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: sidekiq
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 2.13.0
83
90
  type: :development
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: genspec
87
91
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
91
94
  - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 7
94
- segments:
95
- - 0
96
- - 2
97
- - 8
95
+ - !ruby/object:Gem::Version
96
+ version: 2.13.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: genspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
98
103
  version: 0.2.8
99
104
  type: :development
100
- version_requirements: *id005
101
- - !ruby/object:Gem::Dependency
102
- name: sinatra
103
105
  prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
107
108
  - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 3
110
- segments:
111
- - 0
112
- version: "0"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.2.8
111
+ - !ruby/object:Gem::Dependency
112
+ name: sinatra
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
113
118
  type: :development
114
- version_requirements: *id006
115
- - !ruby/object:Gem::Dependency
116
- name: resque
117
119
  prerelease: false
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: resque
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
121
129
  - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
- version: "0"
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
127
132
  type: :development
128
- version_requirements: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: delayed_job
131
133
  prerelease: false
132
- requirement: &id008 !ruby/object:Gem::Requirement
133
- none: false
134
- requirements:
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: delayed_job
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
135
143
  - - ">="
136
- - !ruby/object:Gem::Version
137
- hash: 3
138
- segments:
139
- - 0
140
- version: "0"
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
141
146
  type: :development
142
- version_requirements: *id008
143
- - !ruby/object:Gem::Dependency
144
- name: rake
145
147
  prerelease: false
146
- requirement: &id009 !ruby/object:Gem::Requirement
147
- none: false
148
- requirements:
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
149
157
  - - ">="
150
- - !ruby/object:Gem::Version
151
- hash: 59
152
- segments:
153
- - 0
154
- - 9
155
- - 0
158
+ - !ruby/object:Gem::Version
156
159
  version: 0.9.0
157
160
  type: :development
158
- version_requirements: *id009
159
- - !ruby/object:Gem::Dependency
160
- name: redis
161
161
  prerelease: false
162
- requirement: &id010 !ruby/object:Gem::Requirement
163
- none: false
164
- requirements:
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 0.9.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: redis
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
165
171
  - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
171
174
  type: :development
172
- version_requirements: *id010
173
- - !ruby/object:Gem::Dependency
174
- name: multi_json
175
175
  prerelease: false
176
- requirement: &id011 !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: multi_json
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
179
185
  - - ">="
180
- - !ruby/object:Gem::Version
181
- hash: 3
182
- segments:
183
- - 0
184
- version: "0"
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
185
188
  type: :runtime
186
- version_requirements: *id011
187
- - !ruby/object:Gem::Dependency
188
- name: oj
189
189
  prerelease: false
190
- requirement: &id012 !ruby/object:Gem::Requirement
191
- none: false
192
- requirements:
193
- - - ~>
194
- - !ruby/object:Gem::Version
195
- hash: 35
196
- segments:
197
- - 2
198
- - 12
199
- - 14
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: oj
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
200
201
  version: 2.12.14
201
202
  type: :development
202
- version_requirements: *id012
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 2.12.14
203
209
  description: Easy and powerful exception tracking for Ruby
204
- email:
210
+ email:
205
211
  - support@rollbar.com
206
- executables:
212
+ executables:
207
213
  - rollbar-rails-runner
208
214
  extensions: []
209
-
210
215
  extra_rdoc_files: []
211
-
212
- files:
213
- - .gitignore
214
- - .travis.yml
216
+ files:
217
+ - ".gitignore"
218
+ - ".travis.yml"
215
219
  - Appraisals
216
220
  - CHANGELOG.md
217
221
  - Gemfile
@@ -376,41 +380,31 @@ files:
376
380
  - spec/support/helpers.rb
377
381
  - spec/support/notifier_helpers.rb
378
382
  - spec/support/shared_contexts.rb
379
- has_rdoc: true
380
383
  homepage: https://rollbar.com
381
- licenses:
384
+ licenses:
382
385
  - MIT
386
+ metadata: {}
383
387
  post_install_message:
384
388
  rdoc_options: []
385
-
386
- require_paths:
389
+ require_paths:
387
390
  - lib
388
- required_ruby_version: !ruby/object:Gem::Requirement
389
- none: false
390
- requirements:
391
+ required_ruby_version: !ruby/object:Gem::Requirement
392
+ requirements:
391
393
  - - ">="
392
- - !ruby/object:Gem::Version
393
- hash: 3
394
- segments:
395
- - 0
396
- version: "0"
397
- required_rubygems_version: !ruby/object:Gem::Requirement
398
- none: false
399
- requirements:
394
+ - !ruby/object:Gem::Version
395
+ version: '0'
396
+ required_rubygems_version: !ruby/object:Gem::Requirement
397
+ requirements:
400
398
  - - ">="
401
- - !ruby/object:Gem::Version
402
- hash: 3
403
- segments:
404
- - 0
405
- version: "0"
399
+ - !ruby/object:Gem::Version
400
+ version: '0'
406
401
  requirements: []
407
-
408
402
  rubyforge_project:
409
- rubygems_version: 1.6.2
403
+ rubygems_version: 2.4.5
410
404
  signing_key:
411
- specification_version: 3
405
+ specification_version: 4
412
406
  summary: Reports exceptions to Rollbar
413
- test_files:
407
+ test_files:
414
408
  - spec/cacert.pem
415
409
  - spec/controllers/home_controller_spec.rb
416
410
  - spec/delay/sidekiq_spec.rb