faker 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- * 1 major enhancement:
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
@@ -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
@@ -2,7 +2,7 @@ module Faker #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
File without changes
File without changes
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.0
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-01-01 00:00:00 -08:00
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: 0.9.5
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.