Module: SportDb::Boot

Defined in:
lib/sportdb/config/version.rb

Constant Summary collapse

MAJOR =

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?
0
MINOR =

todo: namespace inside version or something - why? why not??

3
PATCH =
2
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



18
19
20
# File 'lib/sportdb/config/version.rb', line 18

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

.data_dirObject

rename to config_dir - why? why not?



26
27
28
# File 'lib/sportdb/config/version.rb', line 26

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

.rootObject



22
23
24
# File 'lib/sportdb/config/version.rb', line 22

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

.versionObject



14
15
16
# File 'lib/sportdb/config/version.rb', line 14

def self.version
  VERSION
end