Module: Alexandria
- Extended by:
- GetText
- Defined in:
- lib/alexandria/net.rb,
lib/alexandria.rb,
lib/alexandria/ui.rb,
lib/alexandria/about.rb,
lib/alexandria/config.rb,
lib/alexandria/console.rb,
lib/alexandria/logging.rb,
lib/alexandria/version.rb,
lib/alexandria/scanners.rb,
lib/alexandria/ui/sound.rb,
lib/alexandria/ui/columns.rb,
lib/alexandria/ui/dndable.rb,
lib/alexandria/web_themes.rb,
lib/alexandria/models/book.rb,
lib/alexandria/preferences.rb,
lib/alexandria/ui/iconview.rb,
lib/alexandria/ui/listview.rb,
lib/alexandria/ui/main_app.rb,
lib/alexandria/ui/sidepane.rb,
lib/alexandria/ui/callbacks.rb,
lib/alexandria/undo_manager.rb,
lib/alexandria/smart_library.rb,
lib/alexandria/ui/ui_manager.rb,
lib/alexandria/book_providers.rb,
lib/alexandria/export_library.rb,
lib/alexandria/import_library.rb,
lib/alexandria/models/library.rb,
lib/alexandria/execution_queue.rb,
lib/alexandria/scanners/cuecat.rb,
lib/alexandria/ui/builder_base.rb,
lib/alexandria/scanners/keyboard.rb,
lib/alexandria/book_providers/mcu.rb,
lib/alexandria/book_providers/web.rb,
lib/alexandria/import_library_csv.rb,
lib/alexandria/ui/libraries_combo.rb,
lib/alexandria/default_preferences.rb,
lib/alexandria/book_providers/z3950.rb,
lib/alexandria/ui/completion_models.rb,
lib/alexandria/book_providers/douban.rb,
lib/alexandria/book_providers/proxis.rb,
lib/alexandria/book_providers/renaud.rb,
lib/alexandria/book_providers/thalia.rb,
lib/alexandria/ui/multi_drag_treeview.rb,
lib/alexandria/book_providers/adlibris.rb,
lib/alexandria/book_providers/deastore.rb,
lib/alexandria/book_providers/worldcat.rb,
lib/alexandria/ui/dialogs/about_dialog.rb,
lib/alexandria/ui/dialogs/alert_dialog.rb,
lib/alexandria/ui/dialogs/misc_dialogs.rb,
lib/alexandria/book_providers/siciliano.rb,
lib/alexandria/ui/dialogs/export_dialog.rb,
lib/alexandria/ui/dialogs/import_dialog.rb,
lib/alexandria/book_providers/amazon_aws.rb,
lib/alexandria/book_providers/pseudomarc.rb,
lib/alexandria/ui/dialogs/acquire_dialog.rb,
lib/alexandria/ui/dialogs/new_book_dialog.rb,
lib/alexandria/ui/dialogs/bad_isbns_dialog.rb,
lib/alexandria/ui/dialogs/barcode_animation.rb,
lib/alexandria/book_providers/barnes_and_noble.rb,
lib/alexandria/ui/dialogs/book_properties_dialog.rb,
lib/alexandria/ui/dialogs/new_book_dialog_manual.rb,
lib/alexandria/ui/dialogs/new_smart_library_dialog.rb,
lib/alexandria/ui/dialogs/book_properties_dialog_base.rb,
lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb,
lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb,
lib/alexandria/ui/dialogs/preferences_dialog.rb,
lib/alexandria/ui/completion_models.rb,
lib/alexandria/ui/icons.rb,
lib/alexandria/ui/init.rb
Overview
Copyright © 2004-2006 Laurent Sansonetti Copyright © 2011, 2016 Matijs van Zuijlen
Alexandria 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 2 of the License, or (at your option) any later version.
Alexandria 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 Alexandria; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Defined Under Namespace
Modules: ComboBoxOverrides, Config, EntryOverrides, EventOverrides, Exportable, Logging, Scanners, TreeViewOverrides, UI Classes: Book, BookProviders, CSVImport, DuplicateBookException, ExecutionQueue, ExportFormat, GoodreadsCSVImport, ImportFilter, Libraries, Library, LibrarySortOrder, LibraryThingCSVImport, LogWrapper, Logger, Preferences, PseudoMarcParser, SmartLibrary, SortedLibrary, UndoManager, WWWAgent, WebTheme
Constant Summary collapse
- TITLE =
'Alexandria'
- TEXTDOMAIN =
'alexandria'
- DESCRIPTION =
_('A program to help you manage your book collection.')
- COPYRIGHT =
"Copyright (C) 2004-2006 Laurent Sansonetti\n" \ 'Copyright (C) 2007-2010,2014,2015 Alexandria Contributors'
- AUTHORS =
[ 'Alexander McCormmach <[email protected]>', 'Aymeric Nys <[email protected]>', 'Cathal Mc Ginley <[email protected]>', 'Claudio Belotti <[email protected]>', 'Constantine Evans <[email protected]>', 'Dafydd Harries <[email protected]>', 'Javier Fernandez-Sanguino Pena <[email protected]>', 'Joseph Method <[email protected]>', 'Kevin Schultz <[email protected]>', 'Laurent Sansonetti <[email protected]>', 'Marco Costantini <[email protected]>', 'Mathieu Leduc-Hamel <[email protected]>', 'Matijs van Zuijlen <[email protected]>', 'Owain Evans <[email protected]>', 'Pascal Terjan <[email protected]>', 'Rene Samselnig <[email protected]>', 'Robby Stephenson <[email protected]>', 'Sun Ning <[email protected]>', 'Takayuki Kusano <[email protected]>', 'Timothy Malone <[email protected]>', 'Zachary P. Landau <[email protected]>' ].freeze
- DOCUMENTERS =
[ 'Cathal Mc Ginley <[email protected]>', 'Liam Davison <[email protected]>' ].freeze
- TRANSLATORS =
[ 'Adrián Chaves Fernández <[email protected]> (gl)', 'Cathal Mc Ginley <[email protected]> (ga)', 'CHIKAMA Masaki <[email protected]> (ja)', 'Dafydd Harries <[email protected]> (cy)', 'Damjan Dimitrioski <[email protected]> (mk)', 'Giacomo Margarito <[email protected]> (it)', 'Jack Myrseh <[email protected]> (nb)', 'Joachim Breitner <[email protected]> (de)', 'José Ling <[email protected]> (zh_TW)', 'Lennart Karssen <[email protected]> (nl)', 'Lígia Moreira <[email protected]> (fr, pt, pt_BR)', 'Martin Karlsson <[email protected]> (sv)', 'Michael Kotsarinis <[email protected]> (el)', 'Miguel Ángel García <[email protected]> (es)', 'Peter Kováč <[email protected]> (sk)', 'Petr Vanek <[email protected]> (cs)', 'Piotr Drąg <[email protected]> (pl)', 'Serhij Dubyk <[email protected]> (uk)' ].freeze
- ARTISTS =
[ 'Andreas Nilsson <[email protected]>', 'Stefanie Dijoux <[email protected]>' ].freeze
- BUGREPORT_URL =
'http://www.github.com/mvz/alexandria-book-collection-manager/issues'
- WEBSITE_URL =
'http://www.github.com/mvz/alexandria-book-collection-manager'
- VERSION =
'0.7.2'
- DATA_VERSION =
'0.6.3'
- DISPLAY_VERSION =
'0.7.2'
Class Method Summary collapse
- .list_books_on_console(_title = true, authors = true) ⇒ Object
-
.log ⇒ Object
Returns the Logger for Alexandria.
- .main ⇒ Object
- .set_log_level ⇒ Object
- .set_proxy ⇒ Object
Class Method Details
.list_books_on_console(_title = true, authors = true) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/alexandria/console.rb', line 21 def self.list_books_on_console(_title = true, = true) libraries_simpleton = Alexandria::Libraries.instance libraries_simpleton.reload libraries = Alexandria::Library.loadall output_string = '' @books = libraries.flatten @books.each do |book| = book..join(' & ') if output_string += [book.title, ].join(', ') + "\n" end output_string end |
.log ⇒ Object
Returns the Logger for Alexandria
154 155 156 |
# File 'lib/alexandria/logging.rb', line 154 def self.log @@logger end |
.main ⇒ Object
47 48 49 50 51 |
# File 'lib/alexandria.rb', line 47 def self.main set_proxy set_log_level Alexandria::UI.main end |
.set_log_level ⇒ Object
42 43 44 45 |
# File 'lib/alexandria.rb', line 42 def self.set_log_level Alexandria.log.level = Logger::DEBUG if $DEBUG Alexandria.log.debug { 'Initializing Alexandria...' } end |
.set_proxy ⇒ Object
38 39 40 |
# File 'lib/alexandria.rb', line 38 def self.set_proxy ENV['http_proxy'] = nil if !ENV['http_proxy'].nil? && URI.parse(ENV['http_proxy']).userinfo.nil? end |