Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes deprecated generators #3014

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/faker/default/id_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,4 @@ def _translate(key)
end
end
end

include Faker::Deprecator
deprecate_generator('IDNumber', IdNumber)
end
3 changes: 0 additions & 3 deletions lib/faker/default/theater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,4 @@ def play
end
end
end

include Faker::Deprecator
deprecate_generator('Show', Theater)
end
11 changes: 0 additions & 11 deletions lib/faker/games/heroes_of_the_storm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ def battleground
fetch('heroes_of_the_storm.battlegrounds')
end

##
# This method is deprecated. The implementation will be removed in a near future release.
# Use `HeroesOfTheStorm.class_name` instead.
#
# @deprecated Use {#class_name} instead.
def class
warn '`HeroesOfTheStorm.class` is deprecated. Use `HeroesOfTheStorm.class_name` instead.'

super
end

##
# Produces a class name from Heroes of the Storm.
#
Expand Down
3 changes: 0 additions & 3 deletions lib/faker/japanese_media/fullmetal_alchemist_brotherhood.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ def country
end
end
end

include Faker::Deprecator
deprecate_generator('FmaBrotherhood', FullmetalAlchemistBrotherhood)
end
end
3 changes: 0 additions & 3 deletions lib/faker/locations/australia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,4 @@ def state
end
end
end

include Deprecator
deprecate_generator('Australia', Locations::Australia)
end
13 changes: 0 additions & 13 deletions lib/faker/tv_shows/buffy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ def actor
fetch('buffy.actors')
end

##
# Produces a actor from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.celebrity #=> "John Ritter"
#
# @deprecated Use the `actor` method instead.
#
# @faker.version 1.9.2
alias celebrity actor

##
# Produces a big bad from Buffy the Vampire Slayer.
#
Expand Down
13 changes: 0 additions & 13 deletions lib/faker/tv_shows/dr_who.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,6 @@ def villain
fetch('dr_who.villains')
end

##
# Produces a villain from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.villian #=> "The Master"
#
# @deprecated Use the correctly-spelled `villain` method instead.
#
# @faker.version 1.8.0
alias villian villain

##
# Produces a species from Doctor Who.
#
Expand Down
13 changes: 0 additions & 13 deletions lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@ def actor
fetch('the_fresh_prince_of_bel_air.actors')
end

##
# Produces a actor from The Fresh Prince of Bel-Air.
#
# @return [String]
#
# @example
# Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"
#
# @deprecated Use the `actor` method instead.
#
# @faker.version 1.8.3
alias celebrity actor

##
# Produces a quote from The Fresh Prince of Bel-Air.
#
Expand Down
Loading
Loading