Sha256: 1515ae3ac3fbea5d2ef01b3a7187227d1de6bb713c804ef6993f552c68dcebe4

Contents?: true

Size: 1.81 KB

Versions: 2

Compression:

Stored size: 1.81 KB

Contents

#--
# BibTeX-Ruby
# Copyright (C) 2010-2011	Sylvester Keil <sylvester.keil.or.at>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.	If not, see <http://www.gnu.org/licenses/>.
#++

$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require 'rubygems'

require 'bibtex/version'
require 'logger'

# = BibTeX
#
# This module encompasses a parser for BibTeX files and
# auxiliary classes to model the individual
# BibTeX objects: +String+, +Preamble+, +Comment+, and
# +Entry+.
#
# Author:: {Sylvester Keil}[http://sylvester.keil.or.at]
# Copyright:: Copyright (c) 2010-2011 Sylvester Keil
# License:: GNU GPL 3.0
#
module BibTeX

	#
	# An instance of the Ruby core class +Logger+.
	# Used for logging by BibTeX-Ruby.
	#
	Log = Logger.new(STDERR)
	Log.level = ENV.has_key?('DEBUG') ? Logger::DEBUG : Logger::WARN
	Log.datetime_format = "%Y-%m-%d %H:%M:%S"

  def self.log; BibTeX::Log end
end

# Load debugger
require 'ruby-debug'
Debugger.start

require 'bibtex/extensions'
require 'bibtex/value'
require 'bibtex/name_parser'
require 'bibtex/names'
require 'bibtex/replaceable'
require 'bibtex/elements'
require 'bibtex/entry'
require 'bibtex/error'
require 'bibtex/parser'
require 'bibtex/bibliography'
require 'bibtex/utilities'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bibtex-ruby-1.3.4 lib/bibtex.rb
bibtex-ruby-1.3.3 lib/bibtex.rb