Sha256: 183dac43b6516638a0c8c60982a5fc24b0738281a80dac77e35d1010ed359cce

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

#
# This file was ported to ruby from Composer php source code file.
# Original Source: Composer\Package\RootPackage.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 Package

    # The root package represents the project's composer.json
    # and contains additional metadata
    class RootPackage < Composer::Package::CompletePackage

      attr_accessor :minimum_stability, :prefer_stable, :stability_flags,
                    :references, :aliases

      # Creates a new root package in memory package.
      # Param: string name          The package's name
      # Param: string version       The package's version
      # Param: string prettyVersion The package's non-normalized version
      def initialize(name, version, pretty_version)
        super(name, version, pretty_version)

        @minimum_stability = 'stable'
        @stability_flags = []
        @references = []
        @aliases = []
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
php-composer-0.3.0 lib/composer/package/root_package.rb
php-composer-0.2.0 lib/composer/package/root_package.rb