lib/generators/spotlight/install_generator.rb in blacklight-spotlight-0.32.0 vs lib/generators/spotlight/install_generator.rb in blacklight-spotlight-0.33.0
- old
+ new
@@ -15,27 +15,30 @@
end
route "root to: 'spotlight/exhibits#index'"
end
def friendly_id
- gem 'friendly_id', github: 'norman/friendly_id'
+ gem 'friendly_id'
# we need to immediately run `bundle install` while pointing at github.
Bundler.with_clean_env { run 'bundle install' }
generate 'friendly_id'
end
def riiif
- gem 'riiif', '~> 0.4.0'
+ gem 'riiif', '~> 1.0'
route "mount Riiif::Engine => '/images', as: 'riiif'"
copy_file 'config/initializers/riiif.rb'
end
def paper_trail
generate 'paper_trail:install'
end
def sitemaps
gem 'sitemap_generator'
+
+ Bundler.with_clean_env { run 'bundle install' }
+
copy_file 'config/sitemap.rb', 'config/sitemap.rb'
say <<-EOS.strip_heredoc, :red
Added a default sitemap_generator configuration in config/sitemap.rb; please
update the default host to match your environment