gameidea 1.0.0
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.
- data/Gemfile +2 -0
- data/bin/gameidea +8 -0
- data/lib/data.yml +19 -0
- data/lib/gameidea.rb +11 -0
- metadata +51 -0
data/Gemfile
ADDED
data/bin/gameidea
ADDED
data/lib/data.yml
ADDED
data/lib/gameidea.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require "yaml"
|
2
|
+
|
3
|
+
def gameidea
|
4
|
+
data = YAML::load_file File.expand_path(File.join(File.dirname(__FILE__), "data.yml"))
|
5
|
+
|
6
|
+
who = data['Who'].sample
|
7
|
+
where = data['Where'].sample
|
8
|
+
what = data['What'].sample
|
9
|
+
|
10
|
+
return {'who' => who, 'where' => where, 'what' => what}
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gameidea
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Nick Shvelidze
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-08-24 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: ! ' Generate game ideas. Just for fun
|
15
|
+
|
16
|
+
'
|
17
|
+
email: shveloo@gmail.com
|
18
|
+
executables:
|
19
|
+
- gameidea
|
20
|
+
extensions: []
|
21
|
+
extra_rdoc_files: []
|
22
|
+
files:
|
23
|
+
- lib/gameidea.rb
|
24
|
+
- lib/data.yml
|
25
|
+
- bin/gameidea
|
26
|
+
- Gemfile
|
27
|
+
homepage: http://shvelo.github.com/gameidea
|
28
|
+
licenses: []
|
29
|
+
post_install_message:
|
30
|
+
rdoc_options: []
|
31
|
+
require_paths:
|
32
|
+
- lib
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
requirements: []
|
46
|
+
rubyforge_project:
|
47
|
+
rubygems_version: 1.8.16
|
48
|
+
signing_key:
|
49
|
+
specification_version: 3
|
50
|
+
summary: Game idea generator
|
51
|
+
test_files: []
|