alexandria-book-collection-manager 0.7.3 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +9 -0
  3. data/.github/workflows/ruby.yml +77 -0
  4. data/.gitignore +4 -1
  5. data/.rubocop.yml +86 -36
  6. data/.rubocop_todo.yml +58 -161
  7. data/.simplecov +5 -2
  8. data/CHANGELOG.md +56 -2
  9. data/Gemfile +4 -3
  10. data/INSTALL.md +23 -11
  11. data/README.md +52 -41
  12. data/Rakefile +78 -75
  13. data/alexandria-book-collection-manager.gemspec +50 -44
  14. data/bin/alexandria +12 -22
  15. data/doc/FAQ +1 -2
  16. data/doc/dependency_decisions.yml +27 -8
  17. data/lib/alexandria.rb +25 -23
  18. data/lib/alexandria/about.rb +50 -50
  19. data/lib/alexandria/book_providers.rb +86 -91
  20. data/lib/alexandria/book_providers/adlibris.rb +37 -74
  21. data/lib/alexandria/book_providers/amazon_aws.rb +94 -100
  22. data/lib/alexandria/book_providers/amazon_ecs_util.rb +289 -324
  23. data/lib/alexandria/book_providers/barnes_and_noble.rb +42 -42
  24. data/lib/alexandria/book_providers/douban.rb +25 -41
  25. data/lib/alexandria/book_providers/proxis.rb +34 -29
  26. data/lib/alexandria/book_providers/pseudomarc.rb +77 -85
  27. data/lib/alexandria/book_providers/siciliano.rb +60 -64
  28. data/lib/alexandria/book_providers/thalia_provider.rb +161 -0
  29. data/lib/alexandria/book_providers/web.rb +5 -5
  30. data/lib/alexandria/book_providers/worldcat.rb +66 -95
  31. data/lib/alexandria/book_providers/z3950.rb +153 -169
  32. data/lib/alexandria/config.rb +1 -1
  33. data/lib/alexandria/console.rb +3 -3
  34. data/lib/alexandria/default_preferences.rb +37 -0
  35. data/lib/alexandria/execution_queue.rb +13 -12
  36. data/lib/alexandria/export_format.rb +8 -8
  37. data/lib/alexandria/export_library.rb +128 -127
  38. data/lib/alexandria/import_library.rb +102 -126
  39. data/lib/alexandria/import_library_csv.rb +41 -41
  40. data/lib/alexandria/library_collection.rb +6 -5
  41. data/lib/alexandria/library_sort_order.rb +4 -2
  42. data/lib/alexandria/library_store.rb +39 -28
  43. data/lib/alexandria/logging.rb +10 -14
  44. data/lib/alexandria/models/book.rb +5 -4
  45. data/lib/alexandria/models/library.rb +63 -53
  46. data/lib/alexandria/net.rb +5 -6
  47. data/lib/alexandria/preferences.rb +66 -63
  48. data/lib/alexandria/scanners.rb +2 -2
  49. data/lib/alexandria/scanners/{cuecat.rb → cue_cat.rb} +17 -17
  50. data/lib/alexandria/scanners/keyboard.rb +8 -8
  51. data/lib/alexandria/smart_library.rb +110 -112
  52. data/lib/alexandria/ui.rb +15 -15
  53. data/lib/alexandria/ui/{dialogs/about_dialog.rb → about_dialog.rb} +2 -2
  54. data/lib/alexandria/ui/{dialogs/acquire_dialog.rb → acquire_dialog.rb} +108 -109
  55. data/lib/alexandria/ui/alert_dialog.rb +66 -0
  56. data/lib/alexandria/ui/{dialogs/bad_isbns_dialog.rb → bad_isbns_dialog.rb} +13 -9
  57. data/lib/alexandria/ui/{dialogs/barcode_animation.rb → barcode_animation.rb} +16 -15
  58. data/lib/alexandria/ui/{dialogs/book_properties_dialog.rb → book_properties_dialog.rb} +25 -38
  59. data/lib/alexandria/ui/{dialogs/book_properties_dialog_base.rb → book_properties_dialog_base.rb} +64 -157
  60. data/lib/alexandria/ui/builder_base.rb +1 -1
  61. data/lib/alexandria/ui/calendar_popup.rb +58 -0
  62. data/lib/alexandria/ui/callbacks.rb +187 -155
  63. data/lib/alexandria/ui/completion_models.rb +8 -22
  64. data/lib/alexandria/ui/confirm_erase_dialog.rb +33 -0
  65. data/lib/alexandria/ui/conflict_while_copying_dialog.rb +34 -0
  66. data/lib/alexandria/ui/dndable.rb +7 -7
  67. data/lib/alexandria/ui/error_dialog.rb +25 -0
  68. data/lib/alexandria/ui/{dialogs/export_dialog.rb → export_dialog.rb} +37 -58
  69. data/lib/alexandria/ui/icons.rb +38 -43
  70. data/lib/alexandria/ui/iconview.rb +12 -10
  71. data/lib/alexandria/ui/iconview_tooltips.rb +41 -54
  72. data/lib/alexandria/ui/import_dialog.rb +157 -0
  73. data/lib/alexandria/ui/init.rb +30 -41
  74. data/lib/alexandria/ui/{dialogs/keep_bad_isbn_dialog.rb → keep_bad_isbn_dialog.rb} +9 -6
  75. data/lib/alexandria/ui/libraries_combo.rb +15 -14
  76. data/lib/alexandria/ui/listview.rb +69 -67
  77. data/lib/alexandria/ui/main_app.rb +24 -26
  78. data/lib/alexandria/ui/misc_dialogs.rb +10 -0
  79. data/lib/alexandria/ui/multi_drag_treeview.rb +8 -9
  80. data/lib/alexandria/ui/{dialogs/new_book_dialog.rb → new_book_dialog.rb} +113 -114
  81. data/lib/alexandria/ui/{dialogs/new_book_dialog_manual.rb → new_book_dialog_manual.rb} +22 -19
  82. data/lib/alexandria/ui/new_provider_dialog.rb +100 -0
  83. data/lib/alexandria/ui/new_smart_library_dialog.rb +74 -0
  84. data/lib/alexandria/ui/preferences_dialog.rb +313 -0
  85. data/lib/alexandria/ui/provider_preferences_base_dialog.rb +95 -0
  86. data/lib/alexandria/ui/provider_preferences_dialog.rb +35 -0
  87. data/lib/alexandria/ui/{dialogs/misc_dialogs.rb → really_delete_dialog.rb} +7 -28
  88. data/lib/alexandria/ui/{sidepane.rb → sidepane_manager.rb} +53 -48
  89. data/lib/alexandria/ui/skip_entry_dialog.rb +33 -0
  90. data/lib/alexandria/ui/smart_library_properties_dialog.rb +60 -0
  91. data/lib/alexandria/ui/smart_library_properties_dialog_base.rb +242 -0
  92. data/lib/alexandria/ui/smart_library_rule_box.rb +119 -0
  93. data/lib/alexandria/ui/sound.rb +11 -13
  94. data/lib/alexandria/ui/ui_manager.rb +216 -200
  95. data/lib/alexandria/version.rb +4 -19
  96. data/lib/alexandria/web_themes.rb +21 -21
  97. data/po/Makefile +2 -2
  98. data/po/cs.po +992 -875
  99. data/po/cy.po +961 -874
  100. data/po/de.po +990 -865
  101. data/po/el.po +989 -865
  102. data/po/es.po +985 -861
  103. data/po/fr.po +987 -867
  104. data/po/ga.po +908 -820
  105. data/po/gl.po +980 -860
  106. data/po/it.po +986 -864
  107. data/po/ja.po +969 -849
  108. data/po/mk.po +984 -860
  109. data/po/nb.po +979 -859
  110. data/po/nl.po +983 -860
  111. data/po/pl.po +1018 -971
  112. data/po/pt.po +988 -857
  113. data/po/pt_BR.po +983 -863
  114. data/po/ru.po +994 -871
  115. data/po/sk.po +989 -867
  116. data/po/sv.po +976 -856
  117. data/po/uk.po +972 -858
  118. data/po/zh_TW.po +974 -854
  119. data/schemas/alexandria.schemas +24 -2
  120. data/share/alexandria/glade/acquire_dialog__builder.glade +1 -1
  121. data/share/alexandria/glade/book_properties_dialog__builder.glade +1 -1
  122. data/share/alexandria/glade/main_app__builder.glade +6 -21
  123. data/share/alexandria/glade/new_book_dialog__builder.glade +1 -1
  124. data/share/alexandria/glade/preferences_dialog__builder.glade +1 -1
  125. data/share/gnome/help/alexandria/C/introduction.xml +0 -4
  126. data/share/gnome/help/alexandria/C/searching.xml +1 -1
  127. data/share/gnome/help/alexandria/C/smart-libraries.xml +2 -2
  128. data/share/gnome/help/alexandria/C/working-with-libraries.xml +1 -1
  129. data/share/gnome/help/alexandria/fr/alexandria.xml +1 -1
  130. data/share/gnome/help/alexandria/ja/introduction.xml +0 -4
  131. data/share/gnome/help/alexandria/ja/smart-libraries.xml +1 -1
  132. data/spec/alexandria/book_providers/thalia_provider_spec.rb +119 -0
  133. data/spec/alexandria/book_providers/world_cat_provider_spec.rb +160 -0
  134. data/spec/alexandria/book_providers_spec.rb +62 -156
  135. data/spec/alexandria/book_spec.rb +12 -10
  136. data/spec/alexandria/console_spec.rb +6 -11
  137. data/spec/alexandria/export_library_spec.rb +47 -58
  138. data/spec/alexandria/library_spec.rb +121 -109
  139. data/spec/alexandria/library_store_spec.rb +8 -8
  140. data/spec/alexandria/preferences_spec.rb +44 -17
  141. data/spec/alexandria/scanners/cue_cat_spec.rb +52 -0
  142. data/spec/alexandria/smart_library_spec.rb +15 -15
  143. data/spec/alexandria/ui/about_dialog_spec.rb +14 -0
  144. data/spec/alexandria/ui/acquire_dialog_spec.rb +14 -0
  145. data/spec/alexandria/ui/alert_dialog_spec.rb +16 -0
  146. data/spec/alexandria/ui/bad_isbns_dialog_spec.rb +14 -0
  147. data/spec/alexandria/ui/book_properties_dialog_spec.rb +59 -0
  148. data/spec/alexandria/ui/confirm_erase_dialog_spec.rb +14 -0
  149. data/spec/alexandria/ui/conflict_while_copying_dialog_spec.rb +16 -0
  150. data/spec/alexandria/ui/error_dialog_spec.rb +14 -0
  151. data/spec/alexandria/ui/export_dialog_spec.rb +36 -0
  152. data/spec/alexandria/ui/icons_spec.rb +26 -0
  153. data/spec/alexandria/ui/iconview_spec.rb +7 -21
  154. data/spec/alexandria/ui/import_dialog_spec.rb +46 -0
  155. data/spec/alexandria/ui/keep_bad_isbn_dialog_spec.rb +17 -0
  156. data/spec/alexandria/ui/main_app_spec.rb +7 -34
  157. data/spec/alexandria/ui/new_book_dialog_manual_spec.rb +51 -0
  158. data/spec/alexandria/ui/{dialogs/new_book_dialog_spec.rb → new_book_dialog_spec.rb} +4 -4
  159. data/spec/alexandria/ui/new_provider_dialog_spec.rb +30 -0
  160. data/spec/alexandria/ui/new_smart_library_dialog_spec.rb +39 -0
  161. data/spec/alexandria/ui/preferences_dialog_spec.rb +14 -0
  162. data/spec/alexandria/ui/provider_preferences_dialog_spec.rb +34 -0
  163. data/spec/alexandria/ui/really_delete_dialog_spec.rb +16 -0
  164. data/spec/alexandria/ui/sidepane_manager_spec.rb +15 -0
  165. data/spec/alexandria/ui/skip_entry_dialog_spec.rb +14 -0
  166. data/spec/alexandria/ui/smart_library_properties_dialog_spec.rb +49 -0
  167. data/spec/alexandria/ui/sound_spec.rb +2 -2
  168. data/spec/alexandria/ui/ui_manager_spec.rb +44 -20
  169. data/spec/end_to_end/basic_run_spec.rb +21 -38
  170. data/spec/fixtures/cover.jpg +0 -0
  171. data/spec/spec_helper.rb +54 -10
  172. data/tasks/setup.rb +2 -2
  173. data/tasks/spec.rake +11 -11
  174. data/util/rake/fileinstall.rb +38 -35
  175. data/util/rake/gettextgenerate.rb +7 -7
  176. data/util/rake/omfgenerate.rb +7 -7
  177. metadata +158 -45
  178. data/dogtail/basic_run_test.py +0 -9
  179. data/lib/alexandria/book_providers/renaud.rb +0 -155
  180. data/lib/alexandria/book_providers/thalia.rb +0 -198
  181. data/lib/alexandria/ui/dialogs/alert_dialog.rb +0 -63
  182. data/lib/alexandria/ui/dialogs/import_dialog.rb +0 -176
  183. data/lib/alexandria/ui/dialogs/new_smart_library_dialog.rb +0 -62
  184. data/lib/alexandria/ui/dialogs/preferences_dialog.rb +0 -563
  185. data/lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb +0 -61
  186. data/lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb +0 -423
  187. data/spec/alexandria/scanners/cuecat_spec.rb +0 -67
  188. data/spec/alexandria/ui/dialogs_spec.rb +0 -162
  189. data/spec/alexandria/ui/sidepane_spec.rb +0 -29
  190. data/spec/alexandria/ui/ui_utilities_spec.rb +0 -62
  191. data/spec/alexandria/utilities_spec.rb +0 -52
  192. data/tasks/dogtail.rake +0 -6
@@ -1,62 +1,68 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'lib/alexandria/version'
3
+ require_relative "lib/alexandria/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = 'alexandria-book-collection-manager'
6
+ s.name = "alexandria-book-collection-manager"
7
7
  s.version = Alexandria::VERSION
8
8
 
9
- s.summary = 'GNOME application for managing collections of books'
10
- s.required_ruby_version = '>= 2.3.0'
9
+ s.summary = "GNOME application for managing collections of books"
10
+ s.required_ruby_version = ">= 2.5.0"
11
11
 
12
12
  s.authors = [
13
- 'Alexander McCormmach',
14
- 'Aymeric Nys',
15
- 'Cathal Mc Ginley',
16
- 'Claudio Belotti',
17
- 'Constantine Evans',
18
- 'Dafydd Harries',
19
- 'Javier Fernandez-Sanguino Pena',
20
- 'Joseph Method',
21
- 'Kevin Schultz',
22
- 'Laurent Sansonetti',
23
- 'Marco Costantini',
24
- 'Mathieu Leduc-Hamel',
25
- 'Matijs van Zuijlen',
26
- 'Owain Evans',
27
- 'Pascal Terjan',
28
- 'Rene Samselnig',
29
- 'Robby Stephenson',
30
- 'Sun Ning',
31
- 'Takayuki Kusano',
32
- 'Timothy Malone',
33
- 'Zachary P. Landau'
13
+ "Alexander McCormmach",
14
+ "Aymeric Nys",
15
+ "Cathal Mc Ginley",
16
+ "Claudio Belotti",
17
+ "Constantine Evans",
18
+ "Dafydd Harries",
19
+ "Javier Fernandez-Sanguino Pena",
20
+ "Joseph Method",
21
+ "Kevin Schultz",
22
+ "Laurent Sansonetti",
23
+ "Marco Costantini",
24
+ "Mathieu Leduc-Hamel",
25
+ "Matijs van Zuijlen",
26
+ "Owain Evans",
27
+ "Pascal Terjan",
28
+ "Rene Samselnig",
29
+ "Robby Stephenson",
30
+ "Sun Ning",
31
+ "Takayuki Kusano",
32
+ "Timothy Malone",
33
+ "Zachary P. Landau"
34
34
  ]
35
- s.email = ['matijs@matijs.net']
36
- s.homepage = 'http://www.github.com/mvz/alexandria-book-collection-manager'
35
+ s.email = ["matijs@matijs.net"]
36
+ s.homepage = "http://www.github.com/mvz/alexandria-book-collection-manager"
37
37
 
38
- s.license = 'GPL-2'
38
+ s.license = "GPL-2"
39
39
 
40
40
  s.files = `git ls-files -z`.split("\0") |
41
- ['lib/alexandria/default_preferences.rb']
41
+ ["lib/alexandria/default_preferences.rb"]
42
42
 
43
- s.executables = ['alexandria']
43
+ s.executables = ["alexandria"]
44
44
 
45
- s.rdoc_options = ['--main', 'README.md']
45
+ s.rdoc_options = ["--main", "README.md"]
46
46
 
47
- s.add_runtime_dependency('gettext', ['~> 3.1'])
48
- s.add_runtime_dependency('gstreamer', ['~> 3.3.0'])
49
- s.add_runtime_dependency('gtk3', ['~> 3.3.0'])
50
- s.add_runtime_dependency('hpricot', ['~> 0.8.5'])
51
- s.add_runtime_dependency('htmlentities', ['~> 4.3'])
52
- s.add_runtime_dependency('image_size', ['~> 2.0'])
53
- s.add_runtime_dependency('marc', ['~> 1.0.0'])
54
- s.add_runtime_dependency('zoom', ['~> 0.5.0'])
47
+ s.add_runtime_dependency("gettext", ["~> 3.1"])
48
+ s.add_runtime_dependency("gstreamer", ["~> 3.4.3"])
49
+ s.add_runtime_dependency("gtk3", ["~> 3.4.3"])
50
+ s.add_runtime_dependency("hpricot", ["~> 0.8.5"])
51
+ s.add_runtime_dependency("htmlentities", ["~> 4.3"])
52
+ s.add_runtime_dependency("image_size", ["~> 2.0"])
53
+ s.add_runtime_dependency("marc", ["~> 1.0.0"])
54
+ s.add_runtime_dependency("psych", ["~> 3.2.0"])
55
+ s.add_runtime_dependency("zoom", ["~> 0.5.0"])
55
56
 
56
- s.add_development_dependency('gnome_app_driver', ['~> 0.2.1'])
57
- s.add_development_dependency('minitest', ['~> 5.0'])
58
- s.add_development_dependency('rake', ['~> 12.0'])
59
- s.add_development_dependency('rspec', ['~> 3.0'])
57
+ s.add_development_dependency("gnome_app_driver", "~> 0.3.0")
58
+ s.add_development_dependency("minitest", ["~> 5.0"])
59
+ s.add_development_dependency("rake", ["~> 13.0"])
60
+ s.add_development_dependency("rspec", ["~> 3.0"])
61
+ s.add_development_dependency("rubocop", "~> 0.93.1")
62
+ s.add_development_dependency("rubocop-i18n", ["~> 2.0.2"])
63
+ s.add_development_dependency("rubocop-performance", "~> 1.9.0")
64
+ s.add_development_dependency("rubocop-rspec", "~> 1.44.1")
65
+ s.add_development_dependency("webmock", "~> 3.9")
60
66
 
61
- s.require_paths = ['lib']
67
+ s.require_paths = ["lib"]
62
68
  end
@@ -5,39 +5,29 @@
5
5
  #
6
6
  # See the file README.md for authorship and licensing information.
7
7
 
8
- require 'gettext'
9
- require 'alexandria'
10
- require 'optparse'
11
- require 'ostruct'
8
+ require "gettext"
9
+ require "alexandria"
10
+ require "optparse"
11
+ require "ostruct"
12
12
 
13
13
  store = Alexandria::LibraryStore.new(Alexandria::Library::DEFAULT_DIR)
14
14
  Alexandria::LibraryCollection.instance.library_store = store
15
15
 
16
16
  # options = OpenStruct.new
17
17
  OptionParser.new do |opts|
18
- opts.banner = 'Usage: alexandria [options]'
19
- opts.on('-l', '--list', 'List libraries in numbered format') do
18
+ opts.banner = "Usage: alexandria [options]"
19
+ opts.on("-l", "--list", "List libraries in numbered format") do
20
20
  puts Alexandria.list_books_on_console
21
21
  exit
22
22
  end
23
- # opts.on("--output FORMAT",
24
- # "Output library as FORMAT: csv|xml|yaml; use with --library or omit for ALL") do |val|
25
- # options.format = val
26
- # exit
27
- # end
28
- # opts.on("--library LIBRARY",
29
- # "Used with --output to pick a library to output") do |val|
30
- # options.library = val
31
- # exit
32
- # end
33
- opts.on('-d', '--debug', 'Run in debug mode') do
23
+ opts.on("-d", "--debug", "Run in debug mode") do
34
24
  $DEBUG = true
35
25
  end
36
- opts.on('-h', '--help', 'Show help options') do
26
+ opts.on("-h", "--help", "Show help options") do
37
27
  puts opts
38
28
  exit
39
29
  end
40
- opts.on('-v', '--version', 'Get version number') do
30
+ opts.on("-v", "--version", "Get version number") do
41
31
  puts Alexandria::VERSION
42
32
  exit
43
33
  end
@@ -45,15 +35,15 @@ end.parse!
45
35
 
46
36
  begin
47
37
  Alexandria.main
48
- rescue StandardError => e
38
+ rescue StandardError => ex
49
39
  warn <<~EOS
50
40
  -----------------------
51
41
  Alexandria just crashed
52
42
  -----------------------
53
43
  Timestamp: #{Time.now}
54
- Message: #{e.message}
44
+ Message: #{ex.message}
55
45
  Backtrace:
56
- #{e.backtrace.join("\n")}
46
+ #{ex.backtrace.join("\n")}
57
47
  Release: #{Alexandria::VERSION}(#{Alexandria::DISPLAY_VERSION})
58
48
  Uname -a: #{`uname -a`.chomp}
59
49
  --
data/doc/FAQ CHANGED
@@ -290,8 +290,7 @@ Question: I prefer to have the field "Author" as "Surname, Name" instead
290
290
  of "Name Surname".
291
291
 
292
292
  Answer: Alexandria relies on what the providers say:
293
- some providers report "Surname, Name": Renaud,
294
- some "Surname Name": Webster.it, Ibs.it,
293
+ some providers report "Surname Name": Webster.it, Ibs.it,
295
294
  some "Name Surname": Bn, Thalia, Bol.it, Adlibris, L Siciliano, Worldcat,
296
295
  and some without any rule: Amazon, Proxis.
297
296
  You can change, in the preferences, the order in which the providers are
@@ -1,29 +1,29 @@
1
1
  ---
2
- - - :whitelist
2
+ - - :permit
3
3
  - LGPL-3+
4
4
  - :who:
5
5
  :why:
6
6
  :versions: []
7
7
  :when: 2017-07-23 05:51:53.629753437 Z
8
- - - :whitelist
8
+ - - :permit
9
9
  - LGPL-2.1+
10
10
  - :who:
11
11
  :why:
12
12
  :versions: []
13
13
  :when: 2017-07-23 05:52:02.088395832 Z
14
- - - :whitelist
14
+ - - :permit
15
15
  - MIT
16
16
  - :who:
17
17
  :why:
18
18
  :versions: []
19
19
  :when: 2017-07-23 05:52:06.806192042 Z
20
- - - :whitelist
20
+ - - :permit
21
21
  - LGPLv2+
22
22
  - :who:
23
23
  :why:
24
24
  :versions: []
25
25
  :when: 2017-07-23 05:52:24.618189811 Z
26
- - - :whitelist
26
+ - - :permit
27
27
  - ruby
28
28
  - :who:
29
29
  :why:
@@ -53,9 +53,28 @@
53
53
  :why:
54
54
  :versions: []
55
55
  :when: 2017-07-23 05:54:54.822319735 Z
56
- - - :approve
56
+ - - :license
57
57
  - zoom
58
+ - LGPL-2.1
59
+ - :who:
60
+ :why:
61
+ :versions: []
62
+ :when: 2020-07-30 06:44:22.960902375 Z
63
+ - - :permit
64
+ - Simplified BSD
58
65
  - :who:
59
- :why: Actually licensed under LGPL-2.1
66
+ :why:
67
+ :versions: []
68
+ :when: 2020-07-30 06:45:58.599399721 Z
69
+ - - :permit
70
+ - Apache 2.0
71
+ - :who:
72
+ :why:
73
+ :versions: []
74
+ :when: 2020-07-30 06:46:08.280121582 Z
75
+ - - :permit
76
+ - LGPL-2.1
77
+ - :who:
78
+ :why:
60
79
  :versions: []
61
- :when: 2017-07-23 06:00:43.594558953 Z
80
+ :when: 2020-07-30 06:46:32.729325577 Z
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # See the file README.md for authorship and licensing information.
6
6
 
7
- require 'gettext'
7
+ require "gettext"
8
8
 
9
9
  # XXX: Gettext hotfix
10
10
  module Gem
@@ -16,18 +16,20 @@ module Gem
16
16
  end
17
17
  end
18
18
 
19
- require 'logger'
20
- require 'alexandria/logging'
21
- require 'alexandria/about'
19
+ require "logger"
20
+ require "alexandria/logging"
21
+ require "alexandria/about"
22
22
 
23
23
  module Alexandria
24
24
  def self.set_proxy
25
- ENV['http_proxy'] = nil if !ENV['http_proxy'].nil? && URI.parse(ENV['http_proxy']).userinfo.nil?
25
+ if !ENV["http_proxy"].nil? && URI.parse(ENV["http_proxy"]).userinfo.nil?
26
+ ENV["http_proxy"] = nil
27
+ end
26
28
  end
27
29
 
28
30
  def self.set_log_level
29
- Alexandria.log.level = Logger::DEBUG if $DEBUG
30
- Alexandria.log.debug { 'Initializing Alexandria...' }
31
+ log.level = Logger::DEBUG if $DEBUG
32
+ log.debug { "Initializing Alexandria" }
31
33
  end
32
34
 
33
35
  def self.main
@@ -39,8 +41,8 @@ end
39
41
 
40
42
  # lrz says 'macui' is obsolete (may be supported again some day)
41
43
  # unless $MACOSX
42
- require 'alexandria/config'
43
- require 'alexandria/version'
44
+ require "alexandria/config"
45
+ require "alexandria/version"
44
46
 
45
47
  # else
46
48
  # module Alexandria
@@ -51,22 +53,22 @@ require 'alexandria/version'
51
53
  # end
52
54
  # end
53
55
 
54
- require 'alexandria/models/book'
55
- require 'alexandria/library_store'
56
- require 'alexandria/library_collection'
57
- require 'alexandria/models/library'
56
+ require "alexandria/models/book"
57
+ require "alexandria/library_store"
58
+ require "alexandria/library_collection"
59
+ require "alexandria/models/library"
58
60
 
59
- require 'alexandria/smart_library'
60
- require 'alexandria/execution_queue'
61
- require 'alexandria/import_library'
62
- require 'alexandria/export_library'
63
- require 'alexandria/book_providers'
64
- require 'alexandria/preferences'
65
- require 'alexandria/undo_manager'
66
- require 'alexandria/web_themes'
61
+ require "alexandria/smart_library"
62
+ require "alexandria/execution_queue"
63
+ require "alexandria/import_library"
64
+ require "alexandria/export_library"
65
+ require "alexandria/book_providers"
66
+ require "alexandria/preferences"
67
+ require "alexandria/undo_manager"
68
+ require "alexandria/web_themes"
67
69
 
68
70
  # lrz says 'macui' is obsolete (may be supported again some day)
69
71
  # require $MACOSX ? 'alexandria/macui' : 'alexandria/ui'
70
72
 
71
- require 'alexandria/ui'
72
- require 'alexandria/console'
73
+ require "alexandria/ui"
74
+ require "alexandria/console"
@@ -20,64 +20,64 @@
20
20
  # Fifth Floor, Boston, MA 02110-1301 USA.
21
21
 
22
22
  module Alexandria
23
- TITLE = 'Alexandria'
24
- TEXTDOMAIN = 'alexandria'
23
+ TITLE = "Alexandria"
24
+ TEXTDOMAIN = "alexandria"
25
25
  extend GetText
26
- bindtextdomain(Alexandria::TEXTDOMAIN, charset: 'UTF-8')
27
- DESCRIPTION = _('A program to help you manage your book collection.')
26
+ bindtextdomain(Alexandria::TEXTDOMAIN, charset: "UTF-8")
27
+ DESCRIPTION = _("A program to help you manage your book collection.")
28
28
  COPYRIGHT = "Copyright (C) 2004-2006 Laurent Sansonetti\n" \
29
- 'Copyright (C) 2007-2010,2014,2015 Alexandria Contributors'
29
+ "Copyright (C) 2007-2010,2014,2015 Alexandria Contributors"
30
30
  AUTHORS = [
31
- 'Alexander McCormmach <alexander@tunicate.org>',
32
- 'Aymeric Nys <aymeric@nnx.com>',
33
- 'Cathal Mc Ginley <cathal.alexandria@gnostai.org>',
34
- 'Claudio Belotti <bel8@lilik.it>',
35
- 'Constantine Evans <cevans@costinet.org>',
36
- 'Dafydd Harries <daf@muse.19inch.net>',
37
- 'Javier Fernandez-Sanguino Pena <jfs@debian.org>',
38
- 'Joseph Method <tristil@gmail.com>',
39
- 'Kevin Schultz <schultkl@ieee.org>',
40
- 'Laurent Sansonetti <lrz@gnome.org>',
41
- 'Marco Costantini <costanti@science.unitn.it>',
42
- 'Mathieu Leduc-Hamel <arrak@arrak.org>',
43
- 'Matijs van Zuijlen <matijs@matijs.net>',
44
- 'Owain Evans <o.evans@gmail.com>',
45
- 'Pascal Terjan <pterjan@linuxfr.org>',
46
- 'Rene Samselnig <sandman@sdm-net.org>',
47
- 'Robby Stephenson <robby@periapsis.org>',
48
- 'Sun Ning <classicning@gmail.com>',
49
- 'Takayuki Kusano <AE5T-KSN@asahi-net.or.jp>',
50
- 'Timothy Malone <timothy.malone@gmail.com>',
51
- 'Zachary P. Landau <kapheine@hypa.net>'
31
+ "Alexander McCormmach <alexander@tunicate.org>",
32
+ "Aymeric Nys <aymeric@nnx.com>",
33
+ "Cathal Mc Ginley <cathal.alexandria@gnostai.org>",
34
+ "Claudio Belotti <bel8@lilik.it>",
35
+ "Constantine Evans <cevans@costinet.org>",
36
+ "Dafydd Harries <daf@muse.19inch.net>",
37
+ "Javier Fernandez-Sanguino Pena <jfs@debian.org>",
38
+ "Joseph Method <tristil@gmail.com>",
39
+ "Kevin Schultz <schultkl@ieee.org>",
40
+ "Laurent Sansonetti <lrz@gnome.org>",
41
+ "Marco Costantini <costanti@science.unitn.it>",
42
+ "Mathieu Leduc-Hamel <arrak@arrak.org>",
43
+ "Matijs van Zuijlen <matijs@matijs.net>",
44
+ "Owain Evans <o.evans@gmail.com>",
45
+ "Pascal Terjan <pterjan@linuxfr.org>",
46
+ "Rene Samselnig <sandman@sdm-net.org>",
47
+ "Robby Stephenson <robby@periapsis.org>",
48
+ "Sun Ning <classicning@gmail.com>",
49
+ "Takayuki Kusano <AE5T-KSN@asahi-net.or.jp>",
50
+ "Timothy Malone <timothy.malone@gmail.com>",
51
+ "Zachary P. Landau <kapheine@hypa.net>"
52
52
  ].freeze
53
53
  DOCUMENTERS = [
54
- 'Cathal Mc Ginley <cathal.alexandria@gnostai.org>',
55
- 'Liam Davison <registrations@liamjdavison.info>'
54
+ "Cathal Mc Ginley <cathal.alexandria@gnostai.org>",
55
+ "Liam Davison <registrations@liamjdavison.info>"
56
56
  ].freeze
57
57
  TRANSLATORS = [
58
- 'Adrián Chaves Fernández <adriyetichaves@gmail.com> (gl)',
59
- 'Cathal Mc Ginley <cathal.alexandria@gnostai.org> (ga)',
60
- 'CHIKAMA Masaki <masaki.chikama@gmail.com> (ja)',
61
- 'Dafydd Harries <daf@muse.19inch.net> (cy)',
62
- 'Damjan Dimitrioski <damjandimitrioski@gmail.com> (mk)',
63
- 'Giacomo Margarito <giacomomargarito@gmail.com> (it)',
64
- 'Jack Myrseh <jack@enkom.no> (nb)',
65
- 'Joachim Breitner <mail@joachim-breitner.de> (de)',
66
- 'José Ling <jlgdot369@gmail.com> (zh_TW)',
67
- 'Lennart Karssen <lennart@karssen.org> (nl)',
68
- 'Lígia Moreira <ligia.moreira@netvisao.pt> (fr, pt, pt_BR)',
69
- 'Martin Karlsson <martinkarlsson81@hotmail.com> (sv)',
70
- 'Michael Kotsarinis <mkotsari1@pre.forthnet.gr> (el)',
71
- 'Miguel Ángel García <magmax@ieee.org> (es)',
72
- 'Peter Kováč <kovac.peter@fotopriestor.sk> (sk)',
73
- 'Petr Vanek <vanous@penguin.cz> (cs)',
74
- 'Piotr Drąg <piotrdrag@gmail.com> (pl)',
75
- 'Serhij Dubyk <dubyk@library.lviv.ua> (uk)'
58
+ "Adrián Chaves Fernández <adriyetichaves@gmail.com> (gl)",
59
+ "Cathal Mc Ginley <cathal.alexandria@gnostai.org> (ga)",
60
+ "CHIKAMA Masaki <masaki.chikama@gmail.com> (ja)",
61
+ "Dafydd Harries <daf@muse.19inch.net> (cy)",
62
+ "Damjan Dimitrioski <damjandimitrioski@gmail.com> (mk)",
63
+ "Giacomo Margarito <giacomomargarito@gmail.com> (it)",
64
+ "Jack Myrseh <jack@enkom.no> (nb)",
65
+ "Joachim Breitner <mail@joachim-breitner.de> (de)",
66
+ "José Ling <jlgdot369@gmail.com> (zh_TW)",
67
+ "Lennart Karssen <lennart@karssen.org> (nl)",
68
+ "Lígia Moreira <ligia.moreira@netvisao.pt> (fr, pt, pt_BR)",
69
+ "Martin Karlsson <martinkarlsson81@hotmail.com> (sv)",
70
+ "Michael Kotsarinis <mkotsari1@pre.forthnet.gr> (el)",
71
+ "Miguel Ángel García <magmax@ieee.org> (es)",
72
+ "Peter Kováč <kovac.peter@fotopriestor.sk> (sk)",
73
+ "Petr Vanek <vanous@penguin.cz> (cs)",
74
+ "Piotr Drąg <piotrdrag@gmail.com> (pl)",
75
+ "Serhij Dubyk <dubyk@library.lviv.ua> (uk)"
76
76
  ].freeze
77
77
  ARTISTS = [
78
- 'Andreas Nilsson <nisses.mail@home.se>',
79
- 'Stefanie Dijoux <stefanie.dijoux@gmail.com>'
78
+ "Andreas Nilsson <nisses.mail@home.se>",
79
+ "Stefanie Dijoux <stefanie.dijoux@gmail.com>"
80
80
  ].freeze
81
- BUGREPORT_URL = 'http://www.github.com/mvz/alexandria-book-collection-manager/issues'
82
- WEBSITE_URL = 'http://www.github.com/mvz/alexandria-book-collection-manager'
81
+ BUGREPORT_URL = "http://www.github.com/mvz/alexandria-book-collection-manager/issues"
82
+ WEBSITE_URL = "http://www.github.com/mvz/alexandria-book-collection-manager"
83
83
  end