Skip to content

Commit 0336789

Browse files
committed
Enable setting blacklight-version to 'latest'
We do this in the github config, but we never use that value
1 parent 5907981 commit 0336789

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
gem 'sprockets', '< 4' if ENV['RAILS_VERSION'] && ENV['RAILS_VERSION'] < '6'
22
gem 'view_component', '!= 2.26.0'
33

4-
if ENV['BLACKLIGHT_VERSION'] == 'edge'
4+
case ENV['BLACKLIGHT_VERSION']
5+
when 'edge'
56
gem 'blacklight', github: 'projectblacklight/blacklight'
67
gem 'blacklight-gallery', github: 'projectblacklight/blacklight-gallery'
78
gem 'blacklight-oembed', github: 'projectblacklight/blacklight-oembed'
9+
when 'latest'
10+
gem 'blacklight'
11+
else
12+
gem 'blacklight', ENV['BLACKLIGHT_VERSION'] if ENV['BLACKLIGHT_VERSION'] && !ENV['BLACKLIGHT_VERSION'].empty?
813
end

0 commit comments

Comments
 (0)