We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e613291 commit bc362d9Copy full SHA for bc362d9
Rakefile
@@ -60,6 +60,18 @@ else
60
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
61
config.future_release = gem_version
62
end
63
+
64
+ # Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715
65
+ require 'rbconfig'
66
+ if RbConfig::CONFIG['host_os'].include?('linux')
67
+ task :changelog do
68
+ puts 'Fixing line endings...'
69
+ changelog_file = File.join(__dir__, 'CHANGELOG.md')
70
+ changelog_txt = File.read(changelog_file)
71
+ new_contents = changelog_txt.gsub("\r\n", "\n")
72
+ File.open(changelog_file, 'w') { |file| file.puts new_contents }
73
+ end
74
75
76
77
begin
0 commit comments