gamerom 0.4.0 → 0.4.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/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/gamerom/cli.rb +8 -4
- data/lib/gamerom/version.rb +1 -1
- 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: bb5b2436db69a148330e79002fe0f1b854de9f2c906e02d8a8a5e53aa14cea84
|
4
|
+
data.tar.gz: b346cbf782f88c1a9a1f56930724e51aa5ff636f49addb7c72a96467133a2998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456f9d5115633ce378184d997d951cf34abccf02ed726a985ddcec8113075e4336504cceea0f4c92b73b5495db8bd9bfbf3d4e84d6ce15ff176a528cfdeb4477
|
7
|
+
data.tar.gz: 852d4cf9d0c17b01df6352cb96ed149136492e316d5f7bc16b3ade069a681a7f3842aec9b20da5eec84a3eae335bd72f4e9bae03554d4ec45219c0ec9b11f9ea
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.4.1] - 2021-05-18
|
10
|
+
- Enables specifying game identifier without using quotes
|
11
|
+
|
9
12
|
## [0.4.0] - 2021-05-18
|
10
13
|
- Refactor code #2
|
11
14
|
- Fix all rubocop errors/warnings
|
@@ -31,7 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
31
34
|
## [0.1.0] - 2021-05-07
|
32
35
|
- Initial release
|
33
36
|
|
34
|
-
[Unreleased]: https://github.com/lucasmundim/gamerom/compare/v0.4.
|
37
|
+
[Unreleased]: https://github.com/lucasmundim/gamerom/compare/v0.4.1...HEAD
|
38
|
+
[0.4.1]: https://github.com/lucasmundim/gamerom/compare/v0.4.0...v0.4.1
|
35
39
|
[0.4.0]: https://github.com/lucasmundim/gamerom/compare/v0.3.0...v0.4.0
|
36
40
|
[0.3.0]: https://github.com/lucasmundim/gamerom/compare/v0.2.2...v0.3.0
|
37
41
|
[0.2.2]: https://github.com/lucasmundim/gamerom/compare/v0.2.1...v0.2.2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -15,7 +15,7 @@ It currently supports the following repositories:
|
|
15
15
|
Add this to your .bashrc, .bash_aliases, etc:
|
16
16
|
|
17
17
|
```
|
18
|
-
alias gamerom="docker run -e UID=$(id -u) -e GROUP_ID=$(id -g) --rm -it -v ~/.gamerom:/home/runuser/.gamerom docker.io/lucasmundim/gamerom:0.4.
|
18
|
+
alias gamerom="docker run -e UID=$(id -u) -e GROUP_ID=$(id -g) --rm -it -v ~/.gamerom:/home/runuser/.gamerom docker.io/lucasmundim/gamerom:0.4.1"
|
19
19
|
```
|
20
20
|
|
21
21
|
Use it as:
|
@@ -585,7 +585,7 @@ Print program version
|
|
585
585
|
|
586
586
|
```
|
587
587
|
$ gamerom version
|
588
|
-
0.4.
|
588
|
+
0.4.1
|
589
589
|
```
|
590
590
|
|
591
591
|
## Development
|
data/lib/gamerom/cli.rb
CHANGED
@@ -25,7 +25,8 @@ module Gamerom
|
|
25
25
|
desc 'info GAME_IDENTIFIER', 'Info for game GAME_IDENTIFIER (id/name)'
|
26
26
|
option :repo, aliases: ['-r'], type: :string, required: true, desc: 'Which repo to use', enum: Gamerom::Repo.list.map(&:to_s)
|
27
27
|
option :platform, aliases: ['-p'], type: :string, required: true, desc: 'Which platform to use'
|
28
|
-
def info(
|
28
|
+
def info(*args)
|
29
|
+
game_identifier = args.join(' ')
|
29
30
|
repo = Repo.new(options[:repo])
|
30
31
|
validate_platform repo, options[:platform]
|
31
32
|
puts "showing info for game #{game_identifier} on #{options[:platform]} platform on #{options[:repo]} repo..."
|
@@ -44,7 +45,8 @@ module Gamerom
|
|
44
45
|
desc 'install GAME_IDENTIFIER', 'Install game GAME_IDENTIFIER (id/name)'
|
45
46
|
option :repo, aliases: ['-r'], type: :string, required: true, desc: 'Which repo to use', enum: Gamerom::Repo.list.map(&:to_s)
|
46
47
|
option :platform, aliases: ['-p'], type: :string, required: true, desc: 'Which platform to use'
|
47
|
-
def install(
|
48
|
+
def install(*args)
|
49
|
+
game_identifier = args.join(' ')
|
48
50
|
repo = Repo.new(options[:repo])
|
49
51
|
validate_platform repo, options[:platform]
|
50
52
|
game = repo.find(options[:platform], game_identifier)
|
@@ -166,7 +168,8 @@ module Gamerom
|
|
166
168
|
option :platform, aliases: ['-p'], type: :string, required: true, desc: 'Which platform to use'
|
167
169
|
option :region, aliases: ['-g'], type: :string, required: false, desc: 'Only from specified region'
|
168
170
|
option :install, aliases: ['-I'], type: :boolean, required: false, desc: 'Install search results'
|
169
|
-
def search(
|
171
|
+
def search(*args)
|
172
|
+
keyword = args.join(' ')
|
170
173
|
repo = Repo.new(options[:repo])
|
171
174
|
validate_platform repo, options[:platform]
|
172
175
|
puts "searching available games for #{options[:platform]} platform on #{options[:repo]} repo..."
|
@@ -231,7 +234,8 @@ module Gamerom
|
|
231
234
|
desc 'uninstall GAME_IDENTIFIER', 'Uninstall game GAME_IDENTIFIER (id/name)'
|
232
235
|
option :repo, aliases: ['-r'], type: :string, required: true, desc: 'Which repo to use', enum: Gamerom::Repo.list.map(&:to_s)
|
233
236
|
option :platform, aliases: ['-p'], type: :string, required: true, desc: 'Which platform to use'
|
234
|
-
def uninstall(
|
237
|
+
def uninstall(*args)
|
238
|
+
game_identifier = args.join(' ')
|
235
239
|
repo = Repo.new(options[:repo])
|
236
240
|
validate_platform repo, options[:platform]
|
237
241
|
game = repo.find(options[:platform], game_identifier)
|
data/lib/gamerom/version.rb
CHANGED