Skip to content

Commit

Permalink
Enable setting blacklight-version to 'latest'
Browse files Browse the repository at this point in the history
We do this in the github config, but we never use that value
  • Loading branch information
jcoyne committed Jun 21, 2024
1 parent 5907981 commit 0336789
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/test_app_templates/Gemfile.extra
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
gem 'sprockets', '< 4' if ENV['RAILS_VERSION'] && ENV['RAILS_VERSION'] < '6'
gem 'view_component', '!= 2.26.0'

if ENV['BLACKLIGHT_VERSION'] == 'edge'
case ENV['BLACKLIGHT_VERSION']
when 'edge'
gem 'blacklight', github: 'projectblacklight/blacklight'
gem 'blacklight-gallery', github: 'projectblacklight/blacklight-gallery'
gem 'blacklight-oembed', github: 'projectblacklight/blacklight-oembed'
when 'latest'
gem 'blacklight'
else
gem 'blacklight', ENV['BLACKLIGHT_VERSION'] if ENV['BLACKLIGHT_VERSION'] && !ENV['BLACKLIGHT_VERSION'].empty?
end

0 comments on commit 0336789

Please sign in to comment.