ddtrace 0.12.1 → 0.13.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.env +11 -21
  3. data/.rubocop.yml +1 -4
  4. data/Appraisals +75 -439
  5. data/CHANGELOG.md +16 -19
  6. data/Rakefile +89 -259
  7. data/circle.yml +69 -0
  8. data/ddtrace.gemspec +6 -6
  9. data/docker-compose.yml +37 -222
  10. data/docs/GettingStarted.md +260 -19
  11. data/gemfiles/contrib.gemfile +5 -0
  12. data/gemfiles/contrib_old.gemfile +4 -1
  13. data/gemfiles/rails30_postgres.gemfile +0 -1
  14. data/gemfiles/rails30_postgres_sidekiq.gemfile +0 -1
  15. data/gemfiles/rails32_mysql2.gemfile +0 -1
  16. data/gemfiles/rails32_postgres.gemfile +0 -1
  17. data/gemfiles/rails32_postgres_redis.gemfile +0 -1
  18. data/gemfiles/rails32_postgres_sidekiq.gemfile +0 -1
  19. data/gemfiles/rails5_mysql2.gemfile +1 -1
  20. data/gemfiles/rails5_postgres.gemfile +1 -1
  21. data/gemfiles/rails5_postgres_redis.gemfile +1 -1
  22. data/gemfiles/rails5_postgres_sidekiq.gemfile +1 -1
  23. data/lib/ddtrace.rb +6 -0
  24. data/lib/ddtrace/configuration.rb +2 -2
  25. data/lib/ddtrace/contrib/active_model_serializers/event.rb +57 -0
  26. data/lib/ddtrace/contrib/active_model_serializers/events.rb +30 -0
  27. data/lib/ddtrace/contrib/active_model_serializers/events/render.rb +32 -0
  28. data/lib/ddtrace/contrib/active_model_serializers/events/serialize.rb +35 -0
  29. data/lib/ddtrace/contrib/active_model_serializers/patcher.rb +62 -0
  30. data/lib/ddtrace/contrib/active_record/event.rb +30 -0
  31. data/lib/ddtrace/contrib/active_record/events.rb +30 -0
  32. data/lib/ddtrace/contrib/active_record/events/instantiation.rb +51 -0
  33. data/lib/ddtrace/contrib/active_record/events/sql.rb +48 -0
  34. data/lib/ddtrace/contrib/active_record/patcher.rb +3 -73
  35. data/lib/ddtrace/contrib/active_record/utils.rb +1 -15
  36. data/lib/ddtrace/contrib/active_support/notifications/event.rb +62 -0
  37. data/lib/ddtrace/contrib/aws/instrumentation.rb +2 -2
  38. data/lib/ddtrace/contrib/elasticsearch/patcher.rb +2 -2
  39. data/lib/ddtrace/contrib/elasticsearch/quantize.rb +8 -40
  40. data/lib/ddtrace/contrib/excon/middleware.rb +140 -0
  41. data/lib/ddtrace/contrib/excon/patcher.rb +50 -0
  42. data/lib/ddtrace/contrib/grpc/datadog_interceptor.rb +65 -0
  43. data/lib/ddtrace/contrib/grpc/datadog_interceptor/client.rb +49 -0
  44. data/lib/ddtrace/contrib/grpc/datadog_interceptor/server.rb +66 -0
  45. data/lib/ddtrace/contrib/grpc/intercept_with_datadog.rb +49 -0
  46. data/lib/ddtrace/contrib/grpc/patcher.rb +62 -0
  47. data/lib/ddtrace/contrib/http/patcher.rb +16 -18
  48. data/lib/ddtrace/contrib/racecar/event.rb +61 -0
  49. data/lib/ddtrace/contrib/racecar/events.rb +30 -0
  50. data/lib/ddtrace/contrib/racecar/events/batch.rb +27 -0
  51. data/lib/ddtrace/contrib/racecar/events/message.rb +27 -0
  52. data/lib/ddtrace/contrib/racecar/patcher.rb +6 -52
  53. data/lib/ddtrace/contrib/rack/middlewares.rb +65 -11
  54. data/lib/ddtrace/contrib/rack/patcher.rb +16 -0
  55. data/lib/ddtrace/contrib/rack/request_queue.rb +34 -0
  56. data/lib/ddtrace/contrib/rails/action_view.rb +65 -0
  57. data/lib/ddtrace/contrib/rails/active_support.rb +8 -9
  58. data/lib/ddtrace/contrib/rails/core_extensions.rb +115 -74
  59. data/lib/ddtrace/contrib/rake/instrumentation.rb +70 -0
  60. data/lib/ddtrace/contrib/rake/patcher.rb +53 -0
  61. data/lib/ddtrace/contrib/sequel/database.rb +58 -0
  62. data/lib/ddtrace/contrib/sequel/dataset.rb +59 -0
  63. data/lib/ddtrace/contrib/sequel/patcher.rb +56 -0
  64. data/lib/ddtrace/contrib/sequel/utils.rb +28 -0
  65. data/lib/ddtrace/ext/distributed.rb +5 -0
  66. data/lib/ddtrace/ext/grpc.rb +7 -0
  67. data/lib/ddtrace/ext/http.rb +35 -5
  68. data/lib/ddtrace/propagation/grpc_propagator.rb +54 -0
  69. data/lib/ddtrace/quantization/hash.rb +89 -0
  70. data/lib/ddtrace/tracer.rb +1 -4
  71. data/lib/ddtrace/utils.rb +4 -10
  72. data/lib/ddtrace/utils/database.rb +21 -0
  73. data/lib/ddtrace/version.rb +3 -3
  74. metadata +38 -13
  75. data/.circleci/config.yml +0 -456
  76. data/.circleci/images/primary/Dockerfile-1.9.3 +0 -69
  77. data/.circleci/images/primary/Dockerfile-2.0.0 +0 -69
  78. data/.circleci/images/primary/Dockerfile-2.1.10 +0 -69
  79. data/.circleci/images/primary/Dockerfile-2.2.10 +0 -69
  80. data/.circleci/images/primary/Dockerfile-2.3.7 +0 -73
  81. data/.circleci/images/primary/Dockerfile-2.4.4 +0 -73
  82. data/lib/ddtrace/contrib/rails/action_controller_patch.rb +0 -77
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65ddfa40ee7d950ac00dbf5baed36f1584a81bc3
4
- data.tar.gz: db4297fc13cd2a727d3e1a6251e2280bed81a3a6
3
+ metadata.gz: f0d7f0541b3ac385122727dbe61b2886cb1aa93c
4
+ data.tar.gz: b182f817465457163005f648a295637a52e9c87b
5
5
  SHA512:
6
- metadata.gz: bdf70abd82575bcd7a1373b301cc101db4f872161911c9e238d9143115bc7920aa64cbfa7d31e4a0119e9d08f2d4b76b800b92b6a70ad3f24ccf2001cc6c49c5
7
- data.tar.gz: cb2fcc8d5c88bf17936b71e0ed74dde66b093ab75c71c373e0ab19074467c390485adfeaa59d80867ca3194f77671f475736d78a7ac59d14b211afbf7e3c50a5
6
+ metadata.gz: 4cbea5dfad7ee7cd1170a3097e75a28b5501213f072695f279c8d4ffa1fa56e1adf497fd11026afdcd4bdddd4a053b8b621345d8954d0f50578a086e86cd52c5
7
+ data.tar.gz: c38aab09a337ecb5de48bec31cac6011fe8f2ededff14e12b214469351fb48c0bece301cf0be02abc0f9718d16039d2a129f4efac98db9ef9b9f4380409dd6d1
data/.env CHANGED
@@ -1,23 +1,13 @@
1
- TEST_DDAGENT_API_KEY=invalid_key_but_this_is_fine
2
- TEST_DDAGENT_HOST=localhost
3
- TEST_DDAGENT_PORT=8126
4
- TEST_ELASTICSEARCH_HOST=127.0.0.1
5
- TEST_ELASTICSEARCH_NATIVE_PORT=9300
6
- TEST_ELASTICSEARCH_REST_PORT=9200
7
- TEST_MEMCACHED_HOST=127.0.0.1
8
- TEST_MEMCACHED_PORT=11211
9
- TEST_MONGODB_HOST=127.0.0.1
10
- TEST_MONGODB_PORT=27017
11
- TEST_MYSQL_DB=mysql
12
- TEST_MYSQL_HOST=127.0.0.1
13
- TEST_MYSQL_PASSWORD=mysql
14
- TEST_MYSQL_PORT=3306
1
+ TEST_POSTGRES_PORT=55432
2
+ TEST_POSTGRES_USER=postgres
3
+ TEST_POSTGRES_PASSWORD=postgres
4
+ TEST_POSTGRES_DB=postgres
5
+ TEST_MYSQL_PORT=53306
15
6
  TEST_MYSQL_ROOT_PASSWORD=root
7
+ TEST_MYSQL_PASSWORD=mysql
16
8
  TEST_MYSQL_USER=mysql
17
- TEST_POSTGRES_DB=postgres
18
- TEST_POSTGRES_HOST=127.0.0.1
19
- TEST_POSTGRES_PASSWORD=postgres
20
- TEST_POSTGRES_PORT=5432
21
- TEST_POSTGRES_USER=postgres
22
- TEST_REDIS_HOST=127.0.0.1
23
- TEST_REDIS_PORT=6379
9
+ TEST_ELASTICSEARCH_REST_PORT=49200
10
+ TEST_ELASTICSEARCH_NATIVE_PORT=49300
11
+ TEST_REDIS_PORT=46379
12
+ TEST_MONGODB_PORT=57017
13
+ TEST_MEMCACHED_PORT=41121
data/.rubocop.yml CHANGED
@@ -38,9 +38,6 @@ Metrics/ClassLength:
38
38
 
39
39
  Metrics/BlockLength:
40
40
  Max: 42
41
- Exclude:
42
- - test/**/*
43
- - spec/**/*
44
41
 
45
42
  Metrics/ParameterLists:
46
43
  Enabled: false
@@ -52,7 +49,7 @@ Metrics/PerceivedComplexity:
52
49
  Max: 15
53
50
 
54
51
  Lint/UnusedMethodArgument:
55
- Enabled: false
52
+ Enabled: false
56
53
 
57
54
  # Disabling advices that would lead to incompatible Ruby 1.9 code
58
55
  Style/SymbolArray:
data/Appraisals CHANGED
@@ -1,181 +1,30 @@
1
- if RUBY_VERSION < '1.9.3'
2
- raise NotImplementedError, 'Ruby versions < 1.9.3 are not supported!'
3
- elsif '1.9.3' <= RUBY_VERSION && RUBY_VERSION < '2.0.0'
4
- if RUBY_PLATFORM != 'java'
5
- appraise 'rails30-postgres' do
6
- gem 'test-unit'
7
- gem 'rails', '3.0.20'
8
- gem 'pg', '0.15.1', platform: :ruby
9
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
10
- gem 'rack-cache', '1.7.1'
11
- end
12
-
13
- appraise 'rails30-postgres-sidekiq' do
14
- gem 'test-unit'
15
- gem 'rails', '3.0.20'
16
- gem 'pg', '0.15.1', platform: :ruby
17
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
18
- gem 'sidekiq', '4.0.0'
19
- gem 'rack-cache', '1.7.1'
20
- end
21
-
1
+ if RUBY_VERSION < '2.4.0' && RUBY_PLATFORM != 'java'
2
+ if RUBY_VERSION >= '1.9.1'
22
3
  appraise 'rails32-mysql2' do
23
4
  gem 'test-unit'
24
5
  gem 'rails', '3.2.22.5'
25
6
  gem 'mysql2', '0.3.21', platform: :ruby
26
7
  gem 'activerecord-mysql-adapter', platform: :ruby
27
8
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
28
- gem 'rack-cache', '1.7.1'
29
- end
30
-
31
- appraise 'rails32-postgres' do
32
- gem 'test-unit'
33
- gem 'rails', '3.2.22.5'
34
- gem 'pg', '0.15.1', platform: :ruby
35
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
36
- gem 'rack-cache', '1.7.1'
37
- end
38
-
39
- appraise 'rails32-postgres-redis' do
40
- gem 'test-unit'
41
- gem 'rails', '3.2.22.5'
42
- gem 'pg', '0.15.1', platform: :ruby
43
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
44
- gem 'redis-rails'
45
- gem 'redis', '< 4.0'
46
- gem 'rack-cache', '1.7.1'
47
- end
48
-
49
- appraise 'rails32-postgres-sidekiq' do
50
- gem 'test-unit'
51
- gem 'rails', '3.2.22.5'
52
- gem 'pg', '0.15.1', platform: :ruby
53
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
54
- gem 'sidekiq', '4.0.0'
55
- gem 'rack-cache', '1.7.1'
56
- end
57
-
58
- appraise 'contrib-old' do
59
- gem 'elasticsearch-transport'
60
- gem 'mongo', '< 2.5'
61
- gem 'redis', '< 4.0'
62
- gem 'hiredis'
63
- gem 'rack', '1.4.7'
64
- gem 'rack-test', '0.7.0'
65
- gem 'rack-cache', '1.7.1'
66
- gem 'sinatra', '1.4.5'
67
- gem 'sqlite3'
68
- gem 'activerecord', '3.2.22.5'
69
- gem 'sidekiq', '4.0.0'
70
- gem 'aws-sdk', '~> 2.0'
71
- gem 'sucker_punch'
72
- gem 'dalli'
73
- gem 'resque', '< 2.0'
74
- gem 'mysql2', '0.3.21', platform: :ruby
75
- gem 'activerecord-mysql-adapter', platform: :ruby
76
9
  end
77
10
  end
78
- elsif '2.0.0' <= RUBY_VERSION && RUBY_VERSION < '2.1.0'
79
- if RUBY_PLATFORM != 'java'
80
- appraise 'rails30-postgres' do
81
- gem 'test-unit'
82
- gem 'rails', '3.0.20'
83
- gem 'pg', '0.15.1', platform: :ruby
84
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
85
- gem 'rack-cache', '1.7.1'
86
- end
87
11
 
88
- appraise 'rails30-postgres-sidekiq' do
89
- gem 'test-unit'
90
- gem 'rails', '3.0.20'
91
- gem 'pg', '0.15.1', platform: :ruby
92
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
93
- gem 'sidekiq', '4.0.0'
94
- gem 'rack-cache', '1.7.1'
95
- end
96
-
97
- appraise 'rails32-mysql2' do
98
- gem 'test-unit'
99
- gem 'rails', '3.2.22.5'
100
- gem 'mysql2', '0.3.21', platform: :ruby
101
- gem 'activerecord-mysql-adapter', platform: :ruby
102
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
103
- gem 'rack-cache', '1.7.1'
104
- end
105
-
106
- appraise 'rails32-postgres' do
107
- gem 'test-unit'
108
- gem 'rails', '3.2.22.5'
109
- gem 'pg', '0.15.1', platform: :ruby
110
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
111
- gem 'rack-cache', '1.7.1'
112
- end
113
-
114
- appraise 'rails32-postgres-redis' do
115
- gem 'test-unit'
116
- gem 'rails', '3.2.22.5'
117
- gem 'pg', '0.15.1', platform: :ruby
118
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
119
- gem 'redis-rails'
120
- gem 'redis', '< 4.0'
121
- gem 'rack-cache', '1.7.1'
122
- end
123
-
124
- appraise 'rails32-postgres-sidekiq' do
125
- gem 'test-unit'
126
- gem 'rails', '3.2.22.5'
127
- gem 'pg', '0.15.1', platform: :ruby
128
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
129
- gem 'sidekiq', '4.0.0'
130
- gem 'rack-cache', '1.7.1'
131
- end
132
-
133
- appraise 'contrib-old' do
134
- gem 'elasticsearch-transport'
135
- gem 'mongo', '< 2.5'
136
- gem 'redis', '< 4.0'
137
- gem 'hiredis'
138
- gem 'rack', '1.4.7'
139
- gem 'rack-test', '0.7.0'
140
- gem 'rack-cache', '1.7.1'
141
- gem 'sinatra', '1.4.5'
142
- gem 'sqlite3'
143
- gem 'activerecord', '3.2.22.5'
144
- gem 'sidekiq', '4.0.0'
145
- gem 'aws-sdk', '~> 2.0'
146
- gem 'sucker_punch'
147
- gem 'dalli'
148
- gem 'resque', '< 2.0'
149
- gem 'mysql2', '0.3.21', platform: :ruby
150
- gem 'activerecord-mysql-adapter', platform: :ruby
151
- end
152
- end
153
- elsif '2.1.0' <= RUBY_VERSION && RUBY_VERSION < '2.2.0'
154
- if RUBY_PLATFORM != 'java'
12
+ if RUBY_VERSION >= '1.9.1'
155
13
  appraise 'rails30-postgres' do
156
14
  gem 'test-unit'
157
15
  gem 'rails', '3.0.20'
158
16
  gem 'pg', '0.15.1', platform: :ruby
159
17
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
160
- gem 'rack-cache', '1.7.1'
161
18
  end
162
19
 
163
- appraise 'rails30-postgres-sidekiq' do
164
- gem 'test-unit'
165
- gem 'rails', '3.0.20'
166
- gem 'pg', '0.15.1', platform: :ruby
167
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
168
- gem 'sidekiq', '4.0.0'
169
- gem 'rack-cache', '1.7.1'
170
- end
171
-
172
- appraise 'rails32-mysql2' do
173
- gem 'test-unit'
174
- gem 'rails', '3.2.22.5'
175
- gem 'mysql2', '0.3.21', platform: :ruby
176
- gem 'activerecord-mysql-adapter', platform: :ruby
177
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
178
- gem 'rack-cache', '1.7.1'
20
+ if RUBY_VERSION < '2.2.2'
21
+ appraise 'rails30-postgres-sidekiq' do
22
+ gem 'test-unit'
23
+ gem 'rails', '3.0.20'
24
+ gem 'pg', '0.15.1', platform: :ruby
25
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
26
+ gem 'sidekiq', '4.0.0'
27
+ end
179
28
  end
180
29
 
181
30
  appraise 'rails32-postgres' do
@@ -183,7 +32,6 @@ elsif '2.1.0' <= RUBY_VERSION && RUBY_VERSION < '2.2.0'
183
32
  gem 'rails', '3.2.22.5'
184
33
  gem 'pg', '0.15.1', platform: :ruby
185
34
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
186
- gem 'rack-cache', '1.7.1'
187
35
  end
188
36
 
189
37
  appraise 'rails32-postgres-redis' do
@@ -193,113 +41,20 @@ elsif '2.1.0' <= RUBY_VERSION && RUBY_VERSION < '2.2.0'
193
41
  gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
194
42
  gem 'redis-rails'
195
43
  gem 'redis', '< 4.0'
196
- gem 'rack-cache', '1.7.1'
197
44
  end
198
45
 
199
- appraise 'rails32-postgres-sidekiq' do
200
- gem 'test-unit'
201
- gem 'rails', '3.2.22.5'
202
- gem 'pg', '0.15.1', platform: :ruby
203
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
204
- gem 'sidekiq', '4.0.0'
205
- gem 'rack-cache', '1.7.1'
206
- end
207
-
208
- appraise 'rails4-mysql2' do
209
- gem 'rails', '4.2.7.1'
210
- gem 'mysql2', '< 0.5', platform: :ruby
211
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
212
- end
213
-
214
- appraise 'rails4-postgres' do
215
- gem 'rails', '4.2.7.1'
216
- gem 'pg', '< 1.0', platform: :ruby
217
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
218
- end
219
-
220
- appraise 'rails4-postgres-redis' do
221
- gem 'rails', '4.2.7.1'
222
- gem 'pg', '< 1.0', platform: :ruby
223
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
224
- gem 'redis-rails'
225
- gem 'redis', '< 4.0'
226
- end
227
-
228
- appraise 'contrib-old' do
229
- gem 'elasticsearch-transport'
230
- gem 'mongo', '< 2.5'
231
- gem 'redis', '< 4.0'
232
- gem 'hiredis'
233
- gem 'rack', '1.4.7'
234
- gem 'rack-test', '0.7.0'
235
- gem 'rack-cache', '1.7.1'
236
- gem 'sinatra', '1.4.5'
237
- gem 'sqlite3'
238
- gem 'activerecord', '3.2.22.5'
239
- gem 'sidekiq', '4.0.0'
240
- gem 'aws-sdk', '~> 2.0'
241
- gem 'sucker_punch'
242
- gem 'dalli'
243
- gem 'resque', '< 2.0'
244
- gem 'mysql2', '0.3.21', platform: :ruby
245
- gem 'activerecord-mysql-adapter', platform: :ruby
46
+ if RUBY_VERSION < '2.2.2'
47
+ appraise 'rails32-postgres-sidekiq' do
48
+ gem 'test-unit'
49
+ gem 'rails', '3.2.22.5'
50
+ gem 'pg', '0.15.1', platform: :ruby
51
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
52
+ gem 'sidekiq', '4.0.0'
53
+ end
246
54
  end
247
55
  end
248
- elsif '2.2.0' <= RUBY_VERSION && RUBY_VERSION < '2.3.0'
249
- if RUBY_PLATFORM != 'java'
250
- appraise 'rails30-postgres' do
251
- gem 'test-unit'
252
- gem 'rails', '3.0.20'
253
- gem 'pg', '0.15.1', platform: :ruby
254
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
255
- gem 'rack-cache', '1.7.1'
256
- end
257
-
258
- appraise 'rails30-postgres-sidekiq' do
259
- gem 'test-unit'
260
- gem 'rails', '3.0.20'
261
- gem 'pg', '0.15.1', platform: :ruby
262
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
263
- gem 'sidekiq', '4.0.0'
264
- gem 'rack-cache', '1.7.1'
265
- end
266
-
267
- appraise 'rails32-mysql2' do
268
- gem 'test-unit'
269
- gem 'rails', '3.2.22.5'
270
- gem 'mysql2', '0.3.21', platform: :ruby
271
- gem 'activerecord-mysql-adapter', platform: :ruby
272
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
273
- gem 'rack-cache', '1.7.1'
274
- end
275
-
276
- appraise 'rails32-postgres' do
277
- gem 'test-unit'
278
- gem 'rails', '3.2.22.5'
279
- gem 'pg', '0.15.1', platform: :ruby
280
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
281
- gem 'rack-cache', '1.7.1'
282
- end
283
-
284
- appraise 'rails32-postgres-redis' do
285
- gem 'test-unit'
286
- gem 'rails', '3.2.22.5'
287
- gem 'pg', '0.15.1', platform: :ruby
288
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
289
- gem 'redis-rails'
290
- gem 'redis', '< 4.0'
291
- gem 'rack-cache', '1.7.1'
292
- end
293
-
294
- appraise 'rails32-postgres-sidekiq' do
295
- gem 'test-unit'
296
- gem 'rails', '3.2.22.5'
297
- gem 'pg', '0.15.1', platform: :ruby
298
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
299
- gem 'sidekiq', '4.0.0'
300
- gem 'rack-cache', '1.7.1'
301
- end
302
56
 
57
+ if RUBY_VERSION >= '2.1.10'
303
58
  appraise 'rails4-mysql2' do
304
59
  gem 'rails', '4.2.7.1'
305
60
  gem 'mysql2', '< 0.5', platform: :ruby
@@ -319,135 +74,33 @@ elsif '2.2.0' <= RUBY_VERSION && RUBY_VERSION < '2.3.0'
319
74
  gem 'redis-rails'
320
75
  gem 'redis', '< 4.0'
321
76
  end
77
+ end
322
78
 
323
- appraise 'rails4-postgres-sidekiq' do
324
- gem 'rails', '4.2.7.1'
325
- gem 'pg', '< 1.0', platform: :ruby
326
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
327
- gem 'sidekiq'
328
- gem 'activejob'
329
- end
330
-
79
+ if RUBY_VERSION >= '2.2.2'
331
80
  appraise 'rails5-mysql2' do
332
- gem 'rails', '~> 5.1.6'
81
+ gem 'rails', '5.1.5'
333
82
  gem 'mysql2', '< 0.5', platform: :ruby
334
83
  end
335
84
 
336
85
  appraise 'rails5-postgres' do
337
- gem 'rails', '~> 5.1.6'
86
+ gem 'rails', '5.1.5'
338
87
  gem 'pg', '< 1.0', platform: :ruby
339
88
  end
340
89
 
341
90
  appraise 'rails5-postgres-redis' do
342
- gem 'rails', '~> 5.1.6'
91
+ gem 'rails', '5.1.5'
343
92
  gem 'pg', '< 1.0', platform: :ruby
344
93
  gem 'redis-rails'
345
94
  gem 'redis'
346
95
  end
347
96
 
348
97
  appraise 'rails5-postgres-sidekiq' do
349
- gem 'rails', '~> 5.1.6'
98
+ gem 'rails', '5.1.5'
350
99
  gem 'pg', '< 1.0', platform: :ruby
351
100
  gem 'sidekiq'
352
101
  gem 'activejob'
353
102
  end
354
103
 
355
- appraise 'contrib' do
356
- gem 'elasticsearch-transport'
357
- gem 'mongo', '< 2.5'
358
- gem 'graphql'
359
- gem 'grape'
360
- gem 'rack'
361
- gem 'rack-test'
362
- gem 'redis', '< 4.0'
363
- gem 'hiredis'
364
- gem 'sinatra'
365
- gem 'sqlite3'
366
- gem 'activerecord', '< 5.1.5'
367
- gem 'sidekiq'
368
- gem 'aws-sdk'
369
- gem 'sucker_punch'
370
- gem 'dalli'
371
- gem 'resque', '< 2.0'
372
- gem 'racecar', '>= 0.3.5'
373
- gem 'mysql2', '< 0.5', platform: :ruby
374
- end
375
- end
376
- elsif '2.3.0' <= RUBY_VERSION && RUBY_VERSION < '2.4.0'
377
- if RUBY_PLATFORM != 'java'
378
- appraise 'rails30-postgres' do
379
- gem 'test-unit'
380
- gem 'rails', '3.0.20'
381
- gem 'pg', '0.15.1', platform: :ruby
382
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
383
- gem 'rack-cache', '1.7.1'
384
- end
385
-
386
- appraise 'rails30-postgres-sidekiq' do
387
- gem 'test-unit'
388
- gem 'rails', '3.0.20'
389
- gem 'pg', '0.15.1', platform: :ruby
390
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
391
- gem 'sidekiq', '4.0.0'
392
- gem 'rack-cache', '1.7.1'
393
- end
394
-
395
- appraise 'rails32-mysql2' do
396
- gem 'test-unit'
397
- gem 'rails', '3.2.22.5'
398
- gem 'mysql2', '0.3.21', platform: :ruby
399
- gem 'activerecord-mysql-adapter', platform: :ruby
400
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
401
- gem 'rack-cache', '1.7.1'
402
- end
403
-
404
- appraise 'rails32-postgres' do
405
- gem 'test-unit'
406
- gem 'rails', '3.2.22.5'
407
- gem 'pg', '0.15.1', platform: :ruby
408
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
409
- gem 'rack-cache', '1.7.1'
410
- end
411
-
412
- appraise 'rails32-postgres-redis' do
413
- gem 'test-unit'
414
- gem 'rails', '3.2.22.5'
415
- gem 'pg', '0.15.1', platform: :ruby
416
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
417
- gem 'redis-rails'
418
- gem 'redis', '< 4.0'
419
- gem 'rack-cache', '1.7.1'
420
- end
421
-
422
- appraise 'rails32-postgres-sidekiq' do
423
- gem 'test-unit'
424
- gem 'rails', '3.2.22.5'
425
- gem 'pg', '0.15.1', platform: :ruby
426
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
427
- gem 'sidekiq', '4.0.0'
428
- gem 'rack-cache', '1.7.1'
429
- end
430
-
431
- appraise 'rails4-mysql2' do
432
- gem 'rails', '4.2.7.1'
433
- gem 'mysql2', '< 0.5', platform: :ruby
434
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
435
- end
436
-
437
- appraise 'rails4-postgres' do
438
- gem 'rails', '4.2.7.1'
439
- gem 'pg', '< 1.0', platform: :ruby
440
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
441
- end
442
-
443
- appraise 'rails4-postgres-redis' do
444
- gem 'rails', '4.2.7.1'
445
- gem 'pg', '< 1.0', platform: :ruby
446
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
447
- gem 'redis-rails'
448
- gem 'redis', '< 4.0'
449
- end
450
-
451
104
  appraise 'rails4-postgres-sidekiq' do
452
105
  gem 'rails', '4.2.7.1'
453
106
  gem 'pg', '< 1.0', platform: :ruby
@@ -455,73 +108,56 @@ elsif '2.3.0' <= RUBY_VERSION && RUBY_VERSION < '2.4.0'
455
108
  gem 'sidekiq'
456
109
  gem 'activejob'
457
110
  end
111
+ end
112
+ end
458
113
 
459
- appraise 'rails5-mysql2' do
460
- gem 'rails', '~> 5.1.6'
461
- gem 'mysql2', '< 0.5', platform: :ruby
462
- end
463
-
464
- appraise 'rails5-postgres' do
465
- gem 'rails', '~> 5.1.6'
466
- gem 'pg', '< 1.0', platform: :ruby
467
- end
468
-
469
- appraise 'rails5-postgres-redis' do
470
- gem 'rails', '~> 5.1.6'
471
- gem 'pg', '< 1.0', platform: :ruby
472
- gem 'redis-rails'
473
- gem 'redis'
474
- end
475
-
476
- appraise 'rails5-postgres-sidekiq' do
477
- gem 'rails', '~> 5.1.6'
478
- gem 'pg', '< 1.0', platform: :ruby
479
- gem 'sidekiq'
480
- gem 'activejob'
481
- end
482
-
483
- appraise 'contrib' do
484
- gem 'elasticsearch-transport'
485
- gem 'mongo', '< 2.5'
486
- gem 'graphql'
487
- gem 'grape'
488
- gem 'rack'
489
- gem 'rack-test'
490
- gem 'redis', '< 4.0'
491
- gem 'hiredis'
492
- gem 'sinatra'
493
- gem 'sqlite3'
494
- gem 'activerecord', '< 5.1.5'
495
- gem 'sidekiq'
496
- gem 'aws-sdk'
497
- gem 'sucker_punch'
498
- gem 'dalli'
499
- gem 'resque', '< 2.0'
500
- gem 'racecar', '>= 0.3.5'
501
- gem 'mysql2', '< 0.5', platform: :ruby
502
- end
114
+ if RUBY_VERSION >= '2.2.2' && RUBY_PLATFORM != 'java'
115
+ appraise 'contrib' do
116
+ gem 'active_model_serializers', '>= 0.10.0'
117
+ gem 'elasticsearch-transport'
118
+ gem 'excon'
119
+ gem 'mongo', '< 2.5'
120
+ gem 'graphql'
121
+ gem 'grape'
122
+ gem 'grpc'
123
+ gem 'rack'
124
+ gem 'rack-test'
125
+ gem 'redis', '< 4.0'
126
+ gem 'hiredis'
127
+ gem 'sinatra'
128
+ gem 'sqlite3'
129
+ gem 'activerecord', '< 5.1.5'
130
+ gem 'sequel'
131
+ gem 'sidekiq'
132
+ gem 'aws-sdk'
133
+ gem 'sucker_punch'
134
+ gem 'dalli'
135
+ gem 'rake'
136
+ gem 'resque', '< 2.0'
137
+ gem 'racecar', '>= 0.3.5'
138
+ gem 'mysql2', '< 0.5', platform: :ruby
503
139
  end
504
- elsif '2.4.0' <= RUBY_VERSION
505
- if RUBY_PLATFORM != 'java'
506
- appraise 'contrib' do
507
- gem 'elasticsearch-transport'
508
- gem 'mongo', '< 2.5'
509
- gem 'graphql'
510
- gem 'grape'
511
- gem 'rack'
512
- gem 'rack-test'
513
- gem 'redis', '< 4.0'
514
- gem 'hiredis'
515
- gem 'sinatra'
516
- gem 'sqlite3'
517
- gem 'activerecord', '< 5.1.5'
518
- gem 'sidekiq'
519
- gem 'aws-sdk'
520
- gem 'sucker_punch'
521
- gem 'dalli'
522
- gem 'resque', '< 2.0'
523
- gem 'racecar', '>= 0.3.5'
524
- gem 'mysql2', '< 0.5', platform: :ruby
525
- end
140
+ else
141
+ appraise 'contrib-old' do
142
+ gem 'active_model_serializers', '~> 0.9.0'
143
+ gem 'elasticsearch-transport'
144
+ gem 'excon'
145
+ gem 'mongo', '< 2.5'
146
+ gem 'redis', '< 4.0'
147
+ gem 'hiredis'
148
+ gem 'rack', '1.4.7'
149
+ gem 'rack-test', '0.7.0'
150
+ gem 'sinatra', '1.4.5'
151
+ gem 'sqlite3'
152
+ gem 'sequel', '~> 4.0', '< 4.37'
153
+ gem 'activerecord', '3.2.22.5'
154
+ gem 'sidekiq', '4.0.0'
155
+ gem 'aws-sdk', '~> 2.0'
156
+ gem 'sucker_punch'
157
+ gem 'dalli'
158
+ gem 'rake', '< 12.3'
159
+ gem 'resque', '< 2.0'
160
+ gem 'mysql2', '0.3.21', platform: :ruby
161
+ gem 'activerecord-mysql-adapter', platform: :ruby
526
162
  end
527
163
  end