diff --git a/lib/octicons_gem/Rakefile b/lib/octicons_gem/Rakefile index 49d957c07..2017abd9a 100644 --- a/lib/octicons_gem/Rakefile +++ b/lib/octicons_gem/Rakefile @@ -14,7 +14,7 @@ Rake::TestTask.new do |t| end task :version, [:v] do |t, args| - out = "module Octicons\n"\ + out = "# frozen_string_literal: true\n\nmodule Octicons\n"\ " VERSION = \"#{args[:v]}\".freeze\n"\ "end" File.open(File.expand_path("../lib/octicons/version.rb", __FILE__), "w") { |file| file.puts out } diff --git a/lib/octicons_helper/Rakefile b/lib/octicons_helper/Rakefile index 861b647d8..9590b1db1 100644 --- a/lib/octicons_helper/Rakefile +++ b/lib/octicons_helper/Rakefile @@ -9,7 +9,7 @@ RuboCop::RakeTask.new(:lint) do |t| end task :version, [:v] do |t, args| - out = "module OcticonsHelper\n"\ + out = "# frozen_string_literal: true\n\nmodule OcticonsHelper\n"\ " VERSION = \"#{args[:v]}\".freeze\n"\ "end" File.open(File.expand_path("../lib/octicons_helper/version.rb", __FILE__), "w") do |file| diff --git a/lib/octicons_jekyll/Rakefile b/lib/octicons_jekyll/Rakefile index ac387d6b3..1d5821720 100644 --- a/lib/octicons_jekyll/Rakefile +++ b/lib/octicons_jekyll/Rakefile @@ -9,7 +9,7 @@ RuboCop::RakeTask.new(:lint) do |t| end task :version, [:v] => :environment do |t, args| - out = "# Prevent bundler errors\n"\ + out = "# frozen_string_literal: true\n\n# Prevent bundler errors\n"\ "module Liquid; class Tag; end; end\n\n"\ "module Jekyll\n"\ " class Octicons < Liquid::Tag\n"\