Skip to content

Commit

Permalink
Deprecate Faker::Number.decimal_part and Faker::Number.leading_zero_n…
Browse files Browse the repository at this point in the history
…umber (faker-ruby#1516)
  • Loading branch information
vbrazo committed Jun 22, 2019
1 parent 2b16381 commit 061ff22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/faker/default/number.rb
Expand Up @@ -3,6 +3,8 @@
module Faker
class Number < Base
class << self
extend Gem::Deprecate

def number(digits = 10)
num = ''

Expand Down Expand Up @@ -92,6 +94,9 @@ def should_be(number, method_to_compare)
number * -1
end
end

deprecate :decimal_part, nil, 2019, 06
deprecate :leading_zero_number, nil, 2019, 06
end
end
end

0 comments on commit 061ff22

Please sign in to comment.