Sha256: 0c0e58dac637ae3f6b756a559720bc9cc7fd57ad7417dbf32a0a8d2f332ba343

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

# https://github.com/bundler/bundler/issues/4368
#
# There is an issue with RubyGems 2.6.2 where it attempts to call Bundler::SpecSet#size, which doesn't exist.
# If a gem is not installed, a `Gem::Specification.find_by_name` call will trigger this problem.
if Object.const_defined?(:Bundler) &&
   Bundler.const_defined?(:SpecSet) &&
   Bundler::SpecSet.instance_methods.include?(:length) &&
   !Bundler::SpecSet.instance_methods.include?(:size)
  module Bundler
    class SpecSet
      alias size length
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane/lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane_hotfix-2.165.0 fastlane/lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/core_ext/bundler_monkey_patch.rb