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
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
6
6
 
7
- gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
7
+ gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
8
8
  gem 'jruby-openssl', :platform => :jruby
9
9
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
10
10
  gem 'appraisal', '= 1.0.2'
@@ -14,15 +14,20 @@ gem 'rake', '< 11'
14
14
  gem 'rspec-rails', '>= 2.14.0'
15
15
  gem 'celluloid', '< 0.17.0' if RUBY_VERSION == '1.9.2'
16
16
 
17
- gem 'oj', '~> 2.12.14' unless is_jruby
18
- if RUBY_VERSION > '1.8.7'
19
- if RUBY_VERSION < '2.2.2'
20
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
17
+ unless is_jruby
18
+ if RUBY_VERSION >= '2.4.0'
19
+ gem 'oj', '~> 2.16.1'
21
20
  else
22
- gem 'sidekiq', '>= 2.13.0'
21
+ gem 'oj', '~> 2.12.14'
23
22
  end
24
23
  end
25
24
 
25
+ if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
26
+ gem 'sidekiq', '~> 2.13.0'
27
+ else
28
+ gem 'sidekiq', '>= 2.13.0'
29
+ end
30
+
26
31
  platforms :rbx do
27
32
  gem 'minitest'
28
33
  gem 'racc'
@@ -33,17 +38,21 @@ end
33
38
 
34
39
  if RUBY_VERSION.start_with?('1.9')
35
40
  gem 'sucker_punch', '~> 1.0'
41
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
36
42
  elsif RUBY_VERSION.start_with?('2')
37
43
  gem 'sucker_punch', '~> 2.0'
44
+ gem 'shoryuken'
45
+ gem 'codacy-coverage'
46
+ gem 'simplecov'
38
47
  end
39
48
 
40
49
  gem 'sinatra'
41
- gem 'resque'
42
50
  gem 'delayed_job', :require => false
43
51
  gem 'redis'
44
52
  gem 'database_cleaner', '~> 1.0.0'
45
53
  gem 'genspec', '>= 0.2.8'
46
54
  gem 'girl_friday', '>= 0.11.1'
55
+ gem 'rspec-command'
47
56
 
48
57
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
49
58
  gem 'public_suffix', '< 1.5'
@@ -53,9 +62,7 @@ else
53
62
  gem 'webmock', :require => false
54
63
  end
55
64
 
56
- gem 'resque'
57
-
65
+ gem 'resque', '< 2.0.0'
58
66
  gem 'aws-sdk-sqs'
59
- gem 'shoryuken'
60
67
 
61
68
  gemspec :path => '../'
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
6
6
 
7
- gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
7
+ gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
8
8
  gem 'jruby-openssl', :platform => :jruby
9
9
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
10
10
  gem 'appraisal', '= 1.0.2'
@@ -12,7 +12,19 @@ gem 'rails', '3.1.12'
12
12
  gem 'rspec-rails', '~> 3.4'
13
13
  gem 'rake'
14
14
 
15
- gem 'oj', '~> 2.12.14' unless is_jruby
15
+ unless is_jruby
16
+ if RUBY_VERSION >= '2.4.0'
17
+ gem 'oj', '~> 2.16.1'
18
+ else
19
+ gem 'oj', '~> 2.12.14'
20
+ end
21
+ end
22
+
23
+ if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
24
+ gem 'sidekiq', '~> 2.13.0'
25
+ else
26
+ gem 'sidekiq', '>= 2.13.0'
27
+ end
16
28
 
17
29
  platforms :rbx do
18
30
  gem 'minitest'
@@ -24,35 +36,31 @@ end
24
36
 
25
37
  if RUBY_VERSION.start_with?('1.9')
26
38
  gem 'sucker_punch'
39
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
27
40
  elsif RUBY_VERSION.start_with?('2')
28
41
  gem 'sucker_punch'
42
+ gem 'shoryuken'
43
+ gem 'codacy-coverage'
44
+ gem 'simplecov'
29
45
  end
30
46
 
31
47
  gem 'sinatra'
32
- gem 'resque'
33
48
  gem 'delayed_job', :require => false
34
49
  gem 'redis'
35
50
  gem 'database_cleaner'
36
51
  gem 'girl_friday'
37
52
  gem 'generator_spec'
53
+ gem 'rspec-command'
38
54
 
39
55
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
40
56
  gem 'mime-types', '< 3.0'
41
57
  gem 'public_suffix', '< 1.5'
42
58
  gem 'webmock', '< 2.3.0', :require => false
43
- gem 'sidekiq', '< 2.13.0'
44
59
  else
45
60
  gem 'webmock', :require => false
46
- if RUBY_VERSION < '2.2.2'
47
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
48
- else
49
- gem 'sidekiq', '>= 2.13.0'
50
- end
51
61
  end
52
62
 
53
- gem 'resque'
54
-
63
+ gem 'resque', '< 2.0.0'
55
64
  gem 'aws-sdk-sqs'
56
- gem 'shoryuken'
57
65
 
58
66
  gemspec :path => '../'
@@ -10,13 +10,20 @@ gem 'jruby-openssl', :platform => :jruby
10
10
  gem 'rails', '3.2.22'
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
  # Please see https://github.com/rspec/rspec-rails/issues/1273
15
15
  gem 'test-unit'
16
16
 
17
- gem 'oj', '~> 2.12.14' unless is_jruby
17
+ unless is_jruby
18
+ if RUBY_VERSION >= '2.4.0'
19
+ gem 'oj', '~> 2.16.1'
20
+ else
21
+ gem 'oj', '~> 2.12.14'
22
+ end
23
+ end
24
+
18
25
  if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
19
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
26
+ gem 'sidekiq', '~> 2.13.0'
20
27
  else
21
28
  gem 'sidekiq', '>= 2.13.0'
22
29
  end
@@ -31,18 +38,22 @@ end
31
38
 
32
39
  if RUBY_VERSION.start_with?('1.9')
33
40
  gem 'sucker_punch', '~> 1.0'
41
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
34
42
  elsif RUBY_VERSION.start_with?('2')
35
43
  gem 'sucker_punch', '~> 2.0'
44
+ gem 'shoryuken'
45
+ gem 'codacy-coverage'
46
+ gem 'simplecov'
36
47
  end
37
48
 
38
49
  gem 'delayed_job', :require => false
39
50
  gem 'redis'
40
- gem 'resque'
41
51
  gem 'sinatra'
42
52
 
43
53
  gem 'database_cleaner', '~> 1.0.0'
44
54
  gem 'generator_spec'
45
55
  gem 'girl_friday', '>= 0.11.1'
56
+ gem 'rspec-command'
46
57
 
47
58
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
48
59
  gem 'mime-types', '< 3.0'
@@ -52,9 +63,7 @@ else
52
63
  gem 'webmock', :require => false
53
64
  end
54
65
 
55
- gem 'resque'
56
-
66
+ gem 'resque', '< 2.0.0'
57
67
  gem 'aws-sdk-sqs'
58
- gem 'shoryuken'
59
68
 
60
69
  gemspec :path => '../'
@@ -10,13 +10,20 @@ gem 'jruby-openssl', :platform => :jruby
10
10
  gem 'rails', '4.0.13'
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
  # Please see https://github.com/rspec/rspec-rails/issues/1273
15
15
  gem 'test-unit'
16
16
 
17
- gem 'oj', '~> 2.12.14' unless is_jruby
17
+ unless is_jruby
18
+ if RUBY_VERSION >= '2.4.0'
19
+ gem 'oj', '~> 2.16.1'
20
+ else
21
+ gem 'oj', '~> 2.12.14'
22
+ end
23
+ end
24
+
18
25
  if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
19
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
26
+ gem 'sidekiq', '~> 2.13.0'
20
27
  else
21
28
  gem 'sidekiq', '>= 2.13.0'
22
29
  end
@@ -32,9 +39,13 @@ end
32
39
  if RUBY_VERSION.start_with?('1.9')
33
40
  gem 'sucker_punch', '~> 1.0'
34
41
  gem 'json', '~> 1.8'
42
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
35
43
  elsif RUBY_VERSION.start_with?('2')
36
44
  gem 'sucker_punch', '~> 2.0'
37
45
  gem 'json', '~> 2.0'
46
+ gem 'shoryuken'
47
+ gem 'codacy-coverage'
48
+ gem 'simplecov'
38
49
  end
39
50
 
40
51
  gem 'delayed_job', :require => false
@@ -45,6 +56,7 @@ gem 'sinatra'
45
56
  gem 'database_cleaner', '~> 1.0.0'
46
57
  gem 'generator_spec'
47
58
  gem 'girl_friday', '>= 0.11.1'
59
+ gem 'rspec-command'
48
60
 
49
61
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
50
62
  gem 'mime-types', '< 3.0'
@@ -55,6 +67,5 @@ else
55
67
  end
56
68
 
57
69
  gem 'aws-sdk-sqs'
58
- gem 'shoryuken'
59
70
 
60
- gemspec :path => '../'
71
+ gemspec :path => '../'
@@ -10,11 +10,18 @@ gem 'jruby-openssl', :platform => :jruby
10
10
  gem 'rails', '4.1.12'
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
+
15
+ unless is_jruby
16
+ if RUBY_VERSION >= '2.4.0'
17
+ gem 'oj', '~> 2.16.1'
18
+ else
19
+ gem 'oj', '~> 2.12.14'
20
+ end
21
+ end
14
22
 
15
- gem 'oj', '~> 2.12.14' unless is_jruby
16
23
  if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
17
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
24
+ gem 'sidekiq', '~> 2.13.0'
18
25
  else
19
26
  gem 'sidekiq', '>= 2.13.0'
20
27
  end
@@ -28,8 +35,12 @@ end
28
35
 
29
36
  if RUBY_VERSION.start_with?('1.9')
30
37
  gem 'sucker_punch', '~> 1.0'
38
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
31
39
  elsif RUBY_VERSION.start_with?('2')
32
40
  gem 'sucker_punch', '~> 2.0'
41
+ gem 'shoryuken'
42
+ gem 'codacy-coverage'
43
+ gem 'simplecov'
33
44
  end
34
45
 
35
46
  gem 'delayed_job', :require => false
@@ -40,6 +51,7 @@ gem 'sinatra'
40
51
  gem 'database_cleaner', '~> 1.0.0'
41
52
  gem 'generator_spec'
42
53
  gem 'girl_friday', '>= 0.11.1'
54
+ gem 'rspec-command'
43
55
 
44
56
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
45
57
  gem 'mime-types', '< 3.0'
@@ -50,8 +62,6 @@ else
50
62
  end
51
63
 
52
64
  gem 'resque'
53
-
54
65
  gem 'aws-sdk-sqs'
55
- gem 'shoryuken'
56
66
 
57
67
  gemspec :path => '../'
@@ -8,16 +8,10 @@ is_not_jruby = !is_jruby
8
8
  gem 'appraisal'
9
9
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
10
10
  gem 'jruby-openssl', :platform => :jruby
11
- gem 'rails', '4.2.7.1'
11
+ gem 'rails', '4.2.8'
12
12
  gem 'rake'
13
13
  gem 'rspec-rails', '~> 3.4'
14
- gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
15
-
16
- if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
17
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
18
- else
19
- gem 'sidekiq', '>= 2.13.0'
20
- end
14
+ gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
21
15
 
22
16
  platforms :rbx do
23
17
  gem 'minitest'
@@ -26,17 +20,33 @@ platforms :rbx do
26
20
  gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
27
21
  end
28
22
 
29
- if RUBY_VERSION.start_with?('2.4') && is_not_jruby
30
- gem 'oj', '~> 2.16.0'
31
- elsif is_not_jruby
32
- gem 'oj', '~> 2.12.14'
23
+ unless is_jruby
24
+ if RUBY_VERSION >= '2.5'
25
+ gem 'oj'
26
+ elsif RUBY_VERSION >= '2.4.0'
27
+ gem 'oj', '~> 2.16.1'
28
+ else
29
+ gem 'oj', '~> 2.12.14'
30
+ end
31
+ end
32
+
33
+ if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
34
+ gem 'sidekiq', '~> 2.13.0'
35
+ else
36
+ gem 'sidekiq', '>= 2.13.0'
37
+ end
38
+
39
+ if RUBY_VERSION.start_with?('1.9')
40
+ gem 'shoryuken', '>= 4.0.0', '<= 4.0.2'
41
+ elsif RUBY_VERSION.start_with?('2')
42
+ gem 'shoryuken'
33
43
  end
34
44
 
35
- gem 'codeclimate-test-reporter', :group => :test, :require => nil
36
45
  gem 'database_cleaner', '~> 1.0.0'
37
46
  gem 'delayed_job', :require => false
38
47
  gem 'generator_spec'
39
48
  gem 'girl_friday', '>= 0.11.1'
49
+ gem 'rspec-command'
40
50
  gem 'redis'
41
51
  gem 'resque'
42
52
  gem 'sinatra'
@@ -51,9 +61,10 @@ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
51
61
  else
52
62
  gem 'sucker_punch', '~> 2.0'
53
63
  gem 'webmock', :require => false
64
+ gem 'codacy-coverage'
65
+ gem 'simplecov'
54
66
  end
55
67
 
56
68
  gem 'aws-sdk-sqs'
57
- gem 'shoryuken'
58
69
 
59
70
  gemspec :path => '../'
@@ -8,7 +8,7 @@ gem 'appraisal'
8
8
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
9
9
  gem 'jruby-openssl', :platform => :jruby
10
10
  gem 'rails', '~> 5.0.0'
11
- gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
11
+ gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
12
12
 
13
13
  gem 'rspec-core', '~> 3.5.0.beta3'
14
14
  gem 'rspec-rails', '~> 3.5.0.beta3'
@@ -18,11 +18,16 @@ gem 'rspec-mocks', '~> 3.5.0.beta3'
18
18
 
19
19
  gem 'rake'
20
20
 
21
- gem 'oj', '~> 2.12.14' unless is_jruby
22
- if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
23
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
24
- else
25
- gem 'sidekiq', '>= 2.13.0'
21
+ gem 'sidekiq', '>= 2.13.0'
22
+
23
+ unless is_jruby
24
+ if RUBY_VERSION >= '2.5'
25
+ gem 'oj'
26
+ elsif RUBY_VERSION >= '2.4.0'
27
+ gem 'oj', '~> 2.16.1'
28
+ else
29
+ gem 'oj', '~> 2.12.14'
30
+ end
26
31
  end
27
32
 
28
33
  platforms :rbx do
@@ -36,15 +41,17 @@ if RUBY_VERSION.start_with?('1.9')
36
41
  gem 'sucker_punch', '~> 1.0'
37
42
  elsif RUBY_VERSION.start_with?('2')
38
43
  gem 'sucker_punch', '~> 2.0'
44
+ gem 'codacy-coverage'
45
+ gem 'simplecov'
39
46
  end
40
47
 
41
48
  # We need last sinatra that uses rack 2.x
42
49
  gem 'sinatra', :git => 'https://github.com/sinatra/sinatra'
43
- gem 'codeclimate-test-reporter', :group => :test, :require => nil
44
- gem 'database_cleaner', '~> 1.x'
50
+ gem 'database_cleaner'
45
51
  gem 'delayed_job', :require => false
46
52
  gem 'generator_spec'
47
53
  gem 'girl_friday', '>= 0.11.1'
54
+ gem 'rspec-command'
48
55
  gem 'redis'
49
56
  gem 'resque'
50
57
 
@@ -8,7 +8,7 @@ gem 'appraisal'
8
8
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
9
9
  gem 'jruby-openssl', :platform => :jruby
10
10
  gem 'rails', '~> 5.1.0'
11
- gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
11
+ gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
12
12
 
13
13
  gem 'rspec-core', '~> 3.5.0.beta3'
14
14
  gem 'rspec-rails', '~> 3.5.0.beta3'
@@ -18,11 +18,16 @@ gem 'rspec-mocks', '~> 3.5.0.beta3'
18
18
 
19
19
  gem 'rake'
20
20
 
21
- gem 'oj', '~> 2.16.1' unless is_jruby
22
- if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.2.2'
23
- gem 'sidekiq', '>= 2.13.0', '< 5.0'
24
- else
25
- gem 'sidekiq', '>= 2.13.0'
21
+ gem 'sidekiq', '>= 2.13.0'
22
+
23
+ unless is_jruby
24
+ if RUBY_VERSION >= '2.5'
25
+ gem 'oj'
26
+ elsif RUBY_VERSION >= '2.4.0'
27
+ gem 'oj', '~> 2.16.1'
28
+ else
29
+ gem 'oj', '~> 2.12.14'
30
+ end
26
31
  end
27
32
 
28
33
  platforms :rbx do
@@ -36,16 +41,18 @@ if RUBY_VERSION.start_with?('1.9')
36
41
  gem 'sucker_punch', '~> 1.0'
37
42
  elsif RUBY_VERSION.start_with?('2')
38
43
  gem 'sucker_punch', '~> 2.0'
44
+ gem 'codacy-coverage'
45
+ gem 'simplecov'
39
46
  end
40
47
 
41
48
  # We need last sinatra that uses rack 2.x
42
49
  gem 'sinatra', :git => 'https://github.com/sinatra/sinatra'
43
50
 
44
- gem 'codeclimate-test-reporter', :group => :test, :require => nil
45
- gem 'database_cleaner', '~> 1.x'
51
+ gem 'database_cleaner'
46
52
  gem 'delayed_job', :require => false
47
53
  gem 'generator_spec'
48
54
  gem 'girl_friday', '>= 0.11.1'
55
+ gem 'rspec-command'
49
56
  gem 'redis'
50
57
  gem 'resque'
51
58