rails-autoscale-web 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-autoscale-web.rb +1 -1
- metadata +7 -32
- data/Gemfile +0 -9
- data/Gemfile-rails-6-1 +0 -9
- data/Gemfile-rails-7-0 +0 -9
- data/Rakefile +0 -11
- data/judoscale-rails.gemspec +0 -30
- data/lib/judoscale/rails/config.rb +0 -16
- data/lib/judoscale/rails/railtie.rb +0 -49
- data/lib/judoscale/rails/version.rb +0 -7
- data/lib/judoscale/rails.rb +0 -12
- data/lib/judoscale-rails.rb +0 -3
- data/rails-autoscale-web.gemspec +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b778cdddd979e989d82954b7e66cc78a425a01324d649a1117503d1c20c44a8d
|
4
|
+
data.tar.gz: feeea30a3b5c905f216aa293e06e8a1c757acea547a7f2cf639878ec75b9d213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a46137dfa53fc85cd1e49ca3a357ecb56b772cd875b4d7bb4752998feac5c2124f886d02fe450d5591f3dc247b5eab31d727abd030825909e050ee9d21cf23de
|
7
|
+
data.tar.gz: d9a13959b80800582b7df3fc6ec131197e6a26f2e46e0b3e2489c340ca983d640b6b90a067e3e0ab83c5d333285e2f8a298b15edb23183b05716d67194d0e101
|
data/lib/rails-autoscale-web.rb
CHANGED
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.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
@@ -10,36 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: rails
|
16
|
+
name: judoscale-rails
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.7.
|
21
|
+
version: 1.7.1
|
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.7.
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: railties
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '0'
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '0'
|
28
|
+
version: 1.7.1
|
43
29
|
description:
|
44
30
|
email:
|
45
31
|
- hello@judoscale.com
|
@@ -47,18 +33,7 @@ executables: []
|
|
47
33
|
extensions: []
|
48
34
|
extra_rdoc_files: []
|
49
35
|
files:
|
50
|
-
- Gemfile
|
51
|
-
- Gemfile-rails-6-1
|
52
|
-
- Gemfile-rails-7-0
|
53
|
-
- Rakefile
|
54
|
-
- judoscale-rails.gemspec
|
55
|
-
- lib/judoscale-rails.rb
|
56
|
-
- lib/judoscale/rails.rb
|
57
|
-
- lib/judoscale/rails/config.rb
|
58
|
-
- lib/judoscale/rails/railtie.rb
|
59
|
-
- lib/judoscale/rails/version.rb
|
60
36
|
- lib/rails-autoscale-web.rb
|
61
|
-
- rails-autoscale-web.gemspec
|
62
37
|
homepage: https://judoscale.com
|
63
38
|
licenses:
|
64
39
|
- MIT
|
@@ -76,14 +51,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
51
|
requirements:
|
77
52
|
- - ">="
|
78
53
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
54
|
+
version: '0'
|
80
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
56
|
requirements:
|
82
57
|
- - ">="
|
83
58
|
- !ruby/object:Gem::Version
|
84
59
|
version: '0'
|
85
60
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
61
|
+
rubygems_version: 3.5.11
|
87
62
|
signing_key:
|
88
63
|
specification_version: 4
|
89
64
|
summary: Autoscaling for Ruby on Rails applications.
|
data/Gemfile
DELETED
data/Gemfile-rails-6-1
DELETED
data/Gemfile-rails-7-0
DELETED
data/Rakefile
DELETED
data/judoscale-rails.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
lib = File.expand_path("../lib", __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "judoscale/rails/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "judoscale-rails"
|
7
|
-
spec.version = Judoscale::Rails::VERSION
|
8
|
-
spec.authors = ["Adam McCrea", "Carlos Antonio da Silva", "Jon Sullivan"]
|
9
|
-
spec.email = ["hello@judoscale.com"]
|
10
|
-
|
11
|
-
spec.summary = "Autoscaling for Ruby on Rails applications."
|
12
|
-
spec.homepage = "https://judoscale.com"
|
13
|
-
spec.license = "MIT"
|
14
|
-
|
15
|
-
spec.metadata = {
|
16
|
-
"homepage_uri" => "https://judoscale.com",
|
17
|
-
"bug_tracker_uri" => "https://github.com/judoscale/judoscale-ruby/issues",
|
18
|
-
"documentation_uri" => "https://judoscale.com/docs",
|
19
|
-
"changelog_uri" => "https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md",
|
20
|
-
"source_code_uri" => "https://github.com/judoscale/judoscale-ruby"
|
21
|
-
}
|
22
|
-
|
23
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
-
spec.require_paths = ["lib"]
|
25
|
-
|
26
|
-
spec.required_ruby_version = ">= 2.6.0"
|
27
|
-
|
28
|
-
spec.add_dependency "judoscale-ruby", Judoscale::Rails::VERSION
|
29
|
-
spec.add_dependency "railties"
|
30
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require "judoscale/config"
|
2
|
-
|
3
|
-
module Judoscale
|
4
|
-
module Rails
|
5
|
-
module Config
|
6
|
-
attr_accessor :start_reporter_after_initialize
|
7
|
-
|
8
|
-
def reset
|
9
|
-
super
|
10
|
-
@start_reporter_after_initialize = true
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
::Judoscale::Config.prepend Config
|
15
|
-
end
|
16
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "rails"
|
4
|
-
require "rails/railtie"
|
5
|
-
require "judoscale/request_middleware"
|
6
|
-
require "judoscale/rails/config"
|
7
|
-
require "judoscale/logger"
|
8
|
-
require "judoscale/reporter"
|
9
|
-
|
10
|
-
module Judoscale
|
11
|
-
module Rails
|
12
|
-
class Railtie < ::Rails::Railtie
|
13
|
-
include Judoscale::Logger
|
14
|
-
|
15
|
-
def in_rails_console?
|
16
|
-
# This is gross, but we can't find a more reliable way to detect if we're in a Rails console.
|
17
|
-
caller.any? { |call| call.include?("console_command.rb") }
|
18
|
-
end
|
19
|
-
|
20
|
-
def in_rake_task?(task_regex)
|
21
|
-
top_level_tasks = defined?(::Rake) && Rake.respond_to?(:application) && Rake.application.top_level_tasks || []
|
22
|
-
top_level_tasks.any? { |task| task_regex.match?(task) }
|
23
|
-
end
|
24
|
-
|
25
|
-
def judoscale_config
|
26
|
-
# Disambiguate from Judoscale::Rails::Config
|
27
|
-
::Judoscale::Config.instance
|
28
|
-
end
|
29
|
-
|
30
|
-
initializer "Judoscale.logger" do |app|
|
31
|
-
judoscale_config.logger = ::Rails.logger
|
32
|
-
end
|
33
|
-
|
34
|
-
initializer "Judoscale.request_middleware" do |app|
|
35
|
-
app.middleware.insert_before Rack::Runtime, RequestMiddleware
|
36
|
-
end
|
37
|
-
|
38
|
-
config.after_initialize do
|
39
|
-
if in_rails_console?
|
40
|
-
logger.debug "No reporting since we're in a Rails console"
|
41
|
-
elsif in_rake_task?(/assets:|db:/)
|
42
|
-
logger.debug "No reporting since we're in a build process"
|
43
|
-
elsif judoscale_config.start_reporter_after_initialize
|
44
|
-
Reporter.start
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
data/lib/judoscale/rails.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "judoscale-ruby"
|
4
|
-
require "judoscale/rails/version"
|
5
|
-
require "judoscale/rails/railtie"
|
6
|
-
require "judoscale/web_metrics_collector"
|
7
|
-
require "rails/version"
|
8
|
-
|
9
|
-
Judoscale.add_adapter :"judoscale-rails", {
|
10
|
-
adapter_version: Judoscale::Rails::VERSION,
|
11
|
-
framework_version: ::Rails.version
|
12
|
-
}, metrics_collector: Judoscale::WebMetricsCollector
|
data/lib/judoscale-rails.rb
DELETED
data/rails-autoscale-web.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
lib = File.expand_path("../lib", __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "judoscale/rails/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "rails-autoscale-web"
|
7
|
-
spec.version = Judoscale::Rails::VERSION
|
8
|
-
spec.authors = ["Adam McCrea", "Carlos Antonio da Silva", "Jon Sullivan"]
|
9
|
-
spec.email = ["hello@judoscale.com"]
|
10
|
-
|
11
|
-
spec.summary = "Autoscaling for Ruby on Rails applications."
|
12
|
-
spec.homepage = "https://judoscale.com"
|
13
|
-
spec.license = "MIT"
|
14
|
-
|
15
|
-
spec.metadata = {
|
16
|
-
"homepage_uri" => "https://judoscale.com",
|
17
|
-
"bug_tracker_uri" => "https://github.com/judoscale/judoscale-ruby/issues",
|
18
|
-
"documentation_uri" => "https://judoscale.com/docs",
|
19
|
-
"changelog_uri" => "https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md",
|
20
|
-
"source_code_uri" => "https://github.com/judoscale/judoscale-ruby"
|
21
|
-
}
|
22
|
-
|
23
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
-
spec.require_paths = ["lib"]
|
25
|
-
|
26
|
-
spec.required_ruby_version = ">= 2.6.0"
|
27
|
-
|
28
|
-
spec.add_dependency "rails-autoscale-core", Judoscale::Rails::VERSION
|
29
|
-
spec.add_dependency "railties"
|
30
|
-
end
|