rollbar 2.18.2 → 2.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +15 -0
  3. data/.travis.yml +155 -93
  4. data/Gemfile +19 -13
  5. data/README.md +12 -0
  6. data/gemfiles/rails30.gemfile +17 -10
  7. data/gemfiles/rails31.gemfile +20 -12
  8. data/gemfiles/rails32.gemfile +16 -7
  9. data/gemfiles/rails40.gemfile +16 -5
  10. data/gemfiles/rails41.gemfile +15 -5
  11. data/gemfiles/rails42.gemfile +25 -14
  12. data/gemfiles/rails50.gemfile +15 -8
  13. data/gemfiles/rails51.gemfile +15 -8
  14. data/gemfiles/rails52.gemfile +62 -0
  15. data/gemfiles/ruby_1_8_and_1_9_2.gemfile +2 -2
  16. data/lib/rails/rollbar_runner.rb +16 -1
  17. data/lib/rollbar/capistrano.rb +71 -39
  18. data/lib/rollbar/capistrano3.rb +53 -1
  19. data/lib/rollbar/capistrano_tasks.rb +131 -0
  20. data/lib/rollbar/configuration.rb +13 -4
  21. data/lib/rollbar/delay/active_job.rb +17 -0
  22. data/lib/rollbar/delay/sidekiq.rb +3 -1
  23. data/lib/rollbar/delay/thread.rb +1 -1
  24. data/lib/rollbar/deploy.rb +69 -0
  25. data/lib/rollbar/item.rb +17 -6
  26. data/lib/rollbar/middleware/js.rb +25 -3
  27. data/lib/rollbar/middleware/js/json_value.rb +26 -0
  28. data/lib/rollbar/notifier.rb +32 -13
  29. data/lib/rollbar/plugins/active_job.rb +3 -0
  30. data/lib/rollbar/plugins/rails/controller_methods.rb +2 -1
  31. data/lib/rollbar/plugins/rails/railtie_mixin.rb +7 -1
  32. data/lib/rollbar/rake_tasks.rb +126 -67
  33. data/lib/rollbar/scrubbers/params.rb +6 -0
  34. data/lib/rollbar/util.rb +75 -45
  35. data/lib/rollbar/util/hash.rb +15 -6
  36. data/lib/rollbar/version.rb +1 -1
  37. data/rollbar.gemspec +2 -3
  38. metadata +9 -261
  39. data/lib/rollbar/tasks/rollbar.cap +0 -47
  40. data/spec/cacert.pem +0 -3988
  41. data/spec/controllers/home_controller_spec.rb +0 -480
  42. data/spec/delay/sidekiq_spec.rb +0 -61
  43. data/spec/delay/sucker_punch_spec.rb +0 -25
  44. data/spec/delayed/backend/test.rb +0 -140
  45. data/spec/delayed/serialization/test.rb +0 -0
  46. data/spec/dummyapp/.gitignore +0 -73
  47. data/spec/dummyapp/Rakefile +0 -7
  48. data/spec/dummyapp/app/assets/javascripts/application.js +0 -3
  49. data/spec/dummyapp/app/assets/stylesheets/application.css.scss +0 -37
  50. data/spec/dummyapp/app/controllers/application_controller.rb +0 -3
  51. data/spec/dummyapp/app/controllers/home_controller.rb +0 -60
  52. data/spec/dummyapp/app/controllers/users_controller.rb +0 -17
  53. data/spec/dummyapp/app/helpers/.gitkeep +0 -0
  54. data/spec/dummyapp/app/mailers/.gitkeep +0 -0
  55. data/spec/dummyapp/app/models/.gitkeep +0 -0
  56. data/spec/dummyapp/app/models/book.rb +0 -5
  57. data/spec/dummyapp/app/models/post.rb +0 -9
  58. data/spec/dummyapp/app/models/user.rb +0 -9
  59. data/spec/dummyapp/app/views/devise/registrations/edit.html.erb +0 -27
  60. data/spec/dummyapp/app/views/devise/registrations/new.html.erb +0 -20
  61. data/spec/dummyapp/app/views/devise/shared/_links.html.erb +0 -25
  62. data/spec/dummyapp/app/views/home/cause_exception.html.erb +0 -1
  63. data/spec/dummyapp/app/views/home/index.html.erb +0 -4
  64. data/spec/dummyapp/app/views/home/report_exception.html.erb +0 -1
  65. data/spec/dummyapp/app/views/js/test.html.erb +0 -1
  66. data/spec/dummyapp/app/views/layouts/_messages.html.erb +0 -5
  67. data/spec/dummyapp/app/views/layouts/_navigation.html.erb +0 -21
  68. data/spec/dummyapp/app/views/layouts/application.html.erb +0 -25
  69. data/spec/dummyapp/app/views/layouts/simple.html.erb +0 -18
  70. data/spec/dummyapp/app/views/users/index.html.erb +0 -8
  71. data/spec/dummyapp/app/views/users/show.html.erb +0 -3
  72. data/spec/dummyapp/config.ru +0 -4
  73. data/spec/dummyapp/config/application.rb +0 -59
  74. data/spec/dummyapp/config/boot.rb +0 -10
  75. data/spec/dummyapp/config/database.yml +0 -25
  76. data/spec/dummyapp/config/environment.rb +0 -5
  77. data/spec/dummyapp/config/environments/development.rb +0 -37
  78. data/spec/dummyapp/config/environments/production.rb +0 -67
  79. data/spec/dummyapp/config/environments/test.rb +0 -37
  80. data/spec/dummyapp/config/initializers/backtrace_silencers.rb +0 -7
  81. data/spec/dummyapp/config/initializers/inflections.rb +0 -15
  82. data/spec/dummyapp/config/initializers/mime_types.rb +0 -5
  83. data/spec/dummyapp/config/initializers/rollbar.rb +0 -26
  84. data/spec/dummyapp/config/initializers/secret_token.rb +0 -7
  85. data/spec/dummyapp/config/initializers/session_store.rb +0 -8
  86. data/spec/dummyapp/config/initializers/wrap_parameters.rb +0 -16
  87. data/spec/dummyapp/config/locales/devise.en.yml +0 -58
  88. data/spec/dummyapp/config/locales/en.yml +0 -5
  89. data/spec/dummyapp/config/routes.rb +0 -17
  90. data/spec/dummyapp/config/secrets.yml +0 -2
  91. data/spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb +0 -46
  92. data/spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb +0 -5
  93. data/spec/dummyapp/db/migrate/20161219184410_create_books.rb +0 -10
  94. data/spec/dummyapp/db/migrate/20161219185529_add_username_to_users.rb +0 -5
  95. data/spec/dummyapp/db/schema.rb +0 -41
  96. data/spec/dummyapp/db/seeds.rb +0 -12
  97. data/spec/dummyapp/lib/assets/.gitkeep +0 -0
  98. data/spec/dummyapp/public/404.html +0 -26
  99. data/spec/dummyapp/public/422.html +0 -26
  100. data/spec/dummyapp/public/500.html +0 -25
  101. data/spec/dummyapp/public/favicon.ico +0 -0
  102. data/spec/dummyapp/script/rails +0 -6
  103. data/spec/fixtures/file1 +0 -1
  104. data/spec/fixtures/file2 +0 -1
  105. data/spec/fixtures/payloads/message.json +0 -25
  106. data/spec/fixtures/payloads/sample.trace.json +0 -275
  107. data/spec/fixtures/payloads/sample.trace_chain.json +0 -530
  108. data/spec/fixtures/plugins/dummy1.rb +0 -5
  109. data/spec/fixtures/plugins/dummy2.rb +0 -5
  110. data/spec/generators/rollbar/rollbar_generator_rails30_spec.rb +0 -31
  111. data/spec/generators/rollbar/rollbar_generator_spec.rb +0 -51
  112. data/spec/requests/home_spec.rb +0 -49
  113. data/spec/rollbar/configuration_spec.rb +0 -74
  114. data/spec/rollbar/delay/delayed_job_spec.rb +0 -22
  115. data/spec/rollbar/delay/girl_friday_spec.rb +0 -41
  116. data/spec/rollbar/delay/resque_spec.rb +0 -37
  117. data/spec/rollbar/delay/shoryuken_spec.rb +0 -44
  118. data/spec/rollbar/delay/thread_spec.rb +0 -27
  119. data/spec/rollbar/encoding/encoder_spec.rb +0 -63
  120. data/spec/rollbar/item/backtrace_spec.rb +0 -26
  121. data/spec/rollbar/item/frame_spec.rb +0 -267
  122. data/spec/rollbar/item_spec.rb +0 -736
  123. data/spec/rollbar/json/oj_spec.rb +0 -18
  124. data/spec/rollbar/json_spec.rb +0 -110
  125. data/spec/rollbar/lazy_store_spec.rb +0 -99
  126. data/spec/rollbar/logger_proxy_spec.rb +0 -69
  127. data/spec/rollbar/logger_spec.rb +0 -124
  128. data/spec/rollbar/middleware/js_spec.rb +0 -428
  129. data/spec/rollbar/middleware/sinatra_spec.rb +0 -197
  130. data/spec/rollbar/notifier_spec.rb +0 -67
  131. data/spec/rollbar/plugin_spec.rb +0 -209
  132. data/spec/rollbar/plugins/active_job_spec.rb +0 -45
  133. data/spec/rollbar/plugins/delayed_job/job_data_spec.rb +0 -48
  134. data/spec/rollbar/plugins/delayed_job_spec.rb +0 -129
  135. data/spec/rollbar/plugins/rack_spec.rb +0 -152
  136. data/spec/rollbar/plugins/rails_js_spec.rb +0 -19
  137. data/spec/rollbar/plugins/rake_spec.rb +0 -34
  138. data/spec/rollbar/plugins/resque/failure_spec.rb +0 -36
  139. data/spec/rollbar/plugins/sidekiq_spec.rb +0 -169
  140. data/spec/rollbar/plugins/validations_spec.rb +0 -56
  141. data/spec/rollbar/plugins_spec.rb +0 -68
  142. data/spec/rollbar/request_data_extractor_spec.rb +0 -321
  143. data/spec/rollbar/scrubbers/params_spec.rb +0 -598
  144. data/spec/rollbar/scrubbers/url_spec.rb +0 -240
  145. data/spec/rollbar/scrubbers_spec.rb +0 -31
  146. data/spec/rollbar/sidekig/clear_scope_spec.rb +0 -19
  147. data/spec/rollbar/truncation/frames_strategy_spec.rb +0 -70
  148. data/spec/rollbar/truncation/min_body_strategy_spec.rb +0 -57
  149. data/spec/rollbar/truncation/strings_strategy_spec.rb +0 -89
  150. data/spec/rollbar/truncation_spec.rb +0 -27
  151. data/spec/rollbar/util/hash_spec.rb +0 -22
  152. data/spec/rollbar/util/ip_anonymizer_spec.rb +0 -30
  153. data/spec/rollbar/util_spec.rb +0 -80
  154. data/spec/rollbar_bc_spec.rb +0 -380
  155. data/spec/rollbar_spec.rb +0 -1737
  156. data/spec/spec_helper.rb +0 -84
  157. data/spec/support/cause_exception.rb +0 -1
  158. data/spec/support/encoding_helpers.rb +0 -8
  159. data/spec/support/encodings/iso_8859_9 +0 -1
  160. data/spec/support/fixture_helpers.rb +0 -10
  161. data/spec/support/get_ip_raising.rb +0 -7
  162. data/spec/support/helpers.rb +0 -5
  163. data/spec/support/matchers.rb +0 -23
  164. data/spec/support/notifier_helpers.rb +0 -57
  165. data/spec/support/rollbar_api.rb +0 -57
  166. data/spec/support/secure_headers_mocks.rb +0 -83
  167. data/spec/support/shared_contexts.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc9f32ab8c6d24f72b8c9da57f175524f7942f39
4
- data.tar.gz: f46f2f866b7a0049ce8a0e2d2e5af6763bed93dc
3
+ metadata.gz: cbabec796ebc75cdf994e05081fe2f29f2613fc3
4
+ data.tar.gz: 8f6e293f90b0d3840f8168a1b181fde56fcf8bd8
5
5
  SHA512:
6
- metadata.gz: 6f7c1ac02748f5b3c669fe694ecb9989c6cc941ab6321cc4a3faa4f6ad9f28ebe9efedf1add9b1fad7ba328561921a0d456c8ed2bdfb3feb2e773baebbece73d
7
- data.tar.gz: 111635866796fc71e1cb6e261661d6c7094a19afabbb591aec0690bf9927bd00cedca2470fdd8544fd62d9d3a1f35f23a63c6ef904e1a31f089d0f2d5a8fced6
6
+ metadata.gz: cdab38d35f1e2461172cc10883e821d59879a0eb8cef1be4d26c318341dce9ece1e15d9d3f8e1d44c8ab72a82958be6629713622c45fe5934cbefa5e02a7bdfe
7
+ data.tar.gz: 3d0050f93cd0e855031aa00115f3cf6050be92cb65b64c30978be49e19cd6b07c5dd871c56fff66e881f62b596f7aa29c1ea4f217e266d3a94194ff2980d683e
@@ -8,9 +8,15 @@ Style/HashSyntax:
8
8
  SupportedStyles:
9
9
  - hash_rockets
10
10
 
11
+ Style/SymbolArray:
12
+ Enabled: false # %i[] syntax isn't 1.9.x compatible
13
+
11
14
  Metrics/LineLength:
12
15
  Max: 1000
13
16
 
17
+ Metrics/MethodLength:
18
+ Max: 15 # Relax slightly from the default of 10
19
+
14
20
  Style/DoubleNegation:
15
21
  Enabled: false
16
22
 
@@ -19,3 +25,12 @@ Style/Lambda:
19
25
 
20
26
  Style/EachWithObject:
21
27
  Enabled: false
28
+
29
+ Metrics/BlockLength:
30
+ ExcludedMethods: ['describe', 'context'] # RSpec DSL is expected to have long blocks.
31
+
32
+ Style/ExpandPathArguments:
33
+ Enabled: false # syntax requires Ruby >= 2.0
34
+
35
+ Gemspec/RequiredRubyVersion:
36
+ Enabled: false # rubocop compares to gemspec, yet won't allow 1.9 as minimum version
@@ -4,23 +4,55 @@ services:
4
4
  language: ruby
5
5
  # Broken bundler on travis CI - https://github.com/bundler/bundler/issues/2784
6
6
  before_install:
7
- - gem update --system 2.1.11
7
+ - gem update --system 2.7.7
8
8
  - gem --version
9
- - gem install bundler
9
+ - gem install bundler -v 1.6.1
10
10
  - bundle --version
11
+
11
12
  rvm:
12
13
  - 1.9.3
13
14
  - 2.0.0
14
15
  - 2.1.0
15
16
  - 2.2.2
16
- - jruby-18mode
17
- - jruby-19mode
17
+ - 2.3.0
18
+ - 2.3.8
19
+ - 2.4.5
20
+ - 2.5.3
21
+ - 2.6.0
18
22
  - rbx
23
+ - jruby-9.1.9.0
24
+ #
25
+ # # About legacy JRuby
26
+ #
27
+ # Legacy JRubies (jruby-18mode, jruby-19mode) have been disabled for some time by
28
+ # listing all possible targets in either the exclude or allow_failures sections.
29
+ # I have taken a look at getting them running, and have found that no valid
30
+ # combination of dependencies is possible for Rails 3.0 and higher. It appears
31
+ # Rails 2.2 is meant to work, though I haven't tried it.
32
+ #
33
+ # For Rails 3.0, it is possible to get a working bundle with all gem dependencies,
34
+ # but the JDBC adapter gem needs an earlier version of ActiveSupport, and it will
35
+ # fail at runtime.
36
+ #
37
+ # For Rails 3.1 and 3.2, Rack 1.3.x and higher require Ruby 2.x, while Rails 3.x will
38
+ # not accept any 1.2.x version of Rack. Even if this could be resolved, one would
39
+ # hit the above runtime issue amyway.
40
+ #
41
+ # # About current JRuby
42
+ #
43
+ # While current JRuby builds aim to be Ruby 2.5.x compatible, the JDBC adapter
44
+ # gem is constrained to only Rails 5.0, 5.1 and 5.2 at this time. (Old versions
45
+ # of the gem allow >= Rails 2.2, but in practice it will not work with Rails 3.0
46
+ # and higher because of the ActiveSupport issue described above.) For as long as
47
+ # the test suite relies on Rails and SqlLite, it is not possible to include
48
+ # earlier Rails for JRuby.
49
+
19
50
  jdk:
20
- - openjdk6
51
+ # These are the JDKs currently supported on Travis (Trusty - Ubuntu 14.04)
21
52
  - openjdk7
22
- - oraclejdk7
53
+ - openjdk8
23
54
  - oraclejdk8
55
+ - oraclejdk9
24
56
  env:
25
57
  - ROLLBAR_SSL_CERT_FILE=/home/travis/build/rollbar/rollbar-gem/spec/cacert.pem
26
58
  gemfile:
@@ -32,149 +64,177 @@ gemfile:
32
64
  - gemfiles/rails42.gemfile
33
65
  - gemfiles/rails50.gemfile
34
66
  - gemfiles/rails51.gemfile
67
+ - gemfiles/rails52.gemfile
35
68
  matrix:
36
- include:
37
- - rvm: 1.8.7
38
- gemfile: gemfiles/ruby_1_8_and_1_9_2.gemfile
39
- jdk: openjdk6
40
- - rvm: 1.9.2
41
- gemfile: gemfiles/ruby_1_8_and_1_9_2.gemfile
42
- jdk: openjdk6
69
+ include: []
70
+
43
71
  allow_failures:
44
72
  - rvm: ruby-head
45
- - rvm: jruby-18mode
46
73
  - rvm: jruby-head
74
+ # Ruby 2.6.x is still being eveluated and may have test failures
75
+ - rvm: 2.6.0
76
+ # oraclejdk9 has a dependency issue that needs to be investigated
77
+ - jdk: oraclejdk9
47
78
 
48
- # NOTE: Allowing this to fail because of some strange error in rspec-core `undefined method `example_group_finished'`.
49
- # Seems to work with oraclejdk7.
50
- - rvm: jruby-19mode
51
- jdk: openjdk7
52
79
  exclude:
53
80
  # Don't run tests for non-jruby environments with the JDK.
54
81
  # NOTE: openjdk7 is missing from these exclusions so that Travis will run at least 1 build for the given rvm.
55
- - rvm: 1.8.7
56
- jdk: openjdk6
57
- - rvm: 1.8.7
58
- jdk: oraclejdk7
59
- - rvm: 1.8.7
60
- jdk: oraclejdk8
61
- - rvm: 1.9.2
62
- jdk: openjdk6
63
- - rvm: 1.9.2
64
- jdk: oraclejdk7
65
- - rvm: 1.9.2
66
- jdk: oraclejdk8
67
- - rvm: 1.9.3
68
- jdk: openjdk6
69
82
  - rvm: 1.9.3
70
- jdk: oraclejdk7
83
+ jdk: openjdk8
71
84
  - rvm: 1.9.3
72
85
  jdk: oraclejdk8
86
+ - rvm: 1.9.3
87
+ jdk: oraclejdk9
73
88
  - rvm: 2.0.0
74
- jdk: openjdk6
75
- - rvm: 2.0.0
76
- jdk: oraclejdk7
89
+ jdk: openjdk8
77
90
  - rvm: 2.0.0
78
91
  jdk: oraclejdk8
92
+ - rvm: 2.0.0
93
+ jdk: oraclejdk9
79
94
  - rvm: 2.1.0
80
- jdk: openjdk6
81
- - rvm: 2.1.0
82
- jdk: oraclejdk7
95
+ jdk: openjdk8
83
96
  - rvm: 2.1.0
84
97
  jdk: oraclejdk8
98
+ - rvm: 2.1.0
99
+ jdk: oraclejdk9
85
100
  - rvm: 2.2.2
86
- jdk: openjdk6
101
+ jdk: openjdk8
87
102
  - rvm: 2.2.2
88
- jdk: oraclejdk7
103
+ jdk: oraclejdk8
89
104
  - rvm: 2.2.2
105
+ jdk: oraclejdk9
106
+ - rvm: 2.3.0
107
+ jdk: openjdk8
108
+ - rvm: 2.3.0
109
+ jdk: oraclejdk8
110
+ - rvm: 2.3.0
111
+ jdk: oraclejdk9
112
+ - rvm: 2.3.8
113
+ jdk: openjdk8
114
+ - rvm: 2.3.8
115
+ jdk: oraclejdk8
116
+ - rvm: 2.3.8
117
+ jdk: oraclejdk9
118
+ - rvm: 2.4.5
119
+ jdk: openjdk8
120
+ - rvm: 2.4.5
121
+ jdk: oraclejdk8
122
+ - rvm: 2.4.5
123
+ jdk: oraclejdk9
124
+ - rvm: 2.5.3
125
+ jdk: openjdk8
126
+ - rvm: 2.5.3
90
127
  jdk: oraclejdk8
128
+ - rvm: 2.5.3
129
+ jdk: oraclejdk9
130
+ - rvm: 2.6.0
131
+ jdk: openjdk8
132
+ - rvm: 2.6.0
133
+ jdk: oraclejdk8
134
+ - rvm: 2.6.0
135
+ jdk: oraclejdk9
91
136
 
92
137
  - rvm: ruby-head
93
- jdk: openjdk6
94
- - rvm: ruby-head
95
- jdk: oraclejdk7
138
+ jdk: openjdk8
96
139
  - rvm: ruby-head
97
140
  jdk: oraclejdk8
141
+ - rvm: ruby-head
142
+ jdk: oraclejdk9
98
143
  - rvm: rbx
99
- jdk: openjdk6
100
- - rvm: rbx
101
- jdk: oraclejdk7
144
+ jdk: openjdk8
102
145
  - rvm: rbx
103
146
  jdk: oraclejdk8
147
+ - rvm: rbx
148
+ jdk: oraclejdk9
104
149
 
105
- # TODO: comment as to why these are excluded
106
- - rvm: 1.8.7
107
- gemfile: gemfiles/rails31.gemfile
108
- - rvm: 1.8.7
109
- gemfile: gemfiles/rails32.gemfile
110
- - rvm: 1.8.7
111
- gemfile: gemfiles/rails40.gemfile
112
- - rvm: 1.8.7
113
- gemfile: gemfiles/rails41.gemfile
114
- - rvm: 1.8.7
115
- gemfile: gemfiles/rails42.gemfile
116
- - rvm: 1.8.7
117
- gemfile: gemfiles/rails50.gemfile
118
- - rvm: 1.8.7
119
- gemfile: gemfiles/rails51.gemfile
120
- - rvm: 1.9.2
121
- gemfile: gemfiles/rails31.gemfile
122
- - rvm: 1.9.2
123
- gemfile: gemfiles/rails32.gemfile
124
- - rvm: 1.9.2
125
- gemfile: gemfiles/rails40.gemfile
126
- - rvm: 1.9.2
127
- gemfile: gemfiles/rails41.gemfile
128
- - rvm: 1.9.2
129
- gemfile: gemfiles/rails42.gemfile
130
- - rvm: 1.9.2
131
- gemfile: gemfiles/rails50.gemfile
132
- - rvm: 1.9.2
133
- gemfile: gemfiles/rails51.gemfile
150
+ # Rails 5.x requires Ruby 2.2.2 or higher
134
151
  - rvm: 1.9.3
135
152
  gemfile: gemfiles/rails50.gemfile
136
153
  - rvm: 1.9.3
137
154
  gemfile: gemfiles/rails51.gemfile
155
+ - rvm: 1.9.3
156
+ gemfile: gemfiles/rails52.gemfile
157
+ # Rails 5.x requires Ruby 2.2.2 or higher
138
158
  - rvm: 2.0.0
139
159
  gemfile: gemfiles/rails50.gemfile
140
160
  - rvm: 2.0.0
141
161
  gemfile: gemfiles/rails51.gemfile
162
+ - rvm: 2.0.0
163
+ gemfile: gemfiles/rails52.gemfile
164
+ # Rails 5.x requires Ruby 2.2.2 or higher
142
165
  - rvm: 2.1.0
143
166
  gemfile: gemfiles/rails50.gemfile
144
167
  - rvm: 2.1.0
145
168
  gemfile: gemfiles/rails51.gemfile
169
+ - rvm: 2.1.0
170
+ gemfile: gemfiles/rails52.gemfile
171
+ # MRI 2.2.2 supports Rails 3.2.x and higher
146
172
  - rvm: 2.2.2
147
173
  gemfile: gemfiles/rails30.gemfile
148
174
  - rvm: 2.2.2
149
175
  gemfile: gemfiles/rails31.gemfile
150
- - rvm: jruby-18mode
176
+ # MRI 2.3.x supports Rails 4.0.x and higher
177
+ - rvm: 2.3.0
151
178
  gemfile: gemfiles/rails30.gemfile
152
- - rvm: jruby-18mode
179
+ - rvm: 2.3.0
153
180
  gemfile: gemfiles/rails31.gemfile
154
- - rvm: jruby-18mode
181
+ - rvm: 2.3.0
155
182
  gemfile: gemfiles/rails32.gemfile
156
- - rvm: jruby-18mode
183
+ - rvm: 2.3.8
184
+ gemfile: gemfiles/rails30.gemfile
185
+ - rvm: 2.3.8
186
+ gemfile: gemfiles/rails31.gemfile
187
+ - rvm: 2.3.8
188
+ gemfile: gemfiles/rails32.gemfile
189
+ - rvm: 2.3.8
157
190
  gemfile: gemfiles/rails40.gemfile
158
- - rvm: jruby-18mode
191
+ - rvm: 2.3.8
159
192
  gemfile: gemfiles/rails41.gemfile
160
- - rvm: jruby-18mode
161
- gemfile: gemfiles/rails42.gemfile
162
- - rvm: jruby-19mode
193
+ # MRI 2.4.x and higher (e.g. 2.5.x, 2.6.x, etc) supports Rails 4.2.8 and higher
194
+ # Rails lower than 4.2.8 is incompatible with Ruby 2.4 Integer class
195
+ - rvm: 2.4.5
163
196
  gemfile: gemfiles/rails30.gemfile
164
- - rvm: jruby-19mode
197
+ - rvm: 2.4.5
165
198
  gemfile: gemfiles/rails31.gemfile
166
- - rvm: jruby-19mode
199
+ - rvm: 2.4.5
167
200
  gemfile: gemfiles/rails32.gemfile
168
- - rvm: jruby-19mode
201
+ - rvm: 2.4.5
169
202
  gemfile: gemfiles/rails40.gemfile
170
- - rvm: jruby-19mode
203
+ - rvm: 2.4.5
171
204
  gemfile: gemfiles/rails41.gemfile
172
- - rvm: jruby-19mode
205
+ - rvm: 2.5.3
206
+ gemfile: gemfiles/rails30.gemfile
207
+ - rvm: 2.5.3
208
+ gemfile: gemfiles/rails31.gemfile
209
+ - rvm: 2.5.3
210
+ gemfile: gemfiles/rails32.gemfile
211
+ - rvm: 2.5.3
212
+ gemfile: gemfiles/rails40.gemfile
213
+ - rvm: 2.5.3
214
+ gemfile: gemfiles/rails41.gemfile
215
+ - rvm: 2.6.0
216
+ gemfile: gemfiles/rails30.gemfile
217
+ - rvm: 2.6.0
218
+ gemfile: gemfiles/rails31.gemfile
219
+ - rvm: 2.6.0
220
+ gemfile: gemfiles/rails32.gemfile
221
+ - rvm: 2.6.0
222
+ gemfile: gemfiles/rails40.gemfile
223
+ - rvm: 2.6.0
224
+ gemfile: gemfiles/rails41.gemfile
225
+ # JRuby JDBC Adapter is only compatible with Rails >= 5.x
226
+ - rvm: jruby-9.1.9.0
227
+ gemfile: gemfiles/rails30.gemfile
228
+ - rvm: jruby-9.1.9.0
229
+ gemfile: gemfiles/rails31.gemfile
230
+ - rvm: jruby-9.1.9.0
231
+ gemfile: gemfiles/rails32.gemfile
232
+ - rvm: jruby-9.1.9.0
233
+ gemfile: gemfiles/rails40.gemfile
234
+ - rvm: jruby-9.1.9.0
235
+ gemfile: gemfiles/rails41.gemfile
236
+ - rvm: jruby-9.1.9.0
173
237
  gemfile: gemfiles/rails42.gemfile
174
- - rvm: jruby-19mode
175
- gemfile: gemfiles/rails50.gemfile
176
- - rvm: jruby-19mode
177
- gemfile: gemfiles/rails51.gemfile
178
238
  - rvm: rbx
179
239
  gemfile: gemfiles/rails30.gemfile
180
240
  - rvm: rbx
@@ -191,3 +251,5 @@ matrix:
191
251
  gemfile: gemfiles/rails50.gemfile
192
252
  - rvm: rbx
193
253
  gemfile: gemfiles/rails51.gemfile
254
+ - rvm: rbx
255
+ gemfile: gemfiles/rails52.gemfile
data/Gemfile CHANGED
@@ -7,23 +7,25 @@ is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == '
7
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
8
8
  gem 'appraisal'
9
9
  gem 'jruby-openssl', :platform => :jruby
10
- gem 'rails', '4.2.7.1'
10
+ gem 'rails', '4.2.8'
11
11
  gem 'rake'
12
12
  gem 'rspec-rails', '~> 3.4'
13
- gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
13
+ gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
14
14
 
15
15
  unless is_jruby
16
- if RUBY_VERSION >= '2.4.0'
17
- gem 'oj', '~> 2.16.1'
16
+ if RUBY_VERSION >= '2.5'
17
+ gem 'oj'
18
+ elsif RUBY_VERSION >= '2.4.0'
19
+ gem 'oj', '~> 2.16.1' # rubocop:disable Bundler/DuplicatedGem
18
20
  else
19
- gem 'oj', '~> 2.12.14'
21
+ gem 'oj', '~> 2.12.14' # rubocop:disable Bundler/DuplicatedGem
20
22
  end
21
23
  end
22
24
 
23
25
  if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
24
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
26
+ gem 'sidekiq', '~> 2.13.0'
25
27
  else
26
- gem 'sidekiq', '>= 2.13.0'
28
+ gem 'sidekiq', '>= 2.13.0' # rubocop:disable Bundler/DuplicatedGem
27
29
  end
28
30
 
29
31
  platforms :rbx do
@@ -34,20 +36,24 @@ platforms :rbx do
34
36
  end
35
37
 
36
38
  if RUBY_VERSION.start_with?('1.9')
39
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
37
40
  gem 'sucker_punch', '~> 1.0'
38
41
  elsif RUBY_VERSION.start_with?('2')
39
- gem 'sucker_punch', '~> 2.0'
42
+ gem 'codacy-coverage'
43
+ gem 'shoryuken' # rubocop:disable Bundler/DuplicatedGem
44
+ gem 'simplecov'
45
+ gem 'sucker_punch', '~> 2.0' # rubocop:disable Bundler/DuplicatedGem
40
46
  end
41
47
 
42
48
  gem 'aws-sdk-sqs'
43
- gem 'database_cleaner', '~> 1.0.0'
49
+ gem 'database_cleaner'
44
50
  gem 'delayed_job', :require => false
45
51
  gem 'generator_spec'
46
52
  gem 'girl_friday', '>= 0.11.1'
47
53
  gem 'redis'
48
- gem 'resque'
49
- gem 'shoryuken'
54
+ gem 'resque', '< 2.0.0'
55
+ gem 'rspec-command'
56
+ gem 'rubocop', :require => false
50
57
  gem 'sinatra'
51
- gem 'webmock'
52
-
58
+ gem 'webmock', :require => false
53
59
  gemspec
data/README.md CHANGED
@@ -3,6 +3,12 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/rollbar.svg)](http://badge.fury.io/rb/rollbar)
4
4
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=rollbar&package-manager=bundler&version-scheme=semver&target-version=latest)](https://dependabot.com/compatibility-score.html?dependency-name=rollbar&package-manager=bundler&version-scheme=semver&new-version=latest)
5
5
 
6
+ > WARNING: Ruby 2.6.0 introduced a new bug bug ([#15472 -
7
+ 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)).
8
+ > Until the Ruby maintainers have released the fix for this bug, we advise Rollbar users to not upgrade their applications to Ruby 2.6.0.
9
+
10
+
11
+
6
12
  [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.
7
13
 
8
14
  Rollbar-gem is the SDK for Ruby apps and includes support for apps using Rails, Sinatra, Rack, plain Ruby, and other frameworks.
@@ -16,6 +22,12 @@ Rollbar-gem is the SDK for Ruby apps and includes support for apps using Rails,
16
22
 
17
23
  For complete usage instructions and configuration reference, see our [Ruby SDK docs](https://docs.rollbar.com/docs/ruby).
18
24
 
25
+ ## Compatibility
26
+
27
+ Version >= 2.19.0 is compatible with Ruby >= 1.9.3.
28
+
29
+ Version < 2.19.0 is compatible with Ruby >= 1.8.7.
30
+
19
31
  ## Release History & Changelog
20
32
 
21
33
  See our [Releases](https://github.com/rollbar/rollbar-gem/releases) page for a list of all releases, including changes.