From 737f2fd4eaa149758bce30da299e07a09489c680 Mon Sep 17 00:00:00 2001 From: Irving Caro <112433591+Irving-Betterment@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:58:06 -0600 Subject: [PATCH] Add lockfile (#32) **Summary of changes:** Commit lockfile previously ignored (see https://bundler.io/guides/faq.html#using-gemfiles-inside-gems). /task https://app.asana.com/0/0/1206244989881229/f --------- Co-authored-by: Irving Caro <112433591+betterment-coding-agent@users.noreply.github.com> --- .gitignore | 1 - .rubocop.yml | 3 + Gemfile.lock | 129 +++++++++++++++++++++++++++++++++++++++++ lib/delayed/monitor.rb | 2 +- 4 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore index 7d226522..b1743251 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ .DS_Store .rvmrc /coverage -Gemfile.lock gemfiles/*.lock pkg/* *.sqlite diff --git a/.rubocop.yml b/.rubocop.yml index 637eed70..3475235d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,3 +16,6 @@ AllCops: Rails/EnvironmentVariableAccess: Enabled: false + +RSpec/IndexedLet: + Enabled: false diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..3fb21bea --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,129 @@ +PATH + remote: . + specs: + delayed (0.5.2) + activerecord (>= 5.2) + concurrent-ruby + +GEM + remote: https://rubygems.org/ + specs: + actionmailer (0.6.1) + actionpack (>= 0.9.5) + actionpack (1.4.0) + activejob (6.1.7.6) + activesupport (= 6.1.7.6) + globalid (>= 0.3.6) + activemodel (6.1.7.6) + activesupport (= 6.1.7.6) + activerecord (6.1.7.6) + activemodel (= 6.1.7.6) + activesupport (= 6.1.7.6) + activesupport (6.1.7.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + betterlint (1.4.4) + rubocop (> 1.0) + rubocop-performance + rubocop-rails + rubocop-rake + rubocop-rspec (>= 2.7) + concurrent-ruby (1.2.2) + diff-lcs (1.5.0) + globalid (1.2.1) + activesupport (>= 6.1) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + json (2.7.1) + minitest (5.20.0) + mysql2 (0.5.5) + parallel (1.24.0) + parser (3.3.0.0) + ast (~> 2.4.1) + racc + pg (1.5.4) + racc (1.7.3) + rack (3.0.8) + rainbow (3.1.1) + rake (13.1.0) + regexp_parser (2.8.3) + rexml (3.2.6) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-support (3.12.1) + rubocop (1.50.2) + json (~> 2.3) + parallel (~> 1.10) + parser (>= 3.2.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + rubocop-capybara (2.18.0) + rubocop (~> 1.41) + rubocop-performance (1.17.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.19.1) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.33.0, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (2.20.0) + rubocop (~> 1.33) + rubocop-capybara (~> 2.17) + ruby-progressbar (1.13.0) + sqlite3 (1.6.9-x86_64-darwin) + sqlite3 (1.6.9-x86_64-linux) + thor (1.3.0) + timecop (0.9.8) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (2.5.0) + zeitwerk (2.6.12) + +PLATFORMS + x86_64-darwin-21 + x86_64-darwin-22 + x86_64-linux + +DEPENDENCIES + actionmailer + activejob + activerecord + appraisal + betterlint + delayed! + mysql2 + pg + rake + rspec + sqlite3 + timecop + zeitwerk + +BUNDLED WITH + 2.4.13 diff --git a/lib/delayed/monitor.rb b/lib/delayed/monitor.rb index d2979693..98c13446 100644 --- a/lib/delayed/monitor.rb +++ b/lib/delayed/monitor.rb @@ -34,7 +34,7 @@ def run! attr_reader :jobs def emit_metric!(metric) - send("#{metric}_grouped").reverse_merge(default_results).each do |(priority, queue), value| + send(:"#{metric}_grouped").reverse_merge(default_results).each do |(priority, queue), value| ActiveSupport::Notifications.instrument( "delayed.job.#{metric}", default_tags.merge(priority: Priority.new(priority).to_s, queue: queue, value: value),