rails-autoscale-web 1.5.0 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile-rails-6-1 +1 -0
- data/Gemfile.lock +17 -15
- data/lib/judoscale/rails/railtie.rb +14 -7
- data/lib/judoscale/rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a1d07cf0ec4b72f6118c87ab4b5a8b9bb20efe9a3a1ff63a4bd5d8e16f3721
|
4
|
+
data.tar.gz: 5be44caff462f513e285ea030ab9b82e1784a57ac0947b41cd483b0578d69d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ae4eadbd26bc6bb0fba1d6c812741ca2317735e7e2eec799aa68773cc5a51a9b97aea4a05a97ad2edfb561e3d09a3237cdee140ca80231a5cc54c1371bc1727
|
7
|
+
data.tar.gz: 5aef234f48d3d1b1a77251f49f20dde716cdb2a02eaecae7421f29cdde634b3eb0d2da3b4b30a2fc2d4fe75ebbfa49cd4ef08be28ac1cfe2c2339f3384f72d16
|
data/Gemfile
CHANGED
data/Gemfile-rails-6-1
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../judoscale-ruby
|
3
3
|
specs:
|
4
|
-
judoscale-ruby (1.5.
|
4
|
+
judoscale-ruby (1.5.2)
|
5
5
|
|
6
6
|
PATH
|
7
7
|
remote: .
|
8
8
|
specs:
|
9
|
-
judoscale-rails (1.5.
|
10
|
-
judoscale-ruby (= 1.5.
|
9
|
+
judoscale-rails (1.5.2)
|
10
|
+
judoscale-ruby (= 1.5.2)
|
11
11
|
railties
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
actionpack (7.0.
|
17
|
-
actionview (= 7.0.
|
18
|
-
activesupport (= 7.0.
|
16
|
+
actionpack (7.0.7)
|
17
|
+
actionview (= 7.0.7)
|
18
|
+
activesupport (= 7.0.7)
|
19
19
|
rack (~> 2.0, >= 2.2.4)
|
20
20
|
rack-test (>= 0.6.3)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
23
|
-
actionview (7.0.
|
24
|
-
activesupport (= 7.0.
|
23
|
+
actionview (7.0.7)
|
24
|
+
activesupport (= 7.0.7)
|
25
25
|
builder (~> 3.1)
|
26
26
|
erubi (~> 1.4)
|
27
27
|
rails-dom-testing (~> 2.0)
|
28
28
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
29
|
-
activesupport (7.0.
|
29
|
+
activesupport (7.0.7)
|
30
30
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
31
|
i18n (>= 1.6, < 2)
|
32
32
|
minitest (>= 5.1)
|
@@ -48,6 +48,7 @@ GEM
|
|
48
48
|
nokogiri (>= 1.12.0)
|
49
49
|
method_source (1.0.0)
|
50
50
|
minitest (5.17.0)
|
51
|
+
minitest-stub-const (0.6)
|
51
52
|
nokogiri (1.15.3-arm64-darwin)
|
52
53
|
racc (~> 1.4)
|
53
54
|
nokogiri (1.15.3-x86_64-darwin)
|
@@ -55,19 +56,19 @@ GEM
|
|
55
56
|
nokogiri (1.15.3-x86_64-linux)
|
56
57
|
racc (~> 1.4)
|
57
58
|
racc (1.7.1)
|
58
|
-
rack (2.2.
|
59
|
+
rack (2.2.8)
|
59
60
|
rack-test (2.1.0)
|
60
61
|
rack (>= 1.3)
|
61
|
-
rails-dom-testing (2.
|
62
|
+
rails-dom-testing (2.2.0)
|
62
63
|
activesupport (>= 5.0.0)
|
63
64
|
minitest
|
64
65
|
nokogiri (>= 1.6)
|
65
66
|
rails-html-sanitizer (1.6.0)
|
66
67
|
loofah (~> 2.21)
|
67
68
|
nokogiri (~> 1.14)
|
68
|
-
railties (7.0.
|
69
|
-
actionpack (= 7.0.
|
70
|
-
activesupport (= 7.0.
|
69
|
+
railties (7.0.7)
|
70
|
+
actionpack (= 7.0.7)
|
71
|
+
activesupport (= 7.0.7)
|
71
72
|
method_source
|
72
73
|
rake (>= 12.2)
|
73
74
|
thor (~> 1.0)
|
@@ -78,7 +79,7 @@ GEM
|
|
78
79
|
thor (1.2.2)
|
79
80
|
tzinfo (2.0.6)
|
80
81
|
concurrent-ruby (~> 1.0)
|
81
|
-
zeitwerk (2.6.
|
82
|
+
zeitwerk (2.6.11)
|
82
83
|
|
83
84
|
PLATFORMS
|
84
85
|
arm64-darwin-20
|
@@ -92,6 +93,7 @@ DEPENDENCIES
|
|
92
93
|
judoscale-rails!
|
93
94
|
judoscale-ruby!
|
94
95
|
minitest
|
96
|
+
minitest-stub-const
|
95
97
|
rake
|
96
98
|
|
97
99
|
BUNDLED WITH
|
@@ -12,21 +12,28 @@ module Judoscale
|
|
12
12
|
class Railtie < ::Rails::Railtie
|
13
13
|
include Judoscale::Logger
|
14
14
|
|
15
|
+
def in_rails_console?
|
16
|
+
defined?(::Rails::Console)
|
17
|
+
end
|
18
|
+
|
19
|
+
def in_rake_task?
|
20
|
+
defined?(::Rake) && Rake.respond_to?(:application) && Rake.application.top_level_tasks.any?
|
21
|
+
end
|
22
|
+
|
15
23
|
initializer "Judoscale.logger" do |app|
|
16
24
|
Config.instance.logger = ::Rails.logger
|
17
25
|
end
|
18
26
|
|
19
27
|
initializer "Judoscale.request_middleware" do |app|
|
20
|
-
|
21
|
-
|
28
|
+
if !in_rails_console? && !in_rake_task?
|
29
|
+
logger.debug "Preparing request middleware"
|
30
|
+
app.middleware.insert_before Rack::Runtime, RequestMiddleware
|
31
|
+
end
|
22
32
|
end
|
23
33
|
|
24
34
|
config.after_initialize do
|
25
|
-
# Don't
|
26
|
-
|
27
|
-
# so the reporter has already started before any of the tests run. You can manually
|
28
|
-
# test this by running `DYNO=web.1 rails c` in sample-apps/rails-sample.
|
29
|
-
Reporter.start unless defined?(::Rails::Console)
|
35
|
+
# Don't suppress this in Rake tasks since some job adapters use Rake tasks to run jobs.
|
36
|
+
Reporter.start unless in_rails_console?
|
30
37
|
end
|
31
38
|
end
|
32
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-autoscale-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-08-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails-autoscale-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.5.
|
21
|
+
version: 1.5.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.5.
|
28
|
+
version: 1.5.2
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: railties
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|