Sha256: d29933a06cefc0790a54bc9f16621a0044341a63f70671c68f04ee147d48e179

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

module Indexer

  class Importer

    # Build mixin for Bundler's Gemfile.
    #
    module GemfileImportation
      #
      # If the source file is a Gemfile, import it.
      #
      def import(source)
        case source
        when 'Gemfile'
          metadata.import_gemfile(source)
          true
        else
          super(source) if defined?(super)
        end
      end
    end

    # Include GemfileImportation mixin into Builder class.
    include GemfileImportation

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
indexer-0.3.1 lib/indexer/importer/gemfile.rb
indexer-0.3.0 lib/indexer/importer/gemfile.rb
indexer-0.2.0 lib/indexer/importer/gemfile.rb
indexer-0.1.0 lib/indexer/importer/gemfile.rb