Skip to content

Commit

Permalink
update version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeragamba committed Jun 12, 2020
1 parent e2dcc18 commit 634d9e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/faker/default/code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class << self
# @exmaple
# Faker::Code.npi #=> "9804062802"
#
# @faker.version next
# @faker.version 1.9.4
def npi
rand(10**10).to_s.rjust(10, '0')
end
Expand All @@ -27,7 +27,7 @@ def npi
# @exmaple
# Faker::Code.isbn #=> "170366802-2"
#
# @faker.version next
# @faker.version 2.2.0
def isbn(legacy_base = NOT_GIVEN, base: 10)
warn_for_deprecated_arguments do |keywords|
keywords << :base if legacy_base != NOT_GIVEN
Expand All @@ -46,7 +46,7 @@ def isbn(legacy_base = NOT_GIVEN, base: 10)
# @exmaple
# Faker::Code.ean #=> "9941880131907"
#
# @faker.version next
# @faker.version 2.2.0
def ean(legacy_base = NOT_GIVEN, base: 13)
warn_for_deprecated_arguments do |keywords|
keywords << :base if legacy_base != NOT_GIVEN
Expand All @@ -63,7 +63,7 @@ def ean(legacy_base = NOT_GIVEN, base: 13)
# @example
# Faker::Code.rut #=> "91611842-2"
#
# @faker.version next
# @faker.version 1.9.4
def rut
value = Number.number(digits: 8).to_s
vd = rut_verificator_digit(value)
Expand All @@ -86,7 +86,7 @@ def rut
# @example
# Faker::Code.nric #=> "S6372958B"
#
# @faker.version next
# @faker.version 2.2.0
def nric(legacy_min_age = NOT_GIVEN, legacy_max_age = NOT_GIVEN, min_age: 18, max_age: 65)
warn_for_deprecated_arguments do |keywords|
keywords << :min_age if legacy_min_age != NOT_GIVEN
Expand All @@ -109,7 +109,7 @@ def nric(legacy_min_age = NOT_GIVEN, legacy_max_age = NOT_GIVEN, min_age: 18, ma
# @example
# Faker::Code.imei #=> "492033129092256"
#
# @faker.version next
# @faker.version 1.9.4
def imei
generate_imei
end
Expand All @@ -122,7 +122,7 @@ def imei
# @example
# Faker::Code.asin #=> "B000MZW1GE"
#
# @faker.version next
# @faker.version 1.9.4
def asin
fetch('code.asin')
end
Expand All @@ -135,7 +135,7 @@ def asin
# @example
# Faker::Code.sin #=> "996586962"
#
# @faker.version next
# @faker.version 1.9.4
def sin
# 1 - province or temporary resident
# 2-8 - random numbers
Expand Down

0 comments on commit 634d9e8

Please sign in to comment.