Sha256: f64637141e4f221e09e38cd6a51deff31f2dbebcaaa336e28b5d64b787a26c9f

Contents?: true

Size: 651 Bytes

Versions: 8

Compression:

Stored size: 651 Bytes

Contents

# BitClust config sample file.
# Edit this file and rename "config".

@bc_urlroot = 'http://doc.loveruby.net'
@bc_cgidir = File.dirname(File.expand_path(__FILE__))
@bc_vardir = @bc_cgidir
@bc_srcdir = @bc_cgidir

def setup_environment
  $KCODE = 'UTF-8' unless Object.const_defined?(:Encoding)
  $LOAD_PATH.unshift "#{@bc_srcdir}/lib"
  require 'bitclust'
end

def bitclust_context
  db = BitClust::MethodDatabase.new("#{@bc_vardir}/db")
  manager = BitClust::ScreenManager.new(
    :baseurl => "#{@bc_urlroot}/refm/api/view",
    :datadir => "#{@bc_srcdir}/data/bitclust",
    :encoding => 'utf-8'
  )
  BitClust::RequestHandler.new(db, manager)
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
bitclust-core-0.5.3 config.in
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/config.in
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/config.in
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/config.in
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/config.in
bitclust-core-0.5.2 config.in
bitclust-core-0.5.1 config.in
bitclust-core-0.5.0 config.in