]> source.dussan.org Git - redmine.git/commitdiff
Fixes "Unresolved or ambiguous specs during Gem::Specification.reset" (#41729).
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 12 Nov 2024 08:33:12 +0000 (08:33 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 12 Nov 2024 08:33:12 +0000 (08:33 +0000)
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23256 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/icons.rake

index d26f4405ab7919659d07a5c8ad7b911b8a8c16f6..e50c450a10a6b96d2d2f57326cafbe268c630f9d 100644 (file)
@@ -16,8 +16,6 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 unless Rails.env.production?
-  require "svg_sprite"
-
   ICON_RELEASE_VERSION = "v3.19.0"
   ICON_DEFAULT_STYLE = "outline"
   SOURCE = URI.parse("https://raw.githubusercontent.com/tabler/tabler-icons/#{ICON_RELEASE_VERSION}/icons")
@@ -121,6 +119,8 @@ unless Rails.env.production?
   end
 
   def generate_svg_sprite(input_path, sprite_path)
+    require "svg_sprite"
+
     SvgSprite.call(
       input: input_path,
       name: 'icon',