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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +10 -4
  3. data/.rubocop_todo.yml +21 -79
  4. data/CHANGELOG.md +9 -1
  5. data/README.md +1 -1
  6. data/Rakefile +1 -1
  7. data/alexandria-book-collection-manager.gemspec +26 -4
  8. data/bin/alexandria +1 -1
  9. data/doc/AUTHORS +2 -1
  10. data/lib/alexandria.rb +1 -1
  11. data/lib/alexandria/about.rb +6 -6
  12. data/lib/alexandria/book_providers.rb +1 -1
  13. data/lib/alexandria/book_providers/adlibris.rb +4 -4
  14. data/lib/alexandria/book_providers/barnes_and_noble.rb +9 -5
  15. data/lib/alexandria/book_providers/bol_it.rb +0 -2
  16. data/lib/alexandria/book_providers/ibs_it.rb +0 -2
  17. data/lib/alexandria/book_providers/mcu.rb +3 -5
  18. data/lib/alexandria/book_providers/proxis.rb +1 -5
  19. data/lib/alexandria/book_providers/renaud.rb +0 -2
  20. data/lib/alexandria/book_providers/thalia.rb +10 -8
  21. data/lib/alexandria/book_providers/webster_it.rb +0 -2
  22. data/lib/alexandria/book_providers/worldcat.rb +8 -4
  23. data/lib/alexandria/book_providers/z3950.rb +2 -8
  24. data/lib/alexandria/execution_queue.rb +1 -3
  25. data/lib/alexandria/export_library.rb +2 -7
  26. data/lib/alexandria/import_library.rb +1 -6
  27. data/lib/alexandria/logging.rb +1 -1
  28. data/lib/alexandria/models/book.rb +2 -2
  29. data/lib/alexandria/models/library.rb +5 -7
  30. data/lib/alexandria/preferences.rb +1 -1
  31. data/lib/alexandria/scanners.rb +4 -3
  32. data/lib/alexandria/scanners/cuecat.rb +1 -1
  33. data/lib/alexandria/smart_library.rb +4 -3
  34. data/lib/alexandria/ui/callbacks.rb +2 -2
  35. data/lib/alexandria/ui/completion_models.rb +22 -19
  36. data/lib/alexandria/ui/dialogs/acquire_dialog.rb +2 -4
  37. data/lib/alexandria/ui/dialogs/barcode_animation.rb +1 -1
  38. data/lib/alexandria/ui/dialogs/book_properties_dialog.rb +1 -3
  39. data/lib/alexandria/ui/dialogs/book_properties_dialog_base.rb +0 -4
  40. data/lib/alexandria/ui/dialogs/export_dialog.rb +1 -3
  41. data/lib/alexandria/ui/dialogs/import_dialog.rb +4 -4
  42. data/lib/alexandria/ui/dialogs/new_book_dialog.rb +8 -11
  43. data/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb +4 -5
  44. data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +15 -9
  45. data/lib/alexandria/ui/dialogs/preferences_dialog.rb +20 -23
  46. data/lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb +10 -14
  47. data/lib/alexandria/ui/dndable.rb +0 -1
  48. data/lib/alexandria/ui/gtk_thread_help.rb +2 -1
  49. data/lib/alexandria/ui/icons.rb +3 -3
  50. data/lib/alexandria/ui/iconview_tooltips.rb +9 -5
  51. data/lib/alexandria/ui/init.rb +6 -6
  52. data/lib/alexandria/ui/listview.rb +4 -4
  53. data/lib/alexandria/ui/main_app.rb +1 -1
  54. data/lib/alexandria/ui/multi_drag_treeview.rb +3 -5
  55. data/lib/alexandria/ui/sidepane.rb +26 -10
  56. data/lib/alexandria/ui/ui_manager.rb +5 -9
  57. data/lib/alexandria/undo_manager.rb +0 -2
  58. data/lib/alexandria/version.rb +3 -3
  59. data/lib/alexandria/web_themes.rb +1 -3
  60. data/{test/providers_test.rb → spec/alexandria/book_providers_spec.rb} +17 -15
  61. data/{test/book_test.rb → spec/alexandria/book_spec.rb} +4 -4
  62. data/spec/alexandria/library_spec.rb +189 -141
  63. data/spec/alexandria/scanners/cuecat_spec.rb +0 -2
  64. data/spec/alexandria/ui/main_app_spec.rb +13 -8
  65. data/spec/alexandria/ui/sidepane_spec.rb +1 -1
  66. data/spec/alexandria/ui/ui_utilities_spec.rb +1 -1
  67. data/{test → spec}/data/isbns.txt +0 -0
  68. data/tasks/spec.rake +2 -0
  69. data/util/rake/fileinstall.rb +1 -1
  70. metadata +32 -16
  71. data/tasks/test.rake +0 -38
  72. data/test/application_test.rb +0 -39
  73. data/test/isbn_test.rb +0 -68
  74. data/test/test_helper.rb +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd0d2c094422c6a5f3d6cbeba613f2e0df65ece9
4
- data.tar.gz: d61c27345935794f64d12b9a267a5aedc378df86
3
+ metadata.gz: 61f908fe208ec98c1146db7ba2fd1ee4cdcc6f1a
4
+ data.tar.gz: 8ab9bcc4418de8c7059feeb91fa5e92c7b210cc1
5
5
  SHA512:
6
- metadata.gz: 70881d7084827b547ce67317a9f062c2da9f77c73c75277d5978eff6d30820d80f31c348f81b29b3eb6dc4cfd4130439ded45455fa9063c90aa260f03e8359d0
7
- data.tar.gz: 41d3b9fce3eb405ac53758cd38c7b744accb47b64a396aebbc0f80213b8541b2d0bcdcd8e0f44b0aaacd5c57144a540898d1c3118c00a1a39cd4c5bf6c819efb
6
+ metadata.gz: aac0be4c035663bbeb556167a5a349962746d080378ac76f5559830ed006da58d2a6be4fe48bc9d6aa08c649d135015f59a04af1decfc5a42271ebf63b5f5efa
7
+ data.tar.gz: 8f90fa49fa4556b30602d6f75e43b3e20d6e703204081b0eceb7d0e681956660a7d76a514d66e0c4a1c47e3ea83bfee94825139db1c61aea582c236b1795c695
@@ -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
@@ -1,49 +1,45 @@
1
1
  # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-04-27 09:14:49 +0200 using RuboCop version 0.30.0.
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: 15
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: 1071
23
+ Max: 1065
33
24
 
34
25
  # Offense count: 79
35
26
  Metrics/CyclomaticComplexity:
36
27
  Max: 28
37
28
 
38
- # Offense count: 332
29
+ # Offense count: 339
39
30
  # Configuration parameters: AllowURI, URISchemes.
40
31
  Metrics/LineLength:
41
- Max: 395
32
+ Max: 392
42
33
 
43
- # Offense count: 241
34
+ # Offense count: 240
44
35
  # Configuration parameters: CountComments.
45
36
  Metrics/MethodLength:
46
- Max: 117
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: 22
91
+ # Offense count: 23
122
92
  # Configuration parameters: MinBodyLength.
123
93
  Style/GuardClause:
124
94
  Enabled: false
125
95
 
126
- # Offense count: 1
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: 13
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:
@@ -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
- An experimental gem release can be installed by running
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/**/*', 'tests/**/*')
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 = ['Matijs van Zuijlen']
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 = s.files.grep(%r{^bin/}).map { |path| File.basename(path) }
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', ['~> 2.2'])
28
- s.add_runtime_dependency('gstreamer', ['~> 2.2'])
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'])
@@ -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::LIST}' with some additional
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
@@ -1,5 +1,5 @@
1
1
  Maintainer:
2
- Joseph Method <tristil@gmail.com>
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>
@@ -1,5 +1,5 @@
1
1
  # Copyright (C) 2004-2006 Laurent Sansonetti
2
- # Modifications Copyright (C) 2011 Matijs van Zuijlen
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
@@ -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,2005,2006 Laurent Sansonetti\n" \
27
- 'Copyright (C) 2007,2008,2009,2010 Alexandria Contributors'
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
- LIST = 'alexandria-list@rubyforge.org'
79
- BUGREPORT_URL = 'http://rubyforge.org/tracker/?func=add&group_id=205&atid=863'
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
@@ -131,7 +131,7 @@ module Alexandria
131
131
 
132
132
  class Variable
133
133
  attr_reader :name, :description,
134
- :possible_values
134
+ :possible_values
135
135
  attr_accessor :value
136
136
 
137
137
  def initialize(provider, name, description, default_value,
@@ -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 {'Failed parsing search results for AdLibris ' \
229
- "#{ex.message} #{trace}" }
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
- # Modifications Copyright (C) 2011, 2014 Matijs van Zuijlen
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 {'Failed parsing search results for Barnes & Noble ' \
138
- "#{ex.message} #{trace}" }
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 {'Failed parsing search results for BarnesAndNoble ' \
223
- "#{ex.message} #{trace}" }
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