Sha256: d00bfc7241fce12cd03fe790ceba5952c83c11de6ef9a0d20f9f7ab52b2b69b2

Contents?: true

Size: 537 Bytes

Versions: 24

Compression:

Stored size: 537 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_method :size, :length
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
fastlane-1.94.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.93.1 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.93.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.92.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.92.0.beta2 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.92.0.beta1 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.91.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.90.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.89.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.88.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.87.1 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.87.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.86.1 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.86.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.85.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.84.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.83.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.82.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.81.0 lib/fastlane/core_ext/bundler_monkey_patch.rb
fastlane-1.80.0 lib/fastlane/core_ext/bundler_monkey_patch.rb