Skip to content

Commit

Permalink
[#425] add inline_svg gem for svgeez addon, move it to web variant
Browse files Browse the repository at this point in the history
  • Loading branch information
mosharaf13 committed Jul 17, 2023
1 parent 7be37dd commit 28e74d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .template/addons/svgeez/Gemfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<<~RUBY
gem 'svgeez' # Gem for generating an SVG sprite from a folder of SVG icons.
gem 'inline_svg' # Use Inline SVG for styling SVG with CSS
RUBY
end
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@

it 'adds svgeez gem' do
expect(subject).to contain('svgeez')
expect(subject).to contain('inline_svg')
end
end
3 changes: 2 additions & 1 deletion .template/variants/web/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def apply_web_variant!
apply '.template/addons/bootstrap/template.rb' if yes? install_addon_prompt 'Bootstrap'
apply '.template/addons/slim/template.rb' if yes? install_addon_prompt 'Slim Template Engine'
apply '.template/addons/hotwire/template.rb' if yes? install_addon_prompt 'Hotwire'

apply '.template/addons/svgeez/template.rb' if yes?(install_addon_prompt('Svgeez'))

after_bundle do
use_source_path __dir__

Expand Down
1 change: 0 additions & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def apply_template!(template_root)
apply '.template/addons/nginx/template.rb' if yes?(install_addon_prompt('Nginx'))
apply '.template/addons/phrase/template.rb' if yes?(install_addon_prompt('Phrase'))
apply '.template/addons/devise/template.rb' if yes?(install_addon_prompt('Devise'))
apply '.template/addons/svgeez/template.rb' if yes?(install_addon_prompt('Svgeez'))

# Variants
apply '.template/variants/api/template.rb' if API_VARIANT
Expand Down

0 comments on commit 28e74d4

Please sign in to comment.