rollbar 2.16.2 → 2.22.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +47 -0
  3. data/.travis.yml +182 -94
  4. data/Appraisals +10 -10
  5. data/Gemfile +45 -13
  6. data/README.md +20 -3
  7. data/Rakefile +0 -0
  8. data/data/rollbar.snippet.js +1 -1
  9. data/docs/configuration.md +15 -0
  10. data/gemfiles/rails30.gemfile +21 -14
  11. data/gemfiles/rails31.gemfile +21 -12
  12. data/gemfiles/rails32.gemfile +18 -8
  13. data/gemfiles/rails40.gemfile +18 -6
  14. data/gemfiles/rails41.gemfile +17 -6
  15. data/gemfiles/rails42.gemfile +24 -14
  16. data/gemfiles/rails50.gemfile +20 -11
  17. data/gemfiles/rails51.gemfile +20 -10
  18. data/gemfiles/rails52.gemfile +65 -0
  19. data/gemfiles/rails60.gemfile +67 -0
  20. data/lib/generators/rollbar/rollbar_generator.rb +1 -1
  21. data/lib/rails/rollbar_runner.rb +17 -2
  22. data/lib/rollbar.rb +2 -3
  23. data/lib/rollbar/capistrano.rb +71 -39
  24. data/lib/rollbar/capistrano3.rb +56 -1
  25. data/lib/rollbar/capistrano_tasks.rb +130 -0
  26. data/lib/rollbar/configuration.rb +95 -7
  27. data/lib/rollbar/delay/active_job.rb +17 -0
  28. data/lib/rollbar/delay/girl_friday.rb +2 -2
  29. data/lib/rollbar/delay/resque.rb +4 -6
  30. data/lib/rollbar/delay/shoryuken.rb +15 -9
  31. data/lib/rollbar/delay/sidekiq.rb +6 -8
  32. data/lib/rollbar/delay/sucker_punch.rb +17 -19
  33. data/lib/rollbar/delay/thread.rb +3 -3
  34. data/lib/rollbar/deploy.rb +90 -0
  35. data/lib/rollbar/encoding/encoder.rb +9 -9
  36. data/lib/rollbar/exception_reporter.rb +19 -5
  37. data/lib/rollbar/item.rb +62 -20
  38. data/lib/rollbar/item/backtrace.rb +4 -4
  39. data/lib/rollbar/item/frame.rb +7 -1
  40. data/lib/rollbar/item/locals.rb +56 -0
  41. data/lib/rollbar/json.rb +5 -51
  42. data/lib/rollbar/language_support.rb +4 -20
  43. data/lib/rollbar/lazy_store.rb +5 -5
  44. data/lib/rollbar/logger.rb +1 -0
  45. data/lib/rollbar/logger_proxy.rb +15 -2
  46. data/lib/rollbar/middleware/js.rb +110 -10
  47. data/lib/rollbar/middleware/js/json_value.rb +26 -0
  48. data/lib/rollbar/middleware/rack.rb +4 -1
  49. data/lib/rollbar/middleware/rails/rollbar.rb +10 -1
  50. data/lib/rollbar/notifier.rb +118 -49
  51. data/lib/rollbar/notifier/trace_with_bindings.rb +65 -0
  52. data/lib/rollbar/plugin.rb +54 -6
  53. data/lib/rollbar/plugins.rb +7 -1
  54. data/lib/rollbar/plugins/active_job.rb +5 -1
  55. data/lib/rollbar/plugins/basic_socket.rb +21 -6
  56. data/lib/rollbar/plugins/delayed_job/job_data.rb +3 -3
  57. data/lib/rollbar/plugins/delayed_job/plugin.rb +3 -3
  58. data/lib/rollbar/plugins/goalie.rb +11 -3
  59. data/lib/rollbar/plugins/rails/controller_methods.rb +17 -4
  60. data/lib/rollbar/plugins/rails/railtie_mixin.rb +7 -3
  61. data/lib/rollbar/plugins/rake.rb +2 -2
  62. data/lib/rollbar/plugins/sidekiq/plugin.rb +10 -6
  63. data/lib/rollbar/rake_tasks.rb +3 -86
  64. data/lib/rollbar/request_data_extractor.rb +35 -21
  65. data/lib/rollbar/rollbar_test.rb +147 -0
  66. data/lib/rollbar/scrubbers.rb +7 -3
  67. data/lib/rollbar/scrubbers/params.rb +38 -20
  68. data/lib/rollbar/scrubbers/url.rb +27 -13
  69. data/lib/rollbar/truncation.rb +9 -2
  70. data/lib/rollbar/truncation/min_body_strategy.rb +2 -3
  71. data/lib/rollbar/truncation/remove_any_key_strategy.rb +123 -0
  72. data/lib/rollbar/truncation/remove_extra_strategy.rb +35 -0
  73. data/lib/rollbar/truncation/remove_request_strategy.rb +21 -0
  74. data/lib/rollbar/truncation/strings_strategy.rb +3 -4
  75. data/lib/rollbar/util.rb +75 -45
  76. data/lib/rollbar/util/hash.rb +30 -6
  77. data/lib/rollbar/util/ip_anonymizer.rb +8 -7
  78. data/lib/rollbar/util/ip_obfuscator.rb +1 -1
  79. data/lib/rollbar/version.rb +1 -1
  80. data/lib/tasks/benchmark.rake +103 -0
  81. data/rollbar.gemspec +14 -8
  82. metadata +25 -277
  83. data/gemfiles/ruby_1_8_and_1_9_2.gemfile +0 -49
  84. data/lib/rollbar/json/default.rb +0 -11
  85. data/lib/rollbar/json/oj.rb +0 -16
  86. data/lib/rollbar/tasks/rollbar.cap +0 -47
  87. data/spec/cacert.pem +0 -3988
  88. data/spec/controllers/home_controller_spec.rb +0 -480
  89. data/spec/delay/sidekiq_spec.rb +0 -61
  90. data/spec/delay/sucker_punch_spec.rb +0 -25
  91. data/spec/delayed/backend/test.rb +0 -140
  92. data/spec/delayed/serialization/test.rb +0 -0
  93. data/spec/dummyapp/.gitignore +0 -73
  94. data/spec/dummyapp/Rakefile +0 -7
  95. data/spec/dummyapp/app/assets/javascripts/application.js +0 -3
  96. data/spec/dummyapp/app/assets/stylesheets/application.css.scss +0 -37
  97. data/spec/dummyapp/app/controllers/application_controller.rb +0 -3
  98. data/spec/dummyapp/app/controllers/home_controller.rb +0 -60
  99. data/spec/dummyapp/app/controllers/users_controller.rb +0 -17
  100. data/spec/dummyapp/app/helpers/.gitkeep +0 -0
  101. data/spec/dummyapp/app/mailers/.gitkeep +0 -0
  102. data/spec/dummyapp/app/models/.gitkeep +0 -0
  103. data/spec/dummyapp/app/models/book.rb +0 -5
  104. data/spec/dummyapp/app/models/post.rb +0 -9
  105. data/spec/dummyapp/app/models/user.rb +0 -9
  106. data/spec/dummyapp/app/views/devise/registrations/edit.html.erb +0 -27
  107. data/spec/dummyapp/app/views/devise/registrations/new.html.erb +0 -20
  108. data/spec/dummyapp/app/views/devise/shared/_links.html.erb +0 -25
  109. data/spec/dummyapp/app/views/home/cause_exception.html.erb +0 -1
  110. data/spec/dummyapp/app/views/home/index.html.erb +0 -4
  111. data/spec/dummyapp/app/views/home/report_exception.html.erb +0 -1
  112. data/spec/dummyapp/app/views/js/test.html.erb +0 -1
  113. data/spec/dummyapp/app/views/layouts/_messages.html.erb +0 -5
  114. data/spec/dummyapp/app/views/layouts/_navigation.html.erb +0 -21
  115. data/spec/dummyapp/app/views/layouts/application.html.erb +0 -25
  116. data/spec/dummyapp/app/views/layouts/simple.html.erb +0 -18
  117. data/spec/dummyapp/app/views/users/index.html.erb +0 -8
  118. data/spec/dummyapp/app/views/users/show.html.erb +0 -3
  119. data/spec/dummyapp/config.ru +0 -4
  120. data/spec/dummyapp/config/application.rb +0 -59
  121. data/spec/dummyapp/config/boot.rb +0 -10
  122. data/spec/dummyapp/config/database.yml +0 -25
  123. data/spec/dummyapp/config/environment.rb +0 -5
  124. data/spec/dummyapp/config/environments/development.rb +0 -37
  125. data/spec/dummyapp/config/environments/production.rb +0 -67
  126. data/spec/dummyapp/config/environments/test.rb +0 -37
  127. data/spec/dummyapp/config/initializers/backtrace_silencers.rb +0 -7
  128. data/spec/dummyapp/config/initializers/inflections.rb +0 -15
  129. data/spec/dummyapp/config/initializers/mime_types.rb +0 -5
  130. data/spec/dummyapp/config/initializers/rollbar.rb +0 -26
  131. data/spec/dummyapp/config/initializers/secret_token.rb +0 -7
  132. data/spec/dummyapp/config/initializers/session_store.rb +0 -8
  133. data/spec/dummyapp/config/initializers/wrap_parameters.rb +0 -16
  134. data/spec/dummyapp/config/locales/devise.en.yml +0 -58
  135. data/spec/dummyapp/config/locales/en.yml +0 -5
  136. data/spec/dummyapp/config/routes.rb +0 -17
  137. data/spec/dummyapp/config/secrets.yml +0 -2
  138. data/spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb +0 -46
  139. data/spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb +0 -5
  140. data/spec/dummyapp/db/migrate/20161219184410_create_books.rb +0 -10
  141. data/spec/dummyapp/db/migrate/20161219185529_add_username_to_users.rb +0 -5
  142. data/spec/dummyapp/db/schema.rb +0 -41
  143. data/spec/dummyapp/db/seeds.rb +0 -12
  144. data/spec/dummyapp/lib/assets/.gitkeep +0 -0
  145. data/spec/dummyapp/public/404.html +0 -26
  146. data/spec/dummyapp/public/422.html +0 -26
  147. data/spec/dummyapp/public/500.html +0 -25
  148. data/spec/dummyapp/public/favicon.ico +0 -0
  149. data/spec/dummyapp/script/rails +0 -6
  150. data/spec/fixtures/file1 +0 -1
  151. data/spec/fixtures/file2 +0 -1
  152. data/spec/fixtures/payloads/message.json +0 -25
  153. data/spec/fixtures/payloads/sample.trace.json +0 -275
  154. data/spec/fixtures/payloads/sample.trace_chain.json +0 -530
  155. data/spec/fixtures/plugins/dummy1.rb +0 -5
  156. data/spec/fixtures/plugins/dummy2.rb +0 -5
  157. data/spec/generators/rollbar/rollbar_generator_rails30_spec.rb +0 -31
  158. data/spec/generators/rollbar/rollbar_generator_spec.rb +0 -51
  159. data/spec/requests/home_spec.rb +0 -49
  160. data/spec/rollbar/configuration_spec.rb +0 -46
  161. data/spec/rollbar/delay/delayed_job_spec.rb +0 -22
  162. data/spec/rollbar/delay/girl_friday_spec.rb +0 -41
  163. data/spec/rollbar/delay/resque_spec.rb +0 -37
  164. data/spec/rollbar/delay/thread_spec.rb +0 -27
  165. data/spec/rollbar/encoding/encoder_spec.rb +0 -63
  166. data/spec/rollbar/item/backtrace_spec.rb +0 -26
  167. data/spec/rollbar/item/frame_spec.rb +0 -267
  168. data/spec/rollbar/item_spec.rb +0 -736
  169. data/spec/rollbar/json/oj_spec.rb +0 -18
  170. data/spec/rollbar/json_spec.rb +0 -110
  171. data/spec/rollbar/lazy_store_spec.rb +0 -99
  172. data/spec/rollbar/logger_proxy_spec.rb +0 -50
  173. data/spec/rollbar/logger_spec.rb +0 -124
  174. data/spec/rollbar/middleware/js_spec.rb +0 -421
  175. data/spec/rollbar/middleware/sinatra_spec.rb +0 -197
  176. data/spec/rollbar/notifier_spec.rb +0 -56
  177. data/spec/rollbar/plugin_spec.rb +0 -209
  178. data/spec/rollbar/plugins/active_job_spec.rb +0 -38
  179. data/spec/rollbar/plugins/delayed_job/job_data_spec.rb +0 -48
  180. data/spec/rollbar/plugins/delayed_job_spec.rb +0 -129
  181. data/spec/rollbar/plugins/rack_spec.rb +0 -152
  182. data/spec/rollbar/plugins/rails_js_spec.rb +0 -19
  183. data/spec/rollbar/plugins/rake_spec.rb +0 -34
  184. data/spec/rollbar/plugins/resque/failure_spec.rb +0 -36
  185. data/spec/rollbar/plugins/sidekiq_spec.rb +0 -171
  186. data/spec/rollbar/plugins/validations_spec.rb +0 -56
  187. data/spec/rollbar/plugins_spec.rb +0 -68
  188. data/spec/rollbar/request_data_extractor_spec.rb +0 -270
  189. data/spec/rollbar/scrubbers/params_spec.rb +0 -314
  190. data/spec/rollbar/scrubbers/url_spec.rb +0 -136
  191. data/spec/rollbar/scrubbers_spec.rb +0 -31
  192. data/spec/rollbar/sidekig/clear_scope_spec.rb +0 -19
  193. data/spec/rollbar/truncation/frames_strategy_spec.rb +0 -70
  194. data/spec/rollbar/truncation/min_body_strategy_spec.rb +0 -57
  195. data/spec/rollbar/truncation/strings_strategy_spec.rb +0 -89
  196. data/spec/rollbar/truncation_spec.rb +0 -27
  197. data/spec/rollbar/util/hash_spec.rb +0 -22
  198. data/spec/rollbar/util/ip_anonymizer_spec.rb +0 -30
  199. data/spec/rollbar/util_spec.rb +0 -80
  200. data/spec/rollbar_bc_spec.rb +0 -380
  201. data/spec/rollbar_spec.rb +0 -1667
  202. data/spec/spec_helper.rb +0 -84
  203. data/spec/support/cause_exception.rb +0 -1
  204. data/spec/support/encoding_helpers.rb +0 -8
  205. data/spec/support/encodings/iso_8859_9 +0 -1
  206. data/spec/support/fixture_helpers.rb +0 -10
  207. data/spec/support/get_ip_raising.rb +0 -7
  208. data/spec/support/helpers.rb +0 -5
  209. data/spec/support/matchers.rb +0 -23
  210. data/spec/support/notifier_helpers.rb +0 -57
  211. data/spec/support/rollbar_api.rb +0 -57
  212. data/spec/support/shared_contexts.rb +0 -12
@@ -5,26 +5,27 @@ module Rollbar
5
5
 
6
6
  def self.anonymize_ip(ip_string)
7
7
  return ip_string unless Rollbar.configuration.anonymize_user_ip
8
+
8
9
  ip = IPAddr.new(ip_string)
9
10
  return anonymize_ipv6 ip if ip.ipv6?
10
11
  return anonymize_ipv4 ip if ip.ipv4?
11
- rescue
12
+ rescue StandardError
12
13
  nil
13
14
  end
14
-
15
+
15
16
  def self.anonymize_ipv4(ip)
16
17
  ip_parts = ip.to_s.split '.'
17
-
18
+
18
19
  ip_parts[ip_parts.count - 1] = '0'
19
-
20
+
20
21
  IPAddr.new(ip_parts.join('.')).to_s
21
22
  end
22
-
23
+
23
24
  def self.anonymize_ipv6(ip)
24
25
  ip_parts = ip.to_s.split ':'
25
-
26
+
26
27
  ip_string = ip_parts[0..2].join(':') + ':0000:0000:0000:0000:0000'
27
-
28
+
28
29
  IPAddr.new(ip_string).to_s
29
30
  end
30
31
  end
@@ -13,7 +13,7 @@ module Rollbar
13
13
  obfuscated_ip_int32 = ip_int32 ^ secret_int32 % (2 << 31)
14
14
 
15
15
  IPAddr.new(obfuscated_ip_int32, Socket::AF_INET).to_s
16
- rescue
16
+ rescue StandardError
17
17
  nil
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = '2.16.2'
2
+ VERSION = '2.22.1'.freeze
3
3
  end
@@ -0,0 +1,103 @@
1
+ require 'benchmark'
2
+
3
+ namespace :benchmark do
4
+ desc 'Measure TracePoint perf for current Ruby'
5
+ task :trace_point do
6
+ ARGV.each { |a| task(a.to_sym { ; }) } # Keep rake from treating these ask task names.
7
+
8
+ options = {}.tap do |hash|
9
+ ARGV.each { |arg| hash[arg] = true }
10
+ end
11
+
12
+ puts "options: #{options}"
13
+
14
+ trace_with_bindings = BenchmarkTraceWithBindings.new(options)
15
+
16
+ trace_with_bindings.enable
17
+ puts(Benchmark.measure do
18
+ TraceTest.benchmark_with_locals
19
+ end)
20
+ trace_with_bindings.disable
21
+
22
+ puts "counts: #{trace_with_bindings.counts}" if options['counts']
23
+ end
24
+ end
25
+
26
+ class TraceTest # :nodoc:
27
+ class << self
28
+ def benchmark_with_locals
29
+ foo = false
30
+
31
+ (0..20_000).each do |index|
32
+ foo = TraceTest
33
+
34
+ change_frame_with_locals(foo, index)
35
+ end
36
+ end
37
+
38
+ def change_frame_with_locals(foo, _index)
39
+ foo.tap do |obj|
40
+ bar = 'bar'
41
+ hash = { :foo => obj, :bar => bar } # rubocop:disable Lint/UselessAssignment
42
+ end
43
+ end
44
+ end
45
+ end
46
+
47
+ class BenchmarkTraceWithBindings # :nodoc:
48
+ attr_reader :frames, :exception_frames, :options, :counts
49
+
50
+ def initialize(options = {})
51
+ @options = options
52
+ @frames = []
53
+ @exception_frames = []
54
+ @exception_signature = nil
55
+ @counts = init_counts({})
56
+ end
57
+
58
+ def init_counts(counts)
59
+ [:call, :b_call, :c_call, :class].each do |event|
60
+ counts[event] = 0
61
+ end
62
+ counts
63
+ end
64
+
65
+ def enable
66
+ return if options['disable']
67
+
68
+ trace_point.enable if defined?(TracePoint)
69
+ end
70
+
71
+ def disable
72
+ return if options['disable']
73
+
74
+ trace_point.disable if defined?(TracePoint)
75
+ end
76
+
77
+ def trace_point # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
78
+ return unless defined?(TracePoint)
79
+
80
+ @trace_point ||= TracePoint.new(:call, :return, :b_call, :b_return, :c_call, :c_return, :raise) do |tp|
81
+ next if options['hook_only']
82
+
83
+ case tp.event
84
+ when :call, :b_call, :c_call, :class
85
+ @counts[tp.event] += 1 if options['counts']
86
+ frame = options['frame'] ? frame(tp) : {}
87
+ frames.push frame if options['stack']
88
+ when :return, :b_return, :c_return, :end
89
+ frames.pop if options['stack']
90
+ end
91
+ end
92
+ end
93
+
94
+ def frame(trace)
95
+ {
96
+ :binding => trace.binding,
97
+ :defined_class => trace.defined_class,
98
+ :method_id => trace.method_id,
99
+ :path => trace.path,
100
+ :lineno => trace.lineno
101
+ }
102
+ end
103
+ end
data/rollbar.gemspec CHANGED
@@ -1,22 +1,28 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
2
3
  require File.expand_path('../lib/rollbar/version', __FILE__)
3
4
 
4
5
  Gem::Specification.new do |gem|
5
- is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
6
+ _is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby')
6
7
 
7
8
  gem.authors = ['Rollbar, Inc.']
8
9
  gem.email = ['support@rollbar.com']
9
- gem.description = %q{Easy and powerful exception tracking for Ruby}
10
+ gem.description = 'Easy and powerful exception tracking for Ruby'
10
11
  gem.executables = ['rollbar-rails-runner']
11
- gem.summary = %q{Reports exceptions to Rollbar}
12
+ gem.summary = 'Reports exceptions to Rollbar'
12
13
  gem.homepage = 'https://rollbar.com'
13
14
  gem.license = 'MIT'
14
-
15
- gem.files = `git ls-files`.split($\)
16
- gem.test_files = gem.files.grep(%r{^(spec)/})
15
+ gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
16
  gem.name = 'rollbar'
18
17
  gem.require_paths = ['lib']
19
- gem.version = Rollbar::VERSION
18
+ gem.required_ruby_version = '>= 1.9.3'
19
+ gem.version = Rollbar::VERSION
20
20
 
21
- gem.add_runtime_dependency 'multi_json'
21
+ if gem.respond_to?(:metadata)
22
+ gem.metadata['changelog_uri'] = 'https://github.com/rollbar/rollbar-gem/releases'
23
+ gem.metadata['source_code_uri'] = 'https://github.com/rollbar/rollbar-gem'
24
+ gem.metadata['bug_tracker_uri'] = 'https://github.com/rollbar/rollbar-gem/issues'
25
+ gem.metadata['homepage_uri'] = 'https://rollbar.com/'
26
+ gem.metadata['documentation_uri'] = 'https://docs.rollbar.com/docs/ruby'
27
+ end
22
28
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.2
4
+ version: 2.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rollbar, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: multi_json
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
+ dependencies: []
27
13
  description: Easy and powerful exception tracking for Ruby
28
14
  email:
29
15
  - support@rollbar.com
@@ -58,14 +44,17 @@ files:
58
44
  - gemfiles/rails42.gemfile
59
45
  - gemfiles/rails50.gemfile
60
46
  - gemfiles/rails51.gemfile
61
- - gemfiles/ruby_1_8_and_1_9_2.gemfile
47
+ - gemfiles/rails52.gemfile
48
+ - gemfiles/rails60.gemfile
62
49
  - lib/generators/rollbar/rollbar_generator.rb
63
50
  - lib/generators/rollbar/templates/initializer.rb
64
51
  - lib/rails/rollbar_runner.rb
65
52
  - lib/rollbar.rb
66
53
  - lib/rollbar/capistrano.rb
67
54
  - lib/rollbar/capistrano3.rb
55
+ - lib/rollbar/capistrano_tasks.rb
68
56
  - lib/rollbar/configuration.rb
57
+ - lib/rollbar/delay/active_job.rb
69
58
  - lib/rollbar/delay/delayed_job.rb
70
59
  - lib/rollbar/delay/girl_friday.rb
71
60
  - lib/rollbar/delay/resque.rb
@@ -73,6 +62,7 @@ files:
73
62
  - lib/rollbar/delay/sidekiq.rb
74
63
  - lib/rollbar/delay/sucker_punch.rb
75
64
  - lib/rollbar/delay/thread.rb
65
+ - lib/rollbar/deploy.rb
76
66
  - lib/rollbar/encoding.rb
77
67
  - lib/rollbar/encoding/encoder.rb
78
68
  - lib/rollbar/encoding/legacy_encoder.rb
@@ -81,15 +71,15 @@ files:
81
71
  - lib/rollbar/item.rb
82
72
  - lib/rollbar/item/backtrace.rb
83
73
  - lib/rollbar/item/frame.rb
74
+ - lib/rollbar/item/locals.rb
84
75
  - lib/rollbar/js.rb
85
76
  - lib/rollbar/json.rb
86
- - lib/rollbar/json/default.rb
87
- - lib/rollbar/json/oj.rb
88
77
  - lib/rollbar/language_support.rb
89
78
  - lib/rollbar/lazy_store.rb
90
79
  - lib/rollbar/logger.rb
91
80
  - lib/rollbar/logger_proxy.rb
92
81
  - lib/rollbar/middleware/js.rb
82
+ - lib/rollbar/middleware/js/json_value.rb
93
83
  - lib/rollbar/middleware/rack.rb
94
84
  - lib/rollbar/middleware/rack/builder.rb
95
85
  - lib/rollbar/middleware/rack/test_session.rb
@@ -97,6 +87,7 @@ files:
97
87
  - lib/rollbar/middleware/rails/show_exceptions.rb
98
88
  - lib/rollbar/middleware/sinatra.rb
99
89
  - lib/rollbar/notifier.rb
90
+ - lib/rollbar/notifier/trace_with_bindings.rb
100
91
  - lib/rollbar/plugin.rb
101
92
  - lib/rollbar/plugins.rb
102
93
  - lib/rollbar/plugins/active_job.rb
@@ -121,153 +112,36 @@ files:
121
112
  - lib/rollbar/rails.rb
122
113
  - lib/rollbar/rake_tasks.rb
123
114
  - lib/rollbar/request_data_extractor.rb
115
+ - lib/rollbar/rollbar_test.rb
124
116
  - lib/rollbar/scrubbers.rb
125
117
  - lib/rollbar/scrubbers/params.rb
126
118
  - lib/rollbar/scrubbers/url.rb
127
- - lib/rollbar/tasks/rollbar.cap
128
119
  - lib/rollbar/truncation.rb
129
120
  - lib/rollbar/truncation/frames_strategy.rb
130
121
  - lib/rollbar/truncation/min_body_strategy.rb
131
122
  - lib/rollbar/truncation/mixin.rb
132
123
  - lib/rollbar/truncation/raw_strategy.rb
124
+ - lib/rollbar/truncation/remove_any_key_strategy.rb
125
+ - lib/rollbar/truncation/remove_extra_strategy.rb
126
+ - lib/rollbar/truncation/remove_request_strategy.rb
133
127
  - lib/rollbar/truncation/strings_strategy.rb
134
128
  - lib/rollbar/util.rb
135
129
  - lib/rollbar/util/hash.rb
136
130
  - lib/rollbar/util/ip_anonymizer.rb
137
131
  - lib/rollbar/util/ip_obfuscator.rb
138
132
  - lib/rollbar/version.rb
133
+ - lib/tasks/benchmark.rake
139
134
  - lib/tasks/tasks.rake
140
135
  - rollbar.gemspec
141
- - spec/cacert.pem
142
- - spec/controllers/home_controller_spec.rb
143
- - spec/delay/sidekiq_spec.rb
144
- - spec/delay/sucker_punch_spec.rb
145
- - spec/delayed/backend/test.rb
146
- - spec/delayed/serialization/test.rb
147
- - spec/dummyapp/.gitignore
148
- - spec/dummyapp/Rakefile
149
- - spec/dummyapp/app/assets/javascripts/application.js
150
- - spec/dummyapp/app/assets/stylesheets/application.css.scss
151
- - spec/dummyapp/app/controllers/application_controller.rb
152
- - spec/dummyapp/app/controllers/home_controller.rb
153
- - spec/dummyapp/app/controllers/users_controller.rb
154
- - spec/dummyapp/app/helpers/.gitkeep
155
- - spec/dummyapp/app/mailers/.gitkeep
156
- - spec/dummyapp/app/models/.gitkeep
157
- - spec/dummyapp/app/models/book.rb
158
- - spec/dummyapp/app/models/post.rb
159
- - spec/dummyapp/app/models/user.rb
160
- - spec/dummyapp/app/views/devise/registrations/edit.html.erb
161
- - spec/dummyapp/app/views/devise/registrations/new.html.erb
162
- - spec/dummyapp/app/views/devise/shared/_links.html.erb
163
- - spec/dummyapp/app/views/home/cause_exception.html.erb
164
- - spec/dummyapp/app/views/home/index.html.erb
165
- - spec/dummyapp/app/views/home/report_exception.html.erb
166
- - spec/dummyapp/app/views/js/test.html.erb
167
- - spec/dummyapp/app/views/layouts/_messages.html.erb
168
- - spec/dummyapp/app/views/layouts/_navigation.html.erb
169
- - spec/dummyapp/app/views/layouts/application.html.erb
170
- - spec/dummyapp/app/views/layouts/simple.html.erb
171
- - spec/dummyapp/app/views/users/index.html.erb
172
- - spec/dummyapp/app/views/users/show.html.erb
173
- - spec/dummyapp/config.ru
174
- - spec/dummyapp/config/application.rb
175
- - spec/dummyapp/config/boot.rb
176
- - spec/dummyapp/config/database.yml
177
- - spec/dummyapp/config/environment.rb
178
- - spec/dummyapp/config/environments/development.rb
179
- - spec/dummyapp/config/environments/production.rb
180
- - spec/dummyapp/config/environments/test.rb
181
- - spec/dummyapp/config/initializers/backtrace_silencers.rb
182
- - spec/dummyapp/config/initializers/inflections.rb
183
- - spec/dummyapp/config/initializers/mime_types.rb
184
- - spec/dummyapp/config/initializers/rollbar.rb
185
- - spec/dummyapp/config/initializers/secret_token.rb
186
- - spec/dummyapp/config/initializers/session_store.rb
187
- - spec/dummyapp/config/initializers/wrap_parameters.rb
188
- - spec/dummyapp/config/locales/devise.en.yml
189
- - spec/dummyapp/config/locales/en.yml
190
- - spec/dummyapp/config/routes.rb
191
- - spec/dummyapp/config/secrets.yml
192
- - spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb
193
- - spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb
194
- - spec/dummyapp/db/migrate/20161219184410_create_books.rb
195
- - spec/dummyapp/db/migrate/20161219185529_add_username_to_users.rb
196
- - spec/dummyapp/db/schema.rb
197
- - spec/dummyapp/db/seeds.rb
198
- - spec/dummyapp/lib/assets/.gitkeep
199
- - spec/dummyapp/public/404.html
200
- - spec/dummyapp/public/422.html
201
- - spec/dummyapp/public/500.html
202
- - spec/dummyapp/public/favicon.ico
203
- - spec/dummyapp/script/rails
204
- - spec/fixtures/file1
205
- - spec/fixtures/file2
206
- - spec/fixtures/payloads/message.json
207
- - spec/fixtures/payloads/sample.trace.json
208
- - spec/fixtures/payloads/sample.trace_chain.json
209
- - spec/fixtures/plugins/dummy1.rb
210
- - spec/fixtures/plugins/dummy2.rb
211
- - spec/generators/rollbar/rollbar_generator_rails30_spec.rb
212
- - spec/generators/rollbar/rollbar_generator_spec.rb
213
- - spec/requests/home_spec.rb
214
- - spec/rollbar/configuration_spec.rb
215
- - spec/rollbar/delay/delayed_job_spec.rb
216
- - spec/rollbar/delay/girl_friday_spec.rb
217
- - spec/rollbar/delay/resque_spec.rb
218
- - spec/rollbar/delay/thread_spec.rb
219
- - spec/rollbar/encoding/encoder_spec.rb
220
- - spec/rollbar/item/backtrace_spec.rb
221
- - spec/rollbar/item/frame_spec.rb
222
- - spec/rollbar/item_spec.rb
223
- - spec/rollbar/json/oj_spec.rb
224
- - spec/rollbar/json_spec.rb
225
- - spec/rollbar/lazy_store_spec.rb
226
- - spec/rollbar/logger_proxy_spec.rb
227
- - spec/rollbar/logger_spec.rb
228
- - spec/rollbar/middleware/js_spec.rb
229
- - spec/rollbar/middleware/sinatra_spec.rb
230
- - spec/rollbar/notifier_spec.rb
231
- - spec/rollbar/plugin_spec.rb
232
- - spec/rollbar/plugins/active_job_spec.rb
233
- - spec/rollbar/plugins/delayed_job/job_data_spec.rb
234
- - spec/rollbar/plugins/delayed_job_spec.rb
235
- - spec/rollbar/plugins/rack_spec.rb
236
- - spec/rollbar/plugins/rails_js_spec.rb
237
- - spec/rollbar/plugins/rake_spec.rb
238
- - spec/rollbar/plugins/resque/failure_spec.rb
239
- - spec/rollbar/plugins/sidekiq_spec.rb
240
- - spec/rollbar/plugins/validations_spec.rb
241
- - spec/rollbar/plugins_spec.rb
242
- - spec/rollbar/request_data_extractor_spec.rb
243
- - spec/rollbar/scrubbers/params_spec.rb
244
- - spec/rollbar/scrubbers/url_spec.rb
245
- - spec/rollbar/scrubbers_spec.rb
246
- - spec/rollbar/sidekig/clear_scope_spec.rb
247
- - spec/rollbar/truncation/frames_strategy_spec.rb
248
- - spec/rollbar/truncation/min_body_strategy_spec.rb
249
- - spec/rollbar/truncation/strings_strategy_spec.rb
250
- - spec/rollbar/truncation_spec.rb
251
- - spec/rollbar/util/hash_spec.rb
252
- - spec/rollbar/util/ip_anonymizer_spec.rb
253
- - spec/rollbar/util_spec.rb
254
- - spec/rollbar_bc_spec.rb
255
- - spec/rollbar_spec.rb
256
- - spec/spec_helper.rb
257
- - spec/support/cause_exception.rb
258
- - spec/support/encoding_helpers.rb
259
- - spec/support/encodings/iso_8859_9
260
- - spec/support/fixture_helpers.rb
261
- - spec/support/get_ip_raising.rb
262
- - spec/support/helpers.rb
263
- - spec/support/matchers.rb
264
- - spec/support/notifier_helpers.rb
265
- - spec/support/rollbar_api.rb
266
- - spec/support/shared_contexts.rb
267
136
  homepage: https://rollbar.com
268
137
  licenses:
269
138
  - MIT
270
- metadata: {}
139
+ metadata:
140
+ changelog_uri: https://github.com/rollbar/rollbar-gem/releases
141
+ source_code_uri: https://github.com/rollbar/rollbar-gem
142
+ bug_tracker_uri: https://github.com/rollbar/rollbar-gem/issues
143
+ homepage_uri: https://rollbar.com/
144
+ documentation_uri: https://docs.rollbar.com/docs/ruby
271
145
  post_install_message:
272
146
  rdoc_options: []
273
147
  require_paths:
@@ -276,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
150
  requirements:
277
151
  - - ">="
278
152
  - !ruby/object:Gem::Version
279
- version: '0'
153
+ version: 1.9.3
280
154
  required_rubygems_version: !ruby/object:Gem::Requirement
281
155
  requirements:
282
156
  - - ">="
@@ -284,134 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
158
  version: '0'
285
159
  requirements: []
286
160
  rubyforge_project:
287
- rubygems_version: 2.6.10
161
+ rubygems_version: 2.7.7
288
162
  signing_key:
289
163
  specification_version: 4
290
164
  summary: Reports exceptions to Rollbar
291
- test_files:
292
- - spec/cacert.pem
293
- - spec/controllers/home_controller_spec.rb
294
- - spec/delay/sidekiq_spec.rb
295
- - spec/delay/sucker_punch_spec.rb
296
- - spec/delayed/backend/test.rb
297
- - spec/delayed/serialization/test.rb
298
- - spec/dummyapp/.gitignore
299
- - spec/dummyapp/Rakefile
300
- - spec/dummyapp/app/assets/javascripts/application.js
301
- - spec/dummyapp/app/assets/stylesheets/application.css.scss
302
- - spec/dummyapp/app/controllers/application_controller.rb
303
- - spec/dummyapp/app/controllers/home_controller.rb
304
- - spec/dummyapp/app/controllers/users_controller.rb
305
- - spec/dummyapp/app/helpers/.gitkeep
306
- - spec/dummyapp/app/mailers/.gitkeep
307
- - spec/dummyapp/app/models/.gitkeep
308
- - spec/dummyapp/app/models/book.rb
309
- - spec/dummyapp/app/models/post.rb
310
- - spec/dummyapp/app/models/user.rb
311
- - spec/dummyapp/app/views/devise/registrations/edit.html.erb
312
- - spec/dummyapp/app/views/devise/registrations/new.html.erb
313
- - spec/dummyapp/app/views/devise/shared/_links.html.erb
314
- - spec/dummyapp/app/views/home/cause_exception.html.erb
315
- - spec/dummyapp/app/views/home/index.html.erb
316
- - spec/dummyapp/app/views/home/report_exception.html.erb
317
- - spec/dummyapp/app/views/js/test.html.erb
318
- - spec/dummyapp/app/views/layouts/_messages.html.erb
319
- - spec/dummyapp/app/views/layouts/_navigation.html.erb
320
- - spec/dummyapp/app/views/layouts/application.html.erb
321
- - spec/dummyapp/app/views/layouts/simple.html.erb
322
- - spec/dummyapp/app/views/users/index.html.erb
323
- - spec/dummyapp/app/views/users/show.html.erb
324
- - spec/dummyapp/config.ru
325
- - spec/dummyapp/config/application.rb
326
- - spec/dummyapp/config/boot.rb
327
- - spec/dummyapp/config/database.yml
328
- - spec/dummyapp/config/environment.rb
329
- - spec/dummyapp/config/environments/development.rb
330
- - spec/dummyapp/config/environments/production.rb
331
- - spec/dummyapp/config/environments/test.rb
332
- - spec/dummyapp/config/initializers/backtrace_silencers.rb
333
- - spec/dummyapp/config/initializers/inflections.rb
334
- - spec/dummyapp/config/initializers/mime_types.rb
335
- - spec/dummyapp/config/initializers/rollbar.rb
336
- - spec/dummyapp/config/initializers/secret_token.rb
337
- - spec/dummyapp/config/initializers/session_store.rb
338
- - spec/dummyapp/config/initializers/wrap_parameters.rb
339
- - spec/dummyapp/config/locales/devise.en.yml
340
- - spec/dummyapp/config/locales/en.yml
341
- - spec/dummyapp/config/routes.rb
342
- - spec/dummyapp/config/secrets.yml
343
- - spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb
344
- - spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb
345
- - spec/dummyapp/db/migrate/20161219184410_create_books.rb
346
- - spec/dummyapp/db/migrate/20161219185529_add_username_to_users.rb
347
- - spec/dummyapp/db/schema.rb
348
- - spec/dummyapp/db/seeds.rb
349
- - spec/dummyapp/lib/assets/.gitkeep
350
- - spec/dummyapp/public/404.html
351
- - spec/dummyapp/public/422.html
352
- - spec/dummyapp/public/500.html
353
- - spec/dummyapp/public/favicon.ico
354
- - spec/dummyapp/script/rails
355
- - spec/fixtures/file1
356
- - spec/fixtures/file2
357
- - spec/fixtures/payloads/message.json
358
- - spec/fixtures/payloads/sample.trace.json
359
- - spec/fixtures/payloads/sample.trace_chain.json
360
- - spec/fixtures/plugins/dummy1.rb
361
- - spec/fixtures/plugins/dummy2.rb
362
- - spec/generators/rollbar/rollbar_generator_rails30_spec.rb
363
- - spec/generators/rollbar/rollbar_generator_spec.rb
364
- - spec/requests/home_spec.rb
365
- - spec/rollbar/configuration_spec.rb
366
- - spec/rollbar/delay/delayed_job_spec.rb
367
- - spec/rollbar/delay/girl_friday_spec.rb
368
- - spec/rollbar/delay/resque_spec.rb
369
- - spec/rollbar/delay/thread_spec.rb
370
- - spec/rollbar/encoding/encoder_spec.rb
371
- - spec/rollbar/item/backtrace_spec.rb
372
- - spec/rollbar/item/frame_spec.rb
373
- - spec/rollbar/item_spec.rb
374
- - spec/rollbar/json/oj_spec.rb
375
- - spec/rollbar/json_spec.rb
376
- - spec/rollbar/lazy_store_spec.rb
377
- - spec/rollbar/logger_proxy_spec.rb
378
- - spec/rollbar/logger_spec.rb
379
- - spec/rollbar/middleware/js_spec.rb
380
- - spec/rollbar/middleware/sinatra_spec.rb
381
- - spec/rollbar/notifier_spec.rb
382
- - spec/rollbar/plugin_spec.rb
383
- - spec/rollbar/plugins/active_job_spec.rb
384
- - spec/rollbar/plugins/delayed_job/job_data_spec.rb
385
- - spec/rollbar/plugins/delayed_job_spec.rb
386
- - spec/rollbar/plugins/rack_spec.rb
387
- - spec/rollbar/plugins/rails_js_spec.rb
388
- - spec/rollbar/plugins/rake_spec.rb
389
- - spec/rollbar/plugins/resque/failure_spec.rb
390
- - spec/rollbar/plugins/sidekiq_spec.rb
391
- - spec/rollbar/plugins/validations_spec.rb
392
- - spec/rollbar/plugins_spec.rb
393
- - spec/rollbar/request_data_extractor_spec.rb
394
- - spec/rollbar/scrubbers/params_spec.rb
395
- - spec/rollbar/scrubbers/url_spec.rb
396
- - spec/rollbar/scrubbers_spec.rb
397
- - spec/rollbar/sidekig/clear_scope_spec.rb
398
- - spec/rollbar/truncation/frames_strategy_spec.rb
399
- - spec/rollbar/truncation/min_body_strategy_spec.rb
400
- - spec/rollbar/truncation/strings_strategy_spec.rb
401
- - spec/rollbar/truncation_spec.rb
402
- - spec/rollbar/util/hash_spec.rb
403
- - spec/rollbar/util/ip_anonymizer_spec.rb
404
- - spec/rollbar/util_spec.rb
405
- - spec/rollbar_bc_spec.rb
406
- - spec/rollbar_spec.rb
407
- - spec/spec_helper.rb
408
- - spec/support/cause_exception.rb
409
- - spec/support/encoding_helpers.rb
410
- - spec/support/encodings/iso_8859_9
411
- - spec/support/fixture_helpers.rb
412
- - spec/support/get_ip_raising.rb
413
- - spec/support/helpers.rb
414
- - spec/support/matchers.rb
415
- - spec/support/notifier_helpers.rb
416
- - spec/support/rollbar_api.rb
417
- - spec/support/shared_contexts.rb
165
+ test_files: []