diff --git a/.app_version b/.app_version index 226468ee..c24a3959 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.14.6 +0.14.7 diff --git a/CHANGELOG.md b/CHANGELOG.md index fbc78392..b83e1492 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/config/initializers/00_monkey_patching.rb b/config/initializers/00_monkey_patching.rb new file mode 100644 index 00000000..89c73c2d --- /dev/null +++ b/config/initializers/00_monkey_patching.rb @@ -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