ddtrace 0.39.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +56 -0
  3. data/.gitlab-ci.yml +1 -0
  4. data/.simplecov +38 -0
  5. data/Appraisals +87 -1
  6. data/CHANGELOG.md +63 -1
  7. data/Rakefile +500 -465
  8. data/ddtrace.gemspec +1 -0
  9. data/docs/DevelopmentGuide.md +16 -0
  10. data/docs/GettingStarted.md +49 -32
  11. data/lib/ddtrace.rb +1 -0
  12. data/lib/ddtrace/configuration.rb +36 -5
  13. data/lib/ddtrace/configuration/components.rb +4 -7
  14. data/lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb +0 -7
  15. data/lib/ddtrace/contrib/que/configuration/settings.rb +42 -0
  16. data/lib/ddtrace/contrib/que/ext.rb +30 -0
  17. data/lib/ddtrace/contrib/que/integration.rb +42 -0
  18. data/lib/ddtrace/contrib/que/patcher.rb +24 -0
  19. data/lib/ddtrace/contrib/que/tracer.rb +56 -0
  20. data/lib/ddtrace/contrib/racecar/events.rb +2 -0
  21. data/lib/ddtrace/contrib/racecar/events/consume.rb +27 -0
  22. data/lib/ddtrace/contrib/racecar/ext.rb +1 -0
  23. data/lib/ddtrace/contrib/rack/middlewares.rb +2 -0
  24. data/lib/ddtrace/contrib/rails/configuration/settings.rb +5 -0
  25. data/lib/ddtrace/contrib/rails/ext.rb +1 -0
  26. data/lib/ddtrace/contrib/rails/log_injection.rb +81 -0
  27. data/lib/ddtrace/contrib/rails/middlewares.rb +7 -2
  28. data/lib/ddtrace/contrib/rails/patcher.rb +15 -0
  29. data/lib/ddtrace/contrib/sinatra/env.rb +5 -4
  30. data/lib/ddtrace/contrib/sinatra/tracer.rb +21 -42
  31. data/lib/ddtrace/contrib/sinatra/tracer_middleware.rb +50 -23
  32. data/lib/ddtrace/version.rb +1 -1
  33. data/lib/ddtrace/workers/async.rb +2 -2
  34. data/lib/ddtrace/workers/loop.rb +1 -1
  35. data/lib/ddtrace/workers/polling.rb +1 -1
  36. metadata +67 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dabe2325911d2a18a25e4b4e09f07bd0c132e68725b455f2313742ddceaff878
4
- data.tar.gz: c3e395ea4faba49b4220842eb89f3aaac353bbf2d30d286b382d1b59f17b248f
3
+ metadata.gz: 38d23bcce474aa2b77029ef98bcc73a47a929aa75e6b1c2779671248b0f238e2
4
+ data.tar.gz: 0723d895065ae562813f7a9d9474a330cb8e8902e0f5b6ed4a75370fdabe1a80
5
5
  SHA512:
6
- metadata.gz: 0bcecad99a9d2ee23ac3b57ff7f82724837bdcdebaaae3fb6014367b06d36d990aaabd7c8284da08f20970d47b15852aa011b3e94821472e53371f6b419d5cbd
7
- data.tar.gz: 9c64c7a12a16524b388d62534765799041f6c9466272042184703b6a1776e2f3dcb489a04e7edbc96b1d8c78ede8855067488f1ae9ab824ea29293c18bf4e626
6
+ metadata.gz: 28c1958972c5e046ae96670b6dcc6b454e8272f5c7ee6b6d0362f51d149db852d09de4fd76bf1eeac76a483c30ad9464845ec2cf3f052b95f432210c2f92da9e
7
+ data.tar.gz: d5b07614bc418f759fac5cf8be3fedf39d6354dd18f086c2461e5d494970b7c1b270585bea37066fd06843f8278ed7fa9863b883b4fdd7062ca4bc8e37c8e663
@@ -162,6 +162,7 @@ orbs:
162
162
  environment:
163
163
  - BUNDLE_GEMFILE: /app/Gemfile
164
164
  - TEST_DATADOG_INTEGRATION: 1
165
+ - COVERAGE_BASE_DIR: coverage
165
166
  - *container_postgres
166
167
  - *container_presto
167
168
  - *container_mysql
@@ -170,6 +171,7 @@ orbs:
170
171
  - *container_mongo
171
172
  - *container_memcached
172
173
  - *container_agent
174
+ parallelism: 22
173
175
  steps:
174
176
  - restore_cache:
175
177
  keys:
@@ -177,7 +179,16 @@ orbs:
177
179
  - restore_cache:
178
180
  keys:
179
181
  - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
182
+ - run:
183
+ name: Set coverage report directory
184
+ command: |
185
+ # Create a unique coverage directory for this job, to avoid conflicts when merging all results
186
+ echo 'export COVERAGE_DIR="$COVERAGE_BASE_DIR/versions/$CIRCLE_JOB/$CIRCLE_NODE_INDEX"' >> $BASH_ENV
180
187
  - *step_run_all_tests
188
+ - persist_to_workspace:
189
+ root: .
190
+ paths:
191
+ - coverage
181
192
  benchmark:
182
193
  <<: *job_defaults
183
194
  parameters:
@@ -231,6 +242,38 @@ orbs:
231
242
  keys:
232
243
  - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
233
244
  - *step_rubocop
245
+ coverage:
246
+ <<: *job_defaults
247
+ parameters:
248
+ ruby_version:
249
+ description: Ruby version
250
+ type: string
251
+ image:
252
+ description: Docker image location
253
+ type: string
254
+ docker:
255
+ - <<: *container_base
256
+ image: <<parameters.image>>
257
+ environment:
258
+ - BUNDLE_GEMFILE: /app/Gemfile
259
+ steps:
260
+ - restore_cache:
261
+ keys:
262
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
263
+ - restore_cache:
264
+ keys:
265
+ - '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
266
+ - attach_workspace:
267
+ at: /tmp/workspace
268
+ - run:
269
+ name: Generate coverage report artifact "coverage/index.html"
270
+ command: COVERAGE_DIR=/tmp/workspace/coverage bundle exec rake coverage:report
271
+ - run:
272
+ name: Generate coverage report artifact "coverage/versions/*/index.html"
273
+ command: COVERAGE_DIR=/tmp/workspace/coverage bundle exec rake coverage:report_per_ruby_version
274
+ - store_artifacts:
275
+ path: /tmp/workspace/coverage/report/
276
+ destination: coverage
234
277
  commands:
235
278
  executors:
236
279
 
@@ -339,6 +382,19 @@ workflows:
339
382
  name: lint
340
383
  requires:
341
384
  - build-2.6
385
+ - orb/coverage:
386
+ <<: *config-2_7
387
+ name: coverage
388
+ requires:
389
+ - test-2.0
390
+ - test-2.1
391
+ - test-2.2
392
+ - test-2.3
393
+ - test-2.4
394
+ - test-2.5
395
+ - test-2.6
396
+ - test-2.7
397
+ - test-jruby-9.2
342
398
  # MRI
343
399
  - orb/checkout:
344
400
  <<: *config-2_0
@@ -15,6 +15,7 @@ copy_to_s3:
15
15
  - if: '$CI_COMMIT_BRANCH == "master"'
16
16
  when: on_success
17
17
  - when: manual
18
+ allow_failure: true
18
19
  script:
19
20
  - export ACCESS_KEY_ID=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-rb.secret_key_id --with-decryption --query "Parameter.Value" --out text)
20
21
  - export SECRET_ACCESS_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-rb.secret_sec_key_id --with-decryption --query "Parameter.Value" --out text)
@@ -0,0 +1,38 @@
1
+ SimpleCov.add_group 'contrib', '/lib/ddtrace/contrib'
2
+ SimpleCov.add_group 'transport', '/lib/ddtrace/transport'
3
+ SimpleCov.add_group 'spec', '/spec/'
4
+
5
+ SimpleCov.coverage_dir ENV.fetch('COVERAGE_DIR', 'coverage')
6
+
7
+ # Each test run requires its own unique command_name.
8
+ # When running `rake spec:test_name`, the test process doesn't have access to the
9
+ # rake task process, so we have come up with unique values ourselves.
10
+ #
11
+ # The current approach is to combine the ruby engine (ruby-2.7,jruby-9.2),
12
+ # program name (rspec/test), command line arguments (--pattern spec/**/*_spec.rb),
13
+ # and the loaded gemset.
14
+ #
15
+ # This should allow us to distinguish between runs with the same tests, but different gemsets:
16
+ # * appraisal rails5-mysql2 rake spec:rails
17
+ # * appraisal rails5-postgres rake spec:rails
18
+ #
19
+ # Subsequent runs of the same exact test suite should have the same command_name.
20
+ command_line_arguments = ARGV.join(' ')
21
+ gemset_hash = Digest::MD5.hexdigest Gem.loaded_specs.values.map { |x| "#{x.name}#{x.version}" }.sort.join
22
+ ruby_engine = if defined?(RUBY_ENGINE_VERSION)
23
+ "#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}"
24
+ else
25
+ "#{RUBY_ENGINE}-#{RUBY_VERSION}" # For Ruby < 2.3
26
+ end
27
+ SimpleCov.command_name "#{ruby_engine}:#{gemset_hash}:#{$PROGRAM_NAME} #{command_line_arguments}"
28
+
29
+ # A very large number to disable result merging timeout
30
+ SimpleCov.merge_timeout 2 ** 31
31
+
32
+ # DEV If we choose to enforce a hard minimum.
33
+ # SimpleCov.minimum_coverage 95
34
+
35
+ # DEV If we choose to enforce a maximum coverage drop.
36
+ # DEV We have to figure out where to store previous coverage data
37
+ # DEV in order to perform this comparison
38
+ # SimpleCov.maximum_coverage_drop 1
data/Appraisals CHANGED
@@ -13,6 +13,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
13
13
  gem 'pg', '0.15.1', platform: :ruby
14
14
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
15
15
  gem 'rack-cache', '1.7.1'
16
+ gem 'lograge', '< 0.4'
16
17
  end
17
18
 
18
19
  appraise 'rails30-postgres-sidekiq' do
@@ -22,6 +23,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
22
23
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
23
24
  gem 'sidekiq', '4.0.0'
24
25
  gem 'rack-cache', '1.7.1'
26
+ gem 'lograge', '< 0.4'
25
27
  end
26
28
 
27
29
  appraise 'rails32-mysql2' do
@@ -31,6 +33,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
31
33
  gem 'activerecord-mysql-adapter', platform: :ruby
32
34
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
33
35
  gem 'rack-cache', '1.7.1'
36
+ gem 'lograge', '< 0.4'
34
37
  end
35
38
 
36
39
  appraise 'rails32-postgres' do
@@ -39,6 +42,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
39
42
  gem 'pg', '0.15.1', platform: :ruby
40
43
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
41
44
  gem 'rack-cache', '1.7.1'
45
+ gem 'lograge', '< 0.4'
42
46
  end
43
47
 
44
48
  appraise 'rails32-postgres-redis' do
@@ -49,6 +53,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
49
53
  gem 'redis-rails'
50
54
  gem 'redis', '< 4.0'
51
55
  gem 'rack-cache', '1.7.1'
56
+ gem 'lograge', '< 0.4'
52
57
  end
53
58
 
54
59
  appraise 'rails32-postgres-sidekiq' do
@@ -58,6 +63,7 @@ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
58
63
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
59
64
  gem 'sidekiq', '4.0.0'
60
65
  gem 'rack-cache', '1.7.1'
66
+ gem 'lograge', '< 0.4'
61
67
  end
62
68
 
63
69
  appraise 'contrib-old' do
@@ -102,6 +108,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
102
108
  gem 'pg', '0.15.1', platform: :ruby
103
109
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
104
110
  gem 'rack-cache', '1.7.1'
111
+ gem 'lograge', '< 0.4'
105
112
  end
106
113
 
107
114
  appraise 'rails30-postgres-sidekiq' do
@@ -111,6 +118,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
111
118
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
112
119
  gem 'sidekiq', '4.0.0'
113
120
  gem 'rack-cache', '1.7.1'
121
+ gem 'lograge', '< 0.4'
114
122
  end
115
123
 
116
124
  appraise 'rails32-mysql2' do
@@ -120,6 +128,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
120
128
  gem 'activerecord-mysql-adapter', platform: :ruby
121
129
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
122
130
  gem 'rack-cache', '1.7.1'
131
+ gem 'lograge', '< 0.4'
123
132
  end
124
133
 
125
134
  appraise 'rails32-postgres' do
@@ -128,6 +137,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
128
137
  gem 'pg', '0.15.1', platform: :ruby
129
138
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
130
139
  gem 'rack-cache', '1.7.1'
140
+ gem 'lograge', '< 0.4'
131
141
  end
132
142
 
133
143
  appraise 'rails32-postgres-redis' do
@@ -138,6 +148,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
138
148
  gem 'redis-rails'
139
149
  gem 'redis', '< 4.0'
140
150
  gem 'rack-cache', '1.7.1'
151
+ gem 'lograge', '< 0.4'
141
152
  end
142
153
 
143
154
  appraise 'rails32-postgres-sidekiq' do
@@ -147,6 +158,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
147
158
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
148
159
  gem 'sidekiq', '4.0.0'
149
160
  gem 'rack-cache', '1.7.1'
161
+ gem 'lograge', '< 0.4'
150
162
  end
151
163
 
152
164
  appraise 'rails4-mysql2' do
@@ -154,6 +166,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
154
166
  gem 'mysql2', '< 1', platform: :ruby
155
167
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
156
168
  gem 'sprockets', '< 4'
169
+ gem 'lograge'
157
170
  end
158
171
 
159
172
  appraise 'rails4-postgres' do
@@ -161,6 +174,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
161
174
  gem 'pg', '< 1.0', platform: :ruby
162
175
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
163
176
  gem 'sprockets', '< 4'
177
+ gem 'lograge'
164
178
  end
165
179
 
166
180
  appraise 'rails4-postgres-redis' do
@@ -170,6 +184,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
170
184
  gem 'redis-rails'
171
185
  gem 'redis', '< 4.0'
172
186
  gem 'sprockets', '< 4'
187
+ gem 'lograge'
173
188
  end
174
189
 
175
190
  appraise 'contrib-old' do
@@ -182,7 +197,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
182
197
  gem 'delayed_job'
183
198
  gem 'delayed_job_active_record'
184
199
  gem 'elasticsearch-transport'
185
- gem 'presto-client', '>= 0.5.14'
200
+ gem 'presto-client', '>= 0.5.14'
186
201
  gem 'ethon'
187
202
  gem 'excon'
188
203
  gem 'hiredis'
@@ -217,6 +232,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
217
232
  gem 'pg', '0.15.1', platform: :ruby
218
233
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
219
234
  gem 'rack-cache', '1.7.1'
235
+ gem 'lograge', '< 0.4'
220
236
  end
221
237
 
222
238
  appraise 'rails30-postgres-sidekiq' do
@@ -226,6 +242,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
226
242
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
227
243
  gem 'sidekiq', '4.0.0'
228
244
  gem 'rack-cache', '1.7.1'
245
+ gem 'lograge', '< 0.4'
229
246
  end
230
247
 
231
248
  appraise 'rails32-mysql2' do
@@ -235,6 +252,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
235
252
  gem 'activerecord-mysql-adapter', platform: :ruby
236
253
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
237
254
  gem 'rack-cache', '1.7.1'
255
+ gem 'lograge', '< 0.4'
238
256
  end
239
257
 
240
258
  appraise 'rails32-postgres' do
@@ -243,6 +261,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
243
261
  gem 'pg', '0.15.1', platform: :ruby
244
262
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
245
263
  gem 'rack-cache', '1.7.1'
264
+ gem 'lograge', '< 0.4'
246
265
  end
247
266
 
248
267
  appraise 'rails32-postgres-redis' do
@@ -253,6 +272,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
253
272
  gem 'redis-rails'
254
273
  gem 'redis', '< 4.0'
255
274
  gem 'rack-cache', '1.7.1'
275
+ gem 'lograge', '< 0.4'
256
276
  end
257
277
 
258
278
  appraise 'rails32-postgres-sidekiq' do
@@ -262,6 +282,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
262
282
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
263
283
  gem 'sidekiq', '4.0.0'
264
284
  gem 'rack-cache', '1.7.1'
285
+ gem 'lograge', '< 0.4'
265
286
  end
266
287
 
267
288
  appraise 'rails4-mysql2' do
@@ -269,6 +290,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
269
290
  gem 'mysql2', '< 1', platform: :ruby
270
291
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
271
292
  gem 'sprockets', '< 4'
293
+ gem 'lograge'
272
294
  end
273
295
 
274
296
  appraise 'rails4-postgres' do
@@ -276,6 +298,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
276
298
  gem 'pg', '< 1.0', platform: :ruby
277
299
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
278
300
  gem 'sprockets', '< 4'
301
+ gem 'lograge'
279
302
  end
280
303
 
281
304
  appraise 'rails4-postgres-redis' do
@@ -285,6 +308,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
285
308
  gem 'redis-rails'
286
309
  gem 'redis', '< 4.0'
287
310
  gem 'sprockets', '< 4'
311
+ gem 'lograge'
288
312
  end
289
313
 
290
314
  appraise 'rails4-postgres-sidekiq' do
@@ -294,18 +318,21 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
294
318
  gem 'sidekiq'
295
319
  gem 'activejob'
296
320
  gem 'sprockets', '< 4'
321
+ gem 'lograge'
297
322
  end
298
323
 
299
324
  appraise 'rails5-mysql2' do
300
325
  gem 'rails', '5.2.3'
301
326
  gem 'mysql2', '< 1', platform: :ruby
302
327
  gem 'sprockets', '< 4'
328
+ gem 'lograge'
303
329
  end
304
330
 
305
331
  appraise 'rails5-postgres' do
306
332
  gem 'rails', '5.2.3'
307
333
  gem 'pg', '< 1.0', platform: :ruby
308
334
  gem 'sprockets', '< 4'
335
+ gem 'lograge'
309
336
  end
310
337
 
311
338
  appraise 'rails5-postgres-redis' do
@@ -313,6 +340,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
313
340
  gem 'pg', '< 1.0', platform: :ruby
314
341
  gem 'redis', '>= 4.0.1'
315
342
  gem 'sprockets', '< 4'
343
+ gem 'lograge'
316
344
  end
317
345
 
318
346
  appraise 'rails5-postgres-redis-activesupport' do
@@ -320,6 +348,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
320
348
  gem 'pg', '< 1.0', platform: :ruby
321
349
  gem 'redis', '>= 4.0.1'
322
350
  gem 'sprockets', '< 4'
351
+ gem 'lograge'
323
352
  end
324
353
 
325
354
  appraise 'rails5-postgres-sidekiq' do
@@ -328,6 +357,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
328
357
  gem 'sidekiq'
329
358
  gem 'activejob'
330
359
  gem 'sprockets', '< 4'
360
+ gem 'lograge'
331
361
  end
332
362
 
333
363
  appraise 'contrib' do
@@ -369,6 +399,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
369
399
  gem 'sqlite3', '~> 1.3.6'
370
400
  gem 'sucker_punch'
371
401
  gem 'typhoeus'
402
+ gem 'que', '>= 1.0.0.beta2'
372
403
  end
373
404
  end
374
405
  elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
@@ -380,6 +411,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
380
411
  gem 'pg', '0.15.1', platform: :ruby
381
412
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
382
413
  gem 'rack-cache', '1.7.1'
414
+ gem 'lograge', '< 0.4'
383
415
  end
384
416
 
385
417
  appraise 'rails30-postgres-sidekiq' do
@@ -389,6 +421,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
389
421
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
390
422
  gem 'sidekiq', '4.0.0'
391
423
  gem 'rack-cache', '1.7.1'
424
+ gem 'lograge', '< 0.4'
392
425
  end
393
426
 
394
427
  appraise 'rails32-mysql2' do
@@ -398,6 +431,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
398
431
  gem 'activerecord-mysql-adapter', platform: :ruby
399
432
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
400
433
  gem 'rack-cache', '1.7.1'
434
+ gem 'lograge', '< 0.4'
401
435
  end
402
436
 
403
437
  appraise 'rails32-postgres' do
@@ -406,6 +440,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
406
440
  gem 'pg', '0.15.1', platform: :ruby
407
441
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
408
442
  gem 'rack-cache', '1.7.1'
443
+ gem 'lograge', '< 0.4'
409
444
  end
410
445
 
411
446
  appraise 'rails32-postgres-redis' do
@@ -416,6 +451,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
416
451
  gem 'redis-rails'
417
452
  gem 'redis', '< 4.0'
418
453
  gem 'rack-cache', '1.7.1'
454
+ gem 'lograge', '< 0.4'
419
455
  end
420
456
 
421
457
  appraise 'rails32-postgres-sidekiq' do
@@ -425,6 +461,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
425
461
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
426
462
  gem 'sidekiq', '4.0.0'
427
463
  gem 'rack-cache', '1.7.1'
464
+ gem 'lograge', '< 0.4'
428
465
  end
429
466
 
430
467
  appraise 'rails4-mysql2' do
@@ -432,6 +469,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
432
469
  gem 'mysql2', '< 1', platform: :ruby
433
470
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
434
471
  gem 'sprockets', '< 4'
472
+ gem 'lograge'
435
473
  end
436
474
 
437
475
  appraise 'rails4-postgres' do
@@ -439,6 +477,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
439
477
  gem 'pg', '< 1.0', platform: :ruby
440
478
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
441
479
  gem 'sprockets', '< 4'
480
+ gem 'lograge'
442
481
  end
443
482
 
444
483
  appraise 'rails4-postgres-redis' do
@@ -448,6 +487,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
448
487
  gem 'redis-rails'
449
488
  gem 'redis', '< 4.0'
450
489
  gem 'sprockets', '< 4'
490
+ gem 'lograge'
451
491
  end
452
492
 
453
493
  appraise 'rails4-postgres-sidekiq' do
@@ -457,18 +497,21 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
457
497
  gem 'sidekiq'
458
498
  gem 'activejob'
459
499
  gem 'sprockets', '< 4'
500
+ gem 'lograge'
460
501
  end
461
502
 
462
503
  appraise 'rails5-mysql2' do
463
504
  gem 'rails', '~> 5.2.1'
464
505
  gem 'mysql2', '< 1', platform: :ruby
465
506
  gem 'sprockets', '< 4'
507
+ gem 'lograge'
466
508
  end
467
509
 
468
510
  appraise 'rails5-postgres' do
469
511
  gem 'rails', '~> 5.2.1'
470
512
  gem 'pg', '< 1.0', platform: :ruby
471
513
  gem 'sprockets', '< 4'
514
+ gem 'lograge'
472
515
  end
473
516
 
474
517
  appraise 'rails5-postgres-redis' do
@@ -476,6 +519,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
476
519
  gem 'pg', '< 1.0', platform: :ruby
477
520
  gem 'redis', '>= 4.0.1'
478
521
  gem 'sprockets', '< 4'
522
+ gem 'lograge'
479
523
  end
480
524
 
481
525
  appraise 'rails5-postgres-redis-activesupport' do
@@ -483,6 +527,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
483
527
  gem 'pg', '< 1.0', platform: :ruby
484
528
  gem 'redis', '>= 4.0.1'
485
529
  gem 'sprockets', '< 4'
530
+ gem 'lograge'
486
531
  end
487
532
 
488
533
  appraise 'rails5-postgres-sidekiq' do
@@ -491,6 +536,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
491
536
  gem 'sidekiq'
492
537
  gem 'activejob'
493
538
  gem 'sprockets', '< 4'
539
+ gem 'lograge'
494
540
  end
495
541
 
496
542
  appraise 'contrib' do
@@ -533,6 +579,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
533
579
  gem 'sqlite3', '~> 1.3.6'
534
580
  gem 'sucker_punch'
535
581
  gem 'typhoeus'
582
+ gem 'que', '>= 1.0.0.beta2'
536
583
  end
537
584
 
538
585
  appraise 'contrib-old' do
@@ -546,12 +593,14 @@ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
546
593
  gem 'rails', '~> 5.2.1'
547
594
  gem 'mysql2', '< 1', platform: :ruby
548
595
  gem 'sprockets', '< 4'
596
+ gem 'lograge'
549
597
  end
550
598
 
551
599
  appraise 'rails5-postgres' do
552
600
  gem 'rails', '~> 5.2.1'
553
601
  gem 'pg', '< 1.0', platform: :ruby
554
602
  gem 'sprockets', '< 4'
603
+ gem 'lograge'
555
604
  end
556
605
 
557
606
  appraise 'rails5-postgres-redis' do
@@ -559,6 +608,7 @@ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
559
608
  gem 'pg', '< 1.0', platform: :ruby
560
609
  gem 'redis', '>= 4.0.1'
561
610
  gem 'sprockets', '< 4'
611
+ gem 'lograge'
562
612
  end
563
613
 
564
614
  appraise 'rails5-postgres-redis-activesupport' do
@@ -566,6 +616,7 @@ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
566
616
  gem 'pg', '< 1.0', platform: :ruby
567
617
  gem 'redis', '>= 4.0.1'
568
618
  gem 'sprockets', '< 4'
619
+ gem 'lograge'
569
620
  end
570
621
 
571
622
  appraise 'rails5-postgres-sidekiq' do
@@ -574,6 +625,7 @@ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
574
625
  gem 'sidekiq'
575
626
  gem 'activejob'
576
627
  gem 'sprockets', '< 4'
628
+ gem 'lograge'
577
629
  end
578
630
 
579
631
  appraise 'contrib' do
@@ -616,6 +668,7 @@ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
616
668
  gem 'sqlite3', '~> 1.3.6'
617
669
  gem 'sucker_punch'
618
670
  gem 'typhoeus'
671
+ gem 'que', '>= 1.0.0.beta2'
619
672
  end
620
673
 
621
674
  appraise 'contrib-old' do
@@ -629,6 +682,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
629
682
  gem 'mysql2', '< 1', platform: :ruby
630
683
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
631
684
  gem 'sprockets', '< 4'
685
+ gem 'lograge'
632
686
  end
633
687
 
634
688
  appraise 'rails5-postgres' do
@@ -636,6 +690,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
636
690
  gem 'pg', '< 1.0', platform: :ruby
637
691
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
638
692
  gem 'sprockets', '< 4'
693
+ gem 'lograge'
639
694
  end
640
695
 
641
696
  appraise 'rails5-postgres-redis' do
@@ -644,6 +699,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
644
699
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
645
700
  gem 'redis', '>= 4.0.1'
646
701
  gem 'sprockets', '< 4'
702
+ gem 'lograge'
647
703
  end
648
704
 
649
705
  appraise 'rails5-postgres-redis-activesupport' do
@@ -652,6 +708,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
652
708
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
653
709
  gem 'redis', '>= 4.0.1'
654
710
  gem 'sprockets', '< 4'
711
+ gem 'lograge'
655
712
  end
656
713
 
657
714
  appraise 'rails5-postgres-sidekiq' do
@@ -661,6 +718,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
661
718
  gem 'sidekiq'
662
719
  gem 'activejob'
663
720
  gem 'sprockets', '< 4'
721
+ gem 'lograge'
664
722
  end
665
723
 
666
724
  appraise 'rails6-mysql2' do
@@ -668,6 +726,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
668
726
  gem 'mysql2', '< 1', platform: :ruby
669
727
  gem 'activerecord-jdbcmysql-adapter', '>= 60', platform: :jruby # try remove >= 60
670
728
  gem 'sprockets', '< 4'
729
+ gem 'lograge'
671
730
  end
672
731
 
673
732
  appraise 'rails6-postgres' do
@@ -675,6 +734,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
675
734
  gem 'pg', '< 1.0', platform: :ruby
676
735
  gem 'activerecord-jdbcpostgresql-adapter', '>= 60', platform: :jruby
677
736
  gem 'sprockets', '< 4'
737
+ gem 'lograge'
678
738
  end
679
739
 
680
740
  appraise 'rails6-postgres-redis' do
@@ -683,6 +743,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
683
743
  gem 'activerecord-jdbcpostgresql-adapter', '>= 60', platform: :jruby
684
744
  gem 'redis', '>= 4.0.1'
685
745
  gem 'sprockets', '< 4'
746
+ gem 'lograge'
686
747
  end
687
748
 
688
749
  appraise 'rails6-postgres-redis-activesupport' do
@@ -691,6 +752,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
691
752
  gem 'activerecord-jdbcpostgresql-adapter', '>= 60', platform: :jruby
692
753
  gem 'redis', '>= 4.0.1'
693
754
  gem 'sprockets', '< 4'
755
+ gem 'lograge'
694
756
  end
695
757
 
696
758
  appraise 'rails6-postgres-sidekiq' do
@@ -700,6 +762,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
700
762
  gem 'sidekiq'
701
763
  gem 'activejob'
702
764
  gem 'sprockets', '< 4'
765
+ gem 'lograge'
703
766
  end
704
767
 
705
768
  appraise 'contrib' do
@@ -743,6 +806,7 @@ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
743
806
  gem 'sqlite3', '~> 1.4.1', platform: :ruby
744
807
  gem 'sucker_punch'
745
808
  gem 'typhoeus'
809
+ gem 'que', '>= 1.0.0.beta2'
746
810
  end
747
811
 
748
812
  appraise 'contrib-old' do
@@ -755,12 +819,14 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
755
819
  gem 'rails', '~> 5.2.1'
756
820
  gem 'mysql2', '< 1', platform: :ruby
757
821
  gem 'sprockets', '< 4'
822
+ gem 'lograge'
758
823
  end
759
824
 
760
825
  appraise 'rails5-postgres' do
761
826
  gem 'rails', '~> 5.2.1'
762
827
  gem 'pg', '< 1.0', platform: :ruby
763
828
  gem 'sprockets', '< 4'
829
+ gem 'lograge'
764
830
  end
765
831
 
766
832
  appraise 'rails5-postgres-redis' do
@@ -768,6 +834,7 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
768
834
  gem 'pg', '< 1.0', platform: :ruby
769
835
  gem 'redis', '>= 4.0.1'
770
836
  gem 'sprockets', '< 4'
837
+ gem 'lograge'
771
838
  end
772
839
 
773
840
  appraise 'rails5-postgres-redis-activesupport' do
@@ -775,6 +842,7 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
775
842
  gem 'pg', '< 1.0', platform: :ruby
776
843
  gem 'redis', '>= 4.0.1'
777
844
  gem 'sprockets', '< 4'
845
+ gem 'lograge'
778
846
  end
779
847
 
780
848
  appraise 'rails5-postgres-sidekiq' do
@@ -783,18 +851,21 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
783
851
  gem 'sidekiq'
784
852
  gem 'activejob'
785
853
  gem 'sprockets', '< 4'
854
+ gem 'lograge'
786
855
  end
787
856
 
788
857
  appraise 'rails6-mysql2' do
789
858
  gem 'rails', '~> 6.0.0'
790
859
  gem 'mysql2', '< 1', platform: :ruby
791
860
  gem 'sprockets', '< 4'
861
+ gem 'lograge'
792
862
  end
793
863
 
794
864
  appraise 'rails6-postgres' do
795
865
  gem 'rails', '~> 6.0.0'
796
866
  gem 'pg', '< 1.0', platform: :ruby
797
867
  gem 'sprockets', '< 4'
868
+ gem 'lograge'
798
869
  end
799
870
 
800
871
  appraise 'rails6-postgres-redis' do
@@ -802,6 +873,7 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
802
873
  gem 'pg', '< 1.0', platform: :ruby
803
874
  gem 'redis', '>= 4.0.1'
804
875
  gem 'sprockets', '< 4'
876
+ gem 'lograge'
805
877
  end
806
878
 
807
879
  appraise 'rails6-postgres-redis-activesupport' do
@@ -809,6 +881,7 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
809
881
  gem 'pg', '< 1.0', platform: :ruby
810
882
  gem 'redis', '>= 4.0.1'
811
883
  gem 'sprockets', '< 4'
884
+ gem 'lograge'
812
885
  end
813
886
 
814
887
  appraise 'rails6-postgres-sidekiq' do
@@ -817,6 +890,7 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
817
890
  gem 'sidekiq'
818
891
  gem 'activejob'
819
892
  gem 'sprockets', '< 4'
893
+ gem 'lograge'
820
894
  end
821
895
 
822
896
  appraise 'contrib' do
@@ -858,6 +932,7 @@ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
858
932
  gem 'sqlite3', '~> 1.4.1'
859
933
  gem 'sucker_punch'
860
934
  gem 'typhoeus'
935
+ gem 'que', '>= 1.0.0.beta2'
861
936
  end
862
937
 
863
938
  appraise 'contrib-old' do
@@ -870,12 +945,14 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
870
945
  gem 'rails', '~> 5.2.1'
871
946
  gem 'mysql2', '< 0.5', platform: :ruby
872
947
  gem 'sprockets', '< 4'
948
+ gem 'lograge'
873
949
  end
874
950
 
875
951
  appraise 'rails5-postgres' do
876
952
  gem 'rails', '~> 5.2.1'
877
953
  gem 'pg', '< 1.0', platform: :ruby
878
954
  gem 'sprockets', '< 4'
955
+ gem 'lograge'
879
956
  end
880
957
 
881
958
  appraise 'rails5-postgres-redis' do
@@ -884,6 +961,7 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
884
961
  gem 'redis-rails'
885
962
  gem 'redis'
886
963
  gem 'sprockets', '< 4'
964
+ gem 'lograge'
887
965
  end
888
966
 
889
967
  appraise 'rails5-postgres-redis-activesupport' do
@@ -892,6 +970,7 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
892
970
  gem 'redis-rails'
893
971
  gem 'redis'
894
972
  gem 'sprockets', '< 4'
973
+ gem 'lograge'
895
974
  end
896
975
 
897
976
  appraise 'rails5-postgres-sidekiq' do
@@ -900,18 +979,21 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
900
979
  gem 'sidekiq'
901
980
  gem 'activejob'
902
981
  gem 'sprockets', '< 4'
982
+ gem 'lograge'
903
983
  end
904
984
 
905
985
  appraise 'rails6-mysql2' do
906
986
  gem 'rails', '~> 6.0.0'
907
987
  gem 'mysql2', '< 0.6', platform: :ruby
908
988
  gem 'sprockets', '< 4'
989
+ gem 'lograge'
909
990
  end
910
991
 
911
992
  appraise 'rails6-postgres' do
912
993
  gem 'rails', '~> 6.0.0'
913
994
  gem 'pg', '< 1.0', platform: :ruby
914
995
  gem 'sprockets', '< 4'
996
+ gem 'lograge'
915
997
  end
916
998
 
917
999
  appraise 'rails6-postgres-redis' do
@@ -920,6 +1002,7 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
920
1002
  gem 'redis-rails'
921
1003
  gem 'redis'
922
1004
  gem 'sprockets', '< 4'
1005
+ gem 'lograge'
923
1006
  end
924
1007
 
925
1008
  appraise 'rails6-postgres-redis-activesupport' do
@@ -928,6 +1011,7 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
928
1011
  gem 'redis-rails'
929
1012
  gem 'redis'
930
1013
  gem 'sprockets', '< 4'
1014
+ gem 'lograge'
931
1015
  end
932
1016
 
933
1017
  appraise 'rails6-postgres-sidekiq' do
@@ -936,6 +1020,7 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
936
1020
  gem 'sidekiq'
937
1021
  gem 'activejob'
938
1022
  gem 'sprockets', '< 4'
1023
+ gem 'lograge'
939
1024
  end
940
1025
 
941
1026
  appraise 'contrib' do
@@ -976,6 +1061,7 @@ elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
976
1061
  gem 'sqlite3', '~> 1.4.1'
977
1062
  gem 'sucker_punch'
978
1063
  gem 'typhoeus'
1064
+ gem 'que', '>= 1.0.0.beta2'
979
1065
  end
980
1066
 
981
1067
  appraise 'contrib-old' do