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 +4 -4
- data/README.md +6 -3
- data/lib/romloader/romloader_cli.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9bb3a8870cdcaebf9ec5f44754fdb697e313dea
|
4
|
+
data.tar.gz: 6c944e9e96e9505f8d83081c0db5c0424afdb09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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]:",
|
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]:",
|
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]:",
|
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]:",
|
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.
|
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-
|
11
|
+
date: 2017-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|