Add monkey patch for Geocoder::Lookup::Photon to support http protocol

This commit is contained in:
Eugene Burmakin 2024-10-01 22:05:35 +02:00
parent e755d21e79
commit 6aaab424fe
3 changed files with 22 additions and 1 deletions

View file

@ -1 +1 @@
0.14.6
0.14.7

View file

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
# [0.14.7] - 2024-10-01
### Fixed
- Now you can use http protocol for the Photon API host if you don't have SSL certificate for it
# [0.14.6] - 2024-29-30
### Fixed

View file

@ -0,0 +1,15 @@
# frozen_string_literal: true
# By default, Geocoder supports only https protocol when talking to Photon API.
# This is kinda inconvenient when you're running a local instance of Photon
# and want to use http protocol. This monkey patch allows you to do that.
module Geocoder::Lookup
class Photon < Base
private
def supported_protocols
%i[https http]
end
end
end