Skip to content

Commit

Permalink
Fix versioning script that updates the version files (primer#1015)
Browse files Browse the repository at this point in the history
* Update Rakefile

* Fix version script

* Fix version script
  • Loading branch information
jonrohan authored Mar 14, 2024
1 parent cce52ce commit 428ee18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/octicons_gem/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion lib/octicons_helper/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion lib/octicons_jekyll/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"\
Expand Down

0 comments on commit 428ee18

Please sign in to comment.