alexandria-book-collection-manager 0.7.3 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +9 -0
- data/.github/workflows/ruby.yml +77 -0
- data/.gitignore +4 -1
- data/.rubocop.yml +86 -36
- data/.rubocop_todo.yml +58 -161
- data/.simplecov +5 -2
- data/CHANGELOG.md +56 -2
- data/Gemfile +4 -3
- data/INSTALL.md +23 -11
- data/README.md +52 -41
- data/Rakefile +78 -75
- data/alexandria-book-collection-manager.gemspec +50 -44
- data/bin/alexandria +12 -22
- data/doc/FAQ +1 -2
- data/doc/dependency_decisions.yml +27 -8
- data/lib/alexandria.rb +25 -23
- data/lib/alexandria/about.rb +50 -50
- data/lib/alexandria/book_providers.rb +86 -91
- data/lib/alexandria/book_providers/adlibris.rb +37 -74
- data/lib/alexandria/book_providers/amazon_aws.rb +94 -100
- data/lib/alexandria/book_providers/amazon_ecs_util.rb +289 -324
- data/lib/alexandria/book_providers/barnes_and_noble.rb +42 -42
- data/lib/alexandria/book_providers/douban.rb +25 -41
- data/lib/alexandria/book_providers/proxis.rb +34 -29
- data/lib/alexandria/book_providers/pseudomarc.rb +77 -85
- data/lib/alexandria/book_providers/siciliano.rb +60 -64
- data/lib/alexandria/book_providers/thalia_provider.rb +161 -0
- data/lib/alexandria/book_providers/web.rb +5 -5
- data/lib/alexandria/book_providers/worldcat.rb +66 -95
- data/lib/alexandria/book_providers/z3950.rb +153 -169
- data/lib/alexandria/config.rb +1 -1
- data/lib/alexandria/console.rb +3 -3
- data/lib/alexandria/default_preferences.rb +37 -0
- data/lib/alexandria/execution_queue.rb +13 -12
- data/lib/alexandria/export_format.rb +8 -8
- data/lib/alexandria/export_library.rb +128 -127
- data/lib/alexandria/import_library.rb +102 -126
- data/lib/alexandria/import_library_csv.rb +41 -41
- data/lib/alexandria/library_collection.rb +6 -5
- data/lib/alexandria/library_sort_order.rb +4 -2
- data/lib/alexandria/library_store.rb +39 -28
- data/lib/alexandria/logging.rb +10 -14
- data/lib/alexandria/models/book.rb +5 -4
- data/lib/alexandria/models/library.rb +63 -53
- data/lib/alexandria/net.rb +5 -6
- data/lib/alexandria/preferences.rb +66 -63
- data/lib/alexandria/scanners.rb +2 -2
- data/lib/alexandria/scanners/{cuecat.rb → cue_cat.rb} +17 -17
- data/lib/alexandria/scanners/keyboard.rb +8 -8
- data/lib/alexandria/smart_library.rb +110 -112
- data/lib/alexandria/ui.rb +15 -15
- data/lib/alexandria/ui/{dialogs/about_dialog.rb → about_dialog.rb} +2 -2
- data/lib/alexandria/ui/{dialogs/acquire_dialog.rb → acquire_dialog.rb} +108 -109
- data/lib/alexandria/ui/alert_dialog.rb +66 -0
- data/lib/alexandria/ui/{dialogs/bad_isbns_dialog.rb → bad_isbns_dialog.rb} +13 -9
- data/lib/alexandria/ui/{dialogs/barcode_animation.rb → barcode_animation.rb} +16 -15
- data/lib/alexandria/ui/{dialogs/book_properties_dialog.rb → book_properties_dialog.rb} +25 -38
- data/lib/alexandria/ui/{dialogs/book_properties_dialog_base.rb → book_properties_dialog_base.rb} +64 -157
- data/lib/alexandria/ui/builder_base.rb +1 -1
- data/lib/alexandria/ui/calendar_popup.rb +58 -0
- data/lib/alexandria/ui/callbacks.rb +187 -155
- data/lib/alexandria/ui/completion_models.rb +8 -22
- data/lib/alexandria/ui/confirm_erase_dialog.rb +33 -0
- data/lib/alexandria/ui/conflict_while_copying_dialog.rb +34 -0
- data/lib/alexandria/ui/dndable.rb +7 -7
- data/lib/alexandria/ui/error_dialog.rb +25 -0
- data/lib/alexandria/ui/{dialogs/export_dialog.rb → export_dialog.rb} +37 -58
- data/lib/alexandria/ui/icons.rb +38 -43
- data/lib/alexandria/ui/iconview.rb +12 -10
- data/lib/alexandria/ui/iconview_tooltips.rb +41 -54
- data/lib/alexandria/ui/import_dialog.rb +157 -0
- data/lib/alexandria/ui/init.rb +30 -41
- data/lib/alexandria/ui/{dialogs/keep_bad_isbn_dialog.rb → keep_bad_isbn_dialog.rb} +9 -6
- data/lib/alexandria/ui/libraries_combo.rb +15 -14
- data/lib/alexandria/ui/listview.rb +69 -67
- data/lib/alexandria/ui/main_app.rb +24 -26
- data/lib/alexandria/ui/misc_dialogs.rb +10 -0
- data/lib/alexandria/ui/multi_drag_treeview.rb +8 -9
- data/lib/alexandria/ui/{dialogs/new_book_dialog.rb → new_book_dialog.rb} +113 -114
- data/lib/alexandria/ui/{dialogs/new_book_dialog_manual.rb → new_book_dialog_manual.rb} +22 -19
- data/lib/alexandria/ui/new_provider_dialog.rb +100 -0
- data/lib/alexandria/ui/new_smart_library_dialog.rb +74 -0
- data/lib/alexandria/ui/preferences_dialog.rb +313 -0
- data/lib/alexandria/ui/provider_preferences_base_dialog.rb +95 -0
- data/lib/alexandria/ui/provider_preferences_dialog.rb +35 -0
- data/lib/alexandria/ui/{dialogs/misc_dialogs.rb → really_delete_dialog.rb} +7 -28
- data/lib/alexandria/ui/{sidepane.rb → sidepane_manager.rb} +53 -48
- data/lib/alexandria/ui/skip_entry_dialog.rb +33 -0
- data/lib/alexandria/ui/smart_library_properties_dialog.rb +60 -0
- data/lib/alexandria/ui/smart_library_properties_dialog_base.rb +242 -0
- data/lib/alexandria/ui/smart_library_rule_box.rb +119 -0
- data/lib/alexandria/ui/sound.rb +11 -13
- data/lib/alexandria/ui/ui_manager.rb +216 -200
- data/lib/alexandria/version.rb +4 -19
- data/lib/alexandria/web_themes.rb +21 -21
- data/po/Makefile +2 -2
- data/po/cs.po +992 -875
- data/po/cy.po +961 -874
- data/po/de.po +990 -865
- data/po/el.po +989 -865
- data/po/es.po +985 -861
- data/po/fr.po +987 -867
- data/po/ga.po +908 -820
- data/po/gl.po +980 -860
- data/po/it.po +986 -864
- data/po/ja.po +969 -849
- data/po/mk.po +984 -860
- data/po/nb.po +979 -859
- data/po/nl.po +983 -860
- data/po/pl.po +1018 -971
- data/po/pt.po +988 -857
- data/po/pt_BR.po +983 -863
- data/po/ru.po +994 -871
- data/po/sk.po +989 -867
- data/po/sv.po +976 -856
- data/po/uk.po +972 -858
- data/po/zh_TW.po +974 -854
- data/schemas/alexandria.schemas +24 -2
- data/share/alexandria/glade/acquire_dialog__builder.glade +1 -1
- data/share/alexandria/glade/book_properties_dialog__builder.glade +1 -1
- data/share/alexandria/glade/main_app__builder.glade +6 -21
- data/share/alexandria/glade/new_book_dialog__builder.glade +1 -1
- data/share/alexandria/glade/preferences_dialog__builder.glade +1 -1
- data/share/gnome/help/alexandria/C/introduction.xml +0 -4
- data/share/gnome/help/alexandria/C/searching.xml +1 -1
- data/share/gnome/help/alexandria/C/smart-libraries.xml +2 -2
- data/share/gnome/help/alexandria/C/working-with-libraries.xml +1 -1
- data/share/gnome/help/alexandria/fr/alexandria.xml +1 -1
- data/share/gnome/help/alexandria/ja/introduction.xml +0 -4
- data/share/gnome/help/alexandria/ja/smart-libraries.xml +1 -1
- data/spec/alexandria/book_providers/thalia_provider_spec.rb +119 -0
- data/spec/alexandria/book_providers/world_cat_provider_spec.rb +160 -0
- data/spec/alexandria/book_providers_spec.rb +62 -156
- data/spec/alexandria/book_spec.rb +12 -10
- data/spec/alexandria/console_spec.rb +6 -11
- data/spec/alexandria/export_library_spec.rb +47 -58
- data/spec/alexandria/library_spec.rb +121 -109
- data/spec/alexandria/library_store_spec.rb +8 -8
- data/spec/alexandria/preferences_spec.rb +44 -17
- data/spec/alexandria/scanners/cue_cat_spec.rb +52 -0
- data/spec/alexandria/smart_library_spec.rb +15 -15
- data/spec/alexandria/ui/about_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/acquire_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/alert_dialog_spec.rb +16 -0
- data/spec/alexandria/ui/bad_isbns_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/book_properties_dialog_spec.rb +59 -0
- data/spec/alexandria/ui/confirm_erase_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/conflict_while_copying_dialog_spec.rb +16 -0
- data/spec/alexandria/ui/error_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/export_dialog_spec.rb +36 -0
- data/spec/alexandria/ui/icons_spec.rb +26 -0
- data/spec/alexandria/ui/iconview_spec.rb +7 -21
- data/spec/alexandria/ui/import_dialog_spec.rb +46 -0
- data/spec/alexandria/ui/keep_bad_isbn_dialog_spec.rb +17 -0
- data/spec/alexandria/ui/main_app_spec.rb +7 -34
- data/spec/alexandria/ui/new_book_dialog_manual_spec.rb +51 -0
- data/spec/alexandria/ui/{dialogs/new_book_dialog_spec.rb → new_book_dialog_spec.rb} +4 -4
- data/spec/alexandria/ui/new_provider_dialog_spec.rb +30 -0
- data/spec/alexandria/ui/new_smart_library_dialog_spec.rb +39 -0
- data/spec/alexandria/ui/preferences_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/provider_preferences_dialog_spec.rb +34 -0
- data/spec/alexandria/ui/really_delete_dialog_spec.rb +16 -0
- data/spec/alexandria/ui/sidepane_manager_spec.rb +15 -0
- data/spec/alexandria/ui/skip_entry_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/smart_library_properties_dialog_spec.rb +49 -0
- data/spec/alexandria/ui/sound_spec.rb +2 -2
- data/spec/alexandria/ui/ui_manager_spec.rb +44 -20
- data/spec/end_to_end/basic_run_spec.rb +21 -38
- data/spec/fixtures/cover.jpg +0 -0
- data/spec/spec_helper.rb +54 -10
- data/tasks/setup.rb +2 -2
- data/tasks/spec.rake +11 -11
- data/util/rake/fileinstall.rb +38 -35
- data/util/rake/gettextgenerate.rb +7 -7
- data/util/rake/omfgenerate.rb +7 -7
- metadata +158 -45
- data/dogtail/basic_run_test.py +0 -9
- data/lib/alexandria/book_providers/renaud.rb +0 -155
- data/lib/alexandria/book_providers/thalia.rb +0 -198
- data/lib/alexandria/ui/dialogs/alert_dialog.rb +0 -63
- data/lib/alexandria/ui/dialogs/import_dialog.rb +0 -176
- data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +0 -62
- data/lib/alexandria/ui/dialogs/preferences_dialog.rb +0 -563
- data/lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb +0 -61
- data/lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb +0 -423
- data/spec/alexandria/scanners/cuecat_spec.rb +0 -67
- data/spec/alexandria/ui/dialogs_spec.rb +0 -162
- data/spec/alexandria/ui/sidepane_spec.rb +0 -29
- data/spec/alexandria/ui/ui_utilities_spec.rb +0 -62
- data/spec/alexandria/utilities_spec.rb +0 -52
- data/tasks/dogtail.rake +0 -6
@@ -1,62 +1,68 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
3
|
+
require_relative "lib/alexandria/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = "alexandria-book-collection-manager"
|
7
7
|
s.version = Alexandria::VERSION
|
8
8
|
|
9
|
-
s.summary =
|
10
|
-
s.required_ruby_version =
|
9
|
+
s.summary = "GNOME application for managing collections of books"
|
10
|
+
s.required_ruby_version = ">= 2.5.0"
|
11
11
|
|
12
12
|
s.authors = [
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
13
|
+
"Alexander McCormmach",
|
14
|
+
"Aymeric Nys",
|
15
|
+
"Cathal Mc Ginley",
|
16
|
+
"Claudio Belotti",
|
17
|
+
"Constantine Evans",
|
18
|
+
"Dafydd Harries",
|
19
|
+
"Javier Fernandez-Sanguino Pena",
|
20
|
+
"Joseph Method",
|
21
|
+
"Kevin Schultz",
|
22
|
+
"Laurent Sansonetti",
|
23
|
+
"Marco Costantini",
|
24
|
+
"Mathieu Leduc-Hamel",
|
25
|
+
"Matijs van Zuijlen",
|
26
|
+
"Owain Evans",
|
27
|
+
"Pascal Terjan",
|
28
|
+
"Rene Samselnig",
|
29
|
+
"Robby Stephenson",
|
30
|
+
"Sun Ning",
|
31
|
+
"Takayuki Kusano",
|
32
|
+
"Timothy Malone",
|
33
|
+
"Zachary P. Landau"
|
34
34
|
]
|
35
|
-
s.email = [
|
36
|
-
s.homepage =
|
35
|
+
s.email = ["matijs@matijs.net"]
|
36
|
+
s.homepage = "http://www.github.com/mvz/alexandria-book-collection-manager"
|
37
37
|
|
38
|
-
s.license =
|
38
|
+
s.license = "GPL-2"
|
39
39
|
|
40
40
|
s.files = `git ls-files -z`.split("\0") |
|
41
|
-
[
|
41
|
+
["lib/alexandria/default_preferences.rb"]
|
42
42
|
|
43
|
-
s.executables = [
|
43
|
+
s.executables = ["alexandria"]
|
44
44
|
|
45
|
-
s.rdoc_options = [
|
45
|
+
s.rdoc_options = ["--main", "README.md"]
|
46
46
|
|
47
|
-
s.add_runtime_dependency(
|
48
|
-
s.add_runtime_dependency(
|
49
|
-
s.add_runtime_dependency(
|
50
|
-
s.add_runtime_dependency(
|
51
|
-
s.add_runtime_dependency(
|
52
|
-
s.add_runtime_dependency(
|
53
|
-
s.add_runtime_dependency(
|
54
|
-
s.add_runtime_dependency(
|
47
|
+
s.add_runtime_dependency("gettext", ["~> 3.1"])
|
48
|
+
s.add_runtime_dependency("gstreamer", ["~> 3.4.3"])
|
49
|
+
s.add_runtime_dependency("gtk3", ["~> 3.4.3"])
|
50
|
+
s.add_runtime_dependency("hpricot", ["~> 0.8.5"])
|
51
|
+
s.add_runtime_dependency("htmlentities", ["~> 4.3"])
|
52
|
+
s.add_runtime_dependency("image_size", ["~> 2.0"])
|
53
|
+
s.add_runtime_dependency("marc", ["~> 1.0.0"])
|
54
|
+
s.add_runtime_dependency("psych", ["~> 3.2.0"])
|
55
|
+
s.add_runtime_dependency("zoom", ["~> 0.5.0"])
|
55
56
|
|
56
|
-
s.add_development_dependency(
|
57
|
-
s.add_development_dependency(
|
58
|
-
s.add_development_dependency(
|
59
|
-
s.add_development_dependency(
|
57
|
+
s.add_development_dependency("gnome_app_driver", "~> 0.3.0")
|
58
|
+
s.add_development_dependency("minitest", ["~> 5.0"])
|
59
|
+
s.add_development_dependency("rake", ["~> 13.0"])
|
60
|
+
s.add_development_dependency("rspec", ["~> 3.0"])
|
61
|
+
s.add_development_dependency("rubocop", "~> 0.93.1")
|
62
|
+
s.add_development_dependency("rubocop-i18n", ["~> 2.0.2"])
|
63
|
+
s.add_development_dependency("rubocop-performance", "~> 1.9.0")
|
64
|
+
s.add_development_dependency("rubocop-rspec", "~> 1.44.1")
|
65
|
+
s.add_development_dependency("webmock", "~> 3.9")
|
60
66
|
|
61
|
-
s.require_paths = [
|
67
|
+
s.require_paths = ["lib"]
|
62
68
|
end
|
data/bin/alexandria
CHANGED
@@ -5,39 +5,29 @@
|
|
5
5
|
#
|
6
6
|
# See the file README.md for authorship and licensing information.
|
7
7
|
|
8
|
-
require
|
9
|
-
require
|
10
|
-
require
|
11
|
-
require
|
8
|
+
require "gettext"
|
9
|
+
require "alexandria"
|
10
|
+
require "optparse"
|
11
|
+
require "ostruct"
|
12
12
|
|
13
13
|
store = Alexandria::LibraryStore.new(Alexandria::Library::DEFAULT_DIR)
|
14
14
|
Alexandria::LibraryCollection.instance.library_store = store
|
15
15
|
|
16
16
|
# options = OpenStruct.new
|
17
17
|
OptionParser.new do |opts|
|
18
|
-
opts.banner =
|
19
|
-
opts.on(
|
18
|
+
opts.banner = "Usage: alexandria [options]"
|
19
|
+
opts.on("-l", "--list", "List libraries in numbered format") do
|
20
20
|
puts Alexandria.list_books_on_console
|
21
21
|
exit
|
22
22
|
end
|
23
|
-
|
24
|
-
# "Output library as FORMAT: csv|xml|yaml; use with --library or omit for ALL") do |val|
|
25
|
-
# options.format = val
|
26
|
-
# exit
|
27
|
-
# end
|
28
|
-
# opts.on("--library LIBRARY",
|
29
|
-
# "Used with --output to pick a library to output") do |val|
|
30
|
-
# options.library = val
|
31
|
-
# exit
|
32
|
-
# end
|
33
|
-
opts.on('-d', '--debug', 'Run in debug mode') do
|
23
|
+
opts.on("-d", "--debug", "Run in debug mode") do
|
34
24
|
$DEBUG = true
|
35
25
|
end
|
36
|
-
opts.on(
|
26
|
+
opts.on("-h", "--help", "Show help options") do
|
37
27
|
puts opts
|
38
28
|
exit
|
39
29
|
end
|
40
|
-
opts.on(
|
30
|
+
opts.on("-v", "--version", "Get version number") do
|
41
31
|
puts Alexandria::VERSION
|
42
32
|
exit
|
43
33
|
end
|
@@ -45,15 +35,15 @@ end.parse!
|
|
45
35
|
|
46
36
|
begin
|
47
37
|
Alexandria.main
|
48
|
-
rescue StandardError =>
|
38
|
+
rescue StandardError => ex
|
49
39
|
warn <<~EOS
|
50
40
|
-----------------------
|
51
41
|
Alexandria just crashed
|
52
42
|
-----------------------
|
53
43
|
Timestamp: #{Time.now}
|
54
|
-
Message: #{
|
44
|
+
Message: #{ex.message}
|
55
45
|
Backtrace:
|
56
|
-
#{
|
46
|
+
#{ex.backtrace.join("\n")}
|
57
47
|
Release: #{Alexandria::VERSION}(#{Alexandria::DISPLAY_VERSION})
|
58
48
|
Uname -a: #{`uname -a`.chomp}
|
59
49
|
--
|
data/doc/FAQ
CHANGED
@@ -290,8 +290,7 @@ Question: I prefer to have the field "Author" as "Surname, Name" instead
|
|
290
290
|
of "Name Surname".
|
291
291
|
|
292
292
|
Answer: Alexandria relies on what the providers say:
|
293
|
-
some providers report "Surname
|
294
|
-
some "Surname Name": Webster.it, Ibs.it,
|
293
|
+
some providers report "Surname Name": Webster.it, Ibs.it,
|
295
294
|
some "Name Surname": Bn, Thalia, Bol.it, Adlibris, L Siciliano, Worldcat,
|
296
295
|
and some without any rule: Amazon, Proxis.
|
297
296
|
You can change, in the preferences, the order in which the providers are
|
@@ -1,29 +1,29 @@
|
|
1
1
|
---
|
2
|
-
- - :
|
2
|
+
- - :permit
|
3
3
|
- LGPL-3+
|
4
4
|
- :who:
|
5
5
|
:why:
|
6
6
|
:versions: []
|
7
7
|
:when: 2017-07-23 05:51:53.629753437 Z
|
8
|
-
- - :
|
8
|
+
- - :permit
|
9
9
|
- LGPL-2.1+
|
10
10
|
- :who:
|
11
11
|
:why:
|
12
12
|
:versions: []
|
13
13
|
:when: 2017-07-23 05:52:02.088395832 Z
|
14
|
-
- - :
|
14
|
+
- - :permit
|
15
15
|
- MIT
|
16
16
|
- :who:
|
17
17
|
:why:
|
18
18
|
:versions: []
|
19
19
|
:when: 2017-07-23 05:52:06.806192042 Z
|
20
|
-
- - :
|
20
|
+
- - :permit
|
21
21
|
- LGPLv2+
|
22
22
|
- :who:
|
23
23
|
:why:
|
24
24
|
:versions: []
|
25
25
|
:when: 2017-07-23 05:52:24.618189811 Z
|
26
|
-
- - :
|
26
|
+
- - :permit
|
27
27
|
- ruby
|
28
28
|
- :who:
|
29
29
|
:why:
|
@@ -53,9 +53,28 @@
|
|
53
53
|
:why:
|
54
54
|
:versions: []
|
55
55
|
:when: 2017-07-23 05:54:54.822319735 Z
|
56
|
-
- - :
|
56
|
+
- - :license
|
57
57
|
- zoom
|
58
|
+
- LGPL-2.1
|
59
|
+
- :who:
|
60
|
+
:why:
|
61
|
+
:versions: []
|
62
|
+
:when: 2020-07-30 06:44:22.960902375 Z
|
63
|
+
- - :permit
|
64
|
+
- Simplified BSD
|
58
65
|
- :who:
|
59
|
-
:why:
|
66
|
+
:why:
|
67
|
+
:versions: []
|
68
|
+
:when: 2020-07-30 06:45:58.599399721 Z
|
69
|
+
- - :permit
|
70
|
+
- Apache 2.0
|
71
|
+
- :who:
|
72
|
+
:why:
|
73
|
+
:versions: []
|
74
|
+
:when: 2020-07-30 06:46:08.280121582 Z
|
75
|
+
- - :permit
|
76
|
+
- LGPL-2.1
|
77
|
+
- :who:
|
78
|
+
:why:
|
60
79
|
:versions: []
|
61
|
-
:when:
|
80
|
+
:when: 2020-07-30 06:46:32.729325577 Z
|
data/lib/alexandria.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
# See the file README.md for authorship and licensing information.
|
6
6
|
|
7
|
-
require
|
7
|
+
require "gettext"
|
8
8
|
|
9
9
|
# XXX: Gettext hotfix
|
10
10
|
module Gem
|
@@ -16,18 +16,20 @@ module Gem
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
require
|
20
|
-
require
|
21
|
-
require
|
19
|
+
require "logger"
|
20
|
+
require "alexandria/logging"
|
21
|
+
require "alexandria/about"
|
22
22
|
|
23
23
|
module Alexandria
|
24
24
|
def self.set_proxy
|
25
|
-
|
25
|
+
if !ENV["http_proxy"].nil? && URI.parse(ENV["http_proxy"]).userinfo.nil?
|
26
|
+
ENV["http_proxy"] = nil
|
27
|
+
end
|
26
28
|
end
|
27
29
|
|
28
30
|
def self.set_log_level
|
29
|
-
|
30
|
-
|
31
|
+
log.level = Logger::DEBUG if $DEBUG
|
32
|
+
log.debug { "Initializing Alexandria" }
|
31
33
|
end
|
32
34
|
|
33
35
|
def self.main
|
@@ -39,8 +41,8 @@ end
|
|
39
41
|
|
40
42
|
# lrz says 'macui' is obsolete (may be supported again some day)
|
41
43
|
# unless $MACOSX
|
42
|
-
require
|
43
|
-
require
|
44
|
+
require "alexandria/config"
|
45
|
+
require "alexandria/version"
|
44
46
|
|
45
47
|
# else
|
46
48
|
# module Alexandria
|
@@ -51,22 +53,22 @@ require 'alexandria/version'
|
|
51
53
|
# end
|
52
54
|
# end
|
53
55
|
|
54
|
-
require
|
55
|
-
require
|
56
|
-
require
|
57
|
-
require
|
56
|
+
require "alexandria/models/book"
|
57
|
+
require "alexandria/library_store"
|
58
|
+
require "alexandria/library_collection"
|
59
|
+
require "alexandria/models/library"
|
58
60
|
|
59
|
-
require
|
60
|
-
require
|
61
|
-
require
|
62
|
-
require
|
63
|
-
require
|
64
|
-
require
|
65
|
-
require
|
66
|
-
require
|
61
|
+
require "alexandria/smart_library"
|
62
|
+
require "alexandria/execution_queue"
|
63
|
+
require "alexandria/import_library"
|
64
|
+
require "alexandria/export_library"
|
65
|
+
require "alexandria/book_providers"
|
66
|
+
require "alexandria/preferences"
|
67
|
+
require "alexandria/undo_manager"
|
68
|
+
require "alexandria/web_themes"
|
67
69
|
|
68
70
|
# lrz says 'macui' is obsolete (may be supported again some day)
|
69
71
|
# require $MACOSX ? 'alexandria/macui' : 'alexandria/ui'
|
70
72
|
|
71
|
-
require
|
72
|
-
require
|
73
|
+
require "alexandria/ui"
|
74
|
+
require "alexandria/console"
|
data/lib/alexandria/about.rb
CHANGED
@@ -20,64 +20,64 @@
|
|
20
20
|
# Fifth Floor, Boston, MA 02110-1301 USA.
|
21
21
|
|
22
22
|
module Alexandria
|
23
|
-
TITLE =
|
24
|
-
TEXTDOMAIN =
|
23
|
+
TITLE = "Alexandria"
|
24
|
+
TEXTDOMAIN = "alexandria"
|
25
25
|
extend GetText
|
26
|
-
bindtextdomain(Alexandria::TEXTDOMAIN, charset:
|
27
|
-
DESCRIPTION = _(
|
26
|
+
bindtextdomain(Alexandria::TEXTDOMAIN, charset: "UTF-8")
|
27
|
+
DESCRIPTION = _("A program to help you manage your book collection.")
|
28
28
|
COPYRIGHT = "Copyright (C) 2004-2006 Laurent Sansonetti\n" \
|
29
|
-
|
29
|
+
"Copyright (C) 2007-2010,2014,2015 Alexandria Contributors"
|
30
30
|
AUTHORS = [
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
31
|
+
"Alexander McCormmach <alexander@tunicate.org>",
|
32
|
+
"Aymeric Nys <aymeric@nnx.com>",
|
33
|
+
"Cathal Mc Ginley <cathal.alexandria@gnostai.org>",
|
34
|
+
"Claudio Belotti <bel8@lilik.it>",
|
35
|
+
"Constantine Evans <cevans@costinet.org>",
|
36
|
+
"Dafydd Harries <daf@muse.19inch.net>",
|
37
|
+
"Javier Fernandez-Sanguino Pena <jfs@debian.org>",
|
38
|
+
"Joseph Method <tristil@gmail.com>",
|
39
|
+
"Kevin Schultz <schultkl@ieee.org>",
|
40
|
+
"Laurent Sansonetti <lrz@gnome.org>",
|
41
|
+
"Marco Costantini <costanti@science.unitn.it>",
|
42
|
+
"Mathieu Leduc-Hamel <arrak@arrak.org>",
|
43
|
+
"Matijs van Zuijlen <matijs@matijs.net>",
|
44
|
+
"Owain Evans <o.evans@gmail.com>",
|
45
|
+
"Pascal Terjan <pterjan@linuxfr.org>",
|
46
|
+
"Rene Samselnig <sandman@sdm-net.org>",
|
47
|
+
"Robby Stephenson <robby@periapsis.org>",
|
48
|
+
"Sun Ning <classicning@gmail.com>",
|
49
|
+
"Takayuki Kusano <AE5T-KSN@asahi-net.or.jp>",
|
50
|
+
"Timothy Malone <timothy.malone@gmail.com>",
|
51
|
+
"Zachary P. Landau <kapheine@hypa.net>"
|
52
52
|
].freeze
|
53
53
|
DOCUMENTERS = [
|
54
|
-
|
55
|
-
|
54
|
+
"Cathal Mc Ginley <cathal.alexandria@gnostai.org>",
|
55
|
+
"Liam Davison <registrations@liamjdavison.info>"
|
56
56
|
].freeze
|
57
57
|
TRANSLATORS = [
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
58
|
+
"Adrián Chaves Fernández <adriyetichaves@gmail.com> (gl)",
|
59
|
+
"Cathal Mc Ginley <cathal.alexandria@gnostai.org> (ga)",
|
60
|
+
"CHIKAMA Masaki <masaki.chikama@gmail.com> (ja)",
|
61
|
+
"Dafydd Harries <daf@muse.19inch.net> (cy)",
|
62
|
+
"Damjan Dimitrioski <damjandimitrioski@gmail.com> (mk)",
|
63
|
+
"Giacomo Margarito <giacomomargarito@gmail.com> (it)",
|
64
|
+
"Jack Myrseh <jack@enkom.no> (nb)",
|
65
|
+
"Joachim Breitner <mail@joachim-breitner.de> (de)",
|
66
|
+
"José Ling <jlgdot369@gmail.com> (zh_TW)",
|
67
|
+
"Lennart Karssen <lennart@karssen.org> (nl)",
|
68
|
+
"Lígia Moreira <ligia.moreira@netvisao.pt> (fr, pt, pt_BR)",
|
69
|
+
"Martin Karlsson <martinkarlsson81@hotmail.com> (sv)",
|
70
|
+
"Michael Kotsarinis <mkotsari1@pre.forthnet.gr> (el)",
|
71
|
+
"Miguel Ángel García <magmax@ieee.org> (es)",
|
72
|
+
"Peter Kováč <kovac.peter@fotopriestor.sk> (sk)",
|
73
|
+
"Petr Vanek <vanous@penguin.cz> (cs)",
|
74
|
+
"Piotr Drąg <piotrdrag@gmail.com> (pl)",
|
75
|
+
"Serhij Dubyk <dubyk@library.lviv.ua> (uk)"
|
76
76
|
].freeze
|
77
77
|
ARTISTS = [
|
78
|
-
|
79
|
-
|
78
|
+
"Andreas Nilsson <nisses.mail@home.se>",
|
79
|
+
"Stefanie Dijoux <stefanie.dijoux@gmail.com>"
|
80
80
|
].freeze
|
81
|
-
BUGREPORT_URL =
|
82
|
-
WEBSITE_URL =
|
81
|
+
BUGREPORT_URL = "http://www.github.com/mvz/alexandria-book-collection-manager/issues"
|
82
|
+
WEBSITE_URL = "http://www.github.com/mvz/alexandria-book-collection-manager"
|
83
83
|
end
|