judoscale-rails 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/judoscale/rails/railtie.rb +7 -2
- metadata +5 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c29391e2e1f325012b0a1597aa45800f4087bef039772e47bd2d06c91ea62ac
|
4
|
+
data.tar.gz: ed8f5d30b36a4241365a4cda20bc37960db8412f877af0a6d2848134ac6e30ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ddebe2f73ba2f2848f7c998c9d03d452fba53dbf9149fee9240ae9d1a5db984a9c8a6187608bf5d38c0cf9a0f51fe832a2309d4317d01678b87c1bb47a657b
|
7
|
+
data.tar.gz: caecc435343f2db8606a20f2c22651f609103df1a21b93cbb080f6db886edb71843ddc68c4cb4f78ede83945ded3aa119564dd7c61faf11da5608355c3f099ad
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "rails"
|
4
|
-
require "rails/
|
4
|
+
require "rails/engine"
|
5
5
|
require "judoscale/request_middleware"
|
6
6
|
require "judoscale/rails/config"
|
7
7
|
require "judoscale/rails/utilization_middleware"
|
@@ -10,7 +10,12 @@ require "judoscale/reporter"
|
|
10
10
|
|
11
11
|
module Judoscale
|
12
12
|
module Rails
|
13
|
-
|
13
|
+
# Inherit from `Engine`, even though we use none its specific features (yet), so we can safely rely
|
14
|
+
# on `load_config_initializers` to setup our initializers and avoid loading `config/initializers/*`
|
15
|
+
# too early, otherwise we can run into initialization order conflicts with other libraries like
|
16
|
+
# `Sentry` and `Scout`, which patch Ruby classes in different ways (`prepend` vs `alias_method`),
|
17
|
+
# and may cause `stack level too deep` errors if they are loaded too early in the init process.
|
18
|
+
class Railtie < ::Rails::Engine
|
14
19
|
include Judoscale::Logger
|
15
20
|
|
16
21
|
def in_rails_console_or_runner?
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: judoscale-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
8
8
|
- Carlos Antonio da Silva
|
9
9
|
- Jon Sullivan
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: judoscale-ruby
|
@@ -18,14 +17,14 @@ dependencies:
|
|
18
17
|
requirements:
|
19
18
|
- - '='
|
20
19
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.11.
|
20
|
+
version: 1.11.1
|
22
21
|
type: :runtime
|
23
22
|
prerelease: false
|
24
23
|
version_requirements: !ruby/object:Gem::Requirement
|
25
24
|
requirements:
|
26
25
|
- - '='
|
27
26
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.11.
|
27
|
+
version: 1.11.1
|
29
28
|
- !ruby/object:Gem::Dependency
|
30
29
|
name: railties
|
31
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +39,6 @@ dependencies:
|
|
40
39
|
- - ">="
|
41
40
|
- !ruby/object:Gem::Version
|
42
41
|
version: '0'
|
43
|
-
description:
|
44
42
|
email:
|
45
43
|
- hello@judoscale.com
|
46
44
|
executables: []
|
@@ -61,7 +59,6 @@ metadata:
|
|
61
59
|
documentation_uri: https://judoscale.com/docs
|
62
60
|
changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
|
63
61
|
source_code_uri: https://github.com/judoscale/judoscale-ruby
|
64
|
-
post_install_message:
|
65
62
|
rdoc_options: []
|
66
63
|
require_paths:
|
67
64
|
- lib
|
@@ -76,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
73
|
- !ruby/object:Gem::Version
|
77
74
|
version: '0'
|
78
75
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
80
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.7
|
81
77
|
specification_version: 4
|
82
78
|
summary: Autoscaling for Ruby on Rails applications.
|
83
79
|
test_files: []
|