lib/faker/company.rb in faker-1.4.2 vs lib/faker/company.rb in faker-1.4.3

- old
+ new

@@ -19,9 +19,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 ein + ('%09d' % rand(10 ** 9)).gsub(/(\d\d)(\d\d\d\d\d\d\d)/, '\\1-\\2') + end + def duns_number ('%09d' % rand(10 ** 9)).gsub(/(\d\d)(\d\d\d)(\d\d\d\d)/, '\\1-\\2-\\3') end # Get a random company logo url in GIF format.