diff --git a/README_API_GUIDE.md b/README_API_GUIDE.md index 8f7bd6761d8976967a2e5016d900b0135628c231..363e8f2fc97061730504ef3ef186cfd682e721a9 100644 --- a/README_API_GUIDE.md +++ b/README_API_GUIDE.md @@ -342,7 +342,7 @@ IP Address Lookups * **API key**: optional - see http://ipinfo.io/pricing * **Quota**: 1,000/day - more with api key * **Region**: world -* **SSL support**: no (not without access key - see http://ipinfo.io/pricing) +* **SSL support**: yes * **Languages**: English * **Documentation**: http://ipinfo.io/developers * **Terms of Service**: http://ipinfo.io/developers diff --git a/lib/geocoder/lookups/ipinfo_io.rb b/lib/geocoder/lookups/ipinfo_io.rb index d3a6cc2fb177a16e8552a47c5285d21dab474730..ef0cdf0bc4951363d420944df687d0a09a33a0cb 100644 --- a/lib/geocoder/lookups/ipinfo_io.rb +++ b/lib/geocoder/lookups/ipinfo_io.rb @@ -8,15 +8,6 @@ module Geocoder::Lookup "Ipinfo.io" end - # HTTPS available only for paid plans - def supported_protocols - if configuration.api_key - [:http, :https] - else - [:http] - end - end - private # --------------------------------------------------------------- def base_query_url(query) diff --git a/test/unit/lookups/ipinfo_io_test.rb b/test/unit/lookups/ipinfo_io_test.rb index a654ad7dc1da5540a3398697e550e76c95e3ad72..6d4335cee36862e2ff932a8207b9b1a0a4cb1780 100644 --- a/test/unit/lookups/ipinfo_io_test.rb +++ b/test/unit/lookups/ipinfo_io_test.rb @@ -2,19 +2,6 @@ require 'test_helper' class IpinfoIoTest < GeocoderTestCase - - def test_ipinfo_io_use_http_without_token - Geocoder.configure(:ip_lookup => :ipinfo_io, :use_https => true) - query = Geocoder::Query.new("8.8.8.8") - assert_match(/^http:/, query.url) - end - - def test_ipinfo_io_uses_https_when_auth_token_set - Geocoder.configure(:ip_lookup => :ipinfo_io, :api_key => "FOO_BAR_TOKEN", :use_https => true) - query = Geocoder::Query.new("8.8.8.8") - assert_match(/^https:/, query.url) - end - def test_ipinfo_io_lookup_loopback_address Geocoder.configure(:ip_lookup => :ipinfo_io) result = Geocoder.search("127.0.0.1").first