From 2056e83050b294e68cd29c7b0e543127ad560f75 Mon Sep 17 00:00:00 2001 From: kaitoozawa Date: Fri, 2 Jan 2026 17:21:28 +1000 Subject: [PATCH 1/4] install simplecov --- Gemfile | 1 + spec/spec_helper.rb | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 7233e22bb..6400ad4b1 100644 --- a/Gemfile +++ b/Gemfile @@ -61,6 +61,7 @@ end # For running unit tests group :test do + gem 'simplecov', '~> 0.22' gem 'test-unit-full', '~> 0.0.5' gem 'rspec', '~> 3.13' gem 'rdoc', '~> 7.0' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8bdc9b7d7..f583686ff 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,6 +3,16 @@ # Browser Exploitation Framework (BeEF) - https://beefproject.com # See the file 'doc/COPYING' for copying permission # +# Coverage must start before loading application code. +require 'simplecov' +SimpleCov.start do + add_filter '/spec/' + add_group 'Core', 'core' + add_group 'Extensions', 'extensions' + add_group 'Modules', 'modules' + track_files '{core,extensions,modules}/**/*.rb' +end + # Set external and internal character encodings to UTF-8 Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 @@ -380,4 +390,4 @@ module SpecActiveRecordConnection ActiveRecord::Migrator.new(:up, context.migrations, context.schema_migration, context.internal_metadata).migrate end end -end \ No newline at end of file +end From 8078751c0c00e8ad3ea3155f98e7741016578711 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:01:38 +0000 Subject: [PATCH 2/4] Bump rubocop from 1.82.1 to 1.84.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.82.1 to 1.84.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.82.1...v1.84.0) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.84.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index 042c3c757..3751c4725 100644 --- a/Gemfile +++ b/Gemfile @@ -24,7 +24,7 @@ gem 'rake', '~> 13.3' gem 'activerecord', '~> 8.1' gem 'otr-activerecord', '~> 2.6.0' gem 'sqlite3', '~> 2.9' -gem 'rubocop', '~> 1.82.1', require: false +gem 'rubocop', '~> 1.84.0', require: false # Geolocation support group :geoip do diff --git a/Gemfile.lock b/Gemfile.lock index 29f746606..4c9f06417 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -134,14 +134,14 @@ GEM activerecord (>= 6.0, < 9.0) parallel (1.27.0) parseconfig (1.1.2) - parser (3.3.10.0) + parser (3.3.10.1) ast (~> 2.4.1) racc power_assert (2.0.5) pp (0.6.3) prettyprint prettyprint (0.2.0) - prism (1.7.0) + prism (1.8.0) pry (0.16.0) coderay (~> 1.1) method_source (~> 1.0) @@ -197,7 +197,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.6) - rubocop (1.82.1) + rubocop (1.84.0) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -205,12 +205,12 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.48.0, < 2.0) + rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.48.0) + rubocop-ast (1.49.0) parser (>= 3.3.7.2) - prism (~> 1.4) + prism (~> 1.7) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) rubyzip (3.2.2) @@ -331,7 +331,7 @@ DEPENDENCIES rdoc (~> 7.1) rest-client (~> 2.1.0) rspec (~> 3.13) - rubocop (~> 1.82.1) + rubocop (~> 1.84.0) rubyzip (~> 3.2) rushover (~> 0.3.0) selenium-webdriver (~> 4.40) From 0f640ebc0efadce497e1e284fab6e9f27296eeff Mon Sep 17 00:00:00 2001 From: kaitoozawa Date: Tue, 27 Jan 2026 10:15:13 +1000 Subject: [PATCH 3/4] change stale timing --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 274196a14..566647147 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -21,11 +21,11 @@ jobs: - uses: actions/stale@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 14 + days-before-stale: 120 days-before-pr-stale: 29 - days-before-close: 11 + days-before-close: 7 days-before-pr-close: 31 - stale-issue-message: 'This issue as been marked as stale due to inactivity and will be closed in 7 days' + stale-issue-message: 'This issue has been marked as stale due to inactivity and will be closed in 7 days' stale-pr-message: 'Stale pull request message' stale-issue-label: 'Stale' stale-pr-label: 'no-pr-activity' From 086b0b1dc2769d6963f8c78646fbcbd8be66720c Mon Sep 17 00:00:00 2001 From: kaitoozawa Date: Thu, 29 Jan 2026 14:50:13 +1000 Subject: [PATCH 4/4] upgrade to version 10 --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 566647147..535c24d1f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -18,7 +18,7 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v10.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 120 @@ -30,6 +30,6 @@ jobs: stale-issue-label: 'Stale' stale-pr-label: 'no-pr-activity' exempt-issue-labels: 'Critical, High, Low, Medium, Review, Backlog' - exempt-milestones: true + exempt-all-milestones: true exempt-draft-pr: true - start-date: '2022-06-15' + start-date: '2022-06-15T00:00:00Z'