ffaker 0.3.6 → 0.3.7
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/VERSION +1 -1
 - data/lib/ffaker/address.rb +4 -9
 - data/lib/ffaker/version.rb +1 -1
 - metadata +3 -3
 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.3. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.3.7
         
     | 
    
        data/lib/ffaker/address.rb
    CHANGED
    
    | 
         @@ -38,18 +38,13 @@ module Faker 
     | 
|
| 
       38 
38 
     | 
    
         | 
| 
       39 
39 
     | 
    
         
             
                def street_name
         
     | 
| 
       40 
40 
     | 
    
         
             
                  case rand(2)
         
     | 
| 
       41 
     | 
    
         
            -
                  when 0 then "#{Name.last_name}#{street_suffix}"
         
     | 
| 
       42 
     | 
    
         
            -
                  when 1 then "#{Name.first_name}#{street_suffix}"
         
     | 
| 
      
 41 
     | 
    
         
            +
                  when 0 then "#{Name.last_name} #{street_suffix}"
         
     | 
| 
      
 42 
     | 
    
         
            +
                  when 1 then "#{Name.first_name} #{street_suffix}"
         
     | 
| 
       43 
43 
     | 
    
         
             
                  end
         
     | 
| 
       44 
44 
     | 
    
         
             
                end
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
                def street_address(include_secondary = false)
         
     | 
| 
       47 
     | 
    
         
            -
                  str =  
     | 
| 
       48 
     | 
    
         
            -
                  when 0 then '##### %s' % street_name
         
     | 
| 
       49 
     | 
    
         
            -
                  when 1 then '#### %s'  % street_name
         
     | 
| 
       50 
     | 
    
         
            -
                  when 2 then '### %s'   % street_name
         
     | 
| 
       51 
     | 
    
         
            -
                  end
         
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
      
 47 
     | 
    
         
            +
                  str = ( "#" * rand(3) ) << ('### %s' % street_name)
         
     | 
| 
       53 
48 
     | 
    
         
             
                  str << ' ' << secondary_address  if include_secondary
         
     | 
| 
       54 
49 
     | 
    
         | 
| 
       55 
50 
     | 
    
         
             
                  Faker.numerify(str)
         
     | 
| 
         @@ -103,7 +98,7 @@ module Faker 
     | 
|
| 
       103 
98 
     | 
    
         
             
                  Estate Estates Expressway Extension Extensions Fall Falls Ferry
         
     | 
| 
       104 
99 
     | 
    
         
             
                  Field Fields Flat Flats Ford Fords Forest Forge Forges Fork Forks Fort
         
     | 
| 
       105 
100 
     | 
    
         
             
                  Freeway Garden Gardens Gateway Glen Glens Green Greens Grove Groves Harbor
         
     | 
| 
       106 
     | 
    
         
            -
                  Harbors Haven Heights Highway Hill Hills Hollow Inlet Island 
     | 
| 
      
 101 
     | 
    
         
            +
                  Harbors Haven Heights Highway Hill Hills Hollow Inlet Island
         
     | 
| 
       107 
102 
     | 
    
         
             
                  Islands Isle Junction Junctions Key Keys Knoll Knolls Lake
         
     | 
| 
       108 
103 
     | 
    
         
             
                  Lakes Land Landing Lane Light Lights Loaf Lock Locks Lodge Loop
         
     | 
| 
       109 
104 
     | 
    
         
             
                  Mall Manor Manors Meadow Meadows Mews Mill Mills Mission Motorway
         
     | 
    
        data/lib/ffaker/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       5 
5 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 3
         
     | 
| 
       8 
     | 
    
         
            -
              -  
     | 
| 
       9 
     | 
    
         
            -
              version: 0.3. 
     | 
| 
      
 8 
     | 
    
         
            +
              - 7
         
     | 
| 
      
 9 
     | 
    
         
            +
              version: 0.3.7
         
     | 
| 
       10 
10 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       11 
11 
     | 
    
         
             
            authors: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            - Emmanuel Oga
         
     | 
| 
         @@ -14,7 +14,7 @@ autorequire: 
     | 
|
| 
       14 
14 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       15 
15 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
            date: 2010-04- 
     | 
| 
      
 17 
     | 
    
         
            +
            date: 2010-04-23 00:00:00 -03:00
         
     | 
| 
       18 
18 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       19 
19 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       20 
20 
     | 
    
         |