rails-autoscale-rack 1.1.0

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: f039aebe80a26a59459f1375947c432adebcc32add8a2466063662a22ef05ec8
4
+ data.tar.gz: b382961524699a5d2bdacb6a2130e87b24bf256f5162901a5679dc24acf4770f
5
+ SHA512:
6
+ metadata.gz: b3972ff115ded91c8f061dfb66c93bc8ef8332c3fbd2fd0df1e5a723129f99e6350cb56866f2b3406f77d211f1c51288716c83cb1cc541ac6cc0cad70ffe834a
7
+ data.tar.gz: baae87b51e93eaded5fb82ba6b906a5c5db99d1a2b55d09abd61a360423e885701af3d9150a959583823642ef273e28f400bc1ddad6a96c71f72917932bf787e
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "rails-autoscale-core", path: "../rails-autoscale-core"
6
+ gem "minitest"
7
+ gem "rake"
8
+ gem "debug"
9
+ gem "sinatra"
10
+ gem "rack-test"
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: ../rails-autoscale-core
3
+ specs:
4
+ rails-autoscale-core (1.1.0)
5
+
6
+ PATH
7
+ remote: .
8
+ specs:
9
+ rails-autoscale-rack (1.1.0)
10
+ rack
11
+ rails-autoscale-core
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
+ reline (0.3.1)
32
+ io-console (~> 0.5)
33
+ ruby2_keywords (0.0.5)
34
+ sinatra (3.0.2)
35
+ mustermann (~> 3.0)
36
+ rack (~> 2.2, >= 2.2.4)
37
+ rack-protection (= 3.0.2)
38
+ tilt (~> 2.0)
39
+ tilt (2.0.11)
40
+
41
+ PLATFORMS
42
+ arm64-darwin-20
43
+ arm64-darwin-21
44
+ x86_64-darwin-21
45
+ x86_64-linux
46
+
47
+ DEPENDENCIES
48
+ debug
49
+ minitest
50
+ rack-test
51
+ rails-autoscale-core!
52
+ rails-autoscale-rack!
53
+ rake
54
+ sinatra
55
+
56
+ BUNDLED WITH
57
+ 2.3.9
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
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,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails_autoscale/rack"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsAutoscale
4
+ module Rack
5
+ VERSION = "1.1.0"
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails-autoscale-core"
4
+ require "rails_autoscale/rack/version"
5
+ require "rails_autoscale/web_metrics_collector"
6
+ require "rails_autoscale/request_middleware"
7
+ require "rack"
8
+
9
+ # For Rack apps, RailsAutoscale::RequestMiddleware must be manually inserted into
10
+ # the app's middleware chain.
11
+
12
+ RailsAutoscale.add_adapter :"rails-autoscale-rack", {
13
+ adapter_version: RailsAutoscale::Rack::VERSION,
14
+ framework_version: ::Rack.version
15
+ }, metrics_collector: RailsAutoscale::WebMetricsCollector
@@ -0,0 +1,30 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "rails_autoscale/rack/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rails-autoscale-rack"
7
+ spec.version = RailsAutoscale::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 Rails Autoscale autoscaling add-on for Heroku."
12
+ spec.homepage = "https://railsautoscale.com"
13
+ spec.license = "MIT"
14
+
15
+ spec.metadata = {
16
+ "homepage_uri" => "https://railsautoscale.com",
17
+ "bug_tracker_uri" => "https://github.com/rails-autoscale/rails-autoscale-gems/issues",
18
+ "documentation_uri" => "https://railsautoscale.com/docs",
19
+ "changelog_uri" => "https://github.com/rails-autoscale/rails-autoscale-gems/blob/main/CHANGELOG.md",
20
+ "source_code_uri" => "https://github.com/rails-autoscale/rails-autoscale-gems"
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"
29
+ spec.add_dependency "rack"
30
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-autoscale-rack
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam McCrea
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails-autoscale-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
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
+ - lib/rails-autoscale-rack.rb
52
+ - lib/rails_autoscale/rack.rb
53
+ - lib/rails_autoscale/rack/version.rb
54
+ - rails-autoscale-rack.gemspec
55
+ homepage: https://railsautoscale.com
56
+ licenses:
57
+ - MIT
58
+ metadata:
59
+ homepage_uri: https://railsautoscale.com
60
+ bug_tracker_uri: https://github.com/rails-autoscale/rails-autoscale-gems/issues
61
+ documentation_uri: https://railsautoscale.com/docs
62
+ changelog_uri: https://github.com/rails-autoscale/rails-autoscale-gems/blob/main/CHANGELOG.md
63
+ source_code_uri: https://github.com/rails-autoscale/rails-autoscale-gems
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 2.6.0
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubygems_version: 3.2.32
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: This gem provides Rack app integration with the Rails Autoscale autoscaling
83
+ add-on for Heroku.
84
+ test_files: []