Module: Sakuric

Defined in:
lib/version.rb,
lib/sakuric.rb

Overview

inspired by WillPaginate

Defined Under Namespace

Modules: VERSION

Constant Summary collapse

SCRIPT_BEGUN =
Time.now

Class Method Summary collapse

Class Method Details

.BASEDIRObject



12
13
14
# File 'lib/sakuric.rb', line 12

def self.BASEDIR
  File.expand_path(File.dirname(__FILE__) + '/..')
end

.get_auto_files(subdir) ⇒ Object

conf files into auto/ dir (mi son rotto di aggiungerli qui uno a uno!)



21
22
23
24
# File 'lib/sakuric.rb', line 21

def self.get_auto_files(subdir)
  absolute_dir = "#{$SAKURADIR}/lib/#{subdir}"
  Dir.new(absolute_dir).select{|f| f.match( /\.rb$/ )}.map{|x| subdir + File.basename(x,'.rb') }
end

.use_ric_gemObject



16
17
18
# File 'lib/sakuric.rb', line 16

def self.use_ric_gem
  false
end

.VERSIONObject



8
9
10
# File 'lib/sakuric.rb', line 8

def self.VERSION
  $VERSION = File.read(File.expand_path(BASEDIR() + '/VERSION')) # reads version file
end