Sha256: a395c049fafaa2b6ee2653badfcc1cba449bcb3465089d8d3b2d77b65a18d374

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

# encoding: utf-8



module SportDb
module Boot      ## note: use a different module than Config to avoid confusion with Configuration/config etc.!!!!
                 ##   maybe rename later gem itself to sportdb-boot - why? why not?

  MAJOR = 0    ## todo: namespace inside version or something - why? why not??
  MINOR = 1
  PATCH = 0
  VERSION = [MAJOR,MINOR,PATCH].join('.')

  def self.version
    VERSION
  end

  def self.banner
    "sportdb-config/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
  end

  def self.root
    File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )
  end

  def self.data_dir  ## rename to config_dir - why? why not?
    "#{root}/config"
  end

  def self.test_data_dir
    "#{root}/test/data"
  end

end # module Boot
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportdb-config-0.1.0 lib/sportdb/config/version.rb