Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • rails-geocoder
  • rails2
  • v1.5.1
  • v1.5.0
  • v1.4.9
  • v1.4.8
  • v1.4.7
  • v1.4.6
  • v1.4.5
  • remove
  • v1.4.4
  • v1.4.3
  • v1.4.2
  • v1.4.1
  • v1.4.0
  • v1.3.7
  • v1.3.6
  • v1.3.5
  • v1.3.4
  • v1.3.3
  • v1.3.2
  • v1.3.1
23 results

integration

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Brian McManus authored
    If you have an address geocoding service that you want to use HTTPS with
    and then attempt to use an ip_geocoder that does not support HTTPS (e.g.
    Telize) then the ip_geocoder lookups will fail because
    Geocoder::Lookups::Base#make_api_request turns on opts[:use_ssl] based
    on that single configuration value.
    
    Rather than allowing for per-provider HTTPS configuration I have just
    refactored Geocoder::Lookups::Base call a private `use_ssl?` method
    which can be overridden by individual lookup provider implementations.
    The default implementation of `use_ssl?` simply returns the value from
    the config thus preserving the existing behavior but this allows
    subclasses, like Telize, to override `use_ssl?` completely to return
    false and thus fully opt-out of HTTPS regardless of what the
    configuration was.
    e4ae5978
    History
    Name Last commit Last update
    ..
    http_client_test.rb