summaryrefslogtreecommitdiff
path: root/lib/bundler/cli
diff options
context:
space:
mode:
authorEric Mueller <nevinera@gmail.com>2023-11-19 08:06:40 -0500
committergit <svn-admin@ruby-lang.org>2023-11-23 18:03:17 +0000
commit055a4f09ca8ef6852280d66997b974171a7c2863 (patch)
tree40afa6f9e85a99e39739435e2c60d13dadb553ba /lib/bundler/cli
parentc424d15cb95f0f5a0db711974f7c76928c9633b1 (diff)
[rubygems/rubygems] Don't require 'json' unless it's actually needed
https://github.com/rubygems/rubygems/commit/97ee203fd5
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r--lib/bundler/cli/outdated.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb
index 35954ce491..783e5fc2c0 100644
--- a/lib/bundler/cli/outdated.rb
+++ b/lib/bundler/cli/outdated.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "json"
-
module Bundler
class CLI::Outdated
attr_reader :options, :gems, :options_include_groups, :filter_options_patch, :sources, :strict
@@ -180,6 +178,7 @@ module Bundler
end
def print_gems_json(gems_list)
+ require "json"
data = gems_list.map do |gem|
gem_data_for(
gem[:current_spec],