faux_data 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/faux_data.rb +1 -1
- data/lib/faux_data/address_generator.rb +1 -1
- metadata +3 -3
data/lib/faux_data.rb
CHANGED
@@ -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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 2
|
10
|
+
version: 1.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Stansbury
|