lib/generators/spotlight/install_generator.rb in blacklight-spotlight-3.0.0.rc2 vs lib/generators/spotlight/install_generator.rb in blacklight-spotlight-3.0.0.rc3
- old
+ new
@@ -15,12 +15,12 @@
return unless Rails.version.to_i == 6
gem 'coffee-rails', '~> 4.2'
gem 'uglifier', '>= 1.3.0'
- append_to_file 'app/assets/config/manifest.js', '//= link_directory ../javascripts .js'
- append_to_file 'app/assets/javascripts/application.js', '//= require_tree .'
+ append_to_file 'app/assets/config/manifest.js', "\n//= link_directory ../javascripts .js\n"
+ append_to_file 'app/assets/javascripts/application.js', "\n//= require_tree .\n"
gsub_file 'app/views/layouts/application.html.erb', /pack/, 'include'
inject_into_file 'config/environments/production.rb', after: ' # config.assets.css_compressor = :sass' do
"\n config.assets.js_compressor = :uglifier"
end
@@ -123,10 +123,10 @@
def add_example_catalog_controller
copy_file 'catalog_controller.rb', 'app/controllers/catalog_controller.rb'
end
def add_osd_viewer
- gem 'blacklight-gallery', '~> 1.1'
+ gem 'blacklight-gallery', '~> 3.0'
generate 'blacklight_gallery:install'
end
def add_oembed
gem 'blacklight-oembed', '~> 1.0'