Skip to content

Commit

Permalink
[#425] Add svgeez add on in place of svg sprite add on
Browse files Browse the repository at this point in the history
  • Loading branch information
mosharaf13 committed Jul 13, 2023
1 parent cda7967 commit 7be37dd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
3 changes: 0 additions & 3 deletions .template/addons/svg_sprite/template.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
insert_into_file 'Gemfile', after: /gem 'bcrypt'.*\n/ do
<<~RUBY
gem 'svg_sprite' # Create SVG sprites using SVG links.
gem 'svgeez' # Gem for generating an SVG sprite from a folder of SVG icons.
RUBY
end
3 changes: 3 additions & 0 deletions .template/addons/svgeez/template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

apply '.template/addons/svgeez/Gemfile.rb'
9 changes: 0 additions & 9 deletions .template/spec/addons/svg_sprite/gemfile_spec.rb

This file was deleted.

9 changes: 9 additions & 0 deletions .template/spec/addons/svgeez/gemfile_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

describe 'Svgeez Addon - Gemfile' do
subject { file('Gemfile') }

it 'adds svgeez gem' do
expect(subject).to contain('svgeez')
end
end
2 changes: 1 addition & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ 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/svg_sprite/template.rb' if yes?(install_addon_prompt('SVG Sprite'))
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 7be37dd

Please sign in to comment.