Sha256: 45af26a29bdc57ee1d37ae7203a8f3e8089fb5a0fc2b1370121e7766272c3601

Contents?: true

Size: 1.18 KB

Versions: 174

Compression:

Stored size: 1.18 KB

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base'

module Avm
  module EacRubyBase1
    module Bundler
      class IncompatibleParser
        class GemConflict < ::Avm::EacRubyBase1::Bundler::IncompatibleParser::LineParserBase
          LINE_PARSER = /Bundler could not find compatible versions for gem "(.+)":/
                          .to_parser { |m| new(m[1]) }

          enable_simple_cache
          common_constructor :gem_name

          def add_depends_on(depends_on)
            depends_on_stack << depends_on
          end

          def add_version_requirement(version_requirement)
            version_requirement.stack = depends_on_stack
            versions_requirements << version_requirement
            @depends_on_stack = nil
          end

          def data
            { gem_name: gem_name, versions_requirements: versions_requirements.map(&:data) }
          end

          def versions_requirements
            @versions_requirements ||= []
          end

          private

          def depends_on_stack
            @depends_on_stack ||= []
          end
        end
      end
    end
  end
end

Version data entries

174 entries across 174 versions & 3 rubygems

Version Path
avm-eac_ruby_base1-0.35.1 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.96.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.35.0 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.95.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.34.1 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.91.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.34.0 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.91.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.33.1 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.83.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.82.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.81.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.33.0 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.80.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.79.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.32.1 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.78.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
avm-eac_ruby_base1-0.32.0 lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.77.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
eac_tools-0.77.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb