Skip to content

Commit

Permalink
Merge pull request #525 from moneyadviceservice/resolve-autoload-issues
Browse files Browse the repository at this point in the history
Attempt to resolve the autoloading issues on boot
  • Loading branch information
benlovell authored Sep 17, 2023
2 parents b8614fd + c8e20f0 commit 6d4d1d9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install matching chromedriver
uses: nanasess/setup-chromedriver@v2
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ group :test do
gem 'shoulda-matchers'
gem 'site_prism'
gem 'vcr'
gem 'webdrivers'
gem 'webmock', '~> 2.3.1'
end

Expand Down
7 changes: 1 addition & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ GEM
retriable (1.4.1)
reverse_markdown (0.6.0)
nokogiri
rexml (3.2.5)
rexml (3.2.6)
rollbar (3.4.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
Expand Down Expand Up @@ -564,10 +564,6 @@ GEM
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
webdrivers (5.2.0)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0)
webmock (2.3.2)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand Down Expand Up @@ -654,7 +650,6 @@ DEPENDENCIES
valid_attribute
vcr
web-console (~> 2.0)
webdrivers
webmock (~> 2.3.1)
whenever
word-to-markdown!
Expand Down
4 changes: 3 additions & 1 deletion app/serializers/page_link/latest_links.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
require Rails.root.join('lib', 'publify', 'api')

module PageLink
class LatestLinks < PageLink::Base
def as_json
Rails.cache.fetch('publify_api_latest_links_3', expires_in: 5.minutes) do
Publify::API.latest_links(3).map do |input_blog_post|
::Publify::API.latest_links(3).map do |input_blog_post|
{
title: input_blog_post['title'],
path: input_blog_post['link']
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/comfy/admin/cms/_footer_js.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
= javascript_include_tag 'requirejs/require', data: { main: javascript_path('application') }
= javascript_include_tag 'modernizr/modernizr'
= javascript_include_tag 'requirejs/require', data: { main: javascript_path('application') }
= yield :footer_js
2 changes: 1 addition & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
config.assets.precompile << /\.(?:png|svg|eot|woff|ttf)$/

# Application Stylesheets
config.assets.precompile += %w(comfortable_mexican_sofa/admin/basic.css)
config.assets.precompile += %w(comfortable_mexican_sofa/admin/basic.css components-font-awesome/css/font-awesome.css)

# Application JavaScript
config.assets.precompile += %w(application.js)
Expand Down
1 change: 0 additions & 1 deletion features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
require 'aruba/cucumber'
require 'database_cleaner/cucumber'
require 'selenium/webdriver'
require 'webdrivers/chromedriver'

DatabaseCleaner.strategy = :truncation

Expand Down

0 comments on commit 6d4d1d9

Please sign in to comment.