glibrary 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/glibrary +2 -2
- data/modules/command_line_parse.rb +1 -1
- data/modules/exec_helper.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ce83446d6daacc5d6f6091297bb24052103e5069c82a99aa5d3bf99b48abfd
|
4
|
+
data.tar.gz: a4f28c9a651a3bf86910810657828d850460682c602dcb37e13c1b6aee818776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac4fc64f4a08fbe330471f501b0000662eba38886503c324404cf2caafe5e9bb6095d16a34e719755baab43d9ef05d333c3f5c845f52898c144d0777c94acf6
|
7
|
+
data.tar.gz: 5293efc330c583482c989c904ab6adf70321e6f832cb10dacf2477624c38b8fb37f2a8fdb826aa28126b6531b1c84328ea4c0c15b3b4075fa692de703367cc10
|
data/bin/glibrary
CHANGED
@@ -26,11 +26,11 @@ process_args!
|
|
26
26
|
|
27
27
|
@options = {}
|
28
28
|
@filename = DEFAULT_FILENAME
|
29
|
-
command_line_parse!
|
29
|
+
command_line_parse! #this function processes @filename and fills the @options hash.
|
30
30
|
|
31
31
|
prepare_filename_for_os!
|
32
32
|
|
33
|
-
if
|
33
|
+
if library_mode?
|
34
34
|
|
35
35
|
with_library_mode_error_handling do
|
36
36
|
(@library = UserLibrary.new(filename: @filename)).pretty_print
|
@@ -38,7 +38,7 @@ module CommandLineParse
|
|
38
38
|
handle_nonexistent_file if ARGV.include?("-l") && !File.exist?(@filename)
|
39
39
|
end
|
40
40
|
|
41
|
-
opts.on("-l", "--library", "See your
|
41
|
+
opts.on("-l", "--library", "See your reading list; ignores all search options") do
|
42
42
|
@options = nil
|
43
43
|
return
|
44
44
|
end
|
data/modules/exec_helper.rb
CHANGED