Sha256: f71df0b78c41ee8605abf0add80f1e89b5298d306886b9a058010f9687955dad

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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

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

  # 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'
    
    # The file name for the custom block codes associated
    # with before/after events.
    HookFilename = 'cukedep_hooks.rb'
  end
end # module

# End of file

Version data entries

1 entries across 1 versions & 1 rubygems

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