geo_magic 0.2.4.2 → 0.2.4.3
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/README.textile +1 -2
 - data/VERSION +1 -1
 - data/geo_magic.gemspec +1 -1
 - data/lib/geo_magic/geocode/config.rb +1 -0
 - data/lib/rails/config.rb +1 -0
 - data/spec/geo_magic/geocoder_rails_spec.rb +4 -5
 - metadata +3 -3
 
    
        data/README.textile
    CHANGED
    
    | 
         @@ -129,8 +129,7 @@ Multi Graticule Customization: 
     | 
|
| 
       129 
129 
     | 
    
         
             
            Geocoder in Rails:
         
     | 
| 
       130 
130 
     | 
    
         | 
| 
       131 
131 
     | 
    
         
             
            <pre>
         
     | 
| 
       132 
     | 
    
         
            -
              geocoder = GeoMagic.geo_coder(:env => :rails)
         
     | 
| 
       133 
     | 
    
         
            -
              geocoder.configure
         
     | 
| 
      
 132 
     | 
    
         
            +
              geocoder = GeoMagic.geo_coder(:env => :rails).configure
         
     | 
| 
       134 
133 
     | 
    
         | 
| 
       135 
134 
     | 
    
         
             
              location = geocoder.instance.geocode "Mullerstrasse 9, Munich"
         
     | 
| 
       136 
135 
     | 
    
         
             
              location.city.should == 'Munich'
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.2.4. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.2.4.3
         
     | 
    
        data/geo_magic.gemspec
    CHANGED
    
    
    
        data/lib/rails/config.rb
    CHANGED
    
    
| 
         @@ -21,16 +21,15 @@ end 
     | 
|
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
            describe "GeoMagic Geocoder" do
         
     | 
| 
       23 
23 
     | 
    
         
             
              it "should geocode for rails" do        
         
     | 
| 
       24 
     | 
    
         
            -
                @geocoder = GeoMagic.geo_coder(:env => :rails)
         
     | 
| 
       25 
     | 
    
         
            -
                @geocoder.configure
         
     | 
| 
      
 24 
     | 
    
         
            +
                @geocoder = GeoMagic.geo_coder(:env => :rails).configure
         
     | 
| 
       26 
25 
     | 
    
         
             
                location = @geocoder.instance.geocode "Mullerstrasse 9, Munich"
         
     | 
| 
       27 
26 
     | 
    
         
             
                location.city.should == 'Munich'
         
     | 
| 
       28 
27 
     | 
    
         
             
              end
         
     | 
| 
       29 
28 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
29 
     | 
    
         
             
              it "should geocode for rails with custom config file" do        
         
     | 
| 
       32 
     | 
    
         
            -
                @geocoder = GeoMagic.geo_coder(:env => :rails)
         
     | 
| 
       33 
     | 
    
         
            -
                @geocoder. 
     | 
| 
      
 30 
     | 
    
         
            +
                @geocoder = GeoMagic.geo_coder(:env => :rails).configure '../map_api_keys.yaml'
         
     | 
| 
      
 31 
     | 
    
         
            +
                puts "config: #{@geocoder.config}"
         
     | 
| 
      
 32 
     | 
    
         
            +
                puts "google key: #{@geocoder.google_key}"
         
     | 
| 
       34 
33 
     | 
    
         
             
                location = @geocoder.instance.geocode "Mullerstrasse 9, Munich"
         
     | 
| 
       35 
34 
     | 
    
         
             
                location.city.should == 'Munich'
         
     | 
| 
       36 
35 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 2
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 4
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.2.4. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 3
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.2.4.3
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Kristian Mandrup
         
     | 
| 
         @@ -200,7 +200,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       200 
200 
     | 
    
         
             
              requirements: 
         
     | 
| 
       201 
201 
     | 
    
         
             
              - - ">="
         
     | 
| 
       202 
202 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
       203 
     | 
    
         
            -
                  hash: - 
     | 
| 
      
 203 
     | 
    
         
            +
                  hash: -1737192752323116859
         
     | 
| 
       204 
204 
     | 
    
         
             
                  segments: 
         
     | 
| 
       205 
205 
     | 
    
         
             
                  - 0
         
     | 
| 
       206 
206 
     | 
    
         
             
                  version: "0"
         
     |