From b012ef6bfed00cdd108bcbec66b79ae61419be32 Mon Sep 17 00:00:00 2001 From: Ben Lovell Date: Thu, 20 Feb 2025 13:29:52 +0000 Subject: [PATCH] Archive baby timelime tool This is replaced with a new version. --- Gemfile | 1 - Gemfile.lock | 17 ----------------- bower.json.erb | 3 +-- config/initializers/timelines.rb | 1 - config/routes.rb | 3 --- lib/tool_mount_point.rb | 1 - lib/tool_mount_point/timelines.rb | 6 ------ .../requests/tool_integration/timelines_spec.rb | 16 ---------------- 8 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 config/initializers/timelines.rb delete mode 100644 lib/tool_mount_point/timelines.rb delete mode 100644 spec/requests/tool_integration/timelines_spec.rb diff --git a/Gemfile b/Gemfile index f27ace5858..43df4c09a3 100644 --- a/Gemfile +++ b/Gemfile @@ -97,7 +97,6 @@ gem 'payday_loans_intervention', '~> 1.9.0' gem 'pensions_calculator', github: 'moneyadviceservice/pensions_calculator', ref: '12db3f55' gem 'puma' gem 'savings_calculator', github: 'moneyadviceservice/savings_calculator', ref: '1ccfd87' -gem 'timelines', github: 'moneyadviceservice/timelines', ref: 'c5ee622' gem 'wpcc', github: 'moneyadviceservice/wpcc', ref: '45a0a46' group :assets do diff --git a/Gemfile.lock b/Gemfile.lock index 3d938a2256..d774d52e3d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -121,19 +121,6 @@ GIT sass-rails sprockets (< 4) -GIT - remote: https://github.com/moneyadviceservice/timelines.git - revision: c5ee62254e90076790d28f2f85943cc55fe88da5 - ref: c5ee622 - specs: - timelines (2.4.0) - bowndler - icalendar - jquery-rails - mas-templating - rails (>= 4, < 5) - sass-rails - GIT remote: https://github.com/moneyadviceservice/wpcc.git revision: 45a0a46f6cd73aed8a64ee06b4a503cdcba6a529 @@ -431,9 +418,6 @@ GEM concurrent-ruby (~> 1.0) i18n-js (3.0.0.mas) i18n - icalendar (2.10.1) - ice_cube (~> 0.16) - ice_cube (0.16.4) interception (0.5) jbuilder (2.9.1) activesupport (>= 4.2.0) @@ -871,7 +855,6 @@ DEPENDENCIES syslog-logger tidy-html5 timecop - timelines! turnout uglifier uri (= 0.10.0) diff --git a/bower.json.erb b/bower.json.erb index 6622d6a53f..a20d715398 100644 --- a/bower.json.erb +++ b/bower.json.erb @@ -19,8 +19,7 @@ "decision_trees": "<%= gem_path('decision_trees') %>", "dough": "<%= gem_path('dough-ruby') %>", "mortgage_calculator": "<%= gem_path('mortgage_calculator') %>", - "pensions_calculator": "<%= gem_path('pensions_calculator') %>", - "timelines": "<%= gem_path('timelines') %>" + "pensions_calculator": "<%= gem_path('pensions_calculator') %>" }, "resolutions": { "jquery": "3.3.*", diff --git a/config/initializers/timelines.rb b/config/initializers/timelines.rb deleted file mode 100644 index f2aaec46f8..0000000000 --- a/config/initializers/timelines.rb +++ /dev/null @@ -1 +0,0 @@ -Timelines.parent_controller = '::EmbeddedToolsController' diff --git a/config/routes.rb b/config/routes.rb index 2be03693d4..9528f311bb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -91,9 +91,6 @@ def not_implemented mount SavingsCalculator::Engine => '/tools/:tool_id', constraints: ToolMountPoint.for(:savings_calculator) - mount Timelines::Engine => '/tools/:tool_id', - constraints: ToolMountPoint.for(:timelines) - mount Wpcc::Engine => '/tools/:tool_id', constraints: ToolMountPoint.for(:wpcc) diff --git a/lib/tool_mount_point.rb b/lib/tool_mount_point.rb index 7ec61ff72e..aa50d06df8 100644 --- a/lib/tool_mount_point.rb +++ b/lib/tool_mount_point.rb @@ -14,7 +14,6 @@ require_relative '../lib/tool_mount_point/payday_loans' require_relative '../lib/tool_mount_point/pensions_calculator' require_relative '../lib/tool_mount_point/savings_calculator' -require_relative '../lib/tool_mount_point/timelines' require_relative '../lib/tool_mount_point/christmas_money_planner' require_relative '../lib/tool_mount_point/wpcc' diff --git a/lib/tool_mount_point/timelines.rb b/lib/tool_mount_point/timelines.rb deleted file mode 100644 index cca04f72d7..0000000000 --- a/lib/tool_mount_point/timelines.rb +++ /dev/null @@ -1,6 +0,0 @@ -module ToolMountPoint - class Timelines < Base - EN_ID = 'baby-money-timeline'.freeze - CY_ID = 'llinell-amser-arian-babi'.freeze - end -end diff --git a/spec/requests/tool_integration/timelines_spec.rb b/spec/requests/tool_integration/timelines_spec.rb deleted file mode 100644 index 0fc69b9d50..0000000000 --- a/spec/requests/tool_integration/timelines_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -RSpec.describe 'Timelines', type: :request do - %W[ - /en/tools/#{ToolMountPoint::Timelines::EN_ID} - /cy/tools/#{ToolMountPoint::Timelines::CY_ID} - /en/tools/#{ToolMountPoint::Timelines::EN_ID}/timeline?date[year]=2014&date[month]=8&date[day]=17 - /cy/tools/#{ToolMountPoint::Timelines::CY_ID}/timeline?date[year]=2014&date[month]=8&date[day]=17 - ].each do |path| - describe path do - before do - get path - end - - specify { expect(response).to be_ok } - end - end -end