judoscale-rails 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile-rails-6-1 +8 -0
- data/Gemfile.lock +86 -0
- data/Rakefile +12 -0
- data/judoscale-rails.gemspec +30 -0
- data/lib/judoscale/rails/railtie.rb +29 -0
- data/lib/judoscale/rails/version.rb +7 -0
- data/lib/judoscale/rails.rb +12 -0
- data/lib/judoscale-rails.rb +3 -0
- metadata +87 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 50f288b98a79211acd6f54703ce4c9e84ff4bd91cc37c4329ac3f1e843429f5a
|
4
|
+
data.tar.gz: 7e4b09f2168878210e6ec61f6b81bd0f43f86eb3a74dce30bbfef1e98002e37d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e398759253427af5cccb9320ea88846dfb89ffc0c4a71e8292cd160d3f4ef507e09770704b13def29fbf6fe0c17be1ee09a55810fe572f8735fe66c17e93b3e3
|
7
|
+
data.tar.gz: aadad5762114ecc515edc8ff11c5b7eaf050da711da589e73c5bb1b52bd86583c803c083a27cf52ad989209fbe561b8fc9adb68110e511cf61f4c62e9636f2b5
|
data/Gemfile
ADDED
data/Gemfile-rails-6-1
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../judoscale-ruby
|
3
|
+
specs:
|
4
|
+
judoscale-ruby (1.0.0.rc1)
|
5
|
+
|
6
|
+
PATH
|
7
|
+
remote: .
|
8
|
+
specs:
|
9
|
+
judoscale-rails (1.0.0.rc1)
|
10
|
+
judoscale-ruby
|
11
|
+
railties
|
12
|
+
|
13
|
+
GEM
|
14
|
+
remote: https://rubygems.org/
|
15
|
+
specs:
|
16
|
+
actionpack (7.0.2.3)
|
17
|
+
actionview (= 7.0.2.3)
|
18
|
+
activesupport (= 7.0.2.3)
|
19
|
+
rack (~> 2.0, >= 2.2.0)
|
20
|
+
rack-test (>= 0.6.3)
|
21
|
+
rails-dom-testing (~> 2.0)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
23
|
+
actionview (7.0.2.3)
|
24
|
+
activesupport (= 7.0.2.3)
|
25
|
+
builder (~> 3.1)
|
26
|
+
erubi (~> 1.4)
|
27
|
+
rails-dom-testing (~> 2.0)
|
28
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
29
|
+
activesupport (7.0.2.3)
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
|
+
i18n (>= 1.6, < 2)
|
32
|
+
minitest (>= 5.1)
|
33
|
+
tzinfo (~> 2.0)
|
34
|
+
builder (3.2.4)
|
35
|
+
concurrent-ruby (1.1.10)
|
36
|
+
crass (1.0.6)
|
37
|
+
erubi (1.10.0)
|
38
|
+
i18n (1.10.0)
|
39
|
+
concurrent-ruby (~> 1.0)
|
40
|
+
loofah (2.16.0)
|
41
|
+
crass (~> 1.0.2)
|
42
|
+
nokogiri (>= 1.5.9)
|
43
|
+
method_source (1.0.0)
|
44
|
+
minitest (5.15.0)
|
45
|
+
nokogiri (1.13.4-arm64-darwin)
|
46
|
+
racc (~> 1.4)
|
47
|
+
nokogiri (1.13.4-x86_64-darwin)
|
48
|
+
racc (~> 1.4)
|
49
|
+
nokogiri (1.13.4-x86_64-linux)
|
50
|
+
racc (~> 1.4)
|
51
|
+
racc (1.6.0)
|
52
|
+
rack (2.2.3)
|
53
|
+
rack-test (1.1.0)
|
54
|
+
rack (>= 1.0, < 3)
|
55
|
+
rails-dom-testing (2.0.3)
|
56
|
+
activesupport (>= 4.2.0)
|
57
|
+
nokogiri (>= 1.6)
|
58
|
+
rails-html-sanitizer (1.4.2)
|
59
|
+
loofah (~> 2.3)
|
60
|
+
railties (7.0.2.3)
|
61
|
+
actionpack (= 7.0.2.3)
|
62
|
+
activesupport (= 7.0.2.3)
|
63
|
+
method_source
|
64
|
+
rake (>= 12.2)
|
65
|
+
thor (~> 1.0)
|
66
|
+
zeitwerk (~> 2.5)
|
67
|
+
rake (13.0.6)
|
68
|
+
thor (1.2.1)
|
69
|
+
tzinfo (2.0.4)
|
70
|
+
concurrent-ruby (~> 1.0)
|
71
|
+
zeitwerk (2.5.4)
|
72
|
+
|
73
|
+
PLATFORMS
|
74
|
+
arm64-darwin-20
|
75
|
+
arm64-darwin-21
|
76
|
+
x86_64-darwin-21
|
77
|
+
x86_64-linux
|
78
|
+
|
79
|
+
DEPENDENCIES
|
80
|
+
judoscale-rails!
|
81
|
+
judoscale-ruby!
|
82
|
+
minitest
|
83
|
+
rake
|
84
|
+
|
85
|
+
BUNDLED WITH
|
86
|
+
2.3.9
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
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"]
|
9
|
+
spec.email = ["adam@adamlogic.com"]
|
10
|
+
|
11
|
+
spec.summary = "This gem provides Ruby on Rails integration with the Judoscale autoscaling add-on for Heroku."
|
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"
|
29
|
+
spec.add_dependency "railties"
|
30
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rails"
|
4
|
+
require "rails/railtie"
|
5
|
+
require "judoscale/request_middleware"
|
6
|
+
require "judoscale/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
|
+
initializer "judoscale.logger" do |app|
|
16
|
+
Config.instance.logger = ::Rails.logger
|
17
|
+
end
|
18
|
+
|
19
|
+
initializer "judoscale.request_middleware" do |app|
|
20
|
+
logger.info "Preparing request middleware"
|
21
|
+
app.middleware.insert_before Rack::Runtime, RequestMiddleware
|
22
|
+
end
|
23
|
+
|
24
|
+
config.after_initialize do
|
25
|
+
Reporter.start
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,12 @@
|
|
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
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: judoscale-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adam McCrea
|
8
|
+
- Carlos Antonio da Silva
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2022-04-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: judoscale-ruby
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: railties
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
description:
|
43
|
+
email:
|
44
|
+
- adam@adamlogic.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile-rails-6-1
|
51
|
+
- Gemfile.lock
|
52
|
+
- Rakefile
|
53
|
+
- judoscale-rails.gemspec
|
54
|
+
- lib/judoscale-rails.rb
|
55
|
+
- lib/judoscale/rails.rb
|
56
|
+
- lib/judoscale/rails/railtie.rb
|
57
|
+
- lib/judoscale/rails/version.rb
|
58
|
+
homepage: https://judoscale.com
|
59
|
+
licenses:
|
60
|
+
- MIT
|
61
|
+
metadata:
|
62
|
+
homepage_uri: https://judoscale.com
|
63
|
+
bug_tracker_uri: https://github.com/judoscale/judoscale-ruby/issues
|
64
|
+
documentation_uri: https://judoscale.com/docs
|
65
|
+
changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
|
66
|
+
source_code_uri: https://github.com/judoscale/judoscale-ruby
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.6.0
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.3.1
|
81
|
+
requirements: []
|
82
|
+
rubygems_version: 3.2.32
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: This gem provides Ruby on Rails integration with the Judoscale autoscaling
|
86
|
+
add-on for Heroku.
|
87
|
+
test_files: []
|