Skip to content

Releases: faker-ruby/faker

v2.1.0

31 Jul 23:29
Compare
Choose a tag to compare

v2.1.0 (2019-31-07)

Bug/Fixes

This change required a quick release because it's a breaking issue. Every place where I18n.l() was used began to display the wrong date, causing test suite to fail and frustration for developers.

Release Faker 2.0

31 Jul 08:15
ed1ef70
Compare
Choose a tag to compare

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) becomes Faker::Books::Dune.quote(character: nil)
  • Faker::Books::Dune.saying(source = nil) becomes Faker::Books::Dune.saying(source: nil)
  • Faker::Books::Lovecraft.fhtagn(number_of = nil) becomes Faker::Books::Lovecraft.fhtagn(number: nil)
  • Faker::Books::Lovecraft.paragraph(sentence_count = nil, random_sentences_to_add = nil) becomes Faker::Books::Lovecraft.paragraph(sentence_count: nil, random_sentences_to_add: nil)
  • Faker::Books::Lovecraft.paragraph_by_chars(chars = nil) becomes Faker::Books::Lovecraft.paragraph_by_chars(characters: nil)
  • Faker::Books::Lovecraft.paragraphs(paragraph_count = nil) becomes Faker::Books::Lovecraft.paragraphs(number: nil)
  • Faker::Books::Lovecraft.sentence(word_count = nil, random_words_to_add = nil) becomes Faker::Books::Lovecraft.sentence(word_count: nil, random_words_to_add: nil)
  • Faker::Books::Lovecraft.sentences(sentence_count = nil) becomes Faker::Books::Lovecraft.sentences(number: nil)
  • Faker::Books::Lovecraft.words(num = nil, spaces_allowed = nil) becomes Faker::Books::Lovecraft.words(number: nil, spaces_allowed: nil)
  • Faker::Address.city(options = nil) becomes Faker::Address.city(options: nil)
  • Faker::Address.postcode(state_abbreviation = nil) becomes Faker::Address.postcode(state_abbreviation: nil)
  • Faker::Address.street_address(include_secondary = nil) becomes Faker::Address.street_address(include_secondary: nil)
  • Faker::Address.zip(state_abbreviation = nil) becomes Faker::Address.zip(state_abbreviation: nil)
  • Faker::Address.zip_code(state_abbreviation = nil) becomes Faker::Address.zip_code(state_abbreviation: nil)
  • Faker::Alphanumeric.alpha(char_count = nil) becomes Faker::Alphanumeric.alpha(number: nil)
  • Faker::Alphanumeric.alphanumeric(char_count = nil) becomes Faker::Alphanumeric.alphanumeric(number: nil)
  • Faker::Avatar.image(slug = nil, size = nil, format = nil, set = nil, bgset = nil) becomes Faker::Avatar.image(slug: nil, size: nil, format: nil, set: nil, bgset: nil)
  • Faker::Bank.account_number(digits = nil) becomes Faker::Bank.account_number(digits: nil)
  • Faker::Bank.iban(country_code = nil) becomes Faker::Bank.iban(country_code: nil)
  • Faker::ChileRut.full_rut(min_rut = nil, fixed = nil) becomes Faker::ChileRut.full_rut(min_rut: nil, fixed: nil)
  • Faker::ChileRut.rut(min_rut = nil, fixed = nil) becomes Faker::ChileRut.rut(min_rut: nil, fixed: nil)
  • Faker::Code.ean(base = nil) becomes Faker::Code.ean(base: nil)
  • Faker::Code.isbn(base = nil) becomes Faker::Code.isbn(base: nil)
  • Faker::Code.nric(min_age = nil, max_age = nil) becomes Faker::Code.nric(min_age: nil, max_age: nil)
  • Faker::Commerce.department(max = nil, fixed_amount = nil) becomes Faker::Commerce.department(max: nil, fixed_amount: nil)
  • Faker::Commerce.price(range = nil, as_string = nil) becomes Faker::Commerce.price(range: nil, as_string: nil)
  • Faker::Commerce.promotion_code(digits = nil) becomes Faker::Commerce.promotion_code(digits: nil)
  • Faker::Company.polish_register_of_national_economy(length = nil) becomes Faker::Company.polish_register_of_national_economy(length: nil)
  • Faker::CryptoCoin.acronym(coin = nil) becomes Faker::CryptoCoin.acronym(coin: nil)
  • Faker::CryptoCoin.coin_name(coin = nil) becomes Faker::CryptoCoin.coin_name(coin: nil)
  • Faker::CryptoCoin.url_logo(coin = nil) becomes Faker::CryptoCoin.url_logo(coin: nil)
  • Faker::Date.backward(days = nil) becomes Faker::Date.backward(days: nil)
  • Faker::Date.between(from, to) becomes Faker::Date.between(from:, to:)
  • Faker::Date.between_except(from, to, excepted) becomes Faker::Date.between_except(from:, to:, excepted:)
  • Faker::Date.birthday(min_age = nil, max_age = nil) becomes Faker::Date.birthday(min_age: nil, max_age: nil)
  • Faker::Date.forward(days = nil) becomes Faker::Date.forward(days: nil)
  • Faker::Demographic.height(unit = nil) becomes Faker::Demographic.height(unit: nil)
  • Faker::File.dir(segment_count = nil, root = nil, directory_separator = nil) becomes Faker::File.dir(segment_count: nil, root: nil, directory_separator: nil)
  • Faker::File.file_name(dir = nil, name = nil, ext = nil, directory_separator = nil) becomes Faker::File.file_name(dir: nil, name: nil, ext: nil, directory_separator: nil)
  • Faker::Fillmurray.image(grayscale = nil, width = nil, height = nil) becomes Faker::Fillmurray.image(grayscale: nil, width: nil, height: nil)
  • Faker::Finance.vat_number(country = nil) becomes Faker::Finance.vat_number(country: nil)
  • Faker::Hipster.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil) becomes Faker::Hipster.paragraph(sentence_count: nil, supplemental: nil, random_sentences_to_add: nil)
  • Faker::Hipster.paragraph_by_chars(chars = nil, supplemental = nil) becomes Faker::Hipster.paragraph_by_chars(characters: nil, supplemental: nil)
  • Faker::Hipster.paragraphs(paragraph_count = nil, supplemental = nil) becomes Faker::Hipster.paragraphs(number: nil, supplemental: nil)
  • Faker::Hipster.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil) becomes Faker::Hipster.sentence(word_count: nil, supplemental: nil, random_words_to_add: nil)
  • Faker::Hipster.sentences(sentence_count = nil, supplemental = nil) becomes Faker::Hipster.sentences(number: nil, supplemental: nil)
  • Faker::Hipster.words(num = nil, supplemental = nil, spaces_allowed = nil) becomes Faker::Hipster.words(number: nil, supplemental: nil, spaces_allowed: nil)
  • Faker::Internet.domain_name(subdomain = nil) becomes Faker::Internet.domain_name(subdomain: nil)
  • Faker::Internet.email(name = nil, *separators) becomes Faker::Internet.email(name: nil, separators: nil)
  • Faker::Internet.fix_umlauts(string = nil) becomes Faker::Internet.fix_umlauts(string: nil)
  • Faker::Internet.free_email(name = nil) becomes Faker::Internet.free_email(name: nil)
  • Faker::Internet.mac_address(prefix = nil) becomes Faker::Internet.mac_address(prefix: nil)
  • Faker::Internet.password(min_length = nil, max_length = nil, mix_case = nil, special_chars = nil) becomes Faker::Internet.password(min_length: nil, max_length: nil, mix_case: nil, special_characters: nil)
  • Faker::Internet.safe_email(name = nil) becomes Faker::Internet.safe_email(name: nil)
  • Faker::Internet.slug(words = nil, glue = nil) becomes Faker::Internet.slug(words: nil, glue: nil)
  • Faker::Internet.url(host = nil, path = nil, scheme = nil) becomes Faker::Internet.url(host: nil, path: nil, scheme: nil)
  • Faker::Internet.user_agent(vendor = nil) becomes Faker::Internet.user_agent(vendor: nil)
  • Faker::Internet.user_name(specifier = nil, separators = nil) becomes Faker::Internet.user_name(specifier: nil, separators: nil)
  • Faker::Internet.username(specifier = nil, separators = nil) becomes Faker::Internet.username(specifier: nil, separators: nil)
  • Faker::Invoice.amount_between(from = nil, to = nil) becomes Faker::Invoice.amount_between(from: nil, to: nil)
  • Faker::Invoice.creditor_reference(ref = nil) becomes Faker::Invoice.creditor_reference(ref: nil)
  • Faker::Invoice.reference(ref = nil) becomes Faker::Invoice.reference(ref: nil)
  • Faker::Json.add_depth_to_json(json = nil, width = nil, options = nil) becomes Faker::Json.add_depth_to_json(json: nil, width: nil, options: nil)
  • Faker::Json.shallow_json(width = nil, options = nil) becomes Faker::Json.shallow_json(width: nil, options: nil)
  • Faker::Lorem.characters(char_count = nil) becomes Faker::Lorem.characters(number: nil)
  • Faker::Lorem.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil) becomes Faker::Lorem.paragraph(sentence_count: nil, supplemental: nil, random_sentences_to_add: nil)
  • Faker::Lorem.paragraph_by_chars(chars = nil, supplemental = nil) becomes Faker::Lorem.paragraph_by_chars(number: nil, supplemental: nil)
  • Faker::Lorem.paragraphs(paragraph_count = nil, supplemental = nil) becomes Faker::Lorem.paragraphs(number: nil, supplemental: nil)
  • Faker::Lorem.question(word_count = nil, supplemental = nil, random_words_to_add = nil) becomes Faker::Lorem.question(word_count: nil, supplemental: nil, random_words_to_add: nil)
  • Faker::Lorem.questions(question_count = nil, supplemental = nil) becomes Faker::Lorem.questions(number: nil, supplemental: nil)
  • Faker::Lorem.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil) becomes Faker::Lorem.sentence(word_count: nil, supplemental: nil, random_words_to_add: nil)
  • Faker::Lorem.sentences(sentence_count = nil, supplemental = nil) becomes Faker::Lorem.sentences(number: nil, supplemental: nil)
  • Faker::Lorem.words(num = nil, supplemental = nil) becomes Faker::Lorem.words(number: nil, supplemental: nil)
  • Faker::LoremFlickr.colorized_image(size = nil, color = nil, search_terms = nil, match_all = nil) becomes Faker::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) becomes Faker::LoremFlickr.grayscale_image(size: nil, search_terms: nil, match_all: nil)
  • Faker::LoremFlickr.image(size = nil, search_terms = nil, match_all = nil) becomes Faker::LoremFlickr.image(size: nil, search_terms: nil, match_all: nil)
  • Faker::LoremFlickr.pixelated_image(size = nil, search_terms = nil, match_all = nil) becomes Faker::LoremFlickr.pixelated_image(size: nil, search_terms: nil, match_all: nil)
  • `Faker::LoremPixel.image(size = nil, is_gray = nil, ca...
Read more

Small release

06 Jul 06:49
401948a
Compare
Choose a tag to compare

Fix lib/faker/version.rb

Revert fakerbot and move to it own repository inside organization

04 Jul 15:30
a88d3ee
Compare
Choose a tag to compare
  • Revert fakerbot and move to own repository inside new organization (#1644)
  • Add 558 Verb ing_forms from Verb base (#1643)
  • Add Faker::File.dir (#1361)
  • Deprecate Faker::Number.decimal_part and Faker::Number.leading_zero_number (#1516)
  • Add pull_request_template.md (#1640)

v1.9.4

20 Jun 05:22
Compare
Choose a tag to compare

v1.9.4 (2019-06-19)

Bug/Fixes

Chores

Deprecation

Documentation

Feature Request

Update/add locales