diff --git a/Gemfile b/Gemfile index 8882388f0a..c5bbca74a0 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,7 @@ gem "addressable" gem "bootsnap", require: false gem "dalli" gem "dartsass-rails" -gem "gds-api-adapters" +gem "gds-api-adapters", git: "https://github.com/alphagov/gds-api-adapters.git", branch: "rename-Imminence-to-places-manager" gem "govuk_ab_testing" gem "govuk_app_config" gem "govuk_personalisation" diff --git a/Gemfile.lock b/Gemfile.lock index 63e88a3619..4de775222f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,16 @@ +GIT + remote: https://github.com/alphagov/gds-api-adapters.git + revision: 27cf519652312e1f442d4aa9a716c6107c21b9d7 + branch: rename-Imminence-to-places-manager + specs: + gds-api-adapters (95.1.0) + addressable + link_header + null_logger + plek (>= 1.9.0) + rack (>= 2.2.0) + rest-client (~> 2.0) + GEM remote: https://rubygems.org/ specs: @@ -138,13 +151,6 @@ GEM parslet ffi (1.16.3) find_a_port (1.0.1) - gds-api-adapters (95.1.0) - addressable - link_header - null_logger - plek (>= 1.9.0) - rack (>= 2.2.0) - rest-client (~> 2.0) globalid (1.2.1) activesupport (>= 6.1) google-protobuf (3.25.3) @@ -714,7 +720,7 @@ DEPENDENCIES dalli dartsass-rails dotenv-rails - gds-api-adapters + gds-api-adapters! govuk_ab_testing govuk_app_config govuk_personalisation diff --git a/config/initializers/imminence.rb b/config/initializers/imminence.rb index 314c7aa194..819ba2d988 100644 --- a/config/initializers/imminence.rb +++ b/config/initializers/imminence.rb @@ -1,5 +1,5 @@ -require "gds_api/imminence" +require "gds_api/places_manager" -Frontend.imminence_api = GdsApi::Imminence.new(Plek.new.find("imminence")) +Frontend.places_manager_api = GdsApi::PlacesManager.new(Plek.new.find("places-manager")) Frontend::IMMINENCE_QUERY_LIMIT = 10 diff --git a/lib/frontend.rb b/lib/frontend.rb index 9fc4fe73c0..d3fd2aec6f 100644 --- a/lib/frontend.rb +++ b/lib/frontend.rb @@ -2,7 +2,7 @@ module Frontend mattr_accessor :organisations_search_client mattr_accessor :search_client mattr_accessor :locations_api - mattr_accessor :imminence_api + mattr_accessor :places_manager_api mattr_accessor :local_links_manager_api mattr_accessor :govuk_website_root end