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.
Files changed (5) hide show
  1. data/Gemfile +2 -0
  2. data/bin/gameidea +8 -0
  3. data/lib/data.yml +19 -0
  4. data/lib/gameidea.rb +11 -0
  5. metadata +51 -0
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "http://rubygems.org"
2
+
data/bin/gameidea ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ require 'gameidea'
3
+
4
+ idea = gameidea
5
+
6
+ puts 'What: ' + idea['what']
7
+ puts 'Where: ' + idea['where']
8
+ puts 'Who: ' + idea['who']
data/lib/data.yml ADDED
@@ -0,0 +1,19 @@
1
+ Who:
2
+ - Vampire
3
+ - Ninja
4
+ - Werewolf
5
+ - Pirate
6
+ - Zombie
7
+ - Soldier
8
+ Where:
9
+ - Town
10
+ - Castle
11
+ - Farm
12
+ - City
13
+ - Dungeon
14
+ - Arctic
15
+ What:
16
+ - War
17
+ - Rescue
18
+ - Hunt
19
+ - Survival
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: []