Skip to content

Commit

Permalink
Test Imminence renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
georges1996 committed May 2, 2024
1 parent c39aa00 commit 4baece9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
22 changes: 14 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -714,7 +720,7 @@ DEPENDENCIES
dalli
dartsass-rails
dotenv-rails
gds-api-adapters
gds-api-adapters!
govuk_ab_testing
govuk_app_config
govuk_personalisation
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/imminence.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/frontend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4baece9

Please sign in to comment.