Skip to content

Commit e1abd9a

Browse files
committed
Adds Smashing Pumpkins to the Music module
1 parent 552b91d commit e1abd9a

File tree

5 files changed

+484
-0
lines changed

5 files changed

+484
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
411411
- [Faker::Music::Prince](doc/music/prince.md)
412412
- [Faker::Music::RockBand](doc/music/rock_band.md)
413413
- [Faker::Music::Rush](doc/music/rush.md)
414+
- [Faker::Music::SmashingPumpkins](doc/music/smashing_pumpkins.md)
414415
- [Faker::Music::UmphreysMcgee](doc/music/umphreys_mcgee.md)
415416
</details>
416417

doc/music/smashing_pumpkins.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Faker::Music::SmashingPumpkins
2+
3+
```ruby
4+
Faker::Music::SmashingPumpkins.musician #=> "D'arcy Wretsky"
5+
6+
Faker::Music::SmashingPumpkins.album #=> "Mellon Collie and the Infinite Sadness"
7+
8+
Faker::Music::SmashingPumpkins.song #=> "Disarm"
9+
10+
Faker::Music::SmashingPumpkins.lyric #=> "The world is a vampire, sent to drain, secret destroyers, hold you up to the flames"
11+
```

lib/faker/music/smashing_pumpkins.rb

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# frozen_string_literal: true
2+
3+
require_relative 'music'
4+
5+
module Faker
6+
class Music
7+
class SmashingPumpkins < Base
8+
class << self
9+
##
10+
# Produces the name of a member of the Smashing Pumpkins (current and former)
11+
#
12+
# @return [String]
13+
#
14+
# @example
15+
# Faker::Music::SmashingPumpkins.musician #=> "Billy Corgan"
16+
#
17+
# @faker.version next
18+
def musician
19+
fetch('smashing_pumpkins.musicians')
20+
end
21+
22+
##
23+
# Produces the name of an album by the Smashing Pumpkins.
24+
#
25+
# @return [String]
26+
#
27+
# @example
28+
# Faker::Music::SmashingPumpkins.album #=> "Siamese Dream"
29+
#
30+
# @faker.version next
31+
def album
32+
fetch('smashing_pumpkins.albums')
33+
end
34+
35+
##
36+
# Produces a random Smashing Pumpkins song lyric.
37+
#
38+
# @return [String]
39+
#
40+
# @example
41+
# Faker::Music::SmashingPumpkins.lyric #=> "Despite all my rage, I am still just a rat in a cage"
42+
# Faker::Music::SmashingPumpkins.lyric #=> "Breathin' underwater, and livin' under glass"
43+
#
44+
# @faker.version next
45+
def lyric
46+
fetch('smashing_pumpkins.lyric')
47+
end
48+
49+
##
50+
# Produces the name of a song by the Smashing Pumpkins.
51+
#
52+
# @return [String]
53+
#
54+
# @example
55+
# Faker::Music::SmashingPumpkins.song #=> "Stand Inside My Love"
56+
#
57+
# @faker.version next
58+
def song
59+
fetch('smashing_pumpkins.songs')
60+
end
61+
end
62+
end
63+
end
64+
end

0 commit comments

Comments
 (0)