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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44cd9100df73ac3cbb065f25f97dff3d9662a9b298290f36b85ff815f1961135
4
- data.tar.gz: 0af9aaa3e89a54b9af2e70fbaa859e4aeddaba8a0164bb08168ce5bdf06fd15a
3
+ metadata.gz: c4ac86212be3fab6a235e0216dad02d0f839d9aa47dd156e3c7a9a4d1859e96a
4
+ data.tar.gz: fc6357e250be3d23b5581b230ad5b2ab33c450acd080fa71392a2da66ca8ef93
5
5
  SHA512:
6
- metadata.gz: 52e7d63b7dfa0ce3db690ccd000c8ff8ee1ed7cf8fe054c82a5e8aa7792fe99cc33239666dc6d7e738601f803e091ac3612b181db0f1c2dde0bb1375498d06f2
7
- data.tar.gz: e65ad779eb048c5e8aec184d8fbfb9945cbae300eb2a834588ee00958256d2da400faf1bf6b7d8b74593c63f9793d0f898176bed08cb0e4883b5cd1005736fe0
6
+ metadata.gz: 050d5cb1869f8bc163d26eb4fe623acae8582ccd26f4c8b177fc0bca8bbe6c8b3cc9db6802c857b396375bfc77c32eb92d1a70cd855446387f34a96077f1d800
7
+ data.tar.gz: ed586d2e862b1c2402016447b75a3e3be642b590363359b35cf97b495e0fe5c4a885f9a390a24379c81b08e813210875d723ca8f38bff3c4619aa8825d634dd1
@@ -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. Nothing has been added to the reading list."
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glibrary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Engelbert