rails-autoscale-rack 1.1.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a017329ce5d985e3bd37ab38670f012032182150abeecc7f4d37967f39cc61fc
4
- data.tar.gz: e9fe4af839993a44919e9f7f6726628120b9a357c2c02c2b3083515b1a920f53
3
+ metadata.gz: dec399ca3e2066b87bc5109fb6ff34f1400f025fe0f01c6d73a6ca3b17e7494b
4
+ data.tar.gz: fbd7fdf03553d24abcdb475a9b6a41ea09912d34947f93d71faca1586efa22c3
5
5
  SHA512:
6
- metadata.gz: 8303a1951c70dec056f2bc9efdf7c6b32ffe1e10810fb1421a10ab83472b2cf81c0489640545e1739efd05ba6732184c586a51a5da59a1b0e31b7c0a32f39de9
7
- data.tar.gz: 1965cb4a9a50456594c1f7316fb6a51f270dfb7b79fb708b6807c29a2b83b5297553abdcb457b2e4c8b7c2eacfe65b0111195d8a89696ac8de5491e86d8007b9
6
+ metadata.gz: 7399f06744fb1afd7625125f407b987bb3efdbf32926a17abb88979a5b0e12f14846d7386b695c78d7595e97c3134cc5fd93c62f0d0b02afb742e07b5665795a
7
+ data.tar.gz: 19f7091faa8d0cf4920d4e17a7b7741b7be0bbae0a14809cd7a3d07f240efd60e4fd27f2610787f7fe5291be75bd8b36efb2a84f57e96ca68cfddb98bfc7a8ce
data/Gemfile CHANGED
@@ -1,10 +1,11 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec name: "judoscale-rack"
4
4
 
5
- gem "rails-autoscale-core", path: "../rails-autoscale-core"
5
+ gem "judoscale-ruby", path: "../judoscale-ruby"
6
6
  gem "minitest"
7
7
  gem "rake"
8
+ gem "rake-release"
8
9
  gem "debug"
9
10
  gem "sinatra"
10
11
  gem "rack-test"
data/Gemfile.lock CHANGED
@@ -1,40 +1,42 @@
1
1
  PATH
2
- remote: ../rails-autoscale-core
2
+ remote: ../judoscale-ruby
3
3
  specs:
4
- rails-autoscale-core (1.1.1)
4
+ judoscale-ruby (1.3.0)
5
5
 
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- rails-autoscale-rack (1.1.1)
9
+ judoscale-rack (1.3.0)
10
+ judoscale-ruby (= 1.3.0)
10
11
  rack
11
- rails-autoscale-core
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- debug (1.6.2)
17
- irb (>= 1.3.6)
16
+ debug (1.7.1)
17
+ irb (>= 1.5.0)
18
18
  reline (>= 0.3.1)
19
- io-console (0.5.11)
20
- irb (1.4.1)
19
+ io-console (0.6.0)
20
+ irb (1.6.2)
21
21
  reline (>= 0.3.0)
22
- minitest (5.16.3)
22
+ minitest (5.17.0)
23
23
  mustermann (3.0.0)
24
24
  ruby2_keywords (~> 0.0.1)
25
- rack (2.2.4)
26
- rack-protection (3.0.2)
25
+ rack (2.2.6.2)
26
+ rack-protection (3.0.5)
27
27
  rack
28
28
  rack-test (2.0.2)
29
29
  rack (>= 1.3)
30
30
  rake (13.0.6)
31
- reline (0.3.1)
31
+ rake-release (1.3.0)
32
+ bundler (>= 1.11, < 3)
33
+ reline (0.3.2)
32
34
  io-console (~> 0.5)
33
35
  ruby2_keywords (0.0.5)
34
- sinatra (3.0.2)
36
+ sinatra (3.0.5)
35
37
  mustermann (~> 3.0)
36
38
  rack (~> 2.2, >= 2.2.4)
37
- rack-protection (= 3.0.2)
39
+ rack-protection (= 3.0.5)
38
40
  tilt (~> 2.0)
39
41
  tilt (2.0.11)
40
42
 
@@ -46,11 +48,12 @@ PLATFORMS
46
48
 
47
49
  DEPENDENCIES
48
50
  debug
51
+ judoscale-rack!
52
+ judoscale-ruby!
49
53
  minitest
50
54
  rack-test
51
- rails-autoscale-core!
52
- rails-autoscale-rack!
53
55
  rake
56
+ rake-release
54
57
  sinatra
55
58
 
56
59
  BUNDLED WITH
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
3
+ require "rake/release"
4
4
  require "rake/testtask"
5
5
 
6
6
  Rake::TestTask.new(:test) do |t|
@@ -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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module RailsAutoscale
3
+ module Judoscale
4
4
  module Rack
5
- VERSION = "1.1.1"
5
+ VERSION = "1.3.0"
6
6
  end
7
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"
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails_autoscale/rack"
3
+ require "judoscale/rack"
@@ -1,23 +1,23 @@
1
1
  lib = File.expand_path("../lib", __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "rails_autoscale/rack/version"
3
+ require "judoscale/rack/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rails-autoscale-rack"
7
- spec.version = RailsAutoscale::Rack::VERSION
7
+ spec.version = Judoscale::Rack::VERSION
8
8
  spec.authors = ["Adam McCrea"]
9
9
  spec.email = ["adam@adamlogic.com"]
10
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"
11
+ spec.summary = "This gem provides Rack app integration with the Judoscale autoscaling add-on for Heroku."
12
+ spec.homepage = "https://judoscale.com"
13
13
  spec.license = "MIT"
14
14
 
15
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"
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
21
  }
22
22
 
23
23
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.required_ruby_version = ">= 2.6.0"
27
27
 
28
- spec.add_dependency "rails-autoscale-core"
28
+ spec.add_dependency "rails-autoscale-core", Judoscale::Rack::VERSION
29
29
  spec.add_dependency "rack"
30
30
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-autoscale-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam McCrea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-autoscale-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -48,19 +48,21 @@ files:
48
48
  - Gemfile
49
49
  - Gemfile.lock
50
50
  - Rakefile
51
+ - judoscale-rack.gemspec
52
+ - lib/judoscale-rack.rb
53
+ - lib/judoscale/rack.rb
54
+ - lib/judoscale/rack/version.rb
51
55
  - lib/rails-autoscale-rack.rb
52
- - lib/rails_autoscale/rack.rb
53
- - lib/rails_autoscale/rack/version.rb
54
56
  - rails-autoscale-rack.gemspec
55
- homepage: https://railsautoscale.com
57
+ homepage: https://judoscale.com
56
58
  licenses:
57
59
  - MIT
58
60
  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
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
64
66
  post_install_message:
65
67
  rdoc_options: []
66
68
  require_paths:
@@ -79,6 +81,6 @@ requirements: []
79
81
  rubygems_version: 3.2.32
80
82
  signing_key:
81
83
  specification_version: 4
82
- summary: This gem provides Rack app integration with the Rails Autoscale autoscaling
83
- add-on for Heroku.
84
+ summary: This gem provides Rack app integration with the Judoscale autoscaling add-on
85
+ for Heroku.
84
86
  test_files: []
@@ -1,15 +0,0 @@
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