alexandria-book-collection-manager 0.6.9.pre1 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -4
- data/.rubocop_todo.yml +21 -79
- data/CHANGELOG.md +9 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/alexandria-book-collection-manager.gemspec +26 -4
- data/bin/alexandria +1 -1
- data/doc/AUTHORS +2 -1
- data/lib/alexandria.rb +1 -1
- data/lib/alexandria/about.rb +6 -6
- data/lib/alexandria/book_providers.rb +1 -1
- data/lib/alexandria/book_providers/adlibris.rb +4 -4
- data/lib/alexandria/book_providers/barnes_and_noble.rb +9 -5
- data/lib/alexandria/book_providers/bol_it.rb +0 -2
- data/lib/alexandria/book_providers/ibs_it.rb +0 -2
- data/lib/alexandria/book_providers/mcu.rb +3 -5
- data/lib/alexandria/book_providers/proxis.rb +1 -5
- data/lib/alexandria/book_providers/renaud.rb +0 -2
- data/lib/alexandria/book_providers/thalia.rb +10 -8
- data/lib/alexandria/book_providers/webster_it.rb +0 -2
- data/lib/alexandria/book_providers/worldcat.rb +8 -4
- data/lib/alexandria/book_providers/z3950.rb +2 -8
- data/lib/alexandria/execution_queue.rb +1 -3
- data/lib/alexandria/export_library.rb +2 -7
- data/lib/alexandria/import_library.rb +1 -6
- data/lib/alexandria/logging.rb +1 -1
- data/lib/alexandria/models/book.rb +2 -2
- data/lib/alexandria/models/library.rb +5 -7
- data/lib/alexandria/preferences.rb +1 -1
- data/lib/alexandria/scanners.rb +4 -3
- data/lib/alexandria/scanners/cuecat.rb +1 -1
- data/lib/alexandria/smart_library.rb +4 -3
- data/lib/alexandria/ui/callbacks.rb +2 -2
- data/lib/alexandria/ui/completion_models.rb +22 -19
- data/lib/alexandria/ui/dialogs/acquire_dialog.rb +2 -4
- data/lib/alexandria/ui/dialogs/barcode_animation.rb +1 -1
- data/lib/alexandria/ui/dialogs/book_properties_dialog.rb +1 -3
- data/lib/alexandria/ui/dialogs/book_properties_dialog_base.rb +0 -4
- data/lib/alexandria/ui/dialogs/export_dialog.rb +1 -3
- data/lib/alexandria/ui/dialogs/import_dialog.rb +4 -4
- data/lib/alexandria/ui/dialogs/new_book_dialog.rb +8 -11
- data/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb +4 -5
- data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +15 -9
- data/lib/alexandria/ui/dialogs/preferences_dialog.rb +20 -23
- data/lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb +10 -14
- data/lib/alexandria/ui/dndable.rb +0 -1
- data/lib/alexandria/ui/gtk_thread_help.rb +2 -1
- data/lib/alexandria/ui/icons.rb +3 -3
- data/lib/alexandria/ui/iconview_tooltips.rb +9 -5
- data/lib/alexandria/ui/init.rb +6 -6
- data/lib/alexandria/ui/listview.rb +4 -4
- data/lib/alexandria/ui/main_app.rb +1 -1
- data/lib/alexandria/ui/multi_drag_treeview.rb +3 -5
- data/lib/alexandria/ui/sidepane.rb +26 -10
- data/lib/alexandria/ui/ui_manager.rb +5 -9
- data/lib/alexandria/undo_manager.rb +0 -2
- data/lib/alexandria/version.rb +3 -3
- data/lib/alexandria/web_themes.rb +1 -3
- data/{test/providers_test.rb → spec/alexandria/book_providers_spec.rb} +17 -15
- data/{test/book_test.rb → spec/alexandria/book_spec.rb} +4 -4
- data/spec/alexandria/library_spec.rb +189 -141
- data/spec/alexandria/scanners/cuecat_spec.rb +0 -2
- data/spec/alexandria/ui/main_app_spec.rb +13 -8
- data/spec/alexandria/ui/sidepane_spec.rb +1 -1
- data/spec/alexandria/ui/ui_utilities_spec.rb +1 -1
- data/{test → spec}/data/isbns.txt +0 -0
- data/tasks/spec.rake +2 -0
- data/util/rake/fileinstall.rb +1 -1
- metadata +32 -16
- data/tasks/test.rake +0 -38
- data/test/application_test.rb +0 -39
- data/test/isbn_test.rb +0 -68
- data/test/test_helper.rb +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f908fe208ec98c1146db7ba2fd1ee4cdcc6f1a
|
4
|
+
data.tar.gz: 8ab9bcc4418de8c7059feeb91fa5e92c7b210cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aac0be4c035663bbeb556167a5a349962746d080378ac76f5559830ed006da58d2a6be4fe48bc9d6aa08c649d135015f59a04af1decfc5a42271ebf63b5f5efa
|
7
|
+
data.tar.gz: 8f90fa49fa4556b30602d6f75e43b3e20d6e703204081b0eceb7d0e681956660a7d76a514d66e0c4a1c47e3ea83bfee94825139db1c61aea582c236b1795c695
|
data/.rubocop.yml
CHANGED
@@ -28,6 +28,12 @@ Style/SignalException:
|
|
28
28
|
Style/RedundantReturn:
|
29
29
|
AllowMultipleReturnValues: true
|
30
30
|
|
31
|
+
# Offense count: 10
|
32
|
+
# Cop supports --auto-correct.
|
33
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
34
|
+
Style/FirstParameterIndentation:
|
35
|
+
EnforcedStyle: consistent
|
36
|
+
|
31
37
|
# Require at least two dependent lines before suggesting a guard clause
|
32
38
|
Style/GuardClause:
|
33
39
|
MinBodyLength: 2
|
@@ -36,6 +42,10 @@ Style/GuardClause:
|
|
36
42
|
Style/IfUnlessModifier:
|
37
43
|
MaxLineLength: 60
|
38
44
|
|
45
|
+
# Visually mark multiline operations by indenting
|
46
|
+
Style/MultilineOperationIndentation:
|
47
|
+
EnforcedStyle: indented
|
48
|
+
|
39
49
|
Style/TrivialAccessors:
|
40
50
|
ExactNameMatch: true
|
41
51
|
|
@@ -53,10 +63,6 @@ Style/AccessorMethodName:
|
|
53
63
|
Style/AndOr:
|
54
64
|
Enabled: false
|
55
65
|
|
56
|
-
# RuboCop has no setting to accept how vim aligns parameters.
|
57
|
-
Style/AlignParameters:
|
58
|
-
Enabled: false
|
59
|
-
|
60
66
|
# Allow semantic choice of trailing comma
|
61
67
|
Style/TrailingComma:
|
62
68
|
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,49 +1,45 @@
|
|
1
1
|
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
-
# on 2015-
|
2
|
+
# on 2015-07-11 13:17:41 +0200 using RuboCop version 0.32.1.
|
3
3
|
# The point is for the user to remove these configuration records
|
4
4
|
# one by one as the offenses are removed from the code base.
|
5
5
|
# Note that changes in the inspected code, or installation of new
|
6
6
|
# versions of RuboCop, may require this file to be generated again.
|
7
7
|
|
8
|
-
# Offense count: 4
|
9
|
-
# Cop supports --auto-correct.
|
10
|
-
Lint/BlockAlignment:
|
11
|
-
Enabled: false
|
12
|
-
|
13
8
|
# Offense count: 7
|
14
9
|
Lint/HandleExceptions:
|
15
10
|
Enabled: false
|
16
11
|
|
17
|
-
# Offense count: 2
|
18
|
-
Lint/LiteralInCondition:
|
19
|
-
Enabled: false
|
20
|
-
|
21
12
|
# Offense count: 185
|
22
13
|
Metrics/AbcSize:
|
23
14
|
Max: 165
|
24
15
|
|
25
|
-
# Offense count:
|
16
|
+
# Offense count: 14
|
26
17
|
Metrics/BlockNesting:
|
27
18
|
Max: 5
|
28
19
|
|
29
20
|
# Offense count: 35
|
30
21
|
# Configuration parameters: CountComments.
|
31
22
|
Metrics/ClassLength:
|
32
|
-
Max:
|
23
|
+
Max: 1065
|
33
24
|
|
34
25
|
# Offense count: 79
|
35
26
|
Metrics/CyclomaticComplexity:
|
36
27
|
Max: 28
|
37
28
|
|
38
|
-
# Offense count:
|
29
|
+
# Offense count: 339
|
39
30
|
# Configuration parameters: AllowURI, URISchemes.
|
40
31
|
Metrics/LineLength:
|
41
|
-
Max:
|
32
|
+
Max: 392
|
42
33
|
|
43
|
-
# Offense count:
|
34
|
+
# Offense count: 240
|
44
35
|
# Configuration parameters: CountComments.
|
45
36
|
Metrics/MethodLength:
|
46
|
-
Max:
|
37
|
+
Max: 116
|
38
|
+
|
39
|
+
# Offense count: 2
|
40
|
+
# Configuration parameters: CountComments.
|
41
|
+
Metrics/ModuleLength:
|
42
|
+
Max: 344
|
47
43
|
|
48
44
|
# Offense count: 5
|
49
45
|
# Configuration parameters: CountKeywordArgs.
|
@@ -54,11 +50,6 @@ Metrics/ParameterLists:
|
|
54
50
|
Metrics/PerceivedComplexity:
|
55
51
|
Max: 29
|
56
52
|
|
57
|
-
# Offense count: 13
|
58
|
-
# Cop supports --auto-correct.
|
59
|
-
Style/BlockEndNewline:
|
60
|
-
Enabled: false
|
61
|
-
|
62
53
|
# Offense count: 3
|
63
54
|
Style/ClassAndModuleCamelCase:
|
64
55
|
Enabled: false
|
@@ -73,6 +64,7 @@ Style/ClassVars:
|
|
73
64
|
Enabled: false
|
74
65
|
|
75
66
|
# Offense count: 28
|
67
|
+
# Cop supports --auto-correct.
|
76
68
|
# Configuration parameters: Keywords.
|
77
69
|
Style/CommentAnnotation:
|
78
70
|
Enabled: false
|
@@ -81,28 +73,6 @@ Style/CommentAnnotation:
|
|
81
73
|
Style/Documentation:
|
82
74
|
Enabled: false
|
83
75
|
|
84
|
-
# Offense count: 3
|
85
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
86
|
-
Style/EmptyElse:
|
87
|
-
Enabled: false
|
88
|
-
|
89
|
-
# Offense count: 27
|
90
|
-
# Cop supports --auto-correct.
|
91
|
-
Style/EmptyLinesAroundAccessModifier:
|
92
|
-
Enabled: false
|
93
|
-
|
94
|
-
# Offense count: 31
|
95
|
-
# Cop supports --auto-correct.
|
96
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
97
|
-
Style/EmptyLinesAroundBlockBody:
|
98
|
-
Enabled: false
|
99
|
-
|
100
|
-
# Offense count: 10
|
101
|
-
# Cop supports --auto-correct.
|
102
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
103
|
-
Style/FirstParameterIndentation:
|
104
|
-
Enabled: false
|
105
|
-
|
106
76
|
# Offense count: 7
|
107
77
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
108
78
|
Style/For:
|
@@ -118,56 +88,23 @@ Style/FormatString:
|
|
118
88
|
Style/GlobalVars:
|
119
89
|
Enabled: false
|
120
90
|
|
121
|
-
# Offense count:
|
91
|
+
# Offense count: 23
|
122
92
|
# Configuration parameters: MinBodyLength.
|
123
93
|
Style/GuardClause:
|
124
94
|
Enabled: false
|
125
95
|
|
126
|
-
# Offense count:
|
127
|
-
# Cop supports --auto-correct.
|
128
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
129
|
-
Style/HashSyntax:
|
130
|
-
Enabled: false
|
131
|
-
|
132
|
-
# Offense count: 66
|
96
|
+
# Offense count: 68
|
133
97
|
# Cop supports --auto-correct.
|
134
98
|
# Configuration parameters: MaxLineLength.
|
135
99
|
Style/IfUnlessModifier:
|
136
100
|
Enabled: false
|
137
101
|
|
138
|
-
# Offense count: 2
|
139
|
-
# Cop supports --auto-correct.
|
140
|
-
Style/InfiniteLoop:
|
141
|
-
Enabled: false
|
142
|
-
|
143
|
-
# Offense count: 2
|
144
|
-
# Cop supports --auto-correct.
|
145
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
146
|
-
Style/MethodDefParentheses:
|
147
|
-
Enabled: false
|
148
|
-
|
149
102
|
# Offense count: 4
|
150
103
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
151
104
|
Style/MethodName:
|
152
105
|
Enabled: false
|
153
106
|
|
154
|
-
# Offense count:
|
155
|
-
# Cop supports --auto-correct.
|
156
|
-
Style/MultilineBlockLayout:
|
157
|
-
Enabled: false
|
158
|
-
|
159
|
-
# Offense count: 2
|
160
|
-
# Cop supports --auto-correct.
|
161
|
-
Style/MultilineIfThen:
|
162
|
-
Enabled: false
|
163
|
-
|
164
|
-
# Offense count: 23
|
165
|
-
# Cop supports --auto-correct.
|
166
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
167
|
-
Style/MultilineOperationIndentation:
|
168
|
-
Enabled: false
|
169
|
-
|
170
|
-
# Offense count: 11
|
107
|
+
# Offense count: 1
|
171
108
|
Style/MultilineTernaryOperator:
|
172
109
|
Enabled: false
|
173
110
|
|
@@ -179,6 +116,11 @@ Style/NestedTernaryOperator:
|
|
179
116
|
Style/OpMethod:
|
180
117
|
Enabled: false
|
181
118
|
|
119
|
+
# Offense count: 7
|
120
|
+
# Cop supports --auto-correct.
|
121
|
+
Style/ParallelAssignment:
|
122
|
+
Enabled: false
|
123
|
+
|
182
124
|
# Offense count: 4
|
183
125
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
|
184
126
|
Style/PredicateName:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.6.9
|
4
|
+
|
5
|
+
* Update/fix authorship information and other metadata
|
6
|
+
* Fix crash opening preferences dialog
|
7
|
+
* Fix crash opening book dialog
|
8
|
+
* Clean up code
|
9
|
+
* Merge tests into specs
|
10
|
+
* Update dependencies to latest gtk2 and gstreamer gems
|
11
|
+
|
3
12
|
## 0.6.9.pre1
|
4
13
|
|
5
14
|
* Start providing a gemspec to allow installation as a gem
|
@@ -7,7 +16,6 @@
|
|
7
16
|
* Update specs and tests
|
8
17
|
* Modernize build environment
|
9
18
|
|
10
|
-
|
11
19
|
## 0.6.8
|
12
20
|
|
13
21
|
* Removed dependencies on deprecated Ruby/GNOME2 libraries, to get
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Alexandria is written in Ruby using ruby-gnome2.
|
|
19
19
|
Where can I get it?
|
20
20
|
===================
|
21
21
|
|
22
|
-
|
22
|
+
You can install alexandria as a gem by running
|
23
23
|
|
24
24
|
gem install alexandria-book-collection-manager
|
25
25
|
|
data/Rakefile
CHANGED
@@ -220,7 +220,7 @@ Rake::PackageTask.new(PROJECT, Alexandria::DISPLAY_VERSION) do |p|
|
|
220
220
|
'alexandria.desktop.in',
|
221
221
|
'bin/**/*', 'data/**/*', 'misc/**/*',
|
222
222
|
'doc/**/*', 'lib/**/*', 'po/**/*',
|
223
|
-
'schemas/**/*', 'spec/**/*'
|
223
|
+
'schemas/**/*', 'spec/**/*')
|
224
224
|
end
|
225
225
|
|
226
226
|
task tgz: [:build] do
|
@@ -8,7 +8,29 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.summary = 'GNOME application for managing collections of books'
|
9
9
|
s.required_ruby_version = '>= 1.9.3'
|
10
10
|
|
11
|
-
s.authors = [
|
11
|
+
s.authors = [
|
12
|
+
'Alexander McCormmach',
|
13
|
+
'Aymeric Nys',
|
14
|
+
'Cathal Mc Ginley',
|
15
|
+
'Claudio Belotti',
|
16
|
+
'Constantine Evans',
|
17
|
+
'Dafydd Harries',
|
18
|
+
'Javier Fernandez-Sanguino Pena',
|
19
|
+
'Joseph Method',
|
20
|
+
'Kevin Schultz',
|
21
|
+
'Laurent Sansonetti',
|
22
|
+
'Marco Costantini',
|
23
|
+
'Mathieu Leduc-Hamel',
|
24
|
+
'Matijs van Zuijlen',
|
25
|
+
'Owain Evans',
|
26
|
+
'Pascal Terjan',
|
27
|
+
'Rene Samselnig',
|
28
|
+
'Robby Stephenson',
|
29
|
+
'Sun Ning',
|
30
|
+
'Takayuki Kusano',
|
31
|
+
'Timothy Malone',
|
32
|
+
'Zachary P. Landau'
|
33
|
+
]
|
12
34
|
s.email = ['matijs@matijs.net']
|
13
35
|
s.homepage = 'http://www.github.com/mvz/alexandria-book-collection-manager'
|
14
36
|
|
@@ -17,15 +39,15 @@ Gem::Specification.new do |s|
|
|
17
39
|
s.files = `git ls-files -z`.split("\0") |
|
18
40
|
['lib/alexandria/default_preferences.rb']
|
19
41
|
|
20
|
-
s.executables =
|
42
|
+
s.executables = ['alexandria']
|
21
43
|
|
22
44
|
s.rdoc_options = ['--main', 'README.md']
|
23
45
|
|
24
46
|
s.add_runtime_dependency('gettext', ['~> 3.1'])
|
25
47
|
s.add_runtime_dependency('hpricot', ['~> 0.8.5'])
|
26
48
|
s.add_runtime_dependency('htmlentities', ['~> 4.3'])
|
27
|
-
s.add_runtime_dependency('gtk2', ['~>
|
28
|
-
s.add_runtime_dependency('gstreamer', ['~>
|
49
|
+
s.add_runtime_dependency('gtk2', ['~> 3.0'])
|
50
|
+
s.add_runtime_dependency('gstreamer', ['~> 3.0'])
|
29
51
|
|
30
52
|
s.add_development_dependency('minitest', ['~> 5.0'])
|
31
53
|
s.add_development_dependency('rake', ['~> 10.0'])
|
data/bin/alexandria
CHANGED
@@ -74,7 +74,7 @@ Backtrace:
|
|
74
74
|
Release: #{Alexandria::VERSION}(#{Alexandria::DISPLAY_VERSION})
|
75
75
|
Uname -a: #{`uname -a`.chomp}
|
76
76
|
--
|
77
|
-
Please report this dump to '#{Alexandria::
|
77
|
+
Please report this dump to '#{Alexandria::BUGREPORT_URL}' with some additional
|
78
78
|
information, such as the description of the crash and the steps to reproduce it
|
79
79
|
(if it's possible).
|
80
80
|
EOS
|
data/doc/AUTHORS
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Maintainer:
|
2
|
-
|
2
|
+
Matijs van Zuijlen <matijs@matijs.net>
|
3
3
|
|
4
4
|
Contributors:
|
5
5
|
Alexander McCormmach <alexander@tunicate.org>
|
@@ -9,6 +9,7 @@ Claudio Belotti <bel8@lilik.it>
|
|
9
9
|
Constantine Evans <cevans@costinet.org>
|
10
10
|
Dafydd Harries <daf@muse.19inch.net>
|
11
11
|
Javier Fernandez-Sanguino Pena <jfs@debian.org>
|
12
|
+
Joseph Method <tristil@gmail.com>
|
12
13
|
Kevin Schultz <schultkl@ieee.org>
|
13
14
|
Laurent Sansonetti <lrz@gnome.org>
|
14
15
|
Marco Costantini <costanti@science.unitn.it>
|
data/lib/alexandria.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Copyright (C) 2004-2006 Laurent Sansonetti
|
2
|
-
#
|
2
|
+
# Copyright (C) 2011 Matijs van Zuijlen
|
3
3
|
#
|
4
4
|
# Alexandria is free software; you can redistribute it and/or
|
5
5
|
# modify it under the terms of the GNU General Public License as
|
data/lib/alexandria/about.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# Copyright (C) 2004-2006 Laurent Sansonetti
|
3
3
|
# Copyright (C) 2008 Joseph Method
|
4
|
+
# Copyright (C) 2015 Matijs van Zuijlen
|
4
5
|
#
|
5
6
|
# Alexandria is free software; you can redistribute it and/or
|
6
7
|
# modify it under the terms of the GNU General Public License as
|
@@ -23,8 +24,8 @@ module Alexandria
|
|
23
24
|
extend GetText
|
24
25
|
bindtextdomain(Alexandria::TEXTDOMAIN, charset: 'UTF-8')
|
25
26
|
DESCRIPTION = _('A program to help you manage your book collection.')
|
26
|
-
COPYRIGHT = "Copyright (C) 2004
|
27
|
-
'Copyright (C) 2007,
|
27
|
+
COPYRIGHT = "Copyright (C) 2004-2006 Laurent Sansonetti\n" \
|
28
|
+
'Copyright (C) 2007-2010,2014,2015 Alexandria Contributors'
|
28
29
|
AUTHORS = [
|
29
30
|
'Alexander McCormmach <alexander@tunicate.org>',
|
30
31
|
'Aymeric Nys <aymeric@nnx.com>',
|
@@ -38,6 +39,7 @@ module Alexandria
|
|
38
39
|
'Laurent Sansonetti <lrz@gnome.org>',
|
39
40
|
'Marco Costantini <costanti@science.unitn.it>',
|
40
41
|
'Mathieu Leduc-Hamel <arrak@arrak.org>',
|
42
|
+
'Matijs van Zuijlen <matijs@matijs.net>',
|
41
43
|
'Owain Evans <o.evans@gmail.com>',
|
42
44
|
'Pascal Terjan <pterjan@linuxfr.org>',
|
43
45
|
'Rene Samselnig <sandman@sdm-net.org>',
|
@@ -75,8 +77,6 @@ module Alexandria
|
|
75
77
|
'Andreas Nilsson <nisses.mail@home.se>',
|
76
78
|
'Stefanie Dijoux <stefanie.dijoux@gmail.com>'
|
77
79
|
]
|
78
|
-
|
79
|
-
|
80
|
-
WEBSITE_URL = 'http://alexandria.rubyforge.org'
|
81
|
-
DONATE_URL = ''
|
80
|
+
BUGREPORT_URL = 'http://www.github.com/mvz/alexandria-book-collection-manager/issues'
|
81
|
+
WEBSITE_URL = 'http://www.github.com/mvz/alexandria-book-collection-manager'
|
82
82
|
end
|
@@ -105,7 +105,6 @@ module Alexandria
|
|
105
105
|
return [] unless search_hit
|
106
106
|
|
107
107
|
(search_hit / 'ul.ulSearch table').each do |t|
|
108
|
-
|
109
108
|
result = {}
|
110
109
|
if (title_data = (t % 'div.divTitle'))
|
111
110
|
result[:title] = (title_data % :a).inner_text
|
@@ -114,7 +113,6 @@ module Alexandria
|
|
114
113
|
result[:lookup_url] = "#{SITE}#{lookup_url}"
|
115
114
|
|
116
115
|
book_search_results << result
|
117
|
-
|
118
116
|
end
|
119
117
|
book_search_results
|
120
118
|
end
|
@@ -225,8 +223,10 @@ module Alexandria
|
|
225
223
|
rescue => ex
|
226
224
|
raise ex if ex.instance_of? NoResultsError
|
227
225
|
trace = ex.backtrace.join("\n> ")
|
228
|
-
log.warn {
|
229
|
-
|
226
|
+
log.warn {
|
227
|
+
'Failed parsing search results for AdLibris ' \
|
228
|
+
"#{ex.message} #{trace}"
|
229
|
+
}
|
230
230
|
raise NoResultsError
|
231
231
|
end
|
232
232
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2009 Cathal Mc Ginley
|
4
|
-
#
|
4
|
+
# Copyright (C) 2011, 2014 Matijs van Zuijlen
|
5
5
|
#
|
6
6
|
# Alexandria is free software; you can redistribute it and/or
|
7
7
|
# modify it under the terms of the GNU General Public License as
|
@@ -134,8 +134,10 @@ module Alexandria
|
|
134
134
|
end
|
135
135
|
rescue => ex
|
136
136
|
trace = ex.backtrace.join("\n> ")
|
137
|
-
log.warn {
|
138
|
-
|
137
|
+
log.warn {
|
138
|
+
'Failed parsing search results for Barnes & Noble ' \
|
139
|
+
"#{ex.message} #{trace}"
|
140
|
+
}
|
139
141
|
end
|
140
142
|
book_search_results
|
141
143
|
end
|
@@ -219,8 +221,10 @@ module Alexandria
|
|
219
221
|
rescue => ex
|
220
222
|
raise ex if ex.instance_of? NoResultsError
|
221
223
|
trace = ex.backtrace.join("\n> ")
|
222
|
-
log.warn {
|
223
|
-
|
224
|
+
log.warn {
|
225
|
+
'Failed parsing search results for BarnesAndNoble ' \
|
226
|
+
"#{ex.message} #{trace}"
|
227
|
+
}
|
224
228
|
raise NoResultsError
|
225
229
|
end
|
226
230
|
end
|