From 422669d21c25f60575bbb29233cd8da9c06b6cda Mon Sep 17 00:00:00 2001 From: Stefan Horning Date: Thu, 6 Feb 2025 08:55:16 +0100 Subject: [PATCH] Reduce rails dependencies to what is actually needed by this gem. Otherwise using it will pull in lots of dependencies --- Gemfile.lock | 82 +--------------------------------------- yabeda-activejob.gemspec | 3 +- 2 files changed, 4 insertions(+), 81 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index f9d6cf2..b724562 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,37 +2,13 @@ PATH remote: . specs: yabeda-activejob (0.6.0) - rails (>= 6.1) + activejob (>= 6.1) + activesupport (>= 6.1) yabeda (~> 0.6) GEM remote: https://rubygems.org/ specs: - actioncable (7.0.4) - actionpack (= 7.0.4) - activesupport (= 7.0.4) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (7.0.4) - actionpack (= 7.0.4) - activejob (= 7.0.4) - activerecord (= 7.0.4) - activestorage (= 7.0.4) - activesupport (= 7.0.4) - mail (>= 2.7.1) - net-imap - net-pop - net-smtp - actionmailer (7.0.4) - actionpack (= 7.0.4) - actionview (= 7.0.4) - activejob (= 7.0.4) - activesupport (= 7.0.4) - mail (~> 2.5, >= 2.5.4) - net-imap - net-pop - net-smtp - rails-dom-testing (~> 2.0) actionpack (7.0.4) actionview (= 7.0.4) activesupport (= 7.0.4) @@ -40,13 +16,6 @@ GEM rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.4) - actionpack (= 7.0.4) - activerecord (= 7.0.4) - activestorage (= 7.0.4) - activesupport (= 7.0.4) - globalid (>= 0.6.0) - nokogiri (>= 1.8.5) actionview (7.0.4) activesupport (= 7.0.4) builder (~> 3.1) @@ -56,18 +25,6 @@ GEM activejob (7.0.4) activesupport (= 7.0.4) globalid (>= 0.3.6) - activemodel (7.0.4) - activesupport (= 7.0.4) - activerecord (7.0.4) - activemodel (= 7.0.4) - activesupport (= 7.0.4) - activestorage (7.0.4) - actionpack (= 7.0.4) - activejob (= 7.0.4) - activerecord (= 7.0.4) - activesupport (= 7.0.4) - marcel (~> 1.0) - mini_mime (>= 1.1.0) activesupport (7.0.4) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) @@ -79,7 +36,6 @@ GEM builder (3.2.4) concurrent-ruby (1.1.10) crass (1.0.6) - date (3.3.4) diff-lcs (1.5.0) docile (1.4.0) dry-initializer (3.1.1) @@ -93,25 +49,9 @@ GEM loofah (2.19.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) - mail (2.8.1) - mini_mime (>= 0.1.1) - net-imap - net-pop - net-smtp - marcel (1.0.4) method_source (1.0.0) - mini_mime (1.1.5) mini_portile2 (2.8.7) minitest (5.16.3) - net-imap (0.5.0) - date - net-protocol - net-pop (0.1.2) - net-protocol (0.2.2) - timeout - net-smtp (0.5.0) - net-protocol - nio4r (2.7.4) nokogiri (1.13.9) mini_portile2 (~> 2.8.0) racc (~> 1.4) @@ -123,20 +63,6 @@ GEM rack (2.2.4) rack-test (2.0.2) rack (>= 1.3) - rails (7.0.4) - actioncable (= 7.0.4) - actionmailbox (= 7.0.4) - actionmailer (= 7.0.4) - actionpack (= 7.0.4) - actiontext (= 7.0.4) - actionview (= 7.0.4) - activejob (= 7.0.4) - activemodel (= 7.0.4) - activerecord (= 7.0.4) - activestorage (= 7.0.4) - activesupport (= 7.0.4) - bundler (>= 1.15.0) - railties (= 7.0.4) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) @@ -196,13 +122,9 @@ GEM simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) thor (1.2.1) - timeout (0.4.1) tzinfo (2.0.5) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) - websocket-driver (0.7.6) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) yabeda (0.13.1) anyway_config (>= 1.0, < 3) concurrent-ruby diff --git a/yabeda-activejob.gemspec b/yabeda-activejob.gemspec index 7cc388b..11c0cab 100644 --- a/yabeda-activejob.gemspec +++ b/yabeda-activejob.gemspec @@ -18,6 +18,7 @@ Gem::Specification.new do |spec| spec.metadata["source_code_uri"] = spec.homepage spec.metadata["changelog_uri"] = "#{spec.homepage}/CHANGELOG.md" - spec.add_dependency "rails", ">= 6.1" + spec.add_dependency "activesupport", ">= 6.1" + spec.add_dependency "activejob", ">= 6.1" spec.add_dependency "yabeda", "~> 0.6" end