mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Add monkey patch for Geocoder::Lookup::Photon to support http protocol
This commit is contained in:
parent
e755d21e79
commit
6aaab424fe
3 changed files with 22 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
0.14.6
|
||||
0.14.7
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
15
config/initializers/00_monkey_patching.rb
Normal file
15
config/initializers/00_monkey_patching.rb
Normal 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
|
||||
Loading…
Reference in a new issue