alexandria-book-collection-manager 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.reek +3 -0
- data/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +20 -23
- data/.simplecov +3 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +3 -2
- data/INSTALL.rdoc +0 -8
- data/README.md +72 -0
- data/Rakefile +4 -2
- data/TODO.md +26 -0
- data/alexandria-book-collection-manager.gemspec +6 -3
- data/bin/alexandria +1 -6
- data/dogtail/basic_run_test.py +9 -0
- data/lib/alexandria/book_providers.rb +2 -6
- data/lib/alexandria/book_providers/proxis.rb +1 -1
- data/lib/alexandria/book_providers/web.rb +1 -1
- data/lib/alexandria/book_providers/z3950.rb +4 -4
- data/lib/alexandria/export_library.rb +20 -27
- data/lib/alexandria/import_library.rb +7 -5
- data/lib/alexandria/models/book.rb +11 -1
- data/lib/alexandria/models/library.rb +4 -17
- data/lib/alexandria/preferences.rb +5 -5
- data/lib/alexandria/smart_library.rb +2 -8
- data/lib/alexandria/ui/callbacks.rb +1 -1
- data/lib/alexandria/ui/columns.rb +9 -0
- data/lib/alexandria/ui/completion_models.rb +1 -29
- data/lib/alexandria/ui/dialogs/acquire_dialog.rb +2 -3
- data/lib/alexandria/ui/dialogs/book_properties_dialog_base.rb +1 -2
- data/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb +3 -2
- data/lib/alexandria/ui/iconview.rb +1 -6
- data/lib/alexandria/ui/libraries_combo.rb +1 -0
- data/lib/alexandria/ui/listview.rb +5 -10
- data/lib/alexandria/ui/main_app.rb +0 -1
- data/lib/alexandria/ui/sidepane.rb +1 -1
- data/lib/alexandria/ui/sound.rb +3 -3
- data/lib/alexandria/ui/ui_manager.rb +5 -13
- data/lib/alexandria/version.rb +2 -2
- data/spec/alexandria/book_providers_spec.rb +0 -17
- data/spec/alexandria/book_spec.rb +23 -0
- data/spec/alexandria/library_spec.rb +26 -0
- data/spec/alexandria/smart_library_spec.rb +11 -1
- data/spec/alexandria/ui/main_app_spec.rb +0 -11
- data/spec/spec_helper.rb +0 -1
- data/tasks/dogtail.rake +4 -0
- data/tasks/spec.rake +3 -3
- metadata +58 -12
- data/TODO +0 -24
- data/spec/alexandria/ui/listview_spec.rb +0 -28
- data/tasks/rdoc.rake +0 -6
@@ -1,28 +0,0 @@
|
|
1
|
-
# Copyright (C) 2008 Joseph Method
|
2
|
-
# Copyright (C) 2014 Matijs van Zuijlen
|
3
|
-
#
|
4
|
-
# Alexandria is free software; you can redistribute it and/or
|
5
|
-
# modify it under the terms of the GNU General Public License as
|
6
|
-
# published by the Free Software Foundation; either version 2 of the
|
7
|
-
# License, or (at your option) any later version.
|
8
|
-
#
|
9
|
-
# Alexandria is distributed in the hope that it will be useful,
|
10
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
-
# General Public License for more details.
|
13
|
-
#
|
14
|
-
# You should have received a copy of the GNU General Public
|
15
|
-
# License along with Alexandria; see the file COPYING. If not,
|
16
|
-
# write to the Free Software Foundation, Inc., 51 Franklin Street,
|
17
|
-
# Fifth Floor, Boston, MA 02110-1301 USA.
|
18
|
-
|
19
|
-
require File.dirname(__FILE__) + '/../../spec_helper'
|
20
|
-
|
21
|
-
describe Alexandria::UI::ListViewManager do
|
22
|
-
it 'should work' do
|
23
|
-
listview = double(Gtk::TreeView).as_null_object
|
24
|
-
parent = double(Object, listview: listview).as_null_object
|
25
|
-
expect(listview).to receive(:enable_model_drag_source)
|
26
|
-
Alexandria::UI::ListViewManager.new(listview, parent)
|
27
|
-
end
|
28
|
-
end
|