music_faker 1.1.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4cdaf98abd63328eabf0334815f6db858bc7c42
4
- data.tar.gz: 6eb7400956614a3109bfe32bcd8a230160d49e1c
3
+ metadata.gz: 15f53f1caa8304ae95bea087ce56e8086320a910
4
+ data.tar.gz: 07dd57dadc6433de6aed7c5fc485d7536a77f178
5
5
  SHA512:
6
- metadata.gz: 58f272febffa5eae55eb41a50660f60e58ca489090e8e152a0131338aa023d8295a98a911a0d1d4ccae6e2a5cd003908ef34ba34f1bbaa652f04a9a65588f5b9
7
- data.tar.gz: 285c5734b828ae17c3ab80572196f88026be348b55ce44722728e59be91a986eef8b725f97d47ac4afe0436212443e1df659f89605bfec53ed0fd55ec4831b06
6
+ metadata.gz: 723dafc51564ec2c212f26bb8768f98dd0acc49143b8597726539357c0da6dd2793c906ec1117d8ba4664453c31847007b0e484147ff994cee3f402d74a6a372
7
+ data.tar.gz: 160e4ad4cf929637202e8594f96ed8795341594f65045f1869a40070407e68814447f28a95b35a1434b02a37b2b4708d3e17832c32c473fd977ca29be030e482
data/lib/music_faker.rb CHANGED
@@ -1,17 +1,25 @@
1
1
  module MusicFaker
2
- class Instrument
2
+ class Gear
3
3
  class << self
4
4
  def name
5
- 'Fibson Less Haul'
5
+ defined?(@brands) ? "#{brand} #{model} #{type}" : nil
6
6
  end
7
- end # class << self
8
- end
9
7
 
10
- class Band
11
- class << self
12
- def name
13
- 'Ja-Va and the Skrizzips'
8
+ def brand
9
+ defined?(@brands) ? @brands.sample : nil
10
+ end
11
+
12
+ def model
13
+ defined?(@models) ? @models.sample : nil
14
+ end
15
+
16
+ def type
17
+ defined?(@types) ? @types.sample : nil
14
18
  end
15
19
  end # class << self
16
20
  end
17
- end
21
+ end
22
+
23
+ require_relative 'music_faker/instrument'
24
+ require_relative 'music_faker/accessory'
25
+ require_relative 'music_faker/band'
@@ -0,0 +1,13 @@
1
+ module MusicFaker
2
+ class Accessory < Gear
3
+ @brands = [
4
+ 'Whine 6', 'Mmm Audio', 'Shore'
5
+ ]
6
+ @models = [
7
+ '67x', '8X8', 'AR4', 'ZZ3'
8
+ ]
9
+ @types = [
10
+ 'Stompbox', 'Pedal', 'Tuner', 'Microphone'
11
+ ]
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ module MusicFaker
2
+ class Band
3
+ class << self
4
+ def name
5
+ 'Ja-Va and the Skrizzips'
6
+ end
7
+ end # class << self
8
+ end
9
+ end
@@ -0,0 +1,20 @@
1
+ module MusicFaker
2
+ class Instrument < Gear
3
+ @brands = [
4
+ 'Fibson', 'Render', 'Peppyphone', 'Smartin\'',
5
+ 'Wahmaha', 'Corgi', 'Styway',
6
+ 'Ziljinn'
7
+ ]
8
+ @models = [
9
+ 'Less Haul', 'Hexplorer', 'Flaying V', 'Stratoblaster',
10
+ 'Telescoping', 'Smellraiser',
11
+ 'Alto', 'Tenor'
12
+ ]
13
+ @types = [
14
+ 'Guitar', 'Lap Guitar', 'Steel Guitar', 'Bass Guitar',
15
+ 'Piano', 'Grand Piano', 'Keyboard', 'Keytar', 'Accordion',
16
+ 'Violin', 'Viola', 'Bass', 'Cello',
17
+ 'Drums', 'Snare Drum'
18
+ ]
19
+ end
20
+ end
metadata CHANGED
@@ -1,22 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kevin larrabee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-29 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: faker-type gem for musical instruments, brands, bands, etc (https://github.com/kaylarr/music_faker)
14
- email:
13
+ description: Faker-type gem for generating random musical instruments and gear (see
14
+ https://github.com/kaylarr/music_faker)
15
+ email: larrabeat@gmail.com
15
16
  executables: []
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
19
20
  - lib/music_faker.rb
21
+ - lib/music_faker/accessory.rb
22
+ - lib/music_faker/band.rb
23
+ - lib/music_faker/instrument.rb
20
24
  homepage: http://rubygems.org/gems/music_faker
21
25
  licenses:
22
26
  - MIT
@@ -40,5 +44,5 @@ rubyforge_project:
40
44
  rubygems_version: 2.4.8
41
45
  signing_key:
42
46
  specification_version: 4
43
- summary: MusicFaker
47
+ summary: MusicFaker (Alpha)
44
48
  test_files: []