rails-autoscale-web 1.6.0 → 1.7.1

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: e246d7f8d9f0fce521200ff153e3ec93b7ffc3fd522dca16bfd0c2cdeca7fb65
4
- data.tar.gz: 50f9e03a26ddc770139674cf746856bcbc443a7818a0f752b96dc3db68ed705a
3
+ metadata.gz: b778cdddd979e989d82954b7e66cc78a425a01324d649a1117503d1c20c44a8d
4
+ data.tar.gz: feeea30a3b5c905f216aa293e06e8a1c757acea547a7f2cf639878ec75b9d213
5
5
  SHA512:
6
- metadata.gz: f14d0e787f4f71a8640d06ad2b06b7420e799a0734e78e4220135334e1186759006fe179cf84b25d5082bd1b8b020b651bf99c7e428ee0feb10c1dd195620a7d
7
- data.tar.gz: 6aac3b6908968758da34ee693da1f96143b975e50a1b6b3ac1c8751a7ef4dad4d7ec3935d28734b31d859b63ff71badef093ebd1fc2ce00ba65373ede763e69f
6
+ metadata.gz: a46137dfa53fc85cd1e49ca3a357ecb56b772cd875b4d7bb4752998feac5c2124f886d02fe450d5591f3dc247b5eab31d727abd030825909e050ee9d21cf23de
7
+ data.tar.gz: d9a13959b80800582b7df3fc6ec131197e6a26f2e46e0b3e2489c340ca983d640b6b90a067e3e0ab83c5d333285e2f8a298b15edb23183b05716d67194d0e101
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "judoscale/rails"
3
+ require "judoscale-rails"
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.6.0
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-04-26 00:00:00.000000000 Z
13
+ date: 2024-07-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails-autoscale-core
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.6.0
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.6.0
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,16 +51,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
51
  requirements:
77
52
  - - ">="
78
53
  - !ruby/object:Gem::Version
79
- version: 2.6.0
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.4.10
61
+ rubygems_version: 3.5.11
87
62
  signing_key:
88
63
  specification_version: 4
89
- summary: This gem provides Ruby on Rails integration with the Judoscale autoscaling
90
- add-on for Heroku.
64
+ summary: Autoscaling for Ruby on Rails applications.
91
65
  test_files: []
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec name: "judoscale-rails"
4
-
5
- gem "judoscale-ruby", path: "../judoscale-ruby"
6
- gem "minitest"
7
- gem "minitest-stub-const"
8
- gem "rake"
9
- gem "debug"
data/Gemfile-rails-6-1 DELETED
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec name: "judoscale-rails"
4
-
5
- gem "judoscale-ruby", path: "../judoscale-ruby"
6
- gem "railties", "~> 6.1"
7
- gem "minitest"
8
- gem "minitest-stub-const"
9
- gem "rake"
data/Gemfile-rails-7-0 DELETED
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec name: "judoscale-rails"
4
-
5
- gem "judoscale-ruby", path: "../judoscale-ruby"
6
- gem "railties", "~> 7.0"
7
- gem "minitest"
8
- gem "minitest-stub-const"
9
- gem "rake"
data/Rakefile DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rake/testtask"
4
-
5
- Rake::TestTask.new(:test) do |t|
6
- t.libs << "lib"
7
- t.libs << "test"
8
- t.test_files = FileList["test/**/*_test.rb"]
9
- end
10
-
11
- task default: :test
@@ -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 = "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", 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
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Judoscale
4
- module Rails
5
- VERSION = "1.6.0"
6
- end
7
- end
@@ -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
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "judoscale/rails"
@@ -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 = "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 "rails-autoscale-core", Judoscale::Rails::VERSION
29
- spec.add_dependency "railties"
30
- end