alexandria-book-collection-manager 0.7.1 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +9 -0
- data/.gitignore +5 -2
- data/.hound.yml +2 -0
- data/.rubocop.yml +113 -45
- data/.rubocop_todo.yml +82 -170
- data/.simplecov +5 -1
- data/.travis.yml +45 -0
- data/.yardopts +1 -1
- data/CHANGELOG.md +60 -0
- data/ChangeLog.0 +33 -35
- data/Gemfile +6 -5
- data/INSTALL.md +164 -0
- data/README.md +52 -42
- data/Rakefile +95 -109
- data/TODO.md +9 -1
- data/alexandria-book-collection-manager.gemspec +52 -45
- data/bin/alexandria +31 -53
- data/doc/AUTHORS +61 -0
- data/doc/BUGS +31 -0
- data/doc/FAQ +365 -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 +80 -0
- data/lib/alexandria.rb +29 -37
- data/lib/alexandria/about.rb +52 -51
- data/lib/alexandria/book_providers.rb +94 -101
- data/lib/alexandria/book_providers/adlibris.rb +45 -85
- data/lib/alexandria/book_providers/amazon_aws.rb +105 -113
- data/lib/alexandria/book_providers/amazon_ecs_util.rb +293 -324
- data/lib/alexandria/book_providers/barnes_and_noble.rb +54 -53
- data/lib/alexandria/book_providers/douban.rb +29 -51
- data/lib/alexandria/book_providers/proxis.rb +42 -59
- data/lib/alexandria/book_providers/pseudomarc.rb +79 -99
- data/lib/alexandria/book_providers/siciliano.rb +68 -70
- data/lib/alexandria/book_providers/thalia.rb +46 -45
- data/lib/alexandria/book_providers/web.rb +17 -33
- data/lib/alexandria/book_providers/worldcat.rb +74 -102
- data/lib/alexandria/book_providers/z3950.rb +170 -174
- data/lib/alexandria/config.rb +5 -3
- data/lib/alexandria/console.rb +10 -21
- data/lib/alexandria/default_preferences.rb +37 -0
- data/lib/alexandria/execution_queue.rb +17 -15
- data/lib/alexandria/export_format.rb +47 -0
- data/lib/alexandria/export_library.rb +188 -302
- data/lib/alexandria/import_library.rb +114 -155
- data/lib/alexandria/import_library_csv.rb +46 -96
- data/lib/alexandria/library_collection.rb +79 -0
- data/lib/alexandria/library_sort_order.rb +45 -0
- data/lib/alexandria/library_store.rb +233 -0
- data/lib/alexandria/logging.rb +15 -19
- data/lib/alexandria/models/book.rb +15 -20
- data/lib/alexandria/models/library.rb +81 -363
- data/lib/alexandria/net.rb +7 -6
- data/lib/alexandria/preferences.rb +73 -91
- data/lib/alexandria/scanners.rb +4 -2
- data/lib/alexandria/scanners/{cuecat.rb → cue_cat.rb} +24 -20
- data/lib/alexandria/scanners/keyboard.rb +10 -8
- data/lib/alexandria/smart_library.rb +135 -171
- data/lib/alexandria/ui.rb +17 -15
- data/lib/alexandria/ui/about_dialog.rb +49 -0
- data/lib/alexandria/ui/{dialogs/acquire_dialog.rb → acquire_dialog.rb} +129 -152
- data/lib/alexandria/ui/alert_dialog.rb +64 -0
- data/lib/alexandria/ui/bad_isbns_dialog.rb +41 -0
- data/lib/alexandria/ui/{dialogs/barcode_animation.rb → barcode_animation.rb} +18 -15
- data/lib/alexandria/ui/{dialogs/book_properties_dialog.rb → book_properties_dialog.rb} +44 -61
- data/lib/alexandria/ui/{dialogs/book_properties_dialog_base.rb → book_properties_dialog_base.rb} +84 -89
- data/lib/alexandria/ui/builder_base.rb +9 -27
- data/lib/alexandria/ui/callbacks.rb +188 -186
- data/lib/alexandria/ui/columns.rb +2 -0
- data/lib/alexandria/ui/completion_models.rb +12 -23
- data/lib/alexandria/ui/confirm_erase_dialog.rb +33 -0
- data/lib/alexandria/ui/conflict_while_copying_dialog.rb +34 -0
- data/lib/alexandria/ui/dndable.rb +10 -8
- data/lib/alexandria/ui/error_dialog.rb +25 -0
- data/lib/alexandria/ui/export_dialog.rb +139 -0
- data/lib/alexandria/ui/icons.rb +49 -65
- data/lib/alexandria/ui/iconview.rb +15 -13
- data/lib/alexandria/ui/iconview_tooltips.rb +43 -58
- data/lib/alexandria/ui/import_dialog.rb +157 -0
- data/lib/alexandria/ui/init.rb +23 -33
- data/lib/alexandria/ui/keep_bad_isbn_dialog.rb +36 -0
- data/lib/alexandria/ui/libraries_combo.rb +18 -14
- data/lib/alexandria/ui/listview.rb +77 -88
- data/lib/alexandria/ui/main_app.rb +26 -26
- data/lib/alexandria/ui/misc_dialogs.rb +10 -0
- data/lib/alexandria/ui/multi_drag_treeview.rb +30 -41
- data/lib/alexandria/ui/{dialogs/new_book_dialog.rb → new_book_dialog.rb} +168 -215
- data/lib/alexandria/ui/new_book_dialog_manual.rb +139 -0
- data/lib/alexandria/ui/new_provider_dialog.rb +100 -0
- data/lib/alexandria/ui/new_smart_library_dialog.rb +74 -0
- data/lib/alexandria/ui/preferences_dialog.rb +313 -0
- data/lib/alexandria/ui/provider_preferences_base_dialog.rb +95 -0
- data/lib/alexandria/ui/provider_preferences_dialog.rb +35 -0
- data/lib/alexandria/ui/really_delete_dialog.rb +53 -0
- data/lib/alexandria/ui/{sidepane.rb → sidepane_manager.rb} +62 -72
- data/lib/alexandria/ui/skip_entry_dialog.rb +33 -0
- data/lib/alexandria/ui/smart_library_properties_dialog.rb +60 -0
- data/lib/alexandria/ui/{dialogs/smart_library_properties_dialog_base.rb → smart_library_properties_dialog_base.rb} +96 -172
- data/lib/alexandria/ui/smart_library_rule_box.rb +119 -0
- data/lib/alexandria/ui/sound.rb +13 -13
- data/lib/alexandria/ui/ui_manager.rb +262 -283
- data/lib/alexandria/undo_manager.rb +3 -0
- data/lib/alexandria/version.rb +6 -19
- data/lib/alexandria/web_themes.rb +24 -21
- data/po/Makefile +2 -2
- data/po/cs.po +993 -880
- data/po/cy.po +957 -874
- data/po/de.po +990 -869
- data/po/el.po +989 -869
- data/po/es.po +985 -865
- data/po/fr.po +986 -870
- data/po/ga.po +907 -823
- data/po/gl.po +981 -865
- data/po/it.po +986 -868
- data/po/ja.po +969 -853
- data/po/mk.po +983 -863
- data/po/nb.po +979 -863
- data/po/nl.po +983 -864
- data/po/pl.po +1020 -969
- data/po/pt.po +988 -861
- data/po/pt_BR.po +984 -868
- data/po/ru.po +992 -873
- data/po/sk.po +987 -869
- data/po/sv.po +977 -861
- data/po/uk.po +975 -865
- data/po/zh_TW.po +976 -860
- data/schemas/alexandria.schemas +25 -3
- data/share/alexandria/glade/acquire_dialog__builder.glade +15 -12
- data/share/alexandria/glade/book_properties_dialog__builder.glade +171 -299
- data/share/alexandria/glade/main_app__builder.glade +24 -33
- data/share/alexandria/glade/new_book_dialog__builder.glade +27 -59
- data/share/alexandria/glade/preferences_dialog__builder.glade +250 -290
- data/share/gnome/help/alexandria/C/introduction.xml +0 -8
- data/share/gnome/help/alexandria/C/searching.xml +1 -1
- data/share/gnome/help/alexandria/C/smart-libraries.xml +2 -2
- data/share/gnome/help/alexandria/C/working-with-libraries.xml +1 -1
- data/share/gnome/help/alexandria/fr/alexandria.xml +1 -1
- data/share/gnome/help/alexandria/ja/introduction.xml +0 -8
- data/share/gnome/help/alexandria/ja/smart-libraries.xml +1 -1
- data/spec/alexandria/book_providers/world_cat_provider_spec.rb +160 -0
- data/spec/alexandria/book_providers_spec.rb +77 -210
- data/spec/alexandria/book_spec.rb +16 -12
- data/spec/alexandria/console_spec.rb +27 -0
- data/spec/alexandria/export_library_spec.rb +130 -0
- data/spec/alexandria/library_spec.rb +130 -172
- data/spec/alexandria/library_store_spec.rb +37 -0
- data/spec/alexandria/preferences_spec.rb +46 -17
- data/spec/alexandria/scanners/cue_cat_spec.rb +52 -0
- data/spec/alexandria/smart_library_spec.rb +32 -25
- data/spec/alexandria/ui/about_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/acquire_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/alert_dialog_spec.rb +16 -0
- data/spec/alexandria/ui/bad_isbns_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/book_properties_dialog_spec.rb +17 -0
- data/spec/alexandria/ui/confirm_erase_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/conflict_while_copying_dialog_spec.rb +16 -0
- data/spec/alexandria/ui/error_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/export_dialog_spec.rb +15 -0
- data/spec/alexandria/ui/icons_spec.rb +26 -0
- data/spec/alexandria/ui/iconview_spec.rb +9 -21
- data/spec/alexandria/ui/import_dialog_spec.rb +41 -0
- data/spec/alexandria/ui/keep_bad_isbn_dialog_spec.rb +17 -0
- data/spec/alexandria/ui/main_app_spec.rb +8 -33
- data/spec/alexandria/ui/new_book_dialog_manual_spec.rb +15 -0
- data/spec/alexandria/ui/new_book_dialog_spec.rb +22 -0
- data/spec/alexandria/ui/new_provider_dialog_spec.rb +30 -0
- data/spec/alexandria/ui/new_smart_library_dialog_spec.rb +39 -0
- data/spec/alexandria/ui/preferences_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/provider_preferences_dialog_spec.rb +34 -0
- data/spec/alexandria/ui/really_delete_dialog_spec.rb +16 -0
- data/spec/alexandria/ui/sidepane_manager_spec.rb +15 -0
- data/spec/alexandria/ui/skip_entry_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/smart_library_properties_dialog_spec.rb +32 -0
- data/spec/alexandria/ui/sound_spec.rb +4 -2
- data/spec/alexandria/ui/ui_manager_spec.rb +45 -20
- data/spec/end_to_end/basic_run_spec.rb +57 -0
- data/spec/spec_helper.rb +66 -33
- data/tasks/setup.rb +5 -3
- data/tasks/spec.rake +18 -3
- data/util/rake/fileinstall.rb +38 -40
- data/util/rake/gettextgenerate.rb +15 -70
- data/util/rake/omfgenerate.rb +10 -10
- metadata +176 -60
- data/INSTALL.rdoc +0 -148
- data/dogtail/basic_run_test.py +0 -9
- data/lib/alexandria/book_providers/bol_it.rb +0 -160
- data/lib/alexandria/book_providers/deastore.rb +0 -273
- data/lib/alexandria/book_providers/ibs_it.rb +0 -147
- data/lib/alexandria/book_providers/mcu.rb +0 -169
- data/lib/alexandria/book_providers/renaud.rb +0 -140
- data/lib/alexandria/book_providers/webster_it.rb +0 -167
- data/lib/alexandria/ui/dialogs/about_dialog.rb +0 -59
- data/lib/alexandria/ui/dialogs/alert_dialog.rb +0 -70
- data/lib/alexandria/ui/dialogs/bad_isbns_dialog.rb +0 -43
- data/lib/alexandria/ui/dialogs/export_dialog.rb +0 -171
- data/lib/alexandria/ui/dialogs/import_dialog.rb +0 -196
- data/lib/alexandria/ui/dialogs/misc_dialogs.rb +0 -85
- data/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb +0 -154
- data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +0 -74
- data/lib/alexandria/ui/dialogs/preferences_dialog.rb +0 -578
- data/lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb +0 -57
- data/spec/alexandria/scanners/cuecat_spec.rb +0 -65
- data/spec/alexandria/ui/dialogs_spec.rb +0 -94
- data/spec/alexandria/ui/sidepane_spec.rb +0 -27
- data/spec/alexandria/ui/ui_utilities_spec.rb +0 -60
- data/spec/alexandria/utilities_spec.rb +0 -50
- data/tasks/dogtail.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0c194c4c3c57f9f5f3c5168f2e59cbe0f26be22040392ba5cc6640b2fe6bb917
|
4
|
+
data.tar.gz: a76de1e82e89789ffdf419a10fa601d3bdb4b507c58ea76e9ad8b4123627da04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 367b0d80c25a8ece61d580cedb7806db56f9627c5adb151b63da5655b8495cf988a1e780fa27c88927c02c07b645ff5db452b96896d1720d82df542fb3cd3f1c
|
7
|
+
data.tar.gz: 88570773f1454e1f36c5d0268040f6ab30fd4acb41eb8c90fba9c3bb3488bc980d124705995493f7d7640f7dd9ee7e5355950b594759fd58ffc69a54e1302cbb
|
data/.gitignore
CHANGED
@@ -3,13 +3,16 @@ config.save
|
|
3
3
|
alexandria.desktop
|
4
4
|
alexandria.desktop.in.h
|
5
5
|
.svn-authors
|
6
|
-
lib/alexandria/default_preferences.rb
|
7
6
|
Gemfile.lock
|
8
7
|
.yardoc/
|
9
8
|
share/locale/
|
10
9
|
share/omf/alexandria/*.omf
|
10
|
+
spec/examples.txt
|
11
11
|
pkg/
|
12
12
|
coverage/
|
13
|
-
doc/
|
14
13
|
tmp/
|
14
|
+
po/*.po~
|
15
|
+
po/*.mo
|
16
|
+
po/*.pot
|
15
17
|
*.gem
|
18
|
+
*.glade~
|
data/.hound.yml
ADDED
data/.rubocop.yml
CHANGED
@@ -1,86 +1,154 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
require:
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rspec
|
6
|
+
- rubocop-i18n
|
7
|
+
|
1
8
|
AllCops:
|
2
9
|
Exclude:
|
10
|
+
- 'lib/alexandria/default_preferences.rb'
|
3
11
|
- 'pkg/**/*'
|
12
|
+
- 'vendor/bundle/**/*'
|
13
|
+
NewCops: enable
|
14
|
+
TargetRubyVersion: 2.5
|
15
|
+
|
16
|
+
# Choose GetText-style I18n cops
|
17
|
+
GetText:
|
18
|
+
Enabled: true
|
19
|
+
# Exclude non-user-facing code
|
20
|
+
Exclude:
|
21
|
+
- Rakefile
|
22
|
+
- 'util/**/*'
|
23
|
+
- 'spec/**/*'
|
24
|
+
RailsI18n:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
# This code has a lot of pre-existing translations with percent-style
|
28
|
+
# formatting. Maybe one day someone will re-do all of them ...
|
29
|
+
GetText/DecorateStringFormattingUsingPercent:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
# Make BeginEndAlignment behavior match EndAlignment
|
33
|
+
Layout/BeginEndAlignment:
|
34
|
+
EnforcedStyleAlignWith: begin
|
35
|
+
|
36
|
+
Layout/HashAlignment:
|
37
|
+
EnforcedColonStyle: key
|
38
|
+
EnforcedHashRocketStyle: table
|
39
|
+
|
40
|
+
# Be lenient with line length
|
41
|
+
Layout/LineLength:
|
42
|
+
Max: 92
|
43
|
+
|
44
|
+
# Don't force lonely closing parentheses
|
45
|
+
Layout/MultilineMethodCallBraceLayout:
|
46
|
+
EnforcedStyle: same_line
|
47
|
+
|
48
|
+
# Multi-line method calls should be simply indented. Aligning them makes it
|
49
|
+
# even harder to keep a sane line length.
|
50
|
+
Layout/MultilineMethodCallIndentation:
|
51
|
+
EnforcedStyle: indented
|
52
|
+
|
53
|
+
# Multi-line assignment should be simply indented. Aligning them makes it even
|
54
|
+
# harder to keep a sane line length.
|
55
|
+
Layout/MultilineOperationIndentation:
|
56
|
+
EnforcedStyle: indented
|
57
|
+
|
58
|
+
# Force consistent spacing independent of block contents
|
59
|
+
Layout/SpaceBeforeBlockBraces:
|
60
|
+
EnforcedStyleForEmptyBraces: space
|
61
|
+
|
62
|
+
# Assume the programmer knows how bracketed block syntax works
|
63
|
+
Lint/AmbiguousBlockAssociation:
|
64
|
+
Enabled: false
|
4
65
|
|
5
66
|
# Allow if (foo = get_foo) style
|
6
67
|
Lint/AssignmentInCondition:
|
7
68
|
AllowSafeAssignment: true
|
8
69
|
|
9
|
-
#
|
10
|
-
#
|
11
|
-
|
12
|
-
#Metrics/LineLength:
|
13
|
-
#Max: 92
|
14
|
-
|
15
|
-
Style/AccessorMethodName:
|
70
|
+
# This cop's reach is too broad
|
71
|
+
# See https://github.com/rubocop-hq/rubocop/pull/8480
|
72
|
+
Lint/MissingSuper:
|
16
73
|
Enabled: false
|
17
74
|
|
18
|
-
#
|
19
|
-
|
75
|
+
# Blocks in specs can be any size
|
76
|
+
Metrics/BlockLength:
|
77
|
+
Exclude:
|
78
|
+
- 'spec/**/*'
|
79
|
+
|
80
|
+
Naming/AccessorMethodName:
|
20
81
|
Enabled: false
|
21
82
|
|
83
|
+
# Avoid one-letter exception variable name
|
84
|
+
Naming/RescuedExceptionsVariableName:
|
85
|
+
PreferredName: ex
|
86
|
+
|
87
|
+
Performance/EndWith:
|
88
|
+
AutoCorrect: true
|
89
|
+
|
90
|
+
Performance/StartWith:
|
91
|
+
AutoCorrect: true
|
92
|
+
|
93
|
+
# End-to-end specs do not describe classes
|
94
|
+
RSpec/DescribeClass:
|
95
|
+
Exclude:
|
96
|
+
- 'spec/end_to_end/**/*_spec.rb'
|
97
|
+
|
98
|
+
RSpec/ExampleLength:
|
99
|
+
Max: 8
|
100
|
+
Exclude:
|
101
|
+
- 'spec/end_to_end/**/*_spec.rb'
|
102
|
+
|
22
103
|
# Allow and/or for control flow only
|
23
104
|
Style/AndOr:
|
24
|
-
|
25
|
-
|
26
|
-
# Dot at end of line makes it clearer that the line is not done
|
27
|
-
Style/DotPosition:
|
28
|
-
EnforcedStyle: trailing
|
105
|
+
EnforcedStyle: conditionals
|
29
106
|
|
30
107
|
# Require at least two dependent lines before suggesting a guard clause
|
31
108
|
Style/GuardClause:
|
32
109
|
MinBodyLength: 2
|
33
110
|
|
34
|
-
#
|
35
|
-
Style/
|
36
|
-
|
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
|
111
|
+
# Sometimes an if statement just looks better than next with a guard clause
|
112
|
+
Style/Next:
|
113
|
+
Enabled: false
|
50
114
|
|
51
115
|
# Not all objects that handle #== 0 also handle #zero?
|
52
116
|
Style/NumericPredicate:
|
53
117
|
Enabled: false
|
54
118
|
|
55
|
-
#
|
56
|
-
Style/
|
57
|
-
|
119
|
+
# Use older RuboCop default
|
120
|
+
Style/PercentLiteralDelimiters:
|
121
|
+
PreferredDelimiters:
|
122
|
+
'%W': ()
|
123
|
+
'%w': ()
|
58
124
|
|
59
125
|
# Allow explicit return with multiple return values
|
60
126
|
Style/RedundantReturn:
|
61
127
|
AllowMultipleReturnValues: true
|
62
128
|
|
63
|
-
# Always use raise to raise exceptions
|
64
|
-
Style/SignalException:
|
65
|
-
EnforcedStyle: only_raise
|
66
|
-
|
67
129
|
Style/SingleLineBlockParams:
|
68
130
|
Enabled: false
|
69
131
|
|
70
|
-
#
|
132
|
+
# Allow all ways to construct strings for now
|
133
|
+
Style/StringConcatenation:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
# Do not commit to use of interpolation
|
137
|
+
Style/StringLiterals:
|
138
|
+
EnforcedStyle: double_quotes
|
139
|
+
|
140
|
+
# Prefer symbols to look like symbols
|
141
|
+
Style/SymbolArray:
|
142
|
+
EnforcedStyle: brackets
|
143
|
+
|
144
|
+
# Accessors are only trivial if they match the ivar name
|
71
145
|
Style/TrivialAccessors:
|
72
146
|
ExactNameMatch: true
|
73
147
|
|
74
148
|
# Allow semantic choice of trailing comma
|
75
|
-
Style/
|
149
|
+
Style/TrailingCommaInArrayLiteral:
|
76
150
|
Enabled: false
|
77
151
|
|
78
152
|
# Alexandria uses regular arrays
|
79
153
|
Style/WordArray:
|
80
154
|
Enabled: false
|
81
|
-
|
82
|
-
# Not all objects that handle #length also handle #empty?
|
83
|
-
Style/ZeroLengthPredicate:
|
84
|
-
Enabled: false
|
85
|
-
|
86
|
-
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
CHANGED
@@ -1,106 +1,100 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
#
|
2
|
+
# `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 0.93.1.
|
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
|
-
#
|
10
|
-
Lint/HandleExceptions:
|
11
|
-
Exclude:
|
12
|
-
- 'lib/alexandria/import_library_csv.rb'
|
13
|
-
- 'lib/alexandria/models/library.rb'
|
14
|
-
- 'lib/alexandria/ui/dialogs/book_properties_dialog.rb'
|
15
|
-
- 'lib/alexandria/ui/dialogs/import_dialog.rb'
|
16
|
-
|
17
|
-
# Offense count: 2
|
18
|
-
Lint/IneffectiveAccessModifier:
|
19
|
-
Exclude:
|
20
|
-
- 'lib/alexandria/logging.rb'
|
21
|
-
- 'lib/alexandria/web_themes.rb'
|
22
|
-
|
23
|
-
# Offense count: 1
|
24
|
-
Lint/LiteralInCondition:
|
25
|
-
Exclude:
|
26
|
-
- 'util/rake/gettextgenerate.rb'
|
27
|
-
|
28
|
-
# Offense count: 1
|
29
|
-
Lint/UnreachableCode:
|
30
|
-
Exclude:
|
31
|
-
- 'lib/alexandria/ui/dialogs/export_dialog.rb'
|
32
|
-
|
33
|
-
# Offense count: 2
|
34
|
-
# Configuration parameters: ContextCreatingMethods.
|
35
|
-
Lint/UselessAccessModifier:
|
36
|
-
Exclude:
|
37
|
-
- 'lib/alexandria/logging.rb'
|
38
|
-
|
39
|
-
# Offense count: 172
|
9
|
+
# Configuration parameters: IgnoredMethods.
|
40
10
|
Metrics/AbcSize:
|
41
|
-
Max:
|
11
|
+
Max: 111
|
42
12
|
|
43
|
-
#
|
44
|
-
#
|
13
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
14
|
+
# ExcludedMethods: refine
|
45
15
|
Metrics/BlockLength:
|
46
|
-
Max:
|
16
|
+
Max: 64
|
47
17
|
|
48
|
-
#
|
18
|
+
# Configuration parameters: CountBlocks.
|
49
19
|
Metrics/BlockNesting:
|
50
20
|
Max: 5
|
51
21
|
|
52
|
-
#
|
53
|
-
# Configuration parameters: CountComments.
|
22
|
+
# Configuration parameters: CountComments, CountAsOne.
|
54
23
|
Metrics/ClassLength:
|
55
|
-
Max:
|
24
|
+
Max: 990
|
56
25
|
|
57
|
-
#
|
26
|
+
# Configuration parameters: IgnoredMethods.
|
58
27
|
Metrics/CyclomaticComplexity:
|
59
|
-
Max:
|
60
|
-
|
61
|
-
# Offense count: 353
|
62
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
|
63
|
-
# URISchemes: http, https
|
64
|
-
Metrics/LineLength:
|
65
|
-
Max: 294
|
28
|
+
Max: 27
|
66
29
|
|
67
|
-
#
|
68
|
-
# Configuration parameters: CountComments.
|
30
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
69
31
|
Metrics/MethodLength:
|
70
|
-
Max:
|
32
|
+
Max: 98
|
71
33
|
|
72
|
-
#
|
73
|
-
# Configuration parameters: CountComments.
|
34
|
+
# Configuration parameters: CountComments, CountAsOne.
|
74
35
|
Metrics/ModuleLength:
|
75
|
-
Max:
|
36
|
+
Max: 361
|
76
37
|
|
77
|
-
# Offense count: 10
|
78
38
|
# Configuration parameters: CountKeywordArgs.
|
79
39
|
Metrics/ParameterLists:
|
80
40
|
Max: 7
|
81
41
|
|
82
|
-
#
|
42
|
+
# Configuration parameters: IgnoredMethods.
|
83
43
|
Metrics/PerceivedComplexity:
|
84
|
-
Max:
|
44
|
+
Max: 27
|
45
|
+
|
46
|
+
Naming/BinaryOperatorParameterName:
|
47
|
+
Exclude:
|
48
|
+
- 'lib/alexandria/book_providers/amazon_ecs_util.rb'
|
49
|
+
|
50
|
+
# Configuration parameters: ForbiddenDelimiters.
|
51
|
+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
52
|
+
Naming/HeredocDelimiterNaming:
|
53
|
+
Exclude:
|
54
|
+
- 'Rakefile'
|
55
|
+
- 'bin/alexandria'
|
56
|
+
- 'lib/alexandria/export_library.rb'
|
57
|
+
- 'lib/alexandria/ui/about_dialog.rb'
|
58
|
+
|
59
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
60
|
+
# NamePrefix: is_, has_, have_
|
61
|
+
# ForbiddenPrefixes: is_, has_, have_
|
62
|
+
# AllowedMethods: is_a?
|
63
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
64
|
+
Naming/PredicateName:
|
65
|
+
Exclude:
|
66
|
+
- 'spec/**/*'
|
67
|
+
- 'lib/alexandria/book_providers/amazon_ecs_util.rb'
|
68
|
+
- 'lib/alexandria/ui/smart_library_properties_dialog_base.rb'
|
69
|
+
- 'lib/alexandria/web_themes.rb'
|
70
|
+
|
71
|
+
# Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
72
|
+
RSpec/FilePath:
|
73
|
+
Exclude:
|
74
|
+
- 'spec/alexandria/ui/iconview_spec.rb'
|
75
|
+
- 'spec/alexandria/ui/sound_spec.rb'
|
76
|
+
|
77
|
+
RSpec/MultipleExpectations:
|
78
|
+
Max: 7
|
85
79
|
|
86
|
-
#
|
87
|
-
|
80
|
+
# Cop supports --auto-correct.
|
81
|
+
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
82
|
+
# SupportedStyles: inflected, explicit
|
83
|
+
RSpec/PredicateMatcher:
|
88
84
|
Exclude:
|
89
|
-
- '
|
90
|
-
- '
|
91
|
-
- '
|
85
|
+
- 'spec/alexandria/export_library_spec.rb'
|
86
|
+
- 'spec/alexandria/library_spec.rb'
|
87
|
+
- 'spec/alexandria/library_store_spec.rb'
|
88
|
+
- 'spec/alexandria/scanners/cue_cat_spec.rb'
|
92
89
|
|
93
|
-
#
|
94
|
-
# Configuration parameters: EnforcedStyle
|
90
|
+
# Cop supports --auto-correct.
|
91
|
+
# Configuration parameters: EnforcedStyle.
|
95
92
|
# SupportedStyles: nested, compact
|
96
93
|
Style/ClassAndModuleChildren:
|
97
94
|
Exclude:
|
98
|
-
- 'lib/alexandria/ui/dialogs/import_dialog.rb'
|
99
|
-
- 'lib/alexandria/ui/dialogs/preferences_dialog.rb'
|
100
|
-
- 'lib/alexandria/ui/icons.rb'
|
101
95
|
- 'lib/alexandria/ui/init.rb'
|
96
|
+
- 'lib/alexandria/ui/provider_preferences_base_dialog.rb'
|
102
97
|
|
103
|
-
# Offense count: 17
|
104
98
|
Style/ClassVars:
|
105
99
|
Exclude:
|
106
100
|
- 'lib/alexandria/book_providers/amazon_ecs_util.rb'
|
@@ -108,117 +102,35 @@ Style/ClassVars:
|
|
108
102
|
- 'lib/alexandria/logging.rb'
|
109
103
|
- 'lib/alexandria/models/library.rb'
|
110
104
|
- 'lib/alexandria/smart_library.rb'
|
111
|
-
- 'lib/alexandria/ui/
|
112
|
-
- 'lib/alexandria/ui/
|
113
|
-
- 'lib/alexandria/ui/
|
105
|
+
- 'lib/alexandria/ui/acquire_dialog.rb'
|
106
|
+
- 'lib/alexandria/ui/book_properties_dialog_base.rb'
|
107
|
+
- 'lib/alexandria/ui/new_book_dialog.rb'
|
114
108
|
|
115
|
-
# Offense count: 121
|
116
109
|
Style/Documentation:
|
117
110
|
Enabled: false
|
118
111
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
|
122
|
-
Style/For:
|
112
|
+
# Configuration parameters: EnforcedStyle.
|
113
|
+
# SupportedStyles: annotated, template, unannotated
|
114
|
+
Style/FormatStringToken:
|
123
115
|
Exclude:
|
124
|
-
- 'lib/alexandria/
|
125
|
-
- 'lib/alexandria/
|
126
|
-
- 'lib/alexandria/
|
127
|
-
- '
|
116
|
+
- 'lib/alexandria/ui/acquire_dialog.rb'
|
117
|
+
- 'lib/alexandria/ui/dndable.rb'
|
118
|
+
- 'lib/alexandria/ui/listview.rb'
|
119
|
+
- 'lib/alexandria/ui/new_book_dialog.rb'
|
128
120
|
|
129
|
-
#
|
130
|
-
#
|
131
|
-
|
132
|
-
Style/FormatString:
|
121
|
+
# Configuration parameters: AllowedMethods.
|
122
|
+
# AllowedMethods: respond_to_missing?
|
123
|
+
Style/OptionalBooleanParameter:
|
133
124
|
Exclude:
|
134
125
|
- 'lib/alexandria/book_providers.rb'
|
135
|
-
- 'lib/alexandria/book_providers/adlibris.rb'
|
136
126
|
- 'lib/alexandria/book_providers/barnes_and_noble.rb'
|
137
|
-
- 'lib/alexandria/book_providers/deastore.rb'
|
138
127
|
- 'lib/alexandria/book_providers/siciliano.rb'
|
139
128
|
- 'lib/alexandria/book_providers/thalia.rb'
|
140
129
|
- 'lib/alexandria/book_providers/worldcat.rb'
|
141
|
-
- 'lib/alexandria/
|
142
|
-
- 'lib/alexandria/
|
143
|
-
- 'lib/alexandria/
|
144
|
-
- 'lib/alexandria/
|
145
|
-
- 'lib/alexandria/ui/dndable.rb'
|
146
|
-
- 'lib/alexandria/ui/listview.rb'
|
147
|
-
- 'lib/alexandria/ui/ui_manager.rb'
|
148
|
-
|
149
|
-
# Offense count: 34
|
150
|
-
# Configuration parameters: MinBodyLength.
|
151
|
-
Style/GuardClause:
|
152
|
-
Enabled: false
|
153
|
-
|
154
|
-
# Offense count: 4
|
155
|
-
Style/IdenticalConditionalBranches:
|
156
|
-
Exclude:
|
157
|
-
- 'lib/alexandria/book_providers/amazon_aws.rb'
|
158
|
-
- 'lib/alexandria/ui/ui_manager.rb'
|
159
|
-
|
160
|
-
# Offense count: 4
|
161
|
-
Style/IfInsideElse:
|
162
|
-
Exclude:
|
163
|
-
- 'lib/alexandria/book_providers/proxis.rb'
|
164
|
-
- 'lib/alexandria/book_providers/web.rb'
|
165
|
-
- 'lib/alexandria/preferences.rb'
|
166
|
-
- 'lib/alexandria/ui/ui_manager.rb'
|
167
|
-
|
168
|
-
# Offense count: 2
|
169
|
-
Style/MethodMissing:
|
170
|
-
Exclude:
|
171
|
-
- 'lib/alexandria/book_providers.rb'
|
172
|
-
- 'lib/alexandria/preferences.rb'
|
173
|
-
|
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
|
-
# Offense count: 1
|
182
|
-
Style/MultilineTernaryOperator:
|
183
|
-
Exclude:
|
184
|
-
- 'lib/alexandria/ui/listview.rb'
|
185
|
-
|
186
|
-
# Offense count: 1
|
187
|
-
Style/NestedTernaryOperator:
|
188
|
-
Exclude:
|
189
|
-
- 'lib/alexandria/ui/ui_manager.rb'
|
190
|
-
|
191
|
-
# Offense count: 8
|
192
|
-
Style/OpMethod:
|
193
|
-
Exclude:
|
194
|
-
- 'lib/alexandria/book_providers.rb'
|
195
|
-
- 'lib/alexandria/book_providers/amazon_ecs_util.rb'
|
196
|
-
- 'lib/alexandria/models/book.rb'
|
130
|
+
- 'lib/alexandria/console.rb'
|
131
|
+
- 'lib/alexandria/execution_queue.rb'
|
132
|
+
- 'lib/alexandria/export_format.rb'
|
133
|
+
- 'lib/alexandria/library_sort_order.rb'
|
197
134
|
- 'lib/alexandria/models/library.rb'
|
198
|
-
- 'lib/alexandria/
|
199
|
-
- '
|
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'
|
212
|
-
|
213
|
-
# Offense count: 41
|
214
|
-
# Cop supports --auto-correct.
|
215
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
216
|
-
# SupportedStyles: slashes, percent_r, mixed
|
217
|
-
Style/RegexpLiteral:
|
218
|
-
Enabled: false
|
219
|
-
|
220
|
-
# Offense count: 3
|
221
|
-
Style/StructInheritance:
|
222
|
-
Exclude:
|
223
|
-
- 'lib/alexandria/smart_library.rb'
|
224
|
-
- 'lib/alexandria/ui/multi_drag_treeview.rb'
|
135
|
+
- 'lib/alexandria/ui/ui_manager.rb'
|
136
|
+
- 'util/rake/fileinstall.rb'
|