faker 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/lib/faker/address.rb +17 -0
- data/lib/faker/version.rb +1 -1
- data/script/destroy +0 -0
- data/script/generate +0 -0
- data/script/txt2html +0 -0
- metadata +4 -4
data/History.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
== 0.3.1 2008-04-03
|
2
|
+
* 1 minor enhancement:
|
3
|
+
* Added city to Address
|
4
|
+
|
1
5
|
== 0.3.0 2008-01-01
|
2
|
-
*
|
6
|
+
* 3 major enhancements:
|
3
7
|
* Added Lorem to generate fake Latin
|
4
8
|
* Added secondary_address to Address, and made inclusion of
|
5
9
|
secondary address in street_address optional (false by
|
data/lib/faker/address.rb
CHANGED
@@ -13,6 +13,23 @@ module Faker
|
|
13
13
|
%w(AL AK AS AZ AR CA CO CT DE DC FM FL GA GU HI ID IL IN IA KS KY LA ME MH MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND MP OH OK OR PW PA PR RI SC SD TN TX UT VT VI VA WA WV WI WY AE AA AP).rand
|
14
14
|
end
|
15
15
|
|
16
|
+
def city_prefix
|
17
|
+
%w(North East West South New Lake Port).rand
|
18
|
+
end
|
19
|
+
|
20
|
+
def city_suffix
|
21
|
+
%w(town ton land ville berg burgh borough bury view port mouth stad furt chester mouth fort haven side shire).rand
|
22
|
+
end
|
23
|
+
|
24
|
+
def city
|
25
|
+
[
|
26
|
+
'%s %s%s' % [city_prefix, Name.first_name, city_suffix],
|
27
|
+
'%s %s' % [city_prefix, Name.first_name],
|
28
|
+
'%s%s' % [Name.first_name, city_suffix],
|
29
|
+
'%s%s' % [Name.last_name, city_suffix],
|
30
|
+
].rand
|
31
|
+
end
|
32
|
+
|
16
33
|
def street_suffix
|
17
34
|
%w(Alley Avenue Branch Bridge Brook Brooks Burg Burgs Bypass Camp Canyon Cape Causeway Center Centers Circle Circles Cliff Cliffs Club Common Corner Corners Course Court Courts Cove Coves Creek Crescent Crest Crossing Crossroad Curve Dale Dam Divide Drive Drive Drives Estate Estates Expressway Extension Extensions Fall Falls Ferry Field Fields Flat Flats Ford Fords Forest Forge Forges Fork Forks Fort Freeway Garden Gardens Gateway Glen Glens Green Greens Grove Groves Harbor Harbors Haven Heights Highway Hill Hills Hollow Inlet Inlet Island Island Islands Islands Isle Isle Junction Junctions Key Keys Knoll Knolls Lake Lakes Land Landing Lane Light Lights Loaf Lock Locks Locks Lodge Lodge Loop Mall Manor Manors Meadow Meadows Mews Mill Mills Mission Mission Motorway Mount Mountain Mountain Mountains Mountains Neck Orchard Oval Overpass Park Parks Parkway Parkways Pass Passage Path Pike Pine Pines Place Plain Plains Plains Plaza Plaza Point Points Port Port Ports Ports Prairie Prairie Radial Ramp Ranch Rapid Rapids Rest Ridge Ridges River Road Road Roads Roads Route Row Rue Run Shoal Shoals Shore Shores Skyway Spring Springs Springs Spur Spurs Square Square Squares Squares Station Station Stravenue Stravenue Stream Stream Street Street Streets Summit Summit Terrace Throughway Trace Track Trafficway Trail Trail Tunnel Tunnel Turnpike Turnpike Underpass Union Unions Valley Valleys Via Viaduct View Views Village Village Villages Ville Vista Vista Walk Walks Wall Way Ways Well Wells).rand
|
18
35
|
end
|
data/lib/faker/version.rb
CHANGED
data/script/destroy
CHANGED
File without changes
|
data/script/generate
CHANGED
File without changes
|
data/script/txt2html
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
platform:
|
4
|
+
version: 0.3.1
|
5
|
+
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Curtis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-04-03 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements: []
|
78
78
|
|
79
79
|
rubyforge_project: faker
|
80
|
-
rubygems_version:
|
80
|
+
rubygems_version: 1.1.0
|
81
81
|
signing_key:
|
82
82
|
specification_version: 2
|
83
83
|
summary: A port of Perl's Data::Faker - Generates fake names, phone numbers, etc.
|