Sha256: e55621d1b98df0d37004ef6de8d57b73262b97b383369e4fc0881d82004d75c6

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

#
# This file was ported to ruby from Composer php source code.
# Original Source: Composer\Repository\RepositoryInterface.php
#
# (c) Nils Adermann <naderman@naderman.de>
#     Jordi Boggiano <j.boggiano@seld.be>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

module Composer
  module Repository
    # Base repository.
    #
    # PHP Authors:
    # Nils Adermann <naderman@naderman.de>
    # Konstantin Kudryashov <ever.zet@gmail.com>
    # Jordi Boggiano <j.boggiano@seld.
    #
    # Ruby Authors:
    # Ioannis Kappas <ikappas@devworks.gr>
    class BaseRepository
      SEARCH_FULLTEXT = 0
      SEARCH_NAME = 1

      def package?
        # implement inside child
      end

      def find_package(name, version)
        # implement inside child
      end

      def find_packages(name, version = nil)
        # implement inside child
      end

      def packages
        # implement inside child
      end

      def search(query, mode = 0)
        # implement inside child
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
php-composer-0.4.5 lib/composer/repository/base_repository.rb
php-composer-0.4.4 lib/composer/repository/base_repository.rb
php-composer-0.4.3 lib/composer/repository/base_repository.rb
php-composer-0.4.2 lib/composer/repository/base_repository.rb
php-composer-0.4.1 lib/composer/repository/base_repository.rb
php-composer-0.4.0 lib/composer/repository/base_repository.rb