Sha256: f4a00371dd8dfda8f8c7634de75c6790b2a22553fbca53ceb29f874e72273c24

Contents?: true

Size: 940 Bytes

Versions: 1

Compression:

Stored size: 940 Bytes

Contents

# File: constants.rb
# Purpose: definition of Cukedep constants.

module Cukedep # Module used as a namespace
  # The version number of the gem.
  Version = '0.0.3'

  # Brief description of the gem.
  Description = 'Manage dependencies between Cucumber feature files'

  # Constant Cukedep::RootDir contains the absolute path of Rodent's
  # root directory. Note: it also ends with a slash character.
  unless defined?(RootDir)
  # The initialisation of constant RootDir is guarded in order 
  # to avoid multiple initialisation (not allowed for constants)

    # The root folder of Cukedep.
    RootDir = begin
      require 'pathname'	# Load Pathname class from standard library
      rootdir = Pathname(__FILE__).dirname.parent.parent.expand_path
      rootdir.to_s + '/'	# Append trailing slash character to it
    end
    
    # The file name for the user's settings
    YMLFilename = '.cukedep.yml'
  end
end # module

# End of file

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cukedep-0.0.3 lib/cukedep/constants.rb