alexandria-book-collection-manager 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +0 -1
  3. data/.rubocop.yml +45 -27
  4. data/.rubocop_todo.yml +127 -86
  5. data/.simplecov +1 -0
  6. data/.yardopts +1 -1
  7. data/CHANGELOG.md +5 -0
  8. data/ChangeLog.0 +33 -35
  9. data/Gemfile +2 -2
  10. data/INSTALL.md +152 -0
  11. data/Rakefile +12 -10
  12. data/alexandria-book-collection-manager.gemspec +5 -5
  13. data/bin/alexandria +2 -1
  14. data/doc/AUTHORS +61 -0
  15. data/doc/BUGS +31 -0
  16. data/doc/FAQ +369 -0
  17. data/doc/HACKING +19 -0
  18. data/doc/NEWS +341 -0
  19. data/doc/alexandria.1 +120 -0
  20. data/doc/cuecat_support.rdoc +67 -0
  21. data/doc/dependency_decisions.yml +61 -0
  22. data/lib/alexandria.rb +2 -0
  23. data/lib/alexandria/about.rb +7 -6
  24. data/lib/alexandria/book_providers.rb +6 -6
  25. data/lib/alexandria/book_providers/adlibris.rb +9 -14
  26. data/lib/alexandria/book_providers/amazon_aws.rb +29 -33
  27. data/lib/alexandria/book_providers/amazon_ecs_util.rb +10 -14
  28. data/lib/alexandria/book_providers/barnes_and_noble.rb +9 -11
  29. data/lib/alexandria/book_providers/deastore.rb +12 -20
  30. data/lib/alexandria/book_providers/douban.rb +9 -15
  31. data/lib/alexandria/book_providers/mcu.rb +26 -13
  32. data/lib/alexandria/book_providers/proxis.rb +9 -15
  33. data/lib/alexandria/book_providers/pseudomarc.rb +15 -27
  34. data/lib/alexandria/book_providers/renaud.rb +18 -9
  35. data/lib/alexandria/book_providers/siciliano.rb +8 -9
  36. data/lib/alexandria/book_providers/thalia.rb +6 -6
  37. data/lib/alexandria/book_providers/web.rb +2 -0
  38. data/lib/alexandria/book_providers/worldcat.rb +6 -7
  39. data/lib/alexandria/book_providers/z3950.rb +19 -10
  40. data/lib/alexandria/config.rb +4 -2
  41. data/lib/alexandria/console.rb +2 -0
  42. data/lib/alexandria/execution_queue.rb +2 -2
  43. data/lib/alexandria/export_library.rb +14 -18
  44. data/lib/alexandria/import_library.rb +8 -16
  45. data/lib/alexandria/import_library_csv.rb +5 -52
  46. data/lib/alexandria/logging.rb +4 -6
  47. data/lib/alexandria/models/book.rb +2 -0
  48. data/lib/alexandria/models/library.rb +10 -20
  49. data/lib/alexandria/net.rb +2 -0
  50. data/lib/alexandria/preferences.rb +10 -14
  51. data/lib/alexandria/scanners.rb +2 -0
  52. data/lib/alexandria/scanners/cuecat.rb +4 -2
  53. data/lib/alexandria/scanners/keyboard.rb +2 -0
  54. data/lib/alexandria/smart_library.rb +4 -3
  55. data/lib/alexandria/ui.rb +2 -0
  56. data/lib/alexandria/ui/builder_base.rb +2 -0
  57. data/lib/alexandria/ui/callbacks.rb +8 -12
  58. data/lib/alexandria/ui/columns.rb +2 -0
  59. data/lib/alexandria/ui/completion_models.rb +2 -0
  60. data/lib/alexandria/ui/dialogs/about_dialog.rb +3 -1
  61. data/lib/alexandria/ui/dialogs/acquire_dialog.rb +11 -17
  62. data/lib/alexandria/ui/dialogs/alert_dialog.rb +2 -0
  63. data/lib/alexandria/ui/dialogs/bad_isbns_dialog.rb +10 -2
  64. data/lib/alexandria/ui/dialogs/barcode_animation.rb +2 -0
  65. data/lib/alexandria/ui/dialogs/book_properties_dialog.rb +5 -9
  66. data/lib/alexandria/ui/dialogs/book_properties_dialog_base.rb +3 -3
  67. data/lib/alexandria/ui/dialogs/export_dialog.rb +3 -3
  68. data/lib/alexandria/ui/dialogs/import_dialog.rb +2 -2
  69. data/lib/alexandria/ui/dialogs/misc_dialogs.rb +6 -4
  70. data/lib/alexandria/ui/dialogs/new_book_dialog.rb +22 -31
  71. data/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb +3 -3
  72. data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +3 -3
  73. data/lib/alexandria/ui/dialogs/preferences_dialog.rb +8 -18
  74. data/lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb +2 -0
  75. data/lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb +4 -6
  76. data/lib/alexandria/ui/dndable.rb +4 -2
  77. data/lib/alexandria/ui/icons.rb +3 -3
  78. data/lib/alexandria/ui/iconview.rb +3 -3
  79. data/lib/alexandria/ui/iconview_tooltips.rb +4 -6
  80. data/lib/alexandria/ui/init.rb +2 -0
  81. data/lib/alexandria/ui/libraries_combo.rb +2 -0
  82. data/lib/alexandria/ui/listview.rb +15 -12
  83. data/lib/alexandria/ui/main_app.rb +2 -0
  84. data/lib/alexandria/ui/multi_drag_treeview.rb +2 -0
  85. data/lib/alexandria/ui/sidepane.rb +8 -6
  86. data/lib/alexandria/ui/sound.rb +2 -0
  87. data/lib/alexandria/ui/ui_manager.rb +37 -43
  88. data/lib/alexandria/undo_manager.rb +2 -0
  89. data/lib/alexandria/version.rb +5 -3
  90. data/lib/alexandria/web_themes.rb +2 -0
  91. data/spec/alexandria/book_providers_spec.rb +12 -49
  92. data/spec/alexandria/book_spec.rb +4 -2
  93. data/spec/alexandria/library_spec.rb +2 -0
  94. data/spec/alexandria/preferences_spec.rb +2 -0
  95. data/spec/alexandria/scanners/cuecat_spec.rb +2 -0
  96. data/spec/alexandria/smart_library_spec.rb +3 -1
  97. data/spec/alexandria/ui/dialogs_spec.rb +2 -0
  98. data/spec/alexandria/ui/iconview_spec.rb +2 -0
  99. data/spec/alexandria/ui/main_app_spec.rb +2 -0
  100. data/spec/alexandria/ui/sidepane_spec.rb +2 -0
  101. data/spec/alexandria/ui/sound_spec.rb +2 -0
  102. data/spec/alexandria/ui/ui_manager_spec.rb +2 -0
  103. data/spec/alexandria/ui/ui_utilities_spec.rb +2 -0
  104. data/spec/alexandria/utilities_spec.rb +2 -0
  105. data/spec/spec_helper.rb +2 -0
  106. data/tasks/dogtail.rake +2 -0
  107. data/tasks/setup.rb +3 -1
  108. data/tasks/spec.rake +2 -0
  109. data/util/rake/fileinstall.rb +6 -12
  110. data/util/rake/gettextgenerate.rb +9 -64
  111. data/util/rake/omfgenerate.rb +3 -3
  112. metadata +21 -37
  113. data/INSTALL.rdoc +0 -148
  114. data/lib/alexandria/book_providers/bol_it.rb +0 -160
  115. data/lib/alexandria/book_providers/ibs_it.rb +0 -147
  116. data/lib/alexandria/book_providers/webster_it.rb +0 -167
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0ee9c80a67f5db92fba609abcc676763cea3caa7
4
- data.tar.gz: 845f6aada1d8241f8b9401cee1964e0d5a411b7f
2
+ SHA256:
3
+ metadata.gz: 68616d81acb2df9a9457285c4393b569a4d217c9e5b25371ad0e2addf3e24d93
4
+ data.tar.gz: 2f3f920293bfc91c7d23cb380c2b0a9806ca0eecf3112639ff859db8fee10faf
5
5
  SHA512:
6
- metadata.gz: 6e4f738354ff4521abd4fafb0c70cb6467991083ca2b1d641070c2dbfaa0d516c93e79f98507c8500726447c9d03a284f94e3193b8e9c5d40c5fbd94a11a8f7a
7
- data.tar.gz: cbf664f9496c5703da2892f935b93836f6eec3688ffc1f45c6772b28c35f036f4ca1a1744238a2b7f731821b25e9dd4e3bc433a12ed52046cee9ffa2ffaa2c9e
6
+ metadata.gz: e80f5e730a5d0e81e776968853974043cd672abf8e9aaffd568a9ae82c80c70c5a6ff86a6306072809690743e96fb473b32c292a09f2fc349b6a5b60abdbf07c
7
+ data.tar.gz: a7a037e7ac5cb5c91cf2f707fa77a34996fd1935cce22113fd0555868d146e47da892d64206bc61f065a3c853e4603d6e80c1e117be347d378e0ee9c989a4f32
data/.gitignore CHANGED
@@ -10,6 +10,5 @@ share/locale/
10
10
  share/omf/alexandria/*.omf
11
11
  pkg/
12
12
  coverage/
13
- doc/
14
13
  tmp/
15
14
  *.gem
@@ -1,18 +1,44 @@
1
1
  AllCops:
2
2
  Exclude:
3
+ - 'lib/alexandria/default_preferences.rb'
3
4
  - 'pkg/**/*'
5
+ TargetRubyVersion: 2.3
6
+
7
+ # Dot at end of line makes it clearer that the line is not done
8
+ Layout/DotPosition:
9
+ EnforcedStyle: trailing
10
+
11
+ # Multi-line assignment should be simply indented. Aligning them makes it even
12
+ # harder to keep a sane line length.
13
+ Layout/MultilineOperationIndentation:
14
+ EnforcedStyle: indented
15
+
16
+ Layout/MultilineMethodCallBraceLayout:
17
+ EnforcedStyle: same_line
18
+
19
+ # Multi-line method calls should be simply indented. Aligning them makes it
20
+ # even harder to keep a sane line length.
21
+ Layout/MultilineMethodCallIndentation:
22
+ EnforcedStyle: indented
23
+
24
+ # Make syntax for empty and filled blocks consistent
25
+ Layout/SpaceBeforeBlockBraces:
26
+ EnforcedStyleForEmptyBraces: space
4
27
 
5
28
  # Allow if (foo = get_foo) style
6
29
  Lint/AssignmentInCondition:
7
30
  AllowSafeAssignment: true
8
31
 
9
- # Require lines to fit in pull requests.
10
- # This config is commented out temporarily to allow .rubocop_todo.yml to
11
- # configure this cop.
12
- #Metrics/LineLength:
13
- #Max: 92
32
+ # Blocks in specs can be any size
33
+ Metrics/BlockLength:
34
+ Exclude:
35
+ - 'spec/**/*'
36
+
37
+ # Be lenient with line length
38
+ Metrics/LineLength:
39
+ Max: 110
14
40
 
15
- Style/AccessorMethodName:
41
+ Naming/AccessorMethodName:
16
42
  Enabled: false
17
43
 
18
44
  # Allow multi-line blocks of all sorts
@@ -23,31 +49,14 @@ Style/BlockDelimiters:
23
49
  Style/AndOr:
24
50
  Enabled: conditionals
25
51
 
26
- # Dot at end of line makes it clearer that the line is not done
27
- Style/DotPosition:
28
- EnforcedStyle: trailing
52
+ # Prefer old school format strings
53
+ Style/FormatStringToken:
54
+ EnforcedStyle: unannotated
29
55
 
30
56
  # Require at least two dependent lines before suggesting a guard clause
31
57
  Style/GuardClause:
32
58
  MinBodyLength: 2
33
59
 
34
- # Don't use if or unless as modifier if the line gets too long
35
- Style/IfUnlessModifier:
36
- MaxLineLength: 60
37
-
38
- # Multi-line assignment should be simply indented. Aligning them makes it even
39
- # harder to keep a sane line length.
40
- Style/MultilineOperationIndentation:
41
- EnforcedStyle: indented
42
-
43
- Style/MultilineMethodCallBraceLayout:
44
- EnforcedStyle: same_line
45
-
46
- # Multi-line method calls should be simply indented. Aligning them makes it
47
- # even harder to keep a sane line length.
48
- Style/MultilineMethodCallIndentation:
49
- EnforcedStyle: indented
50
-
51
60
  # Not all objects that handle #== 0 also handle #zero?
52
61
  Style/NumericPredicate:
53
62
  Enabled: false
@@ -56,6 +65,11 @@ Style/NumericPredicate:
56
65
  Style/Next:
57
66
  Enabled: false
58
67
 
68
+ # Use older RuboCop default
69
+ Style/PercentLiteralDelimiters:
70
+ PreferredDelimiters:
71
+ '%w': ()
72
+
59
73
  # Allow explicit return with multiple return values
60
74
  Style/RedundantReturn:
61
75
  AllowMultipleReturnValues: true
@@ -67,12 +81,16 @@ Style/SignalException:
67
81
  Style/SingleLineBlockParams:
68
82
  Enabled: false
69
83
 
84
+ # I like to have symbols always look like symbols
85
+ Style/SymbolArray:
86
+ EnforcedStyle: brackets
87
+
70
88
  # Accessors are only trivial if they match the ivar name.
71
89
  Style/TrivialAccessors:
72
90
  ExactNameMatch: true
73
91
 
74
92
  # Allow semantic choice of trailing comma
75
- Style/TrailingCommaInLiteral:
93
+ Style/TrailingCommaInArrayLiteral:
76
94
  Enabled: false
77
95
 
78
96
  # Alexandria uses regular arrays
@@ -1,11 +1,22 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-11-01 21:29:40 +0100 using RuboCop version 0.45.0.
3
+ # on 2018-03-18 12:56:55 +0100 using RuboCop version 0.53.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
+ # Offense count: 12
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: EnforcedStyle.
12
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
13
+ Layout/IndentHeredoc:
14
+ Exclude:
15
+ - 'Rakefile'
16
+ - 'bin/alexandria'
17
+ - 'lib/alexandria/export_library.rb'
18
+ - 'lib/alexandria/ui/dialogs/about_dialog.rb'
19
+
9
20
  # Offense count: 6
10
21
  Lint/HandleExceptions:
11
22
  Exclude:
@@ -21,77 +32,130 @@ Lint/IneffectiveAccessModifier:
21
32
  - 'lib/alexandria/web_themes.rb'
22
33
 
23
34
  # Offense count: 1
24
- Lint/LiteralInCondition:
35
+ Lint/UnreachableCode:
25
36
  Exclude:
26
- - 'util/rake/gettextgenerate.rb'
37
+ - 'lib/alexandria/ui/dialogs/export_dialog.rb'
27
38
 
28
39
  # Offense count: 1
29
- Lint/UnreachableCode:
40
+ Lint/UriEscapeUnescape:
30
41
  Exclude:
31
- - 'lib/alexandria/ui/dialogs/export_dialog.rb'
42
+ - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
32
43
 
33
44
  # Offense count: 2
34
- # Configuration parameters: ContextCreatingMethods.
45
+ # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
35
46
  Lint/UselessAccessModifier:
36
47
  Exclude:
37
48
  - 'lib/alexandria/logging.rb'
38
49
 
39
- # Offense count: 172
50
+ # Offense count: 2
51
+ Lint/UselessAssignment:
52
+ Exclude:
53
+ - 'lib/alexandria/models/library.rb'
54
+ - 'lib/alexandria/smart_library.rb'
55
+
56
+ # Offense count: 165
40
57
  Metrics/AbcSize:
41
58
  Max: 161
42
59
 
43
- # Offense count: 21
44
- # Configuration parameters: CountComments.
60
+ # Offense count: 22
61
+ # Configuration parameters: CountComments, ExcludedMethods.
45
62
  Metrics/BlockLength:
46
- Max: 68
63
+ Max: 67
47
64
 
48
- # Offense count: 14
65
+ # Offense count: 13
66
+ # Configuration parameters: CountBlocks.
49
67
  Metrics/BlockNesting:
50
68
  Max: 5
51
69
 
52
- # Offense count: 33
70
+ # Offense count: 32
53
71
  # Configuration parameters: CountComments.
54
72
  Metrics/ClassLength:
55
73
  Max: 994
56
74
 
57
- # Offense count: 75
75
+ # Offense count: 68
58
76
  Metrics/CyclomaticComplexity:
59
77
  Max: 28
60
78
 
61
- # Offense count: 353
62
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
63
- # URISchemes: http, https
64
- Metrics/LineLength:
65
- Max: 294
66
-
67
- # Offense count: 228
79
+ # Offense count: 219
68
80
  # Configuration parameters: CountComments.
69
81
  Metrics/MethodLength:
70
- Max: 113
82
+ Max: 109
71
83
 
72
84
  # Offense count: 2
73
85
  # Configuration parameters: CountComments.
74
86
  Metrics/ModuleLength:
75
- Max: 356
87
+ Max: 348
76
88
 
77
89
  # Offense count: 10
78
90
  # Configuration parameters: CountKeywordArgs.
79
91
  Metrics/ParameterLists:
80
92
  Max: 7
81
93
 
82
- # Offense count: 74
94
+ # Offense count: 69
83
95
  Metrics/PerceivedComplexity:
84
96
  Max: 29
85
97
 
86
- # Offense count: 3
87
- Style/ClassAndModuleCamelCase:
98
+ # Offense count: 8
99
+ Naming/BinaryOperatorParameterName:
100
+ Exclude:
101
+ - 'lib/alexandria/book_providers.rb'
102
+ - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
103
+ - 'lib/alexandria/models/book.rb'
104
+ - 'lib/alexandria/models/library.rb'
105
+ - 'lib/alexandria/smart_library.rb'
106
+ - 'lib/alexandria/ui/multi_drag_treeview.rb'
107
+
108
+ # Offense count: 15
109
+ # Configuration parameters: Blacklist.
110
+ # Blacklist: END, (?-mix:EO[A-Z]{1})
111
+ Naming/HeredocDelimiterNaming:
88
112
  Exclude:
89
- - 'lib/alexandria/book_providers/bol_it.rb'
90
- - 'lib/alexandria/book_providers/ibs_it.rb'
91
- - 'lib/alexandria/book_providers/webster_it.rb'
113
+ - 'Rakefile'
114
+ - 'bin/alexandria'
115
+ - 'lib/alexandria/export_library.rb'
116
+ - 'lib/alexandria/ui/dialogs/about_dialog.rb'
117
+
118
+ # Offense count: 2
119
+ Naming/MemoizedInstanceVariableName:
120
+ Exclude:
121
+ - 'lib/alexandria/logging.rb'
122
+
123
+ # Offense count: 1
124
+ # Configuration parameters: EnforcedStyle.
125
+ # SupportedStyles: snake_case, camelCase
126
+ Naming/MethodName:
127
+ Exclude:
128
+ - 'lib/alexandria/book_providers/mcu.rb'
129
+
130
+ # Offense count: 4
131
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
132
+ # NamePrefix: is_, has_, have_
133
+ # NamePrefixBlacklist: is_, has_, have_
134
+ # NameWhitelist: is_a?
135
+ # MethodDefinitionMacros: define_method, define_singleton_method
136
+ Naming/PredicateName:
137
+ Exclude:
138
+ - 'spec/**/*'
139
+ - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
140
+ - 'lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb'
141
+ - 'lib/alexandria/web_themes.rb'
142
+
143
+ # Offense count: 10
144
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
145
+ # AllowedNames: io, id
146
+ Naming/UncommunicativeMethodParamName:
147
+ Exclude:
148
+ - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
149
+ - 'lib/alexandria/book_providers/proxis.rb'
150
+ - 'lib/alexandria/book_providers/pseudomarc.rb'
151
+ - 'lib/alexandria/smart_library.rb'
152
+ - 'lib/alexandria/ui/callbacks.rb'
153
+ - 'lib/alexandria/ui/init.rb'
154
+ - 'util/rake/fileinstall.rb'
92
155
 
93
156
  # Offense count: 8
94
- # Configuration parameters: EnforcedStyle, SupportedStyles.
157
+ # Cop supports --auto-correct.
158
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
95
159
  # SupportedStyles: nested, compact
96
160
  Style/ClassAndModuleChildren:
97
161
  Exclude:
@@ -112,13 +176,23 @@ Style/ClassVars:
112
176
  - 'lib/alexandria/ui/dialogs/book_properties_dialog_base.rb'
113
177
  - 'lib/alexandria/ui/dialogs/new_book_dialog.rb'
114
178
 
115
- # Offense count: 121
179
+ # Offense count: 12
180
+ Style/CommentedKeyword:
181
+ Exclude:
182
+ - 'lib/alexandria/book_providers.rb'
183
+ - 'lib/alexandria/book_providers/barnes_and_noble.rb'
184
+ - 'lib/alexandria/book_providers/worldcat.rb'
185
+ - 'lib/alexandria/ui/dialogs/book_properties_dialog_base.rb'
186
+ - 'lib/alexandria/ui/dialogs/new_book_dialog.rb'
187
+ - 'util/rake/fileinstall.rb'
188
+
189
+ # Offense count: 118
116
190
  Style/Documentation:
117
191
  Enabled: false
118
192
 
119
193
  # Offense count: 6
120
- # Configuration parameters: EnforcedStyle, SupportedStyles.
121
- # SupportedStyles: for, each
194
+ # Configuration parameters: EnforcedStyle.
195
+ # SupportedStyles: each, for
122
196
  Style/For:
123
197
  Exclude:
124
198
  - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
@@ -126,26 +200,6 @@ Style/For:
126
200
  - 'lib/alexandria/book_providers/renaud.rb'
127
201
  - 'spec/alexandria/library_spec.rb'
128
202
 
129
- # Offense count: 25
130
- # Configuration parameters: EnforcedStyle, SupportedStyles.
131
- # SupportedStyles: format, sprintf, percent
132
- Style/FormatString:
133
- Exclude:
134
- - 'lib/alexandria/book_providers.rb'
135
- - 'lib/alexandria/book_providers/adlibris.rb'
136
- - 'lib/alexandria/book_providers/barnes_and_noble.rb'
137
- - 'lib/alexandria/book_providers/deastore.rb'
138
- - 'lib/alexandria/book_providers/siciliano.rb'
139
- - 'lib/alexandria/book_providers/thalia.rb'
140
- - 'lib/alexandria/book_providers/worldcat.rb'
141
- - 'lib/alexandria/export_library.rb'
142
- - 'lib/alexandria/ui/dialogs/acquire_dialog.rb'
143
- - 'lib/alexandria/ui/dialogs/misc_dialogs.rb'
144
- - 'lib/alexandria/ui/dialogs/new_book_dialog.rb'
145
- - 'lib/alexandria/ui/dndable.rb'
146
- - 'lib/alexandria/ui/listview.rb'
147
- - 'lib/alexandria/ui/ui_manager.rb'
148
-
149
203
  # Offense count: 34
150
204
  # Configuration parameters: MinBodyLength.
151
205
  Style/GuardClause:
@@ -171,50 +225,37 @@ Style/MethodMissing:
171
225
  - 'lib/alexandria/book_providers.rb'
172
226
  - 'lib/alexandria/preferences.rb'
173
227
 
174
- # Offense count: 1
175
- # Configuration parameters: EnforcedStyle, SupportedStyles.
176
- # SupportedStyles: snake_case, camelCase
177
- Style/MethodName:
178
- Exclude:
179
- - 'lib/alexandria/book_providers/mcu.rb'
180
-
181
228
  # Offense count: 1
182
229
  Style/MultilineTernaryOperator:
183
230
  Exclude:
184
231
  - 'lib/alexandria/ui/listview.rb'
185
232
 
186
- # Offense count: 1
187
- Style/NestedTernaryOperator:
188
- Exclude:
189
- - 'lib/alexandria/ui/ui_manager.rb'
190
-
191
- # Offense count: 8
192
- Style/OpMethod:
233
+ # Offense count: 23
234
+ # Cop supports --auto-correct.
235
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
236
+ # SupportedStyles: slashes, percent_r, mixed
237
+ Style/RegexpLiteral:
193
238
  Exclude:
194
- - 'lib/alexandria/book_providers.rb'
239
+ - 'lib/alexandria/book_providers/adlibris.rb'
195
240
  - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
196
- - 'lib/alexandria/models/book.rb'
241
+ - 'lib/alexandria/book_providers/douban.rb'
242
+ - 'lib/alexandria/book_providers/mcu.rb'
243
+ - 'lib/alexandria/book_providers/proxis.rb'
244
+ - 'lib/alexandria/book_providers/pseudomarc.rb'
245
+ - 'lib/alexandria/book_providers/renaud.rb'
246
+ - 'lib/alexandria/book_providers/siciliano.rb'
247
+ - 'lib/alexandria/book_providers/thalia.rb'
197
248
  - 'lib/alexandria/models/library.rb'
198
- - 'lib/alexandria/smart_library.rb'
199
- - 'lib/alexandria/ui/multi_drag_treeview.rb'
200
-
201
- # Offense count: 4
202
- # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
203
- # NamePrefix: is_, has_, have_
204
- # NamePrefixBlacklist: is_, has_, have_
205
- # NameWhitelist: is_a?
206
- Style/PredicateName:
207
- Exclude:
208
- - 'spec/**/*'
209
- - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
210
- - 'lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb'
211
- - 'lib/alexandria/web_themes.rb'
249
+ - 'lib/alexandria/ui/dialogs/book_properties_dialog_base.rb'
250
+ - 'lib/alexandria/ui/sidepane.rb'
251
+ - 'util/rake/fileinstall.rb'
252
+ - 'util/rake/gettextgenerate.rb'
212
253
 
213
- # Offense count: 41
254
+ # Offense count: 78
214
255
  # Cop supports --auto-correct.
215
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
216
- # SupportedStyles: slashes, percent_r, mixed
217
- Style/RegexpLiteral:
256
+ # Configuration parameters: EnforcedStyle.
257
+ # SupportedStyles: implicit, explicit
258
+ Style/RescueStandardError:
218
259
  Enabled: false
219
260
 
220
261
  # Offense count: 3
data/.simplecov CHANGED
@@ -1,3 +1,4 @@
1
1
  SimpleCov.start do
2
2
  track_files 'lib/**/*.rb'
3
+ add_filter '/spec/'
3
4
  end
data/.yardopts CHANGED
@@ -1 +1 @@
1
- - INSTALL.rdoc
1
+ - INSTALL.md