Sha256: dad661a41f9a22c57fbfd9f7ee5d1328de81a25e5d25cfebc10ec5484e92ee78

Contents?: true

Size: 935 Bytes

Versions: 1

Compression:

Stored size: 935 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.8'

  # 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.8 lib/cukedep/constants.rb