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.
- checksums.yaml +5 -5
- data/.gitignore +0 -1
- data/.rubocop.yml +45 -27
- data/.rubocop_todo.yml +127 -86
- data/.simplecov +1 -0
- data/.yardopts +1 -1
- data/CHANGELOG.md +5 -0
- data/ChangeLog.0 +33 -35
- data/Gemfile +2 -2
- data/INSTALL.md +152 -0
- data/Rakefile +12 -10
- data/alexandria-book-collection-manager.gemspec +5 -5
- data/bin/alexandria +2 -1
- data/doc/AUTHORS +61 -0
- data/doc/BUGS +31 -0
- data/doc/FAQ +369 -0
- data/doc/HACKING +19 -0
- data/doc/NEWS +341 -0
- data/doc/alexandria.1 +120 -0
- data/doc/cuecat_support.rdoc +67 -0
- data/doc/dependency_decisions.yml +61 -0
- data/lib/alexandria.rb +2 -0
- data/lib/alexandria/about.rb +7 -6
- data/lib/alexandria/book_providers.rb +6 -6
- data/lib/alexandria/book_providers/adlibris.rb +9 -14
- data/lib/alexandria/book_providers/amazon_aws.rb +29 -33
- data/lib/alexandria/book_providers/amazon_ecs_util.rb +10 -14
- data/lib/alexandria/book_providers/barnes_and_noble.rb +9 -11
- data/lib/alexandria/book_providers/deastore.rb +12 -20
- data/lib/alexandria/book_providers/douban.rb +9 -15
- data/lib/alexandria/book_providers/mcu.rb +26 -13
- data/lib/alexandria/book_providers/proxis.rb +9 -15
- data/lib/alexandria/book_providers/pseudomarc.rb +15 -27
- data/lib/alexandria/book_providers/renaud.rb +18 -9
- data/lib/alexandria/book_providers/siciliano.rb +8 -9
- data/lib/alexandria/book_providers/thalia.rb +6 -6
- data/lib/alexandria/book_providers/web.rb +2 -0
- data/lib/alexandria/book_providers/worldcat.rb +6 -7
- data/lib/alexandria/book_providers/z3950.rb +19 -10
- data/lib/alexandria/config.rb +4 -2
- data/lib/alexandria/console.rb +2 -0
- data/lib/alexandria/execution_queue.rb +2 -2
- data/lib/alexandria/export_library.rb +14 -18
- data/lib/alexandria/import_library.rb +8 -16
- data/lib/alexandria/import_library_csv.rb +5 -52
- data/lib/alexandria/logging.rb +4 -6
- data/lib/alexandria/models/book.rb +2 -0
- data/lib/alexandria/models/library.rb +10 -20
- data/lib/alexandria/net.rb +2 -0
- data/lib/alexandria/preferences.rb +10 -14
- data/lib/alexandria/scanners.rb +2 -0
- data/lib/alexandria/scanners/cuecat.rb +4 -2
- data/lib/alexandria/scanners/keyboard.rb +2 -0
- data/lib/alexandria/smart_library.rb +4 -3
- data/lib/alexandria/ui.rb +2 -0
- data/lib/alexandria/ui/builder_base.rb +2 -0
- data/lib/alexandria/ui/callbacks.rb +8 -12
- data/lib/alexandria/ui/columns.rb +2 -0
- data/lib/alexandria/ui/completion_models.rb +2 -0
- data/lib/alexandria/ui/dialogs/about_dialog.rb +3 -1
- data/lib/alexandria/ui/dialogs/acquire_dialog.rb +11 -17
- data/lib/alexandria/ui/dialogs/alert_dialog.rb +2 -0
- data/lib/alexandria/ui/dialogs/bad_isbns_dialog.rb +10 -2
- data/lib/alexandria/ui/dialogs/barcode_animation.rb +2 -0
- data/lib/alexandria/ui/dialogs/book_properties_dialog.rb +5 -9
- data/lib/alexandria/ui/dialogs/book_properties_dialog_base.rb +3 -3
- data/lib/alexandria/ui/dialogs/export_dialog.rb +3 -3
- data/lib/alexandria/ui/dialogs/import_dialog.rb +2 -2
- data/lib/alexandria/ui/dialogs/misc_dialogs.rb +6 -4
- data/lib/alexandria/ui/dialogs/new_book_dialog.rb +22 -31
- data/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb +3 -3
- data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +3 -3
- data/lib/alexandria/ui/dialogs/preferences_dialog.rb +8 -18
- data/lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb +2 -0
- data/lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb +4 -6
- data/lib/alexandria/ui/dndable.rb +4 -2
- data/lib/alexandria/ui/icons.rb +3 -3
- data/lib/alexandria/ui/iconview.rb +3 -3
- data/lib/alexandria/ui/iconview_tooltips.rb +4 -6
- data/lib/alexandria/ui/init.rb +2 -0
- data/lib/alexandria/ui/libraries_combo.rb +2 -0
- data/lib/alexandria/ui/listview.rb +15 -12
- data/lib/alexandria/ui/main_app.rb +2 -0
- data/lib/alexandria/ui/multi_drag_treeview.rb +2 -0
- data/lib/alexandria/ui/sidepane.rb +8 -6
- data/lib/alexandria/ui/sound.rb +2 -0
- data/lib/alexandria/ui/ui_manager.rb +37 -43
- data/lib/alexandria/undo_manager.rb +2 -0
- data/lib/alexandria/version.rb +5 -3
- data/lib/alexandria/web_themes.rb +2 -0
- data/spec/alexandria/book_providers_spec.rb +12 -49
- data/spec/alexandria/book_spec.rb +4 -2
- data/spec/alexandria/library_spec.rb +2 -0
- data/spec/alexandria/preferences_spec.rb +2 -0
- data/spec/alexandria/scanners/cuecat_spec.rb +2 -0
- data/spec/alexandria/smart_library_spec.rb +3 -1
- data/spec/alexandria/ui/dialogs_spec.rb +2 -0
- data/spec/alexandria/ui/iconview_spec.rb +2 -0
- data/spec/alexandria/ui/main_app_spec.rb +2 -0
- data/spec/alexandria/ui/sidepane_spec.rb +2 -0
- data/spec/alexandria/ui/sound_spec.rb +2 -0
- data/spec/alexandria/ui/ui_manager_spec.rb +2 -0
- data/spec/alexandria/ui/ui_utilities_spec.rb +2 -0
- data/spec/alexandria/utilities_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/tasks/dogtail.rake +2 -0
- data/tasks/setup.rb +3 -1
- data/tasks/spec.rake +2 -0
- data/util/rake/fileinstall.rb +6 -12
- data/util/rake/gettextgenerate.rb +9 -64
- data/util/rake/omfgenerate.rb +3 -3
- metadata +21 -37
- data/INSTALL.rdoc +0 -148
- data/lib/alexandria/book_providers/bol_it.rb +0 -160
- data/lib/alexandria/book_providers/ibs_it.rb +0 -147
- data/lib/alexandria/book_providers/webster_it.rb +0 -167
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68616d81acb2df9a9457285c4393b569a4d217c9e5b25371ad0e2addf3e24d93
|
4
|
+
data.tar.gz: 2f3f920293bfc91c7d23cb380c2b0a9806ca0eecf3112639ff859db8fee10faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80f5e730a5d0e81e776968853974043cd672abf8e9aaffd568a9ae82c80c70c5a6ff86a6306072809690743e96fb473b32c292a09f2fc349b6a5b60abdbf07c
|
7
|
+
data.tar.gz: a7a037e7ac5cb5c91cf2f707fa77a34996fd1935cce22113fd0555868d146e47da892d64206bc61f065a3c853e4603d6e80c1e117be347d378e0ee9c989a4f32
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -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
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
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
|
-
#
|
27
|
-
Style/
|
28
|
-
EnforcedStyle:
|
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/
|
93
|
+
Style/TrailingCommaInArrayLiteral:
|
76
94
|
Enabled: false
|
77
95
|
|
78
96
|
# Alexandria uses regular arrays
|
data/.rubocop_todo.yml
CHANGED
@@ -1,11 +1,22 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
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/
|
35
|
+
Lint/UnreachableCode:
|
25
36
|
Exclude:
|
26
|
-
- '
|
37
|
+
- 'lib/alexandria/ui/dialogs/export_dialog.rb'
|
27
38
|
|
28
39
|
# Offense count: 1
|
29
|
-
Lint/
|
40
|
+
Lint/UriEscapeUnescape:
|
30
41
|
Exclude:
|
31
|
-
- 'lib/alexandria/
|
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:
|
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:
|
44
|
-
# Configuration parameters: CountComments.
|
60
|
+
# Offense count: 22
|
61
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
45
62
|
Metrics/BlockLength:
|
46
|
-
Max:
|
63
|
+
Max: 67
|
47
64
|
|
48
|
-
# Offense count:
|
65
|
+
# Offense count: 13
|
66
|
+
# Configuration parameters: CountBlocks.
|
49
67
|
Metrics/BlockNesting:
|
50
68
|
Max: 5
|
51
69
|
|
52
|
-
# Offense count:
|
70
|
+
# Offense count: 32
|
53
71
|
# Configuration parameters: CountComments.
|
54
72
|
Metrics/ClassLength:
|
55
73
|
Max: 994
|
56
74
|
|
57
|
-
# Offense count:
|
75
|
+
# Offense count: 68
|
58
76
|
Metrics/CyclomaticComplexity:
|
59
77
|
Max: 28
|
60
78
|
|
61
|
-
# Offense count:
|
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:
|
82
|
+
Max: 109
|
71
83
|
|
72
84
|
# Offense count: 2
|
73
85
|
# Configuration parameters: CountComments.
|
74
86
|
Metrics/ModuleLength:
|
75
|
-
Max:
|
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:
|
94
|
+
# Offense count: 69
|
83
95
|
Metrics/PerceivedComplexity:
|
84
96
|
Max: 29
|
85
97
|
|
86
|
-
# Offense count:
|
87
|
-
|
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
|
-
- '
|
90
|
-
- '
|
91
|
-
- 'lib/alexandria/
|
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
|
-
#
|
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:
|
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
|
121
|
-
# SupportedStyles:
|
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:
|
187
|
-
|
188
|
-
|
189
|
-
|
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/
|
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/
|
199
|
-
- 'lib/alexandria/ui/
|
200
|
-
|
201
|
-
|
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:
|
254
|
+
# Offense count: 78
|
214
255
|
# Cop supports --auto-correct.
|
215
|
-
# Configuration parameters: EnforcedStyle
|
216
|
-
# SupportedStyles:
|
217
|
-
Style/
|
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
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
- INSTALL.
|
1
|
+
- INSTALL.md
|