glibrary 0.0.5 → 0.0.6
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 +5 -1
- data/modules/command_line_parse.rb +2 -2
- 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: c4ac86212be3fab6a235e0216dad02d0f839d9aa47dd156e3c7a9a4d1859e96a
|
4
|
+
data.tar.gz: fc6357e250be3d23b5581b230ad5b2ab33c450acd080fa71392a2da66ca8ef93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 050d5cb1869f8bc163d26eb4fe623acae8582ccd26f4c8b177fc0bca8bbe6c8b3cc9db6802c857b396375bfc77c32eb92d1a70cd855446387f34a96077f1d800
|
7
|
+
data.tar.gz: ed586d2e862b1c2402016447b75a3e3be642b590363359b35cf97b495e0fe5c4a885f9a390a24379c81b08e813210875d723ca8f38bff3c4619aa8825d634dd1
|
data/bin/glibrary
CHANGED
@@ -41,7 +41,11 @@ begin
|
|
41
41
|
search_user_prompt(temp_booklist, persistent_library)
|
42
42
|
|
43
43
|
rescue UserQuits
|
44
|
-
puts "\nThanks for browsing.
|
44
|
+
puts "\nThanks for browsing. Library file saved"
|
45
|
+
puts ""
|
46
|
+
rescue Errno::EACCES
|
47
|
+
puts "\nYou don't have permission to write to the file you specified. Quitting immediately"
|
48
|
+
puts ""
|
45
49
|
rescue NoInternetError
|
46
50
|
puts "\nNo internet connection. Please connect to the internet and try again."
|
47
51
|
puts ""
|
@@ -5,9 +5,9 @@ require_relative '../lib/user_library'
|
|
5
5
|
|
6
6
|
module CommandLineParse
|
7
7
|
require 'optparse'
|
8
|
-
include ExecHelper
|
9
|
-
include UserPrompt
|
10
8
|
include Errors
|
9
|
+
include UserPrompt
|
10
|
+
include ExecHelper
|
11
11
|
|
12
12
|
def handle_nonexistent_file(filename, library)
|
13
13
|
(puts "Library file not found, cannot display."; exit) if library
|