gamerom 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: eca8f221edcd2f3f8e311f084c3c4afbf93f642a7e0d4c4731d0af2f758271b7
4
- data.tar.gz: 8fb301ca2d507dd9a1000496a7b41a65c5a853a1f29c047525d082eca2ddf548
3
+ metadata.gz: bb5b2436db69a148330e79002fe0f1b854de9f2c906e02d8a8a5e53aa14cea84
4
+ data.tar.gz: b346cbf782f88c1a9a1f56930724e51aa5ff636f49addb7c72a96467133a2998
5
5
  SHA512:
6
- metadata.gz: b438895a5ca17cb390bc7f7cc49de3f3b730d2eb2ba5ba0cecf0cc5f075b08f1fa5a2f4332c5407c74878d65bcb8e47d8e7a2bd8d2fd454d1f018c6890c53769
7
- data.tar.gz: f838766967003016f1830c1ebc80d12540347c3f1e0ed4f7a74df0973afaf0df4a5a1a7c8079f6310949783a0755e5c38ec59568e7cfa1ffad4fe1ebaffe5e35
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.0...HEAD
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gamerom (0.4.0)
4
+ gamerom (0.4.1)
5
5
  mechanize (~> 2.8.0)
6
6
  mechanize-progressbar (~> 0.2.0)
7
7
  nokogiri (~> 1.11.3)
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.0"
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.0
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(game_identifier)
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(game_identifier)
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(keyword)
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(game_identifier)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gamerom
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamerom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Mundim