Sha256: 90492b302e9e8568d23c933a33ba15856000bbcb48e0be7869197cc0b919890d

Contents?: true

Size: 677 Bytes

Versions: 15

Compression:

Stored size: 677 Bytes

Contents

# coding: utf-8

module Fig; end

# Metadata about a package definition file that hasn't been read yet.
class Fig::NotYetParsedPackage
  attr_accessor :descriptor
  attr_accessor :working_directory
  attr_accessor :include_file_base_directory
  attr_accessor :source_description
  attr_accessor :unparsed_text

  def extended_source_description()
    if source_description
      if source_description.include? "(#{working_directory})"
        return source_description
      end

      extended = source_description
      if working_directory != '.'
        extended << " (#{working_directory})"
      end

      return extended
    end

    return working_directory
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fig-1.27.10 lib/fig/not_yet_parsed_package.rb
fig-1.27.8 lib/fig/not_yet_parsed_package.rb
fig-1.27.5 lib/fig/not_yet_parsed_package.rb
fig-1.27.4 lib/fig/not_yet_parsed_package.rb
fig-1.27.3 lib/fig/not_yet_parsed_package.rb
fig-1.27.0 lib/fig/not_yet_parsed_package.rb
fig-1.26.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.26.0 lib/fig/not_yet_parsed_package.rb
fig-1.25.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.25.0 lib/fig/not_yet_parsed_package.rb
fig-1.24.1.beta.3 lib/fig/not_yet_parsed_package.rb
fig-1.24.1.beta.2 lib/fig/not_yet_parsed_package.rb
fig-1.24.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.24.0 lib/fig/not_yet_parsed_package.rb
fig-1.23.1.beta.1 lib/fig/not_yet_parsed_package.rb