faker_dnd 0.0.2

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 (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/faker_dnd.rb +26 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NmM3ZmJmMTcwMGM2Yjk1NDYwYjMyOTU3MDYzNzU0ZDBlYTJiMGJlYQ==
5
+ data.tar.gz: !binary |-
6
+ ODM1NjY0ZDdkODEyNjYzZTRhZjZiMGIwNjVjYjY2YTQyOWU0MjMwMQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MmRmYjc2ODQ4Njc5MmVjYjYwMGZjOGE5YjUyZmZkNmMzY2M4MmM2Yzk1ZjJi
10
+ NGFiMDdlMzA4ZDJkOWMzNzUxM2M5MDFiZmMwMTcwMzE4M2Y4MGIxYmY2ODk1
11
+ ZWZmNThmMzc5MjA5MjAwZDA5MzVlZGM3YTY0NmVmMjlmMmMxNTc=
12
+ data.tar.gz: !binary |-
13
+ N2U4NWQxZmI1Mjk4Mzk3YzExNDRjMzI2NjI5Y2MxZjczOGE2ZmQ1YTc3Y2Vi
14
+ MjhhNjA1Zjc0MzUwMmNjY2E0MjA4ZWExZGJlYmM2ZjdkMjVhYzhmMTk2NzAy
15
+ NTg1NjhiMGEwMDJkMzRhYzg2OTkxOGI1NzAwNzhjNWFlYWM1NTk=
data/lib/faker_dnd.rb ADDED
@@ -0,0 +1,26 @@
1
+ module Faker
2
+ class DnD
3
+ def self.class
4
+ ['druid', 'cleric', 'fighter', 'magic user', 'thief', 'mystic'].sample
5
+ end
6
+
7
+ def self.alignment
8
+ order = ['lawful', 'neutral', 'chaotic']
9
+ goodness = ['good', 'neutral', 'evil']
10
+ alignment = order.sample + ' ' + goodness.sample
11
+ end
12
+
13
+ def self.race
14
+ ['human', 'elf', 'dwarf', 'gnome', 'half-elf', 'half-orc', 'halfing'].sample
15
+ end
16
+ end
17
+
18
+ class Character
19
+ def self.generate
20
+ classes = Faker::DnD.class
21
+ alignment = Faker::DnD.alignment
22
+ race = Faker::DnD.race
23
+ alignment + ' ' + race + ' ' + classes
24
+ end
25
+ end
26
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: faker_dnd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Nicole Paz
8
+ - Tom Watson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: A simple faker DnD gem
15
+ email: info@nicolejpaz.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/faker_dnd.rb
21
+ homepage: http://rubygems.org/gems/faker_dnd
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.1.5
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Randomly generate DnD themed things!
45
+ test_files: []