faux_data 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  module FauxData
5
- VERSION = "1.1.1".freeze if not defined?(FauxData::VERSION)
5
+ VERSION = "1.1.2".freeze if not defined?(FauxData::VERSION)
6
6
  end
7
7
 
8
8
  require 'faux_data/person_generator'
@@ -13,7 +13,7 @@ class AddressGenerator
13
13
  def address
14
14
  load_csz_file if @city_state_zipcodes.size < 1
15
15
  load_street_file if @street_names.size < 1
16
- street = "#{rand(9899) + 100} #{@street_names.choice[:street]}"
16
+ street = "#{rand(9899) + 100} #{@street_names.choice[:street]}".strip
17
17
  if rand(5) == 4 # 20 % of the time
18
18
  street << ", Apt ##{(100..999).to_a.choice}"
19
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faux_data
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Stansbury