judoscale-rack 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 88a941809a17dd465be8b5aa2da0d169cbea8d2f910fe6c67cb3373f9c5a67c7
4
+ data.tar.gz: 8b9ba56d199cb2a8e99d6a397c329f7092fe2a666dd1f3e1f87b53607690b167
5
+ SHA512:
6
+ metadata.gz: 434032c6187631224cac069871de092a3ec3b6bb2fd20683d87e08998b0c9b4aba2c9f22638aece78082fa4045d230e60d68fa883c5412cf0c00e286391bb64e
7
+ data.tar.gz: 4cdd9ad05ac9b8bd31c45c1667789fc0e11977a6e2fc496d16baf5803c45aa2dbe66c23b534e547ab21305d6e857fce9f334b2bf93bca3883d759cb8f5a11770
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec name: "judoscale-rack"
4
+
5
+ gem "judoscale-ruby", path: "../judoscale-ruby"
6
+ gem "minitest"
7
+ gem "rake"
8
+ gem "rake-release"
9
+ gem "debug"
10
+ gem "sinatra"
11
+ gem "rack-test"
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: ../judoscale-ruby
3
+ specs:
4
+ judoscale-ruby (1.2.3)
5
+
6
+ PATH
7
+ remote: .
8
+ specs:
9
+ judoscale-rack (1.2.3)
10
+ judoscale-ruby (= 1.2.3)
11
+ rack
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ debug (1.6.2)
17
+ irb (>= 1.3.6)
18
+ reline (>= 0.3.1)
19
+ io-console (0.5.11)
20
+ irb (1.4.1)
21
+ reline (>= 0.3.0)
22
+ minitest (5.16.3)
23
+ mustermann (3.0.0)
24
+ ruby2_keywords (~> 0.0.1)
25
+ rack (2.2.4)
26
+ rack-protection (3.0.2)
27
+ rack
28
+ rack-test (2.0.2)
29
+ rack (>= 1.3)
30
+ rake (13.0.6)
31
+ rake-release (1.3.0)
32
+ bundler (>= 1.11, < 3)
33
+ reline (0.3.1)
34
+ io-console (~> 0.5)
35
+ ruby2_keywords (0.0.5)
36
+ sinatra (3.0.2)
37
+ mustermann (~> 3.0)
38
+ rack (~> 2.2, >= 2.2.4)
39
+ rack-protection (= 3.0.2)
40
+ tilt (~> 2.0)
41
+ tilt (2.0.11)
42
+
43
+ PLATFORMS
44
+ arm64-darwin-20
45
+ arm64-darwin-21
46
+ x86_64-darwin-21
47
+ x86_64-linux
48
+
49
+ DEPENDENCIES
50
+ debug
51
+ judoscale-rack!
52
+ judoscale-ruby!
53
+ minitest
54
+ rack-test
55
+ rake
56
+ rake-release
57
+ sinatra
58
+
59
+ BUNDLED WITH
60
+ 2.3.9
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rake/release"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "lib"
8
+ t.libs << "test"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ task default: :test
@@ -0,0 +1,30 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "judoscale/rack/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "judoscale-rack"
7
+ spec.version = Judoscale::Rack::VERSION
8
+ spec.authors = ["Adam McCrea"]
9
+ spec.email = ["adam@adamlogic.com"]
10
+
11
+ spec.summary = "This gem provides Rack app 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", Judoscale::Rack::VERSION
29
+ spec.add_dependency "rack"
30
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Judoscale
4
+ module Rack
5
+ VERSION = "1.2.3"
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale-ruby"
4
+ require "judoscale/rack/version"
5
+ require "judoscale/web_metrics_collector"
6
+ require "judoscale/request_middleware"
7
+ require "rack"
8
+
9
+ # For Rack apps, Judoscale::RequestMiddleware must be manually inserted into
10
+ # the app's middleware chain.
11
+
12
+ Judoscale.add_adapter :"judoscale-rack", {
13
+ adapter_version: Judoscale::Rack::VERSION,
14
+ framework_version: ::Rack.version
15
+ }, metrics_collector: Judoscale::WebMetricsCollector
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale/rack"
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "judoscale/rack"
@@ -0,0 +1,30 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "judoscale/rack/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rails-autoscale-rack"
7
+ spec.version = Judoscale::Rack::VERSION
8
+ spec.authors = ["Adam McCrea"]
9
+ spec.email = ["adam@adamlogic.com"]
10
+
11
+ spec.summary = "This gem provides Rack app 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 "rails-autoscale-core", Judoscale::Rack::VERSION
29
+ spec.add_dependency "rack"
30
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: judoscale-rack
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.3
5
+ platform: ruby
6
+ authors:
7
+ - Adam McCrea
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-11-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: judoscale-ruby
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: rack
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - adam@adamlogic.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - Gemfile
49
+ - Gemfile.lock
50
+ - Rakefile
51
+ - judoscale-rack.gemspec
52
+ - lib/judoscale-rack.rb
53
+ - lib/judoscale/rack.rb
54
+ - lib/judoscale/rack/version.rb
55
+ - lib/rails-autoscale-rack.rb
56
+ - rails-autoscale-rack.gemspec
57
+ homepage: https://judoscale.com
58
+ licenses:
59
+ - MIT
60
+ metadata:
61
+ homepage_uri: https://judoscale.com
62
+ bug_tracker_uri: https://github.com/judoscale/judoscale-ruby/issues
63
+ documentation_uri: https://judoscale.com/docs
64
+ changelog_uri: https://github.com/judoscale/judoscale-ruby/blob/main/CHANGELOG.md
65
+ source_code_uri: https://github.com/judoscale/judoscale-ruby
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.6.0
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubygems_version: 3.2.32
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: This gem provides Rack app integration with the Judoscale autoscaling add-on
85
+ for Heroku.
86
+ test_files: []