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.
Files changed (5) hide show
  1. data/Gemfile +2 -2
  2. data/bin/gameidea +8 -8
  3. data/lib/data.yml +31 -19
  4. data/lib/gameidea.rb +10 -10
  5. 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['what']
7
- puts 'Where: ' + idea['where']
8
- puts 'Who: ' + idea['who']
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
- Where:
9
- - Town
10
- - Castle
11
- - Farm
12
- - City
13
- - Dungeon
14
- - Arctic
15
- What:
16
- - War
17
- - Rescue
18
- - Hunt
19
- - Survival
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 {'who' => who, 'where' => where, 'what' => what}
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.0.0
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.16
47
+ rubygems_version: 1.8.23
48
48
  signing_key:
49
49
  specification_version: 3
50
50
  summary: Game idea generator