vglist 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/vglist +20 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a6eccf4ee240d3e73d72dde04e193350e65efd64
|
4
|
+
data.tar.gz: 7372dc4ab4f5324128724ea87bf21968f96947ab
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aa936c038a5c6816023679df2362482a9843d47c4ac171b1c95646df6f4ddaefa1beec50401ccbc89637cb0ce80e74d29ac0e1a3be35d50e69667db4aad65e05
|
7
|
+
data.tar.gz: bf0005b78e7e4cfa7938f7a75a5b4829fdbe0a80698c66373f01dcae19b92e5d35488065f1af091cf321fa8535bf390b2754247f61551be1734a4098ca7610e1
|
data/bin/vglist
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
GAMES = JSON.parse(File.open("data/allgames.json").read)
|
6
|
+
|
7
|
+
def find_game(keyword)
|
8
|
+
results = []
|
9
|
+
GAMES.map do |platform,games|
|
10
|
+
games.map do |game|
|
11
|
+
if game.downcase.include?(keyword.downcase)
|
12
|
+
results << [platform,game]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
puts results.map { |console,game| "#{console} => #{game}"}
|
17
|
+
end
|
18
|
+
|
19
|
+
find_game(ARGV[0])
|
20
|
+
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vglist
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Galaad Gauthier
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Easy-to-use videogames browser
|
14
|
+
email: coontail7@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- bin/vglist
|
20
|
+
homepage: https://github.com/Galaad-Gauthier/VGList
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.0.5
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: VideoGamesList
|
44
|
+
test_files: []
|