roo_on_rails 2.0.0.pre.pre.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +457 -97
- data/.circleci/config.yml.erb +28 -9
- data/.codecov.yml +3 -0
- data/.ruby-version +1 -1
- data/Appraisals +33 -18
- data/CHANGELOG.md +29 -0
- data/README.md +5 -45
- data/appraise +2 -3
- data/gemfiles/rails_5_2.gemfile +3 -1
- data/gemfiles/{rails_5.gemfile → rails_6_0.gemfile} +5 -2
- data/gemfiles/rails_6_1.gemfile +21 -0
- data/gemfiles/rails_7_0.gemfile +20 -0
- data/lib/roo_on_rails/logger.rb +2 -15
- data/lib/roo_on_rails/rack/populate_env_from_jwt.rb +2 -1
- data/lib/roo_on_rails/railties/database.rb +29 -3
- data/lib/roo_on_rails/railties/env.rb +3 -5
- data/lib/roo_on_rails/railties/google_oauth.rb +4 -6
- data/lib/roo_on_rails/railties/http.rb +30 -32
- data/lib/roo_on_rails/railties/roo_identity.rb +12 -8
- data/lib/roo_on_rails/railties/sidekiq_integration.rb +7 -19
- data/lib/roo_on_rails/tasks/db.rake +27 -2
- data/lib/roo_on_rails/version.rb +1 -1
- data/lib/roo_on_rails.rb +0 -1
- data/roo_on_rails.gemspec +7 -5
- metadata +59 -39
- data/gemfiles/rails_4.gemfile +0 -13
- data/gemfiles/rails_5_1.gemfile +0 -13
- data/lib/roo_on_rails/railties/logging.rb +0 -25
data/roo_on_rails.gemspec
CHANGED
@@ -21,26 +21,28 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'dotenv-rails', '~> 2.
|
25
|
-
spec.add_runtime_dependency 'rails', '>= 3.2.22'
|
26
|
-
spec.add_runtime_dependency 'sprockets', '~>3.0'
|
24
|
+
spec.add_runtime_dependency 'dotenv-rails', '~> 2.7.6'
|
25
|
+
spec.add_runtime_dependency 'rails', '>= 3.2.22'
|
26
|
+
spec.add_runtime_dependency 'sprockets', '~> 3.0'
|
27
27
|
spec.add_runtime_dependency 'platform-api', '~> 2.0'
|
28
28
|
spec.add_runtime_dependency 'hashie', '~> 3.4'
|
29
29
|
spec.add_runtime_dependency 'rack-timeout', '>= 0.4.0'
|
30
30
|
spec.add_runtime_dependency 'rack-ssl-enforcer'
|
31
31
|
spec.add_runtime_dependency 'octokit'
|
32
|
-
spec.add_runtime_dependency 'hirefire-resource'
|
33
32
|
spec.add_runtime_dependency 'sidekiq', '< 6.0.0'
|
34
33
|
spec.add_runtime_dependency 'dogstatsd-ruby'
|
35
34
|
spec.add_runtime_dependency 'omniauth-google-oauth2'
|
36
35
|
spec.add_runtime_dependency 'faraday'
|
37
36
|
spec.add_runtime_dependency 'faraday_middleware'
|
38
37
|
spec.add_runtime_dependency 'json-jwt', '~> 1.8'
|
38
|
+
spec.add_runtime_dependency 'net-smtp'
|
39
|
+
spec.add_runtime_dependency 'net-pop'
|
40
|
+
spec.add_runtime_dependency 'net-imap'
|
39
41
|
|
40
42
|
spec.add_development_dependency 'bundler'
|
41
43
|
spec.add_development_dependency 'rake', '~> 10.0'
|
42
44
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
43
|
-
spec.add_development_dependency 'thor'
|
45
|
+
spec.add_development_dependency 'thor'
|
44
46
|
spec.add_development_dependency 'pry-byebug'
|
45
47
|
spec.add_development_dependency 'memfs'
|
46
48
|
spec.add_development_dependency 'simplecov'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roo_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv-rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.7.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.7.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,9 +31,6 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.2.22
|
34
|
-
- - "<"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '5.3'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -41,9 +38,6 @@ dependencies:
|
|
41
38
|
- - ">="
|
42
39
|
- !ruby/object:Gem::Version
|
43
40
|
version: 3.2.22
|
44
|
-
- - "<"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '5.3'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: sprockets
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,20 +122,6 @@ dependencies:
|
|
128
122
|
- - ">="
|
129
123
|
- !ruby/object:Gem::Version
|
130
124
|
version: '0'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: hirefire-resource
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - ">="
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0'
|
138
|
-
type: :runtime
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0'
|
145
125
|
- !ruby/object:Gem::Dependency
|
146
126
|
name: sidekiq
|
147
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,6 +206,48 @@ dependencies:
|
|
226
206
|
- - "~>"
|
227
207
|
- !ruby/object:Gem::Version
|
228
208
|
version: '1.8'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: net-smtp
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: net-pop
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: net-imap
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :runtime
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
229
251
|
- !ruby/object:Gem::Dependency
|
230
252
|
name: bundler
|
231
253
|
requirement: !ruby/object:Gem::Requirement
|
@@ -272,16 +294,16 @@ dependencies:
|
|
272
294
|
name: thor
|
273
295
|
requirement: !ruby/object:Gem::Requirement
|
274
296
|
requirements:
|
275
|
-
- - "
|
297
|
+
- - ">="
|
276
298
|
- !ruby/object:Gem::Version
|
277
|
-
version: '0
|
299
|
+
version: '0'
|
278
300
|
type: :development
|
279
301
|
prerelease: false
|
280
302
|
version_requirements: !ruby/object:Gem::Requirement
|
281
303
|
requirements:
|
282
|
-
- - "
|
304
|
+
- - ">="
|
283
305
|
- !ruby/object:Gem::Version
|
284
|
-
version: '0
|
306
|
+
version: '0'
|
285
307
|
- !ruby/object:Gem::Dependency
|
286
308
|
name: pry-byebug
|
287
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -396,10 +418,10 @@ files:
|
|
396
418
|
- bin/setup
|
397
419
|
- exe/roo_on_rails
|
398
420
|
- gemfiles/.bundle/config
|
399
|
-
- gemfiles/rails_4.gemfile
|
400
|
-
- gemfiles/rails_5.gemfile
|
401
|
-
- gemfiles/rails_5_1.gemfile
|
402
421
|
- gemfiles/rails_5_2.gemfile
|
422
|
+
- gemfiles/rails_6_0.gemfile
|
423
|
+
- gemfiles/rails_6_1.gemfile
|
424
|
+
- gemfiles/rails_7_0.gemfile
|
403
425
|
- lib/roo_on_rails.rb
|
404
426
|
- lib/roo_on_rails/checks.rb
|
405
427
|
- lib/roo_on_rails/checks/base.rb
|
@@ -443,7 +465,6 @@ files:
|
|
443
465
|
- lib/roo_on_rails/railties/env.rb
|
444
466
|
- lib/roo_on_rails/railties/google_oauth.rb
|
445
467
|
- lib/roo_on_rails/railties/http.rb
|
446
|
-
- lib/roo_on_rails/railties/logging.rb
|
447
468
|
- lib/roo_on_rails/railties/rake_tasks.rb
|
448
469
|
- lib/roo_on_rails/railties/roo_identity.rb
|
449
470
|
- lib/roo_on_rails/railties/sidekiq_integration.rb
|
@@ -462,7 +483,7 @@ homepage: https://github.com/deliveroo/roo_on_rails
|
|
462
483
|
licenses:
|
463
484
|
- MIT
|
464
485
|
metadata: {}
|
465
|
-
post_install_message:
|
486
|
+
post_install_message:
|
466
487
|
rdoc_options: []
|
467
488
|
require_paths:
|
468
489
|
- lib
|
@@ -473,13 +494,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
473
494
|
version: '0'
|
474
495
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
475
496
|
requirements:
|
476
|
-
- - "
|
497
|
+
- - ">="
|
477
498
|
- !ruby/object:Gem::Version
|
478
|
-
version:
|
499
|
+
version: '0'
|
479
500
|
requirements: []
|
480
|
-
|
481
|
-
|
482
|
-
signing_key:
|
501
|
+
rubygems_version: 3.1.4
|
502
|
+
signing_key:
|
483
503
|
specification_version: 4
|
484
504
|
summary: Scaffolding for building services
|
485
505
|
test_files: []
|
data/gemfiles/rails_4.gemfile
DELETED
data/gemfiles/rails_5_1.gemfile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
module RooOnRails
|
2
|
-
module Railties
|
3
|
-
class Logging < Rails::Railtie
|
4
|
-
initializer 'roo_on_rails.logging.before', before: :initialize_logger do
|
5
|
-
require 'roo_on_rails/logger'
|
6
|
-
Rails.logger = config.logger = RooOnRails::Logger.new
|
7
|
-
# It is not possible to set log_level to an invalid value without some
|
8
|
-
# deliberate gymnastics (the setter will raise an error), and Rails
|
9
|
-
# defaults this to `debug`, so we don't need to guard against nil /
|
10
|
-
# invalidity
|
11
|
-
log_level = Rails.configuration.log_level
|
12
|
-
|
13
|
-
Rails.logger.set_log_level(default: log_level)
|
14
|
-
Rails.logger.debug 'initializer roo_on_rails.logging.before'
|
15
|
-
end
|
16
|
-
|
17
|
-
initializer 'roo_on_rails.logging.after', after: :initialize_logger do
|
18
|
-
log_level = Rails.configuration.log_level
|
19
|
-
|
20
|
-
Rails.logger.set_log_level(default: log_level)
|
21
|
-
Rails.logger.debug 'initializer roo_on_rails.logging.after'
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|