Release Faker 2.0
v2.0 (2019-31-07)
Important Note:
Version 2 has several breaking changes
. We replaced positional arguments with keyword arguments and the list below contains all the changed methods:
Faker::Books::Dune.quote(character = nil)
becomesFaker::Books::Dune.quote(character: nil)
Faker::Books::Dune.saying(source = nil)
becomesFaker::Books::Dune.saying(source: nil)
Faker::Books::Lovecraft.fhtagn(number_of = nil)
becomesFaker::Books::Lovecraft.fhtagn(number: nil)
Faker::Books::Lovecraft.paragraph(sentence_count = nil, random_sentences_to_add = nil)
becomesFaker::Books::Lovecraft.paragraph(sentence_count: nil, random_sentences_to_add: nil)
Faker::Books::Lovecraft.paragraph_by_chars(chars = nil)
becomesFaker::Books::Lovecraft.paragraph_by_chars(characters: nil)
Faker::Books::Lovecraft.paragraphs(paragraph_count = nil)
becomesFaker::Books::Lovecraft.paragraphs(number: nil)
Faker::Books::Lovecraft.sentence(word_count = nil, random_words_to_add = nil)
becomesFaker::Books::Lovecraft.sentence(word_count: nil, random_words_to_add: nil)
Faker::Books::Lovecraft.sentences(sentence_count = nil)
becomesFaker::Books::Lovecraft.sentences(number: nil)
Faker::Books::Lovecraft.words(num = nil, spaces_allowed = nil)
becomesFaker::Books::Lovecraft.words(number: nil, spaces_allowed: nil)
Faker::Address.city(options = nil)
becomesFaker::Address.city(options: nil)
Faker::Address.postcode(state_abbreviation = nil)
becomesFaker::Address.postcode(state_abbreviation: nil)
Faker::Address.street_address(include_secondary = nil)
becomesFaker::Address.street_address(include_secondary: nil)
Faker::Address.zip(state_abbreviation = nil)
becomesFaker::Address.zip(state_abbreviation: nil)
Faker::Address.zip_code(state_abbreviation = nil)
becomesFaker::Address.zip_code(state_abbreviation: nil)
Faker::Alphanumeric.alpha(char_count = nil)
becomesFaker::Alphanumeric.alpha(number: nil)
Faker::Alphanumeric.alphanumeric(char_count = nil)
becomesFaker::Alphanumeric.alphanumeric(number: nil)
Faker::Avatar.image(slug = nil, size = nil, format = nil, set = nil, bgset = nil)
becomesFaker::Avatar.image(slug: nil, size: nil, format: nil, set: nil, bgset: nil)
Faker::Bank.account_number(digits = nil)
becomesFaker::Bank.account_number(digits: nil)
Faker::Bank.iban(country_code = nil)
becomesFaker::Bank.iban(country_code: nil)
Faker::ChileRut.full_rut(min_rut = nil, fixed = nil)
becomesFaker::ChileRut.full_rut(min_rut: nil, fixed: nil)
Faker::ChileRut.rut(min_rut = nil, fixed = nil)
becomesFaker::ChileRut.rut(min_rut: nil, fixed: nil)
Faker::Code.ean(base = nil)
becomesFaker::Code.ean(base: nil)
Faker::Code.isbn(base = nil)
becomesFaker::Code.isbn(base: nil)
Faker::Code.nric(min_age = nil, max_age = nil)
becomesFaker::Code.nric(min_age: nil, max_age: nil)
Faker::Commerce.department(max = nil, fixed_amount = nil)
becomesFaker::Commerce.department(max: nil, fixed_amount: nil)
Faker::Commerce.price(range = nil, as_string = nil)
becomesFaker::Commerce.price(range: nil, as_string: nil)
Faker::Commerce.promotion_code(digits = nil)
becomesFaker::Commerce.promotion_code(digits: nil)
Faker::Company.polish_register_of_national_economy(length = nil)
becomesFaker::Company.polish_register_of_national_economy(length: nil)
Faker::CryptoCoin.acronym(coin = nil)
becomesFaker::CryptoCoin.acronym(coin: nil)
Faker::CryptoCoin.coin_name(coin = nil)
becomesFaker::CryptoCoin.coin_name(coin: nil)
Faker::CryptoCoin.url_logo(coin = nil)
becomesFaker::CryptoCoin.url_logo(coin: nil)
Faker::Date.backward(days = nil)
becomesFaker::Date.backward(days: nil)
Faker::Date.between(from, to)
becomesFaker::Date.between(from:, to:)
Faker::Date.between_except(from, to, excepted)
becomesFaker::Date.between_except(from:, to:, excepted:)
Faker::Date.birthday(min_age = nil, max_age = nil)
becomesFaker::Date.birthday(min_age: nil, max_age: nil)
Faker::Date.forward(days = nil)
becomesFaker::Date.forward(days: nil)
Faker::Demographic.height(unit = nil)
becomesFaker::Demographic.height(unit: nil)
Faker::File.dir(segment_count = nil, root = nil, directory_separator = nil)
becomesFaker::File.dir(segment_count: nil, root: nil, directory_separator: nil)
Faker::File.file_name(dir = nil, name = nil, ext = nil, directory_separator = nil)
becomesFaker::File.file_name(dir: nil, name: nil, ext: nil, directory_separator: nil)
Faker::Fillmurray.image(grayscale = nil, width = nil, height = nil)
becomesFaker::Fillmurray.image(grayscale: nil, width: nil, height: nil)
Faker::Finance.vat_number(country = nil)
becomesFaker::Finance.vat_number(country: nil)
Faker::Hipster.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil)
becomesFaker::Hipster.paragraph(sentence_count: nil, supplemental: nil, random_sentences_to_add: nil)
Faker::Hipster.paragraph_by_chars(chars = nil, supplemental = nil)
becomesFaker::Hipster.paragraph_by_chars(characters: nil, supplemental: nil)
Faker::Hipster.paragraphs(paragraph_count = nil, supplemental = nil)
becomesFaker::Hipster.paragraphs(number: nil, supplemental: nil)
Faker::Hipster.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil)
becomesFaker::Hipster.sentence(word_count: nil, supplemental: nil, random_words_to_add: nil)
Faker::Hipster.sentences(sentence_count = nil, supplemental = nil)
becomesFaker::Hipster.sentences(number: nil, supplemental: nil)
Faker::Hipster.words(num = nil, supplemental = nil, spaces_allowed = nil)
becomesFaker::Hipster.words(number: nil, supplemental: nil, spaces_allowed: nil)
Faker::Internet.domain_name(subdomain = nil)
becomesFaker::Internet.domain_name(subdomain: nil)
Faker::Internet.email(name = nil, *separators)
becomesFaker::Internet.email(name: nil, separators: nil)
Faker::Internet.fix_umlauts(string = nil)
becomesFaker::Internet.fix_umlauts(string: nil)
Faker::Internet.free_email(name = nil)
becomesFaker::Internet.free_email(name: nil)
Faker::Internet.mac_address(prefix = nil)
becomesFaker::Internet.mac_address(prefix: nil)
Faker::Internet.password(min_length = nil, max_length = nil, mix_case = nil, special_chars = nil)
becomesFaker::Internet.password(min_length: nil, max_length: nil, mix_case: nil, special_characters: nil)
Faker::Internet.safe_email(name = nil)
becomesFaker::Internet.safe_email(name: nil)
Faker::Internet.slug(words = nil, glue = nil)
becomesFaker::Internet.slug(words: nil, glue: nil)
Faker::Internet.url(host = nil, path = nil, scheme = nil)
becomesFaker::Internet.url(host: nil, path: nil, scheme: nil)
Faker::Internet.user_agent(vendor = nil)
becomesFaker::Internet.user_agent(vendor: nil)
Faker::Internet.user_name(specifier = nil, separators = nil)
becomesFaker::Internet.user_name(specifier: nil, separators: nil)
Faker::Internet.username(specifier = nil, separators = nil)
becomesFaker::Internet.username(specifier: nil, separators: nil)
Faker::Invoice.amount_between(from = nil, to = nil)
becomesFaker::Invoice.amount_between(from: nil, to: nil)
Faker::Invoice.creditor_reference(ref = nil)
becomesFaker::Invoice.creditor_reference(ref: nil)
Faker::Invoice.reference(ref = nil)
becomesFaker::Invoice.reference(ref: nil)
Faker::Json.add_depth_to_json(json = nil, width = nil, options = nil)
becomesFaker::Json.add_depth_to_json(json: nil, width: nil, options: nil)
Faker::Json.shallow_json(width = nil, options = nil)
becomesFaker::Json.shallow_json(width: nil, options: nil)
Faker::Lorem.characters(char_count = nil)
becomesFaker::Lorem.characters(number: nil)
Faker::Lorem.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil)
becomesFaker::Lorem.paragraph(sentence_count: nil, supplemental: nil, random_sentences_to_add: nil)
Faker::Lorem.paragraph_by_chars(chars = nil, supplemental = nil)
becomesFaker::Lorem.paragraph_by_chars(number: nil, supplemental: nil)
Faker::Lorem.paragraphs(paragraph_count = nil, supplemental = nil)
becomesFaker::Lorem.paragraphs(number: nil, supplemental: nil)
Faker::Lorem.question(word_count = nil, supplemental = nil, random_words_to_add = nil)
becomesFaker::Lorem.question(word_count: nil, supplemental: nil, random_words_to_add: nil)
Faker::Lorem.questions(question_count = nil, supplemental = nil)
becomesFaker::Lorem.questions(number: nil, supplemental: nil)
Faker::Lorem.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil)
becomesFaker::Lorem.sentence(word_count: nil, supplemental: nil, random_words_to_add: nil)
Faker::Lorem.sentences(sentence_count = nil, supplemental = nil)
becomesFaker::Lorem.sentences(number: nil, supplemental: nil)
Faker::Lorem.words(num = nil, supplemental = nil)
becomesFaker::Lorem.words(number: nil, supplemental: nil)
Faker::LoremFlickr.colorized_image(size = nil, color = nil, search_terms = nil, match_all = nil)
becomesFaker::LoremFlickr.colorized_image(size: nil, color: nil, search_terms: nil, match_all: nil)
Faker::LoremFlickr.grayscale_image(size = nil, search_terms = nil, match_all = nil)
becomesFaker::LoremFlickr.grayscale_image(size: nil, search_terms: nil, match_all: nil)
Faker::LoremFlickr.image(size = nil, search_terms = nil, match_all = nil)
becomesFaker::LoremFlickr.image(size: nil, search_terms: nil, match_all: nil)
Faker::LoremFlickr.pixelated_image(size = nil, search_terms = nil, match_all = nil)
becomesFaker::LoremFlickr.pixelated_image(size: nil, search_terms: nil, match_all: nil)
Faker::LoremPixel.image(size = nil, is_gray = nil, category = nil, number = nil, text = nil, secure: nil)
becomesFaker::LoremPixel.image(size: nil, is_gray: nil, category: nil, number: nil, text: nil, secure: nil)
Faker::Markdown.sandwich(sentences = nil, repeat = nil)
becomesFaker::Markdown.sandwich(sentences: nil, repeat: nil)
Faker::Measurement.height(amount = nil)
becomesFaker::Measurement.height(amount: nil)
Faker::Measurement.length(amount = nil)
becomesFaker::Measurement.length(amount: nil)
Faker::Measurement.metric_height(amount = nil)
becomesFaker::Measurement.metric_height(amount: nil)
Faker::Measurement.metric_length(amount = nil)
becomesFaker::Measurement.metric_length(amount: nil)
Faker::Measurement.metric_volume(amount = nil)
becomesFaker::Measurement.metric_volume(amount: nil)
Faker::Measurement.metric_weight(amount = nil)
becomesFaker::Measurement.metric_weight(amount: nil)
Faker::Measurement.volume(amount = nil)
becomesFaker::Measurement.volume(amount: nil)
Faker::Measurement.weight(amount = nil)
becomesFaker::Measurement.weight(amount: nil)
Faker::Name.initials(character_count = nil)
becomesFaker::Name.initials(number: nil)
Faker::NationalHealthService.check_digit(number = nil)
becomesFaker::NationalHealthService.check_digit(number: nil)
Faker::Number.between(from = nil, to = nil)
becomesFaker::Number.between(from: nil, to: nil)
Faker::Number.decimal(l_digits = nil, r_digits = nil)
becomesFaker::Number.decimal(l_digits: nil, r_digits: nil)
Faker::Number.decimal_part(*args, &block)
becomesFaker::Number.decimal_part(digits: nil)
Faker::Number.hexadecimal(digits = nil)
becomesFaker::Number.hexadecimal(digits: nil)
Faker::Number.leading_zero_number(*args, &block)
becomesFaker::Number.leading_zero_number(digits: nil)
Faker::Number.negative(from = nil, to = nil)
becomesFaker::Number.negative(from: nil, to: nil)
Faker::Number.normal(mean = nil, standard_deviation = nil)
becomesFaker::Number.normal(mean: nil, standard_deviation: nil)
Faker::Number.number(digits = nil)
becomesFaker::Number.number(digits: nil)
Faker::Number.positive(from = nil, to = nil)
becomesFaker::Number.positive(from: nil, to: nil)
Faker::Number.within(range = nil)
becomesFaker::Number.within(range: nil)
Faker::PhoneNumber.extension(length = nil)
becomesFaker::PhoneNumber.extension(length: nil)
Faker::PhoneNumber.subscriber_number(length = nil)
becomesFaker::PhoneNumber.subscriber_number(length: nil)
Faker::Placeholdit.image(size = nil, format = nil, background_color = nil, text_color = nil, text = nil)
becomesFaker::Placeholdit.image(size: nil, format: nil, background_color: nil, text_color: nil, text: nil)
Faker::Relationship.familial(connection = nil)
becomesFaker::Relationship.familial(connection: nil)
Faker::Source.hello_world(lang = nil)
becomesFaker::Source.hello_world(lang: nil)
Faker::Source.print_1_to_10(lang = nil)
becomesFaker::Source.print_1_to_10(lang: nil)
Faker::String.random(length = nil)
becomesFaker::String.random(length: nil)
Faker::Stripe.ccv(card_type = nil)
becomesFaker::Stripe.ccv(card_type: nil)
Faker::Stripe.invalid_card(card_error = nil)
becomesFaker::Stripe.invalid_card(card_error: nil)
Faker::Stripe.valid_card(card_type = nil)
becomesFaker::Stripe.valid_card(card_type: nil)
Faker::Stripe.valid_token(card_type = nil)
becomesFaker::Stripe.valid_token(card_type: nil)
Faker::Time.backward(days = nil, period = nil, format = nil)
becomesFaker::Time.backward(days: nil, period: nil, format: nil)
Faker::Time.between(from, to, period = nil, format = nil)
becomesFaker::Time.between(from:, to:, format: nil)
Faker::Time.forward(days = nil, period = nil, format = nil)
becomesFaker::Time.forward(days: nil, period: nil, format: nil)
Faker::Types.complex_rb_hash(key_count = nil)
becomesFaker::Types.complex_rb_hash(number: nil)
Faker::Types.rb_array(len = nil)
becomesFaker::Types.rb_array(len: nil)
Faker::Types.rb_hash(key_count = nil, type = nil)
becomesFaker::Types.rb_hash(number: nil, type: nil)
Faker::Types.rb_integer(from = nil, to = nil)
becomesFaker::Types.rb_integer(from: nil, to: nil)
Faker::Types.rb_string(words = nil)
becomesFaker::Types.rb_string(words: nil)
Faker::Vehicle.kilometrage(min = nil, max = nil)
becomesFaker::Vehicle.kilometrage(min: nil, max: nil)
Faker::Vehicle.license_plate(state_abreviation = nil)
becomesFaker::Vehicle.license_plate(state_abreviation: nil)
Faker::Vehicle.mileage(min = nil, max = nil)
becomesFaker::Vehicle.mileage(min: nil, max: nil)
Faker::Vehicle.model(make_of_model = nil)
becomesFaker::Vehicle.model(make_of_model: nil)
Faker::WorldCup.group(group = nil)
becomesFaker::WorldCup.group(group: nil)
Faker::WorldCup.roster(country = nil, type = nil)
becomesFaker::WorldCup.roster(country: nil, type: nil)
Faker::Movies::StarWars.quote(character = nil)
becomesFaker::Movies::StarWars.quote(character: nil)
Bug/Fixes
- PR #1660 Update FillMurray Links To Include www @RaymondFallon
Deprecation
- PR #1634 Corrected other occurrences of spelling vehicle spelling error, deprecated Space launch_vehicule @Siyanda
Documentation
Feature Request
- PR #1417 Rework Faker::Time::between @pjohnmeyer
- PR #510 Make Faker::Number return integers and floats instead of strings @tejasbubane
- PR #1651 Preparing for v2 @vbrazo
- PR #1664 Replace positional arguments with keyword arguments @vbrazo
Update/add locales
- PR #1658 Update Faker::Games::SuperSmashBros entries @boardfish
- PR #1649 Remove mexicoMX @vbrazo