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,67 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#-- -*- ruby -*-
|
4
|
-
# Copyright (C) 2007 Cathal Mc Ginley
|
5
|
-
# Copyright (C) 2014 Matijs van Zuijlen
|
6
|
-
#
|
7
|
-
# Alexandria is free software; you can redistribute it and/or
|
8
|
-
# modify it under the terms of the GNU General Public License as
|
9
|
-
# published by the Free Software Foundation; either version 2 of the
|
10
|
-
# License, or (at your option) any later version.
|
11
|
-
#
|
12
|
-
# Alexandria is distributed in the hope that it will be useful,
|
13
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
-
# General Public License for more details.
|
16
|
-
#
|
17
|
-
# You should have received a copy of the GNU General Public
|
18
|
-
# License along with Alexandria; see the file COPYING. If not,
|
19
|
-
# write to the Free Software Foundation, Inc., 51 Franklin Street,
|
20
|
-
# Fifth Floor, Boston, MA 02110-1301 USA.
|
21
|
-
|
22
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../../../lib'))
|
23
|
-
|
24
|
-
require 'alexandria/scanners/cuecat'
|
25
|
-
|
26
|
-
describe Alexandria::Scanners::CueCat do
|
27
|
-
before :all do
|
28
|
-
@cuecat = Alexandria::Scanners::CueCat.new
|
29
|
-
@partials = ['.',
|
30
|
-
'.C3nZC3nZC3n2ChnWENz7DxnY',
|
31
|
-
'.C3nZC3nZC3n2ChnWENz7DxnY.',
|
32
|
-
'.C3nZC3nZC3n2ChnWENz7DxnY.cGen',
|
33
|
-
'.C3nZC3nZC3n2ChnWENz7DxnY.cGen.',
|
34
|
-
'.C3nZC3nZC3n2ChnWENz7DxnY.cGen.ENr7C3z0CNj3Dhj1EW']
|
35
|
-
@scans = {
|
36
|
-
isbn: '.C3nZC3nZC3n2ChnWENz7DxnY.cGen.ENr7C3z0CNj3Dhj1EW.',
|
37
|
-
ib5: '.C3nZC3nZC3n2ChnWENz7DxnY.cGf2.ENr7C3z0DNn0ENnWE3nZDhP6.'
|
38
|
-
}
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'is called CueCat' do
|
42
|
-
expect(@cuecat.name).to match(/CueCat/i)
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'should detect a complete scan only ' do
|
46
|
-
@partials.each { |scan| expect(@cuecat.match?(scan)).not_to be_truthy }
|
47
|
-
expect(@cuecat.match?(@scans[:isbn])).to be_truthy
|
48
|
-
expect(@cuecat.match?(@scans[:ib5])).to be_truthy
|
49
|
-
end
|
50
|
-
|
51
|
-
it 'should decode ISBN barcodes' do
|
52
|
-
expect(@cuecat.decode(@scans[:isbn])).to eq('9780571147168')
|
53
|
-
end
|
54
|
-
|
55
|
-
it 'should decode ISBN+5 barcodes' do
|
56
|
-
expect(@cuecat.decode(@scans[:ib5])).to eq('9780575079038') # 00799
|
57
|
-
# TODO are we supposed to keep the +5 bit?
|
58
|
-
end
|
59
|
-
|
60
|
-
it 'should decode ISSN barcodes' do
|
61
|
-
skip 'Test scan ISSN'
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'should decode UPC barcodes' do
|
65
|
-
skip 'Test scan UPC'
|
66
|
-
end
|
67
|
-
end
|
@@ -1,162 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# This file is part of Alexandria.
|
4
|
-
#
|
5
|
-
# See the file README.md for authorship and licensing information.
|
6
|
-
|
7
|
-
require File.dirname(__FILE__) + '/../../spec_helper'
|
8
|
-
|
9
|
-
describe Alexandria::UI::SmartLibraryPropertiesDialog do
|
10
|
-
it 'should work' do
|
11
|
-
parent = Gtk::Window.new :toplevel
|
12
|
-
smart_library = instance_double(Alexandria::SmartLibrary,
|
13
|
-
name: 'Foo',
|
14
|
-
rules: [],
|
15
|
-
predicate_operator_rule: :any)
|
16
|
-
described_class.new parent, smart_library
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe Alexandria::UI::ProviderPreferencesDialog do
|
21
|
-
it 'should work' do
|
22
|
-
parent = Gtk::Window.new :toplevel
|
23
|
-
preferences = instance_double(Alexandria::BookProviders::Preferences,
|
24
|
-
length: 0, read: [])
|
25
|
-
provider = instance_double(Alexandria::BookProviders::GenericProvider,
|
26
|
-
fullname: 'FooProvider',
|
27
|
-
prefs: preferences)
|
28
|
-
described_class.new parent, provider
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
describe Alexandria::UI::NewProviderDialog do
|
33
|
-
it 'should work' do
|
34
|
-
parent = Gtk::Window.new :toplevel
|
35
|
-
described_class.new parent
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe Alexandria::UI::PreferencesDialog do
|
40
|
-
it 'should work' do
|
41
|
-
parent = Gtk::Window.new :toplevel
|
42
|
-
described_class.new(parent) {}
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
describe Alexandria::UI::NewSmartLibraryDialog do
|
47
|
-
it 'should work' do
|
48
|
-
parent = Gtk::Window.new :toplevel
|
49
|
-
described_class.new parent
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe Alexandria::UI::NewBookDialogManual do
|
54
|
-
it 'should work' do
|
55
|
-
parent = Gtk::Window.new :toplevel
|
56
|
-
library = instance_double(Alexandria::Library)
|
57
|
-
described_class.new parent, library
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
describe Alexandria::UI::KeepBadISBNDialog do
|
62
|
-
it 'should work' do
|
63
|
-
parent = Gtk::Window.new :toplevel
|
64
|
-
book = instance_double(Alexandria::Book,
|
65
|
-
title: 'Foo Book',
|
66
|
-
isbn: '98765432')
|
67
|
-
described_class.new parent, book
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
describe Alexandria::UI::ConflictWhileCopyingDialog do
|
72
|
-
it 'should work' do
|
73
|
-
parent = Gtk::Window.new :toplevel
|
74
|
-
library = instance_double(Alexandria::Library, name: 'Bar Library')
|
75
|
-
book = instance_double(Alexandria::Book, title: 'Foo Book')
|
76
|
-
described_class.new parent, library, book
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
describe Alexandria::UI::ReallyDeleteDialog do
|
81
|
-
it 'should work' do
|
82
|
-
library = instance_double(Alexandria::Library, name: 'Bar Library', empty?: false, size: 12)
|
83
|
-
parent = Gtk::Window.new :toplevel
|
84
|
-
described_class.new parent, library
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
describe Alexandria::UI::SkipEntryDialog do
|
89
|
-
it 'should work' do
|
90
|
-
parent = Gtk::Window.new :toplevel
|
91
|
-
described_class.new parent, 'Foo'
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe Alexandria::UI::ImportDialog do
|
96
|
-
it 'should work' do
|
97
|
-
parent = Gtk::Window.new :toplevel
|
98
|
-
described_class.new parent
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
describe Alexandria::UI::ConfirmEraseDialog do
|
103
|
-
it 'should work' do
|
104
|
-
parent = Gtk::Window.new :toplevel
|
105
|
-
described_class.new parent, 'foo-file'
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
describe Alexandria::UI::ExportDialog do
|
110
|
-
it 'should work' do
|
111
|
-
parent = Gtk::Window.new :toplevel
|
112
|
-
library = instance_double(Alexandria::Library, name: 'Bar Library')
|
113
|
-
described_class.new parent, library, :ascending
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
describe Alexandria::UI::BookPropertiesDialog do
|
118
|
-
it 'should work' do
|
119
|
-
parent = Gtk::Window.new :toplevel
|
120
|
-
library = instance_double(Alexandria::Library, name: 'Bar Library', cover: '')
|
121
|
-
book = Alexandria::Book.new('Foo Book', ['Jane Doe'], '98765432', 'Bar Publisher',
|
122
|
-
1972, 'edition')
|
123
|
-
described_class.new parent, library, book
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
|
-
describe Alexandria::UI::BadIsbnsDialog do
|
128
|
-
it 'should work' do
|
129
|
-
parent = Gtk::Window.new :toplevel
|
130
|
-
described_class.new parent, 'Careful', []
|
131
|
-
end
|
132
|
-
end
|
133
|
-
|
134
|
-
describe Alexandria::UI::ErrorDialog do
|
135
|
-
it 'should work' do
|
136
|
-
parent = Gtk::Window.new :toplevel
|
137
|
-
described_class.new parent, 'Boom', 'It went boom'
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
describe Alexandria::UI::AlertDialog do
|
142
|
-
it 'should work' do
|
143
|
-
parent = Gtk::Window.new :toplevel
|
144
|
-
described_class.new(parent, 'Hello',
|
145
|
-
Gtk::Stock::DIALOG_QUESTION,
|
146
|
-
[[Gtk::Stock::CANCEL, :cancel]], 'Hi there')
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
describe Alexandria::UI::AcquireDialog do
|
151
|
-
it 'should work' do
|
152
|
-
parent = Gtk::Window.new :toplevel
|
153
|
-
described_class.new parent
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
describe Alexandria::UI::AboutDialog do
|
158
|
-
it 'should work' do
|
159
|
-
parent = Gtk::Window.new :toplevel
|
160
|
-
described_class.new parent
|
161
|
-
end
|
162
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright (C) 2008 Joseph Method
|
4
|
-
# Copyright (C) 2014 Matijs van Zuijlen
|
5
|
-
#
|
6
|
-
# Alexandria is free software; you can redistribute it and/or
|
7
|
-
# modify it under the terms of the GNU General Public License as
|
8
|
-
# published by the Free Software Foundation; either version 2 of the
|
9
|
-
# License, or (at your option) any later version.
|
10
|
-
#
|
11
|
-
# Alexandria is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
# General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public
|
17
|
-
# License along with Alexandria; see the file COPYING. If not,
|
18
|
-
# write to the Free Software Foundation, Inc., 51 Franklin Street,
|
19
|
-
# Fifth Floor, Boston, MA 02110-1301 USA.
|
20
|
-
|
21
|
-
require File.dirname(__FILE__) + '/../../spec_helper'
|
22
|
-
|
23
|
-
describe Alexandria::UI::SidePaneManager do
|
24
|
-
it 'should work' do
|
25
|
-
library_listview = double(Gtk::TreeView).as_null_object
|
26
|
-
parent = double(Object, main_app: nil, append_library: nil)
|
27
|
-
Alexandria::UI::SidePaneManager.new library_listview, parent
|
28
|
-
end
|
29
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright (C) 2007 Joseph Method
|
4
|
-
# Copyright (C) 2011, 2014-2016 Matijs van Zuijlen
|
5
|
-
#
|
6
|
-
# Alexandria is free software; you can redistribute it and/or
|
7
|
-
# modify it under the terms of the GNU General Public License as
|
8
|
-
# published by the Free Software Foundation; either version 2 of the
|
9
|
-
# License, or (at your option) any later version.
|
10
|
-
#
|
11
|
-
# Alexandria is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
# General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public
|
17
|
-
# License along with Alexandria; see the file COPYING. If not,
|
18
|
-
# write to the Free Software Foundation, Inc., 51 Franklin Street,
|
19
|
-
# Fifth Floor, Boston, MA 02110-1301 USA.
|
20
|
-
|
21
|
-
require File.dirname(__FILE__) + '/../../spec_helper'
|
22
|
-
|
23
|
-
# from completion_models
|
24
|
-
describe Gtk::Entry do
|
25
|
-
it 'should extend Gtk::Entry'
|
26
|
-
end
|
27
|
-
|
28
|
-
describe Alexandria::UI::CompletionModels do
|
29
|
-
it 'should work'
|
30
|
-
end
|
31
|
-
|
32
|
-
# from glade_base
|
33
|
-
|
34
|
-
describe Alexandria::UI::BuilderBase do
|
35
|
-
it 'should be revisited'
|
36
|
-
end
|
37
|
-
|
38
|
-
# from icons
|
39
|
-
|
40
|
-
describe GdkPixbuf::Pixbuf do
|
41
|
-
it 'should extend GdkPixbuf::PixBuf'
|
42
|
-
end
|
43
|
-
|
44
|
-
describe Alexandria::UI::Icons do
|
45
|
-
it 'should aid identification'
|
46
|
-
end
|
47
|
-
|
48
|
-
# from libraries_combo
|
49
|
-
|
50
|
-
describe Gtk::ComboBox do
|
51
|
-
it 'should extend Gtk::ComboBox'
|
52
|
-
end
|
53
|
-
|
54
|
-
# from multi_drag_treeview
|
55
|
-
|
56
|
-
describe Gdk::Event do
|
57
|
-
it 'should extend Gdk::Event'
|
58
|
-
end
|
59
|
-
|
60
|
-
describe Gtk::TreeView do
|
61
|
-
it 'should extend Gtk::TreeView'
|
62
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright (C) 2007 Joseph Method
|
4
|
-
#
|
5
|
-
# Alexandria is free software; you can redistribute it and/or
|
6
|
-
# modify it under the terms of the GNU General Public License as
|
7
|
-
# published by the Free Software Foundation; either version 2 of the
|
8
|
-
# License, or (at your option) any later version.
|
9
|
-
#
|
10
|
-
# Alexandria is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
# General Public License for more details.
|
14
|
-
#
|
15
|
-
# You should have received a copy of the GNU General Public
|
16
|
-
# License along with Alexandria; see the file COPYING. If not,
|
17
|
-
# write to the Free Software Foundation, Inc., 51 Franklin Street,
|
18
|
-
# Fifth Floor, Boston, MA 02110-1301 USA.
|
19
|
-
|
20
|
-
require File.dirname(__FILE__) + '/../spec_helper'
|
21
|
-
|
22
|
-
describe Alexandria::ExecutionQueue do
|
23
|
-
it "should not have so many u's and e's"
|
24
|
-
end
|
25
|
-
|
26
|
-
describe Alexandria::ExportFormat do
|
27
|
-
it 'should justify its existence'
|
28
|
-
end
|
29
|
-
|
30
|
-
describe Alexandria::ImportFilter do
|
31
|
-
it "should justify its 'importance'"
|
32
|
-
end
|
33
|
-
|
34
|
-
describe Alexandria::Logger do
|
35
|
-
it 'should fulfill its function'
|
36
|
-
end
|
37
|
-
|
38
|
-
describe Alexandria::UndoManager do
|
39
|
-
it 'should make right what is wrong'
|
40
|
-
end
|
41
|
-
|
42
|
-
describe Time do
|
43
|
-
it "should clarify what it's doing"
|
44
|
-
end
|
45
|
-
|
46
|
-
describe String do
|
47
|
-
it 'should do what it does'
|
48
|
-
end
|
49
|
-
|
50
|
-
describe Alexandria::WebTheme do
|
51
|
-
it 'should be themeable'
|
52
|
-
end
|