alexandria-book-collection-manager 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +28 -25
- data/.rubocop_todo.yml +87 -67
- data/CHANGELOG.md +12 -1
- data/Gemfile +4 -3
- data/README.md +16 -6
- data/Rakefile +71 -72
- data/alexandria-book-collection-manager.gemspec +44 -44
- data/bin/alexandria +12 -12
- data/lib/alexandria.rb +22 -22
- data/lib/alexandria/about.rb +50 -50
- data/lib/alexandria/book_providers.rb +50 -50
- data/lib/alexandria/book_providers/adlibris.rb +28 -44
- data/lib/alexandria/book_providers/amazon_aws.rb +64 -64
- data/lib/alexandria/book_providers/amazon_ecs_util.rb +52 -78
- data/lib/alexandria/book_providers/barnes_and_noble.rb +34 -34
- data/lib/alexandria/book_providers/douban.rb +21 -37
- data/lib/alexandria/book_providers/proxis.rb +24 -24
- data/lib/alexandria/book_providers/pseudomarc.rb +19 -19
- data/lib/alexandria/book_providers/renaud.rb +44 -57
- data/lib/alexandria/book_providers/siciliano.rb +39 -39
- data/lib/alexandria/book_providers/thalia.rb +33 -33
- data/lib/alexandria/book_providers/web.rb +5 -5
- data/lib/alexandria/book_providers/worldcat.rb +44 -69
- data/lib/alexandria/book_providers/z3950.rb +94 -109
- data/lib/alexandria/config.rb +1 -1
- data/lib/alexandria/console.rb +3 -3
- data/lib/alexandria/export_format.rb +8 -8
- data/lib/alexandria/export_library.rb +112 -113
- data/lib/alexandria/import_library.rb +45 -45
- data/lib/alexandria/import_library_csv.rb +30 -30
- data/lib/alexandria/library_collection.rb +4 -4
- data/lib/alexandria/library_sort_order.rb +1 -1
- data/lib/alexandria/library_store.rb +14 -14
- data/lib/alexandria/logging.rb +5 -5
- data/lib/alexandria/models/book.rb +1 -1
- data/lib/alexandria/models/library.rb +36 -36
- data/lib/alexandria/net.rb +5 -5
- data/lib/alexandria/preferences.rb +32 -32
- data/lib/alexandria/scanners/{cuecat.rb → cue_cat.rb} +13 -13
- data/lib/alexandria/scanners/keyboard.rb +5 -5
- data/lib/alexandria/smart_library.rb +53 -53
- data/lib/alexandria/ui.rb +15 -15
- data/lib/alexandria/ui/{dialogs/about_dialog.rb → about_dialog.rb} +1 -1
- data/lib/alexandria/ui/{dialogs/acquire_dialog.rb → acquire_dialog.rb} +66 -65
- data/lib/alexandria/ui/{dialogs/alert_dialog.rb → alert_dialog.rb} +1 -16
- data/lib/alexandria/ui/{dialogs/bad_isbns_dialog.rb → bad_isbns_dialog.rb} +0 -0
- data/lib/alexandria/ui/{dialogs/barcode_animation.rb → barcode_animation.rb} +7 -7
- data/lib/alexandria/ui/{dialogs/book_properties_dialog.rb → book_properties_dialog.rb} +25 -37
- data/lib/alexandria/ui/{dialogs/book_properties_dialog_base.rb → book_properties_dialog_base.rb} +38 -37
- data/lib/alexandria/ui/builder_base.rb +1 -1
- data/lib/alexandria/ui/callbacks.rb +95 -91
- data/lib/alexandria/ui/completion_models.rb +7 -21
- 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 +7 -7
- data/lib/alexandria/ui/error_dialog.rb +25 -0
- data/lib/alexandria/ui/{dialogs/export_dialog.rb → export_dialog.rb} +22 -42
- data/lib/alexandria/ui/icons.rb +6 -6
- data/lib/alexandria/ui/iconview.rb +7 -7
- data/lib/alexandria/ui/iconview_tooltips.rb +6 -6
- data/lib/alexandria/ui/{dialogs/import_dialog.rb → import_dialog.rb} +14 -32
- data/lib/alexandria/ui/init.rb +16 -29
- data/lib/alexandria/ui/{dialogs/keep_bad_isbn_dialog.rb → keep_bad_isbn_dialog.rb} +6 -4
- data/lib/alexandria/ui/libraries_combo.rb +7 -7
- data/lib/alexandria/ui/listview.rb +40 -40
- data/lib/alexandria/ui/main_app.rb +22 -24
- data/lib/alexandria/ui/misc_dialogs.rb +10 -0
- data/lib/alexandria/ui/multi_drag_treeview.rb +4 -4
- data/lib/alexandria/ui/{dialogs/new_book_dialog.rb → new_book_dialog.rb} +46 -45
- data/lib/alexandria/ui/{dialogs/new_book_dialog_manual.rb → new_book_dialog_manual.rb} +20 -19
- data/lib/alexandria/ui/new_provider_dialog.rb +99 -0
- data/lib/alexandria/ui/{dialogs/new_smart_library_dialog.rb → new_smart_library_dialog.rb} +4 -4
- data/lib/alexandria/ui/{dialogs/preferences_dialog.rb → preferences_dialog.rb} +44 -235
- data/lib/alexandria/ui/provider_preferences_base_dialog.rb +90 -0
- data/lib/alexandria/ui/provider_preferences_dialog.rb +35 -0
- data/lib/alexandria/ui/{dialogs/misc_dialogs.rb → really_delete_dialog.rb} +6 -27
- data/lib/alexandria/ui/{sidepane.rb → sidepane_manager.rb} +27 -25
- data/lib/alexandria/ui/skip_entry_dialog.rb +32 -0
- data/lib/alexandria/ui/{dialogs/smart_library_properties_dialog.rb → smart_library_properties_dialog.rb} +2 -2
- data/lib/alexandria/ui/{dialogs/smart_library_properties_dialog_base.rb → smart_library_properties_dialog_base.rb} +30 -30
- data/lib/alexandria/ui/sound.rb +8 -8
- data/lib/alexandria/ui/ui_manager.rb +136 -135
- data/lib/alexandria/version.rb +4 -19
- data/lib/alexandria/web_themes.rb +8 -8
- data/po/cs.po +97 -97
- data/po/cy.po +97 -97
- data/po/de.po +97 -97
- data/po/el.po +97 -97
- data/po/es.po +97 -97
- data/po/fr.po +97 -97
- data/po/ga.po +97 -97
- data/po/gl.po +97 -97
- data/po/it.po +97 -97
- data/po/ja.po +97 -97
- data/po/mk.po +97 -97
- data/po/nb.po +97 -97
- data/po/nl.po +97 -97
- data/po/pl.po +97 -97
- data/po/pt.po +97 -97
- data/po/pt_BR.po +97 -97
- data/po/ru.po +97 -97
- data/po/sk.po +97 -97
- data/po/sv.po +97 -97
- data/po/uk.po +97 -97
- data/po/zh_TW.po +97 -97
- data/schemas/alexandria.schemas +24 -2
- data/spec/alexandria/book_providers_spec.rb +65 -82
- data/spec/alexandria/book_spec.rb +12 -10
- data/spec/alexandria/console_spec.rb +9 -9
- data/spec/alexandria/export_library_spec.rb +31 -31
- data/spec/alexandria/library_spec.rb +86 -86
- data/spec/alexandria/library_store_spec.rb +8 -8
- data/spec/alexandria/preferences_spec.rb +18 -17
- data/spec/alexandria/scanners/cue_cat_spec.rb +52 -0
- data/spec/alexandria/smart_library_spec.rb +15 -15
- 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/iconview_spec.rb +7 -21
- data/spec/alexandria/ui/import_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/keep_bad_isbn_dialog_spec.rb +17 -0
- data/spec/alexandria/ui/main_app_spec.rb +6 -6
- data/spec/alexandria/ui/new_book_dialog_manual_spec.rb +15 -0
- data/spec/alexandria/ui/{dialogs/new_book_dialog_spec.rb → new_book_dialog_spec.rb} +4 -4
- data/spec/alexandria/ui/new_provider_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/new_smart_library_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/preferences_dialog_spec.rb +14 -0
- data/spec/alexandria/ui/provider_preferences_dialog_spec.rb +19 -0
- data/spec/alexandria/ui/really_delete_dialog_spec.rb +15 -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 +18 -0
- data/spec/alexandria/ui/sound_spec.rb +2 -2
- data/spec/alexandria/ui/ui_manager_spec.rb +6 -20
- data/spec/alexandria/ui/ui_utilities_spec.rb +9 -9
- data/spec/alexandria/utilities_spec.rb +6 -6
- data/spec/end_to_end/basic_run_spec.rb +24 -36
- data/spec/spec_helper.rb +9 -9
- data/tasks/dogtail.rake +1 -1
- data/tasks/setup.rb +2 -2
- data/tasks/spec.rake +11 -11
- data/util/rake/fileinstall.rb +25 -25
- data/util/rake/gettextgenerate.rb +7 -7
- data/util/rake/omfgenerate.rb +7 -7
- metadata +59 -33
- data/spec/alexandria/scanners/cuecat_spec.rb +0 -67
- data/spec/alexandria/ui/dialogs_spec.rb +0 -162
- data/spec/alexandria/ui/sidepane_spec.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44744940c1b1d1eabd2f062869295dcbd42a67347ebc7390e4150ed406de1768
|
4
|
+
data.tar.gz: c9e295c6171d7f88e118c5c998cf6d6507841e78f7dab2f65ccf1a611a8bdd0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9791ac87a6456ec74446ac6a8ce2791f2c0b464c4b843ac69dad561a83bacb286716c9fa940d41b15342e9212339aaa85383e0460128823e711fbe935a1b823f
|
7
|
+
data.tar.gz: b1b803f65c8b88fcfd35f50e3e1aebde2677de06343baaa4b57f359aba9cc6803240ff50d66dfc80c6fffbc1c8eae6a37574588365714e0f656cd7c513cddea2
|
data/.rubocop.yml
CHANGED
@@ -1,18 +1,20 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
require:
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rspec
|
6
|
+
|
1
7
|
AllCops:
|
2
8
|
Exclude:
|
3
9
|
- 'lib/alexandria/default_preferences.rb'
|
4
10
|
- 'pkg/**/*'
|
5
|
-
TargetRubyVersion: 2.
|
6
|
-
|
7
|
-
# Dot at end of line makes it clearer that the line is not done
|
8
|
-
Layout/DotPosition:
|
9
|
-
EnforcedStyle: trailing
|
11
|
+
TargetRubyVersion: 2.4
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
EnforcedStyle: indented
|
13
|
+
Layout/AlignHash:
|
14
|
+
EnforcedColonStyle: key
|
15
|
+
EnforcedHashRocketStyle: table
|
15
16
|
|
17
|
+
# Don't force lonely closing parentheses
|
16
18
|
Layout/MultilineMethodCallBraceLayout:
|
17
19
|
EnforcedStyle: same_line
|
18
20
|
|
@@ -21,14 +23,15 @@ Layout/MultilineMethodCallBraceLayout:
|
|
21
23
|
Layout/MultilineMethodCallIndentation:
|
22
24
|
EnforcedStyle: indented
|
23
25
|
|
24
|
-
#
|
26
|
+
# Multi-line assignment should be simply indented. Aligning them makes it even
|
27
|
+
# harder to keep a sane line length.
|
28
|
+
Layout/MultilineOperationIndentation:
|
29
|
+
EnforcedStyle: indented
|
30
|
+
|
31
|
+
# Force consistent spacing independent of block contents
|
25
32
|
Layout/SpaceBeforeBlockBraces:
|
26
33
|
EnforcedStyleForEmptyBraces: space
|
27
34
|
|
28
|
-
Layout/AlignHash:
|
29
|
-
EnforcedColonStyle: key
|
30
|
-
EnforcedHashRocketStyle: table
|
31
|
-
|
32
35
|
# Allow if (foo = get_foo) style
|
33
36
|
Lint/AssignmentInCondition:
|
34
37
|
AllowSafeAssignment: true
|
@@ -45,13 +48,13 @@ Metrics/LineLength:
|
|
45
48
|
Naming/AccessorMethodName:
|
46
49
|
Enabled: false
|
47
50
|
|
48
|
-
#
|
49
|
-
|
50
|
-
|
51
|
+
# Avoid one-letter exception variable name
|
52
|
+
Naming/RescuedExceptionsVariableName:
|
53
|
+
PreferredName: ex
|
51
54
|
|
52
55
|
# Allow and/or for control flow only
|
53
56
|
Style/AndOr:
|
54
|
-
|
57
|
+
EnforcedStyle: conditionals
|
55
58
|
|
56
59
|
# Require at least two dependent lines before suggesting a guard clause
|
57
60
|
Style/GuardClause:
|
@@ -74,17 +77,19 @@ Style/PercentLiteralDelimiters:
|
|
74
77
|
Style/RedundantReturn:
|
75
78
|
AllowMultipleReturnValues: true
|
76
79
|
|
77
|
-
# Always use raise to raise exceptions
|
78
|
-
Style/SignalException:
|
79
|
-
EnforcedStyle: only_raise
|
80
|
-
|
81
80
|
Style/SingleLineBlockParams:
|
82
81
|
Enabled: false
|
83
82
|
|
84
|
-
#
|
83
|
+
# Do not commit to use of interpolation
|
84
|
+
Style/StringLiterals:
|
85
|
+
EnforcedStyle: double_quotes
|
86
|
+
|
87
|
+
# Prefer symbols to look like symbols
|
85
88
|
Style/SymbolArray:
|
86
89
|
EnforcedStyle: brackets
|
87
90
|
|
91
|
+
# Project-specific configuration goes here.
|
92
|
+
|
88
93
|
# Accessors are only trivial if they match the ivar name.
|
89
94
|
Style/TrivialAccessors:
|
90
95
|
ExactNameMatch: true
|
@@ -100,5 +105,3 @@ Style/WordArray:
|
|
100
105
|
# Not all objects that handle #length also handle #empty?
|
101
106
|
Style/ZeroLengthPredicate:
|
102
107
|
Enabled: false
|
103
|
-
|
104
|
-
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-
|
3
|
+
# on 2019-10-16 21:37:35 +0200 using RuboCop version 0.75.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
|
@@ -12,6 +12,11 @@ Lint/IneffectiveAccessModifier:
|
|
12
12
|
- 'lib/alexandria/logging.rb'
|
13
13
|
- 'lib/alexandria/web_themes.rb'
|
14
14
|
|
15
|
+
# Offense count: 1
|
16
|
+
Lint/ShadowingOuterLocalVariable:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/alexandria/ui/libraries_combo.rb'
|
19
|
+
|
15
20
|
# Offense count: 1
|
16
21
|
Lint/UriEscapeUnescape:
|
17
22
|
Exclude:
|
@@ -23,9 +28,9 @@ Lint/UselessAccessModifier:
|
|
23
28
|
Exclude:
|
24
29
|
- 'lib/alexandria/logging.rb'
|
25
30
|
|
26
|
-
# Offense count:
|
31
|
+
# Offense count: 162
|
27
32
|
Metrics/AbcSize:
|
28
|
-
Max:
|
33
|
+
Max: 159
|
29
34
|
|
30
35
|
# Offense count: 21
|
31
36
|
# Configuration parameters: CountComments, ExcludedMethods.
|
@@ -33,7 +38,7 @@ Metrics/AbcSize:
|
|
33
38
|
Metrics/BlockLength:
|
34
39
|
Max: 66
|
35
40
|
|
36
|
-
# Offense count:
|
41
|
+
# Offense count: 8
|
37
42
|
# Configuration parameters: CountBlocks.
|
38
43
|
Metrics/BlockNesting:
|
39
44
|
Max: 5
|
@@ -55,14 +60,14 @@ Metrics/MethodLength:
|
|
55
60
|
# Offense count: 1
|
56
61
|
# Configuration parameters: CountComments.
|
57
62
|
Metrics/ModuleLength:
|
58
|
-
Max:
|
63
|
+
Max: 340
|
59
64
|
|
60
65
|
# Offense count: 10
|
61
66
|
# Configuration parameters: CountKeywordArgs.
|
62
67
|
Metrics/ParameterLists:
|
63
68
|
Max: 7
|
64
69
|
|
65
|
-
# Offense count:
|
70
|
+
# Offense count: 63
|
66
71
|
Metrics/PerceivedComplexity:
|
67
72
|
Max: 23
|
68
73
|
|
@@ -84,7 +89,7 @@ Naming/HeredocDelimiterNaming:
|
|
84
89
|
- 'Rakefile'
|
85
90
|
- 'bin/alexandria'
|
86
91
|
- 'lib/alexandria/export_library.rb'
|
87
|
-
- 'lib/alexandria/ui/
|
92
|
+
- 'lib/alexandria/ui/about_dialog.rb'
|
88
93
|
|
89
94
|
# Offense count: 2
|
90
95
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
@@ -103,7 +108,7 @@ Naming/PredicateName:
|
|
103
108
|
Exclude:
|
104
109
|
- 'spec/**/*'
|
105
110
|
- 'lib/alexandria/book_providers/amazon_ecs_util.rb'
|
106
|
-
- 'lib/alexandria/ui/
|
111
|
+
- 'lib/alexandria/ui/smart_library_properties_dialog_base.rb'
|
107
112
|
- 'lib/alexandria/web_themes.rb'
|
108
113
|
|
109
114
|
# Offense count: 10
|
@@ -119,16 +124,77 @@ Naming/UncommunicativeMethodParamName:
|
|
119
124
|
- 'lib/alexandria/ui/init.rb'
|
120
125
|
- 'util/rake/fileinstall.rb'
|
121
126
|
|
127
|
+
# Offense count: 1
|
128
|
+
RSpec/DescribeClass:
|
129
|
+
Exclude:
|
130
|
+
- 'spec/end_to_end/basic_run_spec.rb'
|
131
|
+
|
132
|
+
# Offense count: 17
|
133
|
+
# Configuration parameters: Max.
|
134
|
+
RSpec/ExampleLength:
|
135
|
+
Exclude:
|
136
|
+
- 'spec/alexandria/book_providers_spec.rb'
|
137
|
+
- 'spec/alexandria/book_spec.rb'
|
138
|
+
- 'spec/alexandria/console_spec.rb'
|
139
|
+
- 'spec/alexandria/export_library_spec.rb'
|
140
|
+
- 'spec/alexandria/library_spec.rb'
|
141
|
+
- 'spec/alexandria/library_store_spec.rb'
|
142
|
+
- 'spec/alexandria/ui/provider_preferences_dialog_spec.rb'
|
143
|
+
- 'spec/alexandria/ui/smart_library_properties_dialog_spec.rb'
|
144
|
+
- 'spec/end_to_end/basic_run_spec.rb'
|
145
|
+
|
146
|
+
# Offense count: 1
|
147
|
+
RSpec/ExpectInHook:
|
148
|
+
Exclude:
|
149
|
+
- 'spec/alexandria/export_library_spec.rb'
|
150
|
+
|
151
|
+
# Offense count: 3
|
152
|
+
# Configuration parameters: CustomTransform, IgnoreMethods.
|
153
|
+
RSpec/FilePath:
|
154
|
+
Exclude:
|
155
|
+
- 'spec/alexandria/ui/iconview_spec.rb'
|
156
|
+
- 'spec/alexandria/ui/sidepane_manager_spec.rb'
|
157
|
+
- 'spec/alexandria/ui/sound_spec.rb'
|
158
|
+
|
159
|
+
# Offense count: 11
|
160
|
+
# Configuration parameters: AssignmentOnly.
|
161
|
+
RSpec/InstanceVariable:
|
162
|
+
Exclude:
|
163
|
+
- 'spec/alexandria/export_library_spec.rb'
|
164
|
+
|
165
|
+
# Offense count: 3
|
166
|
+
RSpec/MultipleDescribes:
|
167
|
+
Exclude:
|
168
|
+
- 'spec/alexandria/ui/main_app_spec.rb'
|
169
|
+
- 'spec/alexandria/ui/ui_utilities_spec.rb'
|
170
|
+
- 'spec/alexandria/utilities_spec.rb'
|
171
|
+
|
172
|
+
# Offense count: 13
|
173
|
+
# Configuration parameters: AggregateFailuresByDefault.
|
174
|
+
RSpec/MultipleExpectations:
|
175
|
+
Max: 11
|
176
|
+
|
177
|
+
# Offense count: 34
|
178
|
+
# Cop supports --auto-correct.
|
179
|
+
# Configuration parameters: Strict, EnforcedStyle.
|
180
|
+
# SupportedStyles: inflected, explicit
|
181
|
+
RSpec/PredicateMatcher:
|
182
|
+
Exclude:
|
183
|
+
- 'spec/alexandria/export_library_spec.rb'
|
184
|
+
- 'spec/alexandria/library_spec.rb'
|
185
|
+
- 'spec/alexandria/library_store_spec.rb'
|
186
|
+
- 'spec/alexandria/scanners/cue_cat_spec.rb'
|
187
|
+
|
122
188
|
# Offense count: 8
|
123
189
|
# Cop supports --auto-correct.
|
124
190
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
125
191
|
# SupportedStyles: nested, compact
|
126
192
|
Style/ClassAndModuleChildren:
|
127
193
|
Exclude:
|
128
|
-
- 'lib/alexandria/ui/dialogs/import_dialog.rb'
|
129
|
-
- 'lib/alexandria/ui/dialogs/preferences_dialog.rb'
|
130
194
|
- 'lib/alexandria/ui/icons.rb'
|
195
|
+
- 'lib/alexandria/ui/import_dialog.rb'
|
131
196
|
- 'lib/alexandria/ui/init.rb'
|
197
|
+
- 'lib/alexandria/ui/provider_preferences_base_dialog.rb'
|
132
198
|
|
133
199
|
# Offense count: 17
|
134
200
|
Style/ClassVars:
|
@@ -138,9 +204,9 @@ Style/ClassVars:
|
|
138
204
|
- 'lib/alexandria/logging.rb'
|
139
205
|
- 'lib/alexandria/models/library.rb'
|
140
206
|
- 'lib/alexandria/smart_library.rb'
|
141
|
-
- 'lib/alexandria/ui/
|
142
|
-
- 'lib/alexandria/ui/
|
143
|
-
- 'lib/alexandria/ui/
|
207
|
+
- 'lib/alexandria/ui/acquire_dialog.rb'
|
208
|
+
- 'lib/alexandria/ui/book_properties_dialog_base.rb'
|
209
|
+
- 'lib/alexandria/ui/new_book_dialog.rb'
|
144
210
|
|
145
211
|
# Offense count: 11
|
146
212
|
Style/CommentedKeyword:
|
@@ -148,44 +214,27 @@ Style/CommentedKeyword:
|
|
148
214
|
- 'lib/alexandria/book_providers.rb'
|
149
215
|
- 'lib/alexandria/book_providers/barnes_and_noble.rb'
|
150
216
|
- 'lib/alexandria/book_providers/worldcat.rb'
|
151
|
-
- 'lib/alexandria/ui/
|
217
|
+
- 'lib/alexandria/ui/new_book_dialog.rb'
|
152
218
|
- 'util/rake/fileinstall.rb'
|
153
219
|
|
154
|
-
# Offense count:
|
220
|
+
# Offense count: 113
|
155
221
|
Style/Documentation:
|
156
222
|
Enabled: false
|
157
223
|
|
158
|
-
# Offense count:
|
159
|
-
|
160
|
-
# Configuration parameters: EnforcedStyle.
|
161
|
-
# SupportedStyles: each, for
|
162
|
-
Style/For:
|
224
|
+
# Offense count: 1
|
225
|
+
Style/DoubleNegation:
|
163
226
|
Exclude:
|
164
|
-
- 'lib/alexandria/
|
165
|
-
- 'lib/alexandria/book_providers/douban.rb'
|
166
|
-
- 'lib/alexandria/book_providers/renaud.rb'
|
167
|
-
- 'spec/alexandria/library_spec.rb'
|
227
|
+
- 'lib/alexandria/ui/listview.rb'
|
168
228
|
|
169
|
-
# Offense count:
|
229
|
+
# Offense count: 10
|
170
230
|
# Configuration parameters: EnforcedStyle.
|
171
231
|
# SupportedStyles: annotated, template, unannotated
|
172
232
|
Style/FormatStringToken:
|
173
233
|
Exclude:
|
174
|
-
- 'lib/alexandria/
|
175
|
-
- 'lib/alexandria/ui/callbacks.rb'
|
176
|
-
- 'lib/alexandria/ui/dialogs/acquire_dialog.rb'
|
177
|
-
- 'lib/alexandria/ui/dialogs/book_properties_dialog_base.rb'
|
178
|
-
- 'lib/alexandria/ui/dialogs/export_dialog.rb'
|
179
|
-
- 'lib/alexandria/ui/dialogs/keep_bad_isbn_dialog.rb'
|
180
|
-
- 'lib/alexandria/ui/dialogs/misc_dialogs.rb'
|
181
|
-
- 'lib/alexandria/ui/dialogs/new_book_dialog.rb'
|
182
|
-
- 'lib/alexandria/ui/dialogs/new_book_dialog_manual.rb'
|
183
|
-
- 'lib/alexandria/ui/dialogs/preferences_dialog.rb'
|
184
|
-
- 'lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb'
|
234
|
+
- 'lib/alexandria/ui/acquire_dialog.rb'
|
185
235
|
- 'lib/alexandria/ui/dndable.rb'
|
186
236
|
- 'lib/alexandria/ui/listview.rb'
|
187
|
-
- 'lib/alexandria/ui/
|
188
|
-
- 'lib/alexandria/ui/ui_manager.rb'
|
237
|
+
- 'lib/alexandria/ui/new_book_dialog.rb'
|
189
238
|
|
190
239
|
# Offense count: 34
|
191
240
|
# Configuration parameters: MinBodyLength.
|
@@ -207,32 +256,3 @@ Style/MissingRespondToMissing:
|
|
207
256
|
Exclude:
|
208
257
|
- 'lib/alexandria/book_providers.rb'
|
209
258
|
- 'lib/alexandria/preferences.rb'
|
210
|
-
|
211
|
-
# Offense count: 5
|
212
|
-
# Cop supports --auto-correct.
|
213
|
-
# Configuration parameters: Whitelist.
|
214
|
-
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
215
|
-
Style/NestedParenthesizedCalls:
|
216
|
-
Exclude:
|
217
|
-
- 'spec/alexandria/library_spec.rb'
|
218
|
-
- 'spec/alexandria/library_store_spec.rb'
|
219
|
-
|
220
|
-
# Offense count: 21
|
221
|
-
# Cop supports --auto-correct.
|
222
|
-
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
223
|
-
# SupportedStyles: slashes, percent_r, mixed
|
224
|
-
Style/RegexpLiteral:
|
225
|
-
Exclude:
|
226
|
-
- 'lib/alexandria/book_providers/adlibris.rb'
|
227
|
-
- 'lib/alexandria/book_providers/amazon_ecs_util.rb'
|
228
|
-
- 'lib/alexandria/book_providers/douban.rb'
|
229
|
-
- 'lib/alexandria/book_providers/proxis.rb'
|
230
|
-
- 'lib/alexandria/book_providers/pseudomarc.rb'
|
231
|
-
- 'lib/alexandria/book_providers/renaud.rb'
|
232
|
-
- 'lib/alexandria/book_providers/siciliano.rb'
|
233
|
-
- 'lib/alexandria/book_providers/thalia.rb'
|
234
|
-
- 'lib/alexandria/library_store.rb'
|
235
|
-
- 'lib/alexandria/ui/dialogs/book_properties_dialog_base.rb'
|
236
|
-
- 'lib/alexandria/ui/sidepane.rb'
|
237
|
-
- 'util/rake/fileinstall.rb'
|
238
|
-
- 'util/rake/gettextgenerate.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.7.4 / 2019-10-24
|
4
|
+
|
5
|
+
* Drop support for Ruby 2.3
|
6
|
+
* Avoid passing nil to Gtk method #visible=, which expects a boolean
|
7
|
+
([#22], by [Joseph Haig][jrmhaig])
|
8
|
+
* Update dependencies on gtk3 and gstreamer to 3.4.1
|
9
|
+
* Fix WorldCat provider to use https
|
10
|
+
|
3
11
|
## 0.7.3 / 2019-02-27
|
4
12
|
|
5
13
|
* Remove DeaStore provider since the site is no longer online
|
@@ -64,6 +72,9 @@
|
|
64
72
|
Amazon's Product Advertising API. Thanks to Stephen McCamant for
|
65
73
|
providing the patch.
|
66
74
|
|
67
|
-
<!--
|
75
|
+
<!-- contributors -->
|
76
|
+
[jrmhaig]: https://github.com/jrmhaig
|
68
77
|
|
78
|
+
<!-- issues and pull requests -->
|
79
|
+
[#23]: https://github.com/mvz/alexandria-book-collection-manager/pull/23
|
69
80
|
[#19]: https://github.com/mvz/alexandria-book-collection-manager/issues/19
|
data/Gemfile
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
source
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
5
|
# The gem's dependencies are specified in the gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
group :development, :test do
|
9
|
-
gem
|
10
|
-
gem
|
9
|
+
gem "pry"
|
10
|
+
gem "simplecov"
|
11
|
+
gem "yard", "~> 0.9.5"
|
11
12
|
end
|
data/README.md
CHANGED
@@ -99,6 +99,7 @@ The following people have contributed to Alexandria over the years:
|
|
99
99
|
* Constantine Evans <cevans@costinet.org>
|
100
100
|
* Dafydd Harries <daf@muse.19inch.net>
|
101
101
|
* Javier Fernandez-Sanguino Pena <jfs@debian.org>
|
102
|
+
* Joseph Haig <josephhaig@gmail.com>
|
102
103
|
* Joseph Method <tristil@gmail.com>
|
103
104
|
* Kevin Schultz <schultkl@ieee.org>
|
104
105
|
* Laurent Sansonetti <lrz@gnome.org>
|
@@ -119,6 +120,11 @@ The following people have contributed to Alexandria over the years:
|
|
119
120
|
* Cathal Mc Ginley <cathal.alexandria@gnostai.org>
|
120
121
|
* Liam Davison <registrations@liamjdavison.info>
|
121
122
|
|
123
|
+
### Artists
|
124
|
+
|
125
|
+
* Andreas Nilsson <nisses.mail@home.se>
|
126
|
+
* Stefanie Dijoux <stefanie.dijoux@gmail.com>
|
127
|
+
|
122
128
|
### Translators
|
123
129
|
|
124
130
|
* Adrián Chaves Fernández <adriyetichaves@gmail.com> (gl)
|
@@ -140,18 +146,22 @@ The following people have contributed to Alexandria over the years:
|
|
140
146
|
* Piotr Drąg <piotrdrag@gmail.com> (pl)
|
141
147
|
* Serhij Dubyk <dubyk@library.lviv.ua> (uk)
|
142
148
|
|
143
|
-
###
|
144
|
-
|
145
|
-
*
|
146
|
-
*
|
149
|
+
### Former translators
|
150
|
+
* David Weinehall <tao@debian.org> (sv)
|
151
|
+
* Jiří Pejchal <jiri.pejchal@gmail.com> (cs)
|
152
|
+
* Laurent Sansonetti <lrz@gnome.org> (fr)
|
153
|
+
* Lucas Rocha <lucasr@im.ufba.br> (pt_BR)
|
154
|
+
* Marco Costantini <costanti@science.unitn.it> (it)
|
155
|
+
* Masao Mutoh <mutoh@highway.ne.jp> (ja)
|
156
|
+
* Mirko Maischberger <mirko@lilik.it> (it)
|
147
157
|
|
148
158
|
## License
|
149
159
|
|
150
160
|
Unless otherwise noted, the following license applies to all files that are
|
151
161
|
part of Alexandria:
|
152
162
|
|
153
|
-
Copyright (C) 2004
|
154
|
-
Copyright (C)
|
163
|
+
Copyright (C) 2004 Laurent Sansonetti
|
164
|
+
Copyright (C) 2005-2010,2014-2019 Alexandria Contributors
|
155
165
|
|
156
166
|
Alexandria is free software; you can redistribute it and/or modify it under the
|
157
167
|
terms of the GNU General Public License as published by the Free Software
|