romloader 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a27354c3fb5cbce3b0bb3fe2290caba0e6110ae5
4
- data.tar.gz: db4f48e16aa01cd4ee3c83889a343b549a56a790
3
+ metadata.gz: e9bb3a8870cdcaebf9ec5f44754fdb697e313dea
4
+ data.tar.gz: 6c944e9e96e9505f8d83081c0db5c0424afdb09f
5
5
  SHA512:
6
- metadata.gz: f76c3079cecdd46b4649961f5658e44ee436b3614c0f0385017b7cd9672c5360e4b2f78f011f1cf057737a99a771a6717069130a19c6bb5e4d5cd1e6226c8fbc
7
- data.tar.gz: 0367b2ba71e4c1be0f402f48c1eb43b37e5b758dd8e2a78c9ceddcc5ba01de3f30ca236769e8a4c43a23ea6c97787f420ea8d63fd77081ece89da8f4dadcf908
6
+ metadata.gz: 2b1dd32afbd50206ea733e4fea79a02e48932a0963ef4304d48a49f2face5faee6bbb016c851cafcbfe974b979cb0bb6d471c5fb93abf6a1b47a85281d234af6
7
+ data.tar.gz: 80de40f251ca72891e293c2df05ca2b237a1a7c7b24ed31cb965ca0f85b57c0f9a4df21b85fa39268812558ac61815c304435599008383c577fd936950b68a5e
data/README.md CHANGED
@@ -14,7 +14,7 @@ Type the command below into your shell and follow the on screen prompts.
14
14
 
15
15
  ## Development
16
16
 
17
- To develop further upon this gem, fork and clone the repository located at https://github.com/jinstrider2000/romloader-cli-gem.
17
+ To develop further upon this gem, fork and clone the repository located at https://github.com/jinstrider2000/romloader.
18
18
  Be sure to have the Bundler gem installed, and run:
19
19
 
20
20
  $ bundle install
@@ -23,14 +23,17 @@ This will download any dependencies for development. Rspec is among the dependen
23
23
 
24
24
  ## Contributing
25
25
 
26
- Bug reports and pull requests are welcome on GitHub at https://github.com/jinstrider2000/romloader-cli-gem.
26
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jinstrider2000/romloader.
27
27
 
28
28
  ## Version Changes
29
+
30
+ v. 1.2.4: Fixed bug in regexp checking when entering single characters
31
+
29
32
  v. 1.2.3: Updated error handling and scraping of file sizes from Freeroms.com
30
33
 
31
34
  v. 1.2.2: Updated web scraping function
32
35
 
33
- v. 1.2: Added basic file managment capability for Windows (requires Powershell v 3.0 or higher). Also updated UI slightly.
36
+ v. 1.2: Added basic file managment capability for Windows (requires Powershell v 3.0 or higher). Also updated UI slightly
34
37
 
35
38
  v. 1.1: Added basic rom download capability for Windows (requires Powershell v 3.0 or higher)
36
39
 
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  # The CLI class
3
2
  class RomLoader::RomLoaderCli
4
3
 
@@ -38,7 +37,7 @@ class RomLoader::RomLoaderCli
38
37
  input_stack.shift
39
38
  end
40
39
  else
41
- input = input_prompt("Select a letter [back|exit]:", /[#{system.get_rom_indices.join.downcase}]/,control_flow_level)
40
+ input = input_prompt("Select a letter [back|exit]:", /\A[#{system.get_rom_indices.join.downcase}]{1}\Z/,control_flow_level)
42
41
  control_flow_level = flow_controller(input,control_flow_level,input_stack)
43
42
  end
44
43
  when 3
@@ -70,15 +69,15 @@ class RomLoader::RomLoaderCli
70
69
  end
71
70
  else
72
71
  display_rom_details(game)
73
- input = input_prompt("Download? (Y/n) [exit]:", /[yn]/, control_flow_level)
72
+ input = input_prompt("Download? (Y/n) [exit]:", /\A[yn]{1}\Z/, control_flow_level)
74
73
  if input == 'y' || input == ""
75
74
  file_or_dir_to_open = download_rom(game)
76
75
  if file_or_dir_to_open
77
76
  if /\".+\"/.match(file_or_dir_to_open)
78
77
  game_file = /\".+\"/.match(file_or_dir_to_open)[0]
79
- input = input_prompt("Play #{game_file}? (y/N) [exit]:", /[yn]/,control_flow_level)
78
+ input = input_prompt("Play #{game_file}? (y/N) [exit]:", /\A[yn]{1}\Z/,control_flow_level)
80
79
  else
81
- input = input_prompt("Open #{file_or_dir_to_open}? (y/N) [exit]:", /[yn]/,control_flow_level)
80
+ input = input_prompt("Open #{file_or_dir_to_open}? (y/N) [exit]:", /\A[yn]{1}\Z/,control_flow_level)
82
81
  end
83
82
 
84
83
  if !isWindows?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Efrain Perez Jr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
11
+ date: 2017-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri