lib/faker/company.rb in faker-1.1.2 vs lib/faker/company.rb in faker-1.2.0

- old
+ new

@@ -18,9 +18,13 @@ # When a straight answer won't do, BS to the rescue! def bs translate('faker.company.bs').collect {|list| list.sample }.join(' ') end + + def duns_number + ('%09d' % rand(10 ** 9)).gsub(/(\d\d)(\d\d\d)(\d\d\d\d)/, '\\1-\\2-\\3') + end end end end