Sha256: fd6c826a6c20ec02a5483f0cce413dadfaf1221ba9c525223f1706f74b8ac75d

Contents?: true

Size: 1.69 KB

Versions: 4

Compression:

Stored size: 1.69 KB

Contents

# frozen_string_literal: true

# This file is part of Alexandria.
#
# See the file README.md for authorship and licensing information.

require "gettext"

# XXX: Gettext hotfix
module Gem
  class << self
    undef :all_load_paths if method_defined? :all_load_paths
    def all_load_paths
      []
    end
  end
end

require "logger"
require "alexandria/logging"
require "alexandria/about"

module Alexandria
  def self.set_proxy
    if !ENV["http_proxy"].nil? && URI.parse(ENV["http_proxy"]).userinfo.nil?
      ENV["http_proxy"] = nil
    end
  end

  def self.set_log_level
    log.level = Logger::DEBUG if $DEBUG
    log.debug { "Initializing Alexandria" }
  end

  def self.main
    set_proxy
    set_log_level
    Alexandria::UI.main
  end
end

# lrz says 'macui' is obsolete (may be supported again some day)
# unless $MACOSX
require "alexandria/config"
require "alexandria/version"

# else
#  module Alexandria
#    module Config
#      DATA_DIR = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
#    end
#    VERSION = OSX::NSBundle.mainBundle.infoDictionary.objectForKey('CFBundleVersion').to_s
#  end
# end

require "alexandria/models/book"
require "alexandria/library_store"
require "alexandria/library_collection"
require "alexandria/models/library"

require "alexandria/smart_library"
require "alexandria/execution_queue"
require "alexandria/import_library"
require "alexandria/export_library"
require "alexandria/book_providers"
require "alexandria/preferences"
require "alexandria/undo_manager"
require "alexandria/web_themes"

# lrz says 'macui' is obsolete (may be supported again some day)
# require $MACOSX ? 'alexandria/macui' : 'alexandria/ui'

require "alexandria/ui"
require "alexandria/console"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.9 lib/alexandria.rb
alexandria-book-collection-manager-0.7.8 lib/alexandria.rb
alexandria-book-collection-manager-0.7.7 lib/alexandria.rb
alexandria-book-collection-manager-0.7.6 lib/alexandria.rb