gameidea 1.0.0 → 1.1.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 -2
- data/bin/gameidea +8 -8
- data/lib/data.yml +31 -19
- data/lib/gameidea.rb +10 -10
- metadata +2 -2
data/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
data/bin/gameidea
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'gameidea'
|
3
|
-
|
4
|
-
idea = gameidea
|
5
|
-
|
6
|
-
puts 'What: ' + idea[
|
7
|
-
puts 'Where: ' + idea[
|
8
|
-
puts 'Who: ' + idea[
|
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
CHANGED
@@ -1,19 +1,31 @@
|
|
1
|
-
Who:
|
2
|
-
- Vampire
|
3
|
-
- Ninja
|
4
|
-
- Werewolf
|
5
|
-
- Pirate
|
6
|
-
- Zombie
|
7
|
-
- Soldier
|
8
|
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
1
|
+
Who:
|
2
|
+
- Vampire
|
3
|
+
- Ninja
|
4
|
+
- Werewolf
|
5
|
+
- Pirate
|
6
|
+
- Zombie
|
7
|
+
- Soldier
|
8
|
+
- Medic
|
9
|
+
- Sniper
|
10
|
+
- Animal
|
11
|
+
- Potato
|
12
|
+
Where:
|
13
|
+
- Town
|
14
|
+
- Castle
|
15
|
+
- Farm
|
16
|
+
- City
|
17
|
+
- Dungeon
|
18
|
+
- Arctic
|
19
|
+
- Sea
|
20
|
+
- Mine
|
21
|
+
- River
|
22
|
+
- Forest
|
23
|
+
- Mountain
|
24
|
+
What:
|
25
|
+
- War
|
26
|
+
- Rescue
|
27
|
+
- Hunt
|
28
|
+
- Survival
|
29
|
+
- Arcade
|
30
|
+
- Smash
|
31
|
+
- RPG
|
data/lib/gameidea.rb
CHANGED
@@ -1,11 +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 {
|
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
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameidea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 1.8.
|
47
|
+
rubygems_version: 1.8.23
|
48
48
|
signing_key:
|
49
49
|
specification_version: 3
|
50
50
|
summary: Game idea generator
|