repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/rick_and_morty.rb | lib/faker/tv_shows/rick_and_morty.rb | # frozen_string_literal: true
module Faker
class TvShows
class RickAndMorty < Base
flexible :rick_and_morty
class << self
##
# Produces a character from Rick and Morty.
#
# @return [String]
#
# @example
# Faker::TvShows::RickAndMorty.characte... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/parks_and_rec.rb | lib/faker/tv_shows/parks_and_rec.rb | # frozen_string_literal: true
module Faker
class TvShows
class ParksAndRec < Base
flexible :parks_and_rec
class << self
##
# Produces a character from Parks and Recreation.
#
# @return [String]
#
# @example
# Faker::TvShows::ParksAndRec.chara... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/seinfeld.rb | lib/faker/tv_shows/seinfeld.rb | # frozen_string_literal: true
module Faker
class TvShows
class Seinfeld < Base
flexible :seinfeld
class << self
##
# Produces a business from Seinfeld.
#
# @return [String]
#
# @example
# Faker::TvShows::Seinfeld.business #=> "Kruger Industri... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/big_bang_theory.rb | lib/faker/tv_shows/big_bang_theory.rb | # frozen_string_literal: true
module Faker
class TvShows
class BigBangTheory < Base
flexible :big_bang_theory
class << self
##
# Produces a character from Big Bang Theory
#
# @return [String]
#
# @example
# Faker::TvShows::BigBangTheory.chara... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/ru_paul.rb | lib/faker/tv_shows/ru_paul.rb | # frozen_string_literal: true
module Faker
class TvShows
class RuPaul < Base
flexible :rupaul
class << self
##
# Produces a quote from RuPaul's Drag Race.
#
# @return [String]
#
# @example
# Faker::TvShows::RuPaul.quote #=> "That's Funny, Tel... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/buffy.rb | lib/faker/tv_shows/buffy.rb | # frozen_string_literal: true
module Faker
class TvShows
class Buffy < Base
flexible :buffy
class << self
##
# Produces a character from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.character #=> "Buffy ... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/suits.rb | lib/faker/tv_shows/suits.rb | # frozen_string_literal: true
module Faker
class TvShows
class Suits < Base
flexible :suits
class << self
##
# Produces a character from Suits.
#
# @return [String]
#
# @example
# Faker::TvShows::Suits.character #=> "Harvey Specter"
#... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/breaking_bad.rb | lib/faker/tv_shows/breaking_bad.rb | # frozen_string_literal: true
module Faker
class TvShows
class BreakingBad < Base
flexible :breaking_bad
class << self
##
# Produces the name of a character from Breaking Bad.
#
# @return [String]
#
# @example
# Faker::TvShows::BreakingBad.ch... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/twin_peaks.rb | lib/faker/tv_shows/twin_peaks.rb | # frozen_string_literal: true
module Faker
class TvShows
class TwinPeaks < Base
flexible :twin_peaks
class << self
##
# Produces a character from Twin Peaks.
#
# @return [String]
#
# @example
# Faker::TvShows::TwinPeaks.character #=> "Dale Co... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/simpsons.rb | lib/faker/tv_shows/simpsons.rb | # frozen_string_literal: true
module Faker
class TvShows
class Simpsons < Base
flexible :simpsons
class << self
##
# Produces a character from The Simpsons.
#
# @return [String]
#
# @example
# Faker::TvShows::Simpsons.character #=> "Charles M... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/brooklyn_nine_nine.rb | lib/faker/tv_shows/brooklyn_nine_nine.rb | # frozen_string_literal: true
module Faker
class TvShows
class BrooklynNineNine < Base
flexible :brooklyn_nine_nine
class << self
##
# Produces a character from Brooklyn Nine Nine.
#
# @return [String]
#
# @example
# Faker::TvShows::BrooklynN... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/the_expanse.rb | lib/faker/tv_shows/the_expanse.rb | # frozen_string_literal: true
module Faker
class TvShows
class TheExpanse < Base
flexible :the_expanse
class << self
##
# Produces a character from The Expanse.
#
# @return [String]
#
# @example
# Faker::TvShows::TheExpanse.character #=> "Jim... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/silicon_valley.rb | lib/faker/tv_shows/silicon_valley.rb | # frozen_string_literal: true
module Faker
class TvShows
class SiliconValley < Base
flexible :silicon_valley
class << self
##
# Produces a character from Silicon Valley.
#
# @return [String]
#
# @example
# Faker::TvShows::SiliconValley.charac... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/aqua_teen_hunger_force.rb | lib/faker/tv_shows/aqua_teen_hunger_force.rb | # frozen_string_literal: true
module Faker
class TvShows
class AquaTeenHungerForce < Base
flexible :aqua_teen_hunger_force
class << self
##
# Produces a character from Aqua Teen Hunger Force.
#
# @return [String]
#
# @example
# Faker::TvShows... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/new_girl.rb | lib/faker/tv_shows/new_girl.rb | # frozen_string_literal: true
module Faker
class TvShows
class NewGirl < Base
flexible :new_girl
class << self
##
# Produces a character from New Girl.
#
# @return [String]
#
# @example
# Faker::TvShows::NewGirl.character #=> "Jessica Day"
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/stargate.rb | lib/faker/tv_shows/stargate.rb | # frozen_string_literal: true
module Faker
class TvShows
class Stargate < Base
flexible :stargate
class << self
##
# Produces a character from Stargate.
#
# @return [String]
#
# @example
# Faker::TvShows::Stargate.character #=> "Jack O'Neill"... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/dr_who.rb | lib/faker/tv_shows/dr_who.rb | # frozen_string_literal: true
module Faker
class TvShows
class DrWho < Base
flexible :dr_who
class << self
##
# Produces a character from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.character #=> "Captain Jack Harkne... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/how_i_met_your_mother.rb | lib/faker/tv_shows/how_i_met_your_mother.rb | # frozen_string_literal: true
module Faker
class TvShows
class HowIMetYourMother < Base
flexible :how_i_met_your_mother
class << self
##
# Produces a character from How I Met Your Mother.
#
# @return [String]
#
# @example
# Faker::TvShows::Ho... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/family_guy.rb | lib/faker/tv_shows/family_guy.rb | # frozen_string_literal: true
module Faker
class TvShows
class FamilyGuy < Base
flexible :family_guy
class << self
##
# Produces a character from Family Guy.
#
# @return [String]
#
# @example
# Faker::TvShows::FamilyGuy.character #=> "Peter G... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/star_trek.rb | lib/faker/tv_shows/star_trek.rb | # frozen_string_literal: true
module Faker
class TvShows
class StarTrek < Base
flexible :star_trek
class << self
##
# Produces a character from Star Trek.
#
# @return [String]
#
# @example
# Faker::TvShows::StarTrek.character #=> "Spock"
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/supernatural.rb | lib/faker/tv_shows/supernatural.rb | # frozen_string_literal: true
module Faker
class TvShows
class Supernatural < Base
class << self
##
# Produces the name of a character from Supernatural.
#
# @return [String]
#
# @example
# Faker::TvShows::Supernatural.character #=> "Dean Winchester... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/south_park.rb | lib/faker/tv_shows/south_park.rb | # frozen_string_literal: true
module Faker
class TvShows
class SouthPark < Base
flexible :south_park
class << self
##
# Produces a character from South Park.
#
# @return [String]
#
# @example
# Faker::TvShows::SouthPark.character #=> "Mr. Gar... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/hey_arnold.rb | lib/faker/tv_shows/hey_arnold.rb | # frozen_string_literal: true
module Faker
class TvShows
class HeyArnold < Base
flexible :hey_arnold
class << self
##
# Produces a character from Hey Arnold!
#
# @return [String]
#
# @example
# Faker::TvShows::HeyArnold.character #=> "Arnold"... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/spongebob.rb | lib/faker/tv_shows/spongebob.rb | # frozen_string_literal: true
module Faker
class TvShows
class Spongebob < Base
flexible :spongebob
class << self
##
# Produces a character from Spongebob.
#
# @return [String]
#
# @example
# Faker::TvShows::Spongebob.character #=> "Patrick"
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/friends.rb | lib/faker/tv_shows/friends.rb | # frozen_string_literal: true
module Faker
class TvShows
class Friends < Base
flexible :friends
class << self
##
# Produces a character from Friends.
#
# @return [String]
#
# @example
# Faker::TvShows::Friends.character #=> "Rachel Green"
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/dumb_and_dumber.rb | lib/faker/tv_shows/dumb_and_dumber.rb | # frozen_string_literal: true
module Faker
class TvShows
class DumbAndDumber < Base
flexible :dumb_and_dumber
class << self
##
# Produces an actor from Dumb and Dumber.
#
# @return [String]
#
# @example
# Faker::TvShows::DumbAndDumber.actor #... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/bojack_horseman.rb | lib/faker/tv_shows/bojack_horseman.rb | # frozen_string_literal: true
module Faker
class TvShows
class BojackHorseman < Base
flexible :bojack_horseman
class << self
##
# Produces a character from BoJack Horseman.
#
# @return [String]
#
# @example
# Faker::TvShows::BojackHorseman.ch... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/the_it_crowd.rb | lib/faker/tv_shows/the_it_crowd.rb | # frozen_string_literal: true
module Faker
class TvShows
class TheITCrowd < Base
flexible :the_it_crowd
class << self
##
# Produces an actor from The IT Crowd.
#
# @return [String]
#
# @example
# Faker::TvShows::TheITCrowd.actor #=> "Chris O'... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/the_thick_of_it.rb | lib/faker/tv_shows/the_thick_of_it.rb | # frozen_string_literal: true
module Faker
class TvShows
class TheThickOfIt < Base
flexible :the_thick_of_it
class << self
##
# Produces a character from The Thick of It.
#
# @return [String]
#
# @example
# Faker::TvShows::TheThickOfIt.charac... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/venture_bros.rb | lib/faker/tv_shows/venture_bros.rb | # frozen_string_literal: true
module Faker
class TvShows
class VentureBros < Base
flexible :venture_bros
class << self
##
# Produces a character from The Venture Bros.
#
# @return [String]
#
# @example
# Faker::TvShows::VentureBros.character ... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/stranger_things.rb | lib/faker/tv_shows/stranger_things.rb | # frozen_string_literal: true
module Faker
class TvShows
class StrangerThings < Base
flexible :stranger_things
class << self
##
# Produces a character from Stranger Things.
#
# @return [String]
#
# @example
# Faker::TvShows::StrangerThings.ch... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/futurama.rb | lib/faker/tv_shows/futurama.rb | # frozen_string_literal: true
module Faker
class TvShows
class Futurama < Base
flexible :futurama
class << self
##
# Produces a character from Futurama.
#
# @return [String]
#
# @example
# Faker::TvShows::Futurama.character #=> "Amy Wong"
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/the_office.rb | lib/faker/tv_shows/the_office.rb | # frozen_string_literal: true
module Faker
class TvShows
class TheOffice < Base
flexible :the_office
class << self
##
# Produces a character from The Office.
#
# @return [String]
#
# @example
# Faker::TvShows::TheOffice.character #=> "Michael... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/final_space.rb | lib/faker/tv_shows/final_space.rb | # frozen_string_literal: true
module Faker
class TvShows
class FinalSpace < Base
flexible :final_space
class << self
##
# Produces a character from Final Space.
#
# @return [String]
#
# @example
# Faker::TvShows::FinalSpace.character #=> "Gar... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb | lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb | # frozen_string_literal: true
module Faker
class TvShows
class TheFreshPrinceOfBelAir < Base
flexible :the_fresh_prince_of_bel_air
class << self
##
# Produces a character from The Fresh Prince of Bel-Air.
#
# @return [String]
#
# @example
# F... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/community.rb | lib/faker/tv_shows/community.rb | # frozen_string_literal: true
module Faker
class TvShows
class Community < Base
flexible :community
class << self
##
# Produces a character from Community.
#
# @return [String]
#
# @example
# Faker::TvShows::Community.characters #=> "Jeff Win... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/tv_shows/game_of_thrones.rb | lib/faker/tv_shows/game_of_thrones.rb | # frozen_string_literal: true
module Faker
class TvShows
class GameOfThrones < Base
flexible :game_of_thrones
class << self
##
# Produces a character from Game of Thrones.
#
# @return [String]
#
# @example
# Faker::TvShows::GameOfThrones.char... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/princess_bride.rb | lib/faker/movies/princess_bride.rb | # frozen_string_literal: true
module Faker
class Movies
class PrincessBride < Base
class << self
##
# Produces a character from The Princess Bride.
#
# @return [String]
#
# @example
# Faker::Movies::PrincessBride.character #=> "Dread Pirate Roberts"... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/v_for_vendetta.rb | lib/faker/movies/v_for_vendetta.rb | # frozen_string_literal: true
module Faker
class Movies
class VForVendetta < Base
class << self
##
# Produces a character from V For Vendetta.
#
# @return [String]
#
# @example
# Faker::Movies::VForVendetta.character #=> "V"
#
# @fak... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/how_to_train_your_dragon.rb | lib/faker/movies/how_to_train_your_dragon.rb | # frozen_string_literal: true
module Faker
class Movies
class HowToTrainYourDragon < Base
class << self
##
# Produces a character from How To Train Your Dragon.
#
# @return [String]
#
# @example
# Faker::Movies::HowToTrainYourDragon.character #=> "H... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/ghostbusters.rb | lib/faker/movies/ghostbusters.rb | # frozen_string_literal: true
module Faker
class Movies
class Ghostbusters < Base
class << self
##
# Produces an actor from Ghostbusters.
#
# @return [String]
#
# @example
# Faker::Movies::Ghostbusters.actor #=> "Bill Murray"
#
# @fa... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/star_wars.rb | lib/faker/movies/star_wars.rb | # frozen_string_literal: true
module Faker
class Movies
class StarWars < Base
class << self
##
# Produces a call squadron from Star Wars.
#
# @return [String]
#
# @example
# Faker::Movies::StarWars.call_squadron #=> "Green"
#
# @fake... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb | lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb | # frozen_string_literal: true
module Faker
class Movies
class HitchhikersGuideToTheGalaxy < Base
class << self
##
# Produces a character from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideTo... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/avatar.rb | lib/faker/movies/avatar.rb | # frozen_string_literal: true
module Faker
class Movies
class Avatar < Base
class << self
##
# Produces a character from Avatar.
#
# @return [String]
#
# @example
# Faker::Movies::Avatar.character #=> "Jake Sully"
#
# @faker.version ... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/departed.rb | lib/faker/movies/departed.rb | # frozen_string_literal: true
module Faker
class Movies
class Departed < Base
class << self
##
# Produces an actor from The Departed.
#
# @return [String]
#
# @example
# Faker::Movies::Departed.actor #=> "Matt Damon"
#
# @faker.versi... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/movie.rb | lib/faker/movies/movie.rb | # frozen_string_literal: true
module Faker
class Movie < Base
class << self
##
# Produces a title from a movie.
#
# @return [String]
#
# @example
# Faker::Movie.title #=> "The Lord of the Rings: The Two Towers"
#
# @faker.version 2.13.0
def title
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/harry_potter.rb | lib/faker/movies/harry_potter.rb | # frozen_string_literal: true
module Faker
class Movies
class HarryPotter < Base
class << self
##
# Produces a character from Harry Potter.
#
# @return [String]
#
# @example
# Faker::Movies::HarryPotter.character #=> "Harry Potter"
#
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/hobbit.rb | lib/faker/movies/hobbit.rb | # frozen_string_literal: true
module Faker
class Movies
class Hobbit < Base
class << self
##
# Produces the name of a character from The Hobbit.
#
# @return [String]
#
# @example
# Faker::Movies::Hobbit.character #=> "Gandalf the Grey"
#
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/back_to_the_future.rb | lib/faker/movies/back_to_the_future.rb | # frozen_string_literal: true
module Faker
class Movies
class BackToTheFuture < Base
class << self
##
# Produces a character from Back to the Future.
#
# @return [String]
#
# @example
# Faker::Movies::BackToTheFuture.character #=> "Marty McFly"
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/hackers.rb | lib/faker/movies/hackers.rb | # frozen_string_literal: true
module Faker
class Movies
class Hackers < Base
class << self
##
# Produces a real character name from Hackers.
#
# @return [String]
#
# @example
# Faker::Movies::Hackers.character #=> "Dade Murphy"
#
# @... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/lebowski.rb | lib/faker/movies/lebowski.rb | # frozen_string_literal: true
module Faker
class Movies
class Lebowski < Base
class << self
##
# Produces an actor from The Big Lebowski.
#
# @return [String]
#
# @example
# Faker::Movies::Lebowski.actor #=> "John Goodman"
#
# @faker... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/lord_of_the_rings.rb | lib/faker/movies/lord_of_the_rings.rb | # frozen_string_literal: true
module Faker
class Movies
class LordOfTheRings < Base
class << self
##
# Produces a character from Lord of the Rings.
#
# @return [String]
#
# @example
# Faker::Movies::LordOfTheRings.character #=> "Legolas"
#
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/tron.rb | lib/faker/movies/tron.rb | # frozen_string_literal: true
module Faker
class Movies
class Tron < Base
class << self
##
# Produces a character from Tron.
#
# @return [String]
#
# @example
# Faker::Movies::Tron.character #=> "Bit"
#
# @faker.version next
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/movies/the_room.rb | lib/faker/movies/the_room.rb | # frozen_string_literal: true
module Faker
class Movies
class TheRoom < Base
class << self
##
# Produces an actor from The Room (2003).
#
# @return [String]
#
# @example
# Faker::Movies::Room.actor #=> "Tommy Wiseau"
#
# @faker.versi... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/books/book.rb | lib/faker/books/book.rb | # frozen_string_literal: true
module Faker
class Book < Base
flexible :book
class << self
##
# Produces a random book title
#
# @return [String]
#
# @example
# Faker::Book.title #=> "The Odd Sister"
#
# @faker.version 1.9.3
def title
fetc... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/books/the_kingkiller_chronicle.rb | lib/faker/books/the_kingkiller_chronicle.rb | # frozen_string_literal: true
module Faker
class Books
class TheKingkillerChronicle < Base
class << self
##
# Produces the name of a The Kingkiller Chronicle book.
#
# @return [String]
#
# @example
# Faker::Books::TheKingkillerChronicle.book #=> "Th... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/books/dune.rb | lib/faker/books/dune.rb | # frozen_string_literal: true
module Faker
class Books
##
# A Faker module beyond your dreams, test data beyond your imagination.
class Dune < Base
class << self
##
# Produces the name of a character from Dune
#
# @return [String]
#
# @example
... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/books/lovecraft.rb | lib/faker/books/lovecraft.rb | # frozen_string_literal: true
module Faker
class Books
class Lovecraft < Base
class << self
##
# Produces the name of a location
#
# @return [String]
#
# @example
# Faker::Books::Lovecraft.location #=> "Kingsport"
#
# @faker.version ... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/lib/faker/books/culture_series.rb | lib/faker/books/culture_series.rb | # frozen_string_literal: true
module Faker
class Books
class CultureSeries < Base
flexible :culture_series
class << self
##
# @return [String]
#
# @example
# Faker::Books::CultureSeries.book
# #=> "The Player of Games"
#
# @faker.... | ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/authorization_spec.rb | spec/authorization_spec.rb | # frozen_string_literal: true
require "spec_helper"
require "action_controller/metal/strong_parameters"
describe Pundit::Authorization do
def to_params(*args, **kwargs, &block)
ActionController::Parameters.new(*args, **kwargs, &block)
end
let(:controller) { Controller.new(user, "update", to_params({})) }
... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/policy_finder_spec.rb | spec/policy_finder_spec.rb | # frozen_string_literal: true
require "spec_helper"
RSpec.describe Pundit::PolicyFinder do
let(:user) { double }
let(:post) { Post.new(user) }
let(:comment) { CommentFourFiveSix.new }
let(:article) { Article.new }
describe "SUFFIX" do
specify { expect(described_class::SUFFIX).to eq "Policy" }
speci... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/simple_cov_check_action_formatter.rb | spec/simple_cov_check_action_formatter.rb | # frozen_string_literal: true
require "simplecov"
require "json"
class SimpleCovCheckActionFormatter
SourceFile = Data.define(:source_file) do
def covered_strength = source_file.covered_strength
def covered_percent = source_file.covered_percent
def to_json(*args)
{
filename: source_file.f... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/generators_spec.rb | spec/generators_spec.rb | # frozen_string_literal: true
require "spec_helper"
require "tmpdir"
require "rails/generators"
require "generators/pundit/install/install_generator"
require "generators/pundit/policy/policy_generator"
RSpec.describe "generators" do
before(:all) do
@tmpdir = Dir.mktmpdir
Dir.chdir(@tmpdir) do
Pundit... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/pundit_spec.rb | spec/pundit_spec.rb | # frozen_string_literal: true
require "spec_helper"
RSpec.describe Pundit do
let(:user) { double }
let(:post) { Post.new(user) }
let(:customer_post) { Customer::Post.new(user) }
let(:post_four_five_six) { PostFourFiveSix.new(user) }
let(:comment) { Comment.new }
let(:comment_four_five_six) { CommentFourFi... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/spec_helper.rb | spec/spec_helper.rb | # frozen_string_literal: true
if ENV["COVERAGE"]
require "simplecov"
require "simplecov_json_formatter"
require_relative "simple_cov_check_action_formatter"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
Si... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/rspec_dsl_spec.rb | spec/rspec_dsl_spec.rb | # frozen_string_literal: true
require "spec_helper"
RSpec.describe "Pundit RSpec DSL" do
include Pundit::RSpec::PolicyExampleGroup
let(:fake_rspec) do
double = class_double(RSpec::ExampleGroups)
double.extend(::Pundit::RSpec::DSL)
double
end
let(:block) { proc { "block content" } }
let(:user) ... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/criteria_policy.rb | spec/support/policies/criteria_policy.rb | # frozen_string_literal: true
class CriteriaPolicy < BasePolicy
alias criteria record
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/dummy_current_user_policy.rb | spec/support/policies/dummy_current_user_policy.rb | # frozen_string_literal: true
class DummyCurrentUserPolicy < BasePolicy
class Scope < BasePolicy::BaseScope
def resolve
user
end
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/denier_policy.rb | spec/support/policies/denier_policy.rb | # frozen_string_literal: true
class DenierPolicy < BasePolicy
def update?
false
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/nil_class_policy.rb | spec/support/policies/nil_class_policy.rb | # frozen_string_literal: true
class NilClassPolicy < BasePolicy
class Scope
def initialize(*)
raise Pundit::NotDefinedError, "Cannot scope NilClass"
end
end
def show?
false
end
def destroy?
false
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/comment_policy.rb | spec/support/policies/comment_policy.rb | # frozen_string_literal: true
class CommentPolicy < BasePolicy
class Scope < BaseScope
def resolve
CommentScope.new(scope)
end
end
alias comment record
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/post_policy.rb | spec/support/policies/post_policy.rb | # frozen_string_literal: true
class PostPolicy < BasePolicy
class Scope < BaseScope
def resolve
scope.published
end
end
alias post record
def update?
post.user == user
end
alias edit? update?
def destroy?
false
end
def show?
true
end
def permitted_attributes
if ... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/wiki_policy.rb | spec/support/policies/wiki_policy.rb | # frozen_string_literal: true
class WikiPolicy
class Scope
# deliberate typo method
def initalize; end
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/base_policy.rb | spec/support/policies/base_policy.rb | # frozen_string_literal: true
class BasePolicy
prepend InstanceTracking
class BaseScope
prepend InstanceTracking
def initialize(user, scope)
@user = user
@scope = scope
end
attr_reader :user, :scope
end
def initialize(user, record)
@user = user
@record = record
end
... | ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/publication_policy.rb | spec/support/policies/publication_policy.rb | # frozen_string_literal: true
class PublicationPolicy < BasePolicy
class Scope < BaseScope
def resolve
scope.published
end
end
def create?
true
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/article_tag_other_name_policy.rb | spec/support/policies/article_tag_other_name_policy.rb | # frozen_string_literal: true
class ArticleTagOtherNamePolicy < BasePolicy
def show?
true
end
def destroy?
false
end
alias tag record
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/blog_policy.rb | spec/support/policies/blog_policy.rb | # frozen_string_literal: true
class BlogPolicy < BasePolicy
alias blog record
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/default_scope_contains_error_policy.rb | spec/support/policies/default_scope_contains_error_policy.rb | # frozen_string_literal: true
class DefaultScopeContainsErrorPolicy < BasePolicy
class Scope < BaseScope
def resolve
# deliberate wrong usage of the method
raise "This is an arbitrary error that should bubble up"
end
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project_one_two_three/tag_four_five_six_policy.rb | spec/support/policies/project_one_two_three/tag_four_five_six_policy.rb | # frozen_string_literal: true
module ProjectOneTwoThree
class TagFourFiveSixPolicy < BasePolicy
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project_one_two_three/avatar_four_five_six_policy.rb | spec/support/policies/project_one_two_three/avatar_four_five_six_policy.rb | # frozen_string_literal: true
module ProjectOneTwoThree
class AvatarFourFiveSixPolicy < BasePolicy
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project_one_two_three/comment_four_five_six_policy.rb | spec/support/policies/project_one_two_three/comment_four_five_six_policy.rb | # frozen_string_literal: true
module ProjectOneTwoThree
class CommentFourFiveSixPolicy < BasePolicy
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project_one_two_three/criteria_four_five_six_policy.rb | spec/support/policies/project_one_two_three/criteria_four_five_six_policy.rb | # frozen_string_literal: true
module ProjectOneTwoThree
class CriteriaFourFiveSixPolicy < BasePolicy
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project_one_two_three/post_four_five_six_policy.rb | spec/support/policies/project_one_two_three/post_four_five_six_policy.rb | # frozen_string_literal: true
module ProjectOneTwoThree
class PostFourFiveSixPolicy < BasePolicy
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project/criteria_policy.rb | spec/support/policies/project/criteria_policy.rb | # frozen_string_literal: true
module Project
class CriteriaPolicy < BasePolicy
alias criteria record
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project/comment_policy.rb | spec/support/policies/project/comment_policy.rb | # frozen_string_literal: true
module Project
class CommentPolicy < BasePolicy
class Scope < BaseScope
def resolve
scope
end
end
def update?
true
end
alias comment record
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project/post_policy.rb | spec/support/policies/project/post_policy.rb | # frozen_string_literal: true
module Project
class PostPolicy < BasePolicy
class Scope < BaseScope
def resolve
scope.read
end
end
alias post record
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/policies/project/admin/comment_policy.rb | spec/support/policies/project/admin/comment_policy.rb | # frozen_string_literal: true
module Project
module Admin
class CommentPolicy < BasePolicy
def update?
true
end
def destroy?
false
end
end
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/dummy_current_user.rb | spec/support/models/dummy_current_user.rb | # frozen_string_literal: true
class DummyCurrentUser
def update?
user
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/comment_four_five_six.rb | spec/support/models/comment_four_five_six.rb | # frozen_string_literal: true
class CommentFourFiveSix
extend ActiveModel::Naming
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/article_tag.rb | spec/support/models/article_tag.rb | # frozen_string_literal: true
class ArticleTag
def self.policy_class
ArticleTagOtherNamePolicy
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/foo.rb | spec/support/models/foo.rb | # frozen_string_literal: true
class Foo
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/post_four_five_six.rb | spec/support/models/post_four_five_six.rb | # frozen_string_literal: true
class PostFourFiveSix
def initialize(user)
@user = user
end
attr_reader(:user)
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/comment_scope.rb | spec/support/models/comment_scope.rb | # frozen_string_literal: true
class CommentScope
attr_reader :original_object
def initialize(original_object)
@original_object = original_object
end
def ==(other)
original_object == other.original_object
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/article.rb | spec/support/models/article.rb | # frozen_string_literal: true
class Article
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/comment.rb | spec/support/models/comment.rb | # frozen_string_literal: true
class Comment
extend ActiveModel::Naming
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/post.rb | spec/support/models/post.rb | # frozen_string_literal: true
class Post
def initialize(user = nil)
@user = user
end
attr_reader :user
def self.published
:published
end
def self.read
:read
end
def to_s
"Post"
end
def inspect
"#<Post>"
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/blog.rb | spec/support/models/blog.rb | # frozen_string_literal: true
class Blog
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/wiki.rb | spec/support/models/wiki.rb | # frozen_string_literal: true
class Wiki
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/comments_relation.rb | spec/support/models/comments_relation.rb | # frozen_string_literal: true
class CommentsRelation
def initialize(empty: false)
@empty = empty
end
def blank?
@empty
end
def self.model_name
Comment.model_name
end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
varvet/pundit | https://github.com/varvet/pundit/blob/3488802b2f218ba26562e91186655297c95eb6da/spec/support/models/default_scope_contains_error.rb | spec/support/models/default_scope_contains_error.rb | # frozen_string_literal: true
class DefaultScopeContainsError
def self.all; end
end
| ruby | MIT | 3488802b2f218ba26562e91186655297c95eb6da | 2026-01-04T15:38:58.048292Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.