Releases: faker-ruby/faker
v2.4.0
v2.4.0 (2019-19-09)
Summary
Bump version to 2.4.0 to introduce Faker::Blockchain::Aeternity generator.
2.4.0 also fixes several locales and documentation.
Documentation
- PR #1750 add only japanese word spec @4geru
- PR #1740 Add more YARD docs @connorshea
- PR #1747 Fix PR links @geniou
Feature Request
Update locales
- PR #1743 Fix another ambiguity in element_symbol field @psibi
- PR #1748 fix typo from bread to breed @4geru
- PR #1752 fix creature i18n path in japanese @4geru
Update local dependencies
The following development dependencies were updated:
- Update simplecov requirement from = 0.17.0 to = 0.17.1 (#1749)
v2.3.0
v2.3.0 (2019-12-09)
Documentation
- PR #1741 Fix the .gitignore for YARD. @connorshea
- PR #1553 Yard powered docs @Zeragamba @connorshea
- PR #1727 Remove Football documentation from wrong category @lucasqueiroz
Feature Request
Update locales
- PR #1732 Add pokemon name in Johto area @mathieujobin
- PR #1723 Quebec province postal codes starts by [GHJ], adding missing two @Ryutooooo
v2.2.2
v2.2.1
v2.2.1 (2019-30-08)
Bug/Fixes
Faker::Number.number(digits: 1) was always returning 0.
Fixing number with one digit caused the test_insignificant_zero to fail. As it seemed that the behavior tested by test_insignificant_zero was already covered by test_number and test_decimal, we removed it to prevent duplication.
v2.2.0
v2.2.0 (2019-27-08)
Deprecate
Add deprecation warning for positional arguments to notify users that are coming from Faker version < 2.0. Its main goal is to make upgrades easier.
Documentation
- PR #1688 Update README install instructions @EduardoGHdez
- PR #1689 Update README.md @Zeragamba
- PR #1690 Update issue url in PULL_REQUEST_TEMPLATE @bugtender
- PR #1703 Return HTTPS URLs from Lorem Flickr @connorshea
Feature Request
- PR #1686 Update test-unit gem to 3.3.3 @connorshea
Bug/Fixes
v2.1.2
v2.1.1
v2.1.1 (2019-10-08)
Bug/Fixes
- PR #1685 Upgrade i18n @EduardoGHdez
bundler-audit has identified that i18 has fix a security vulnerability, that has been fixed in the 0.8 version.
Rollback Faker::Time changes because we should expect the date format from activesupport's en.yml.
Documentation
v2.1.0
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, ca...
Small release
Fix lib/faker/version.rb