diff --git a/logstash-core-plugin-api/logstash-core-plugin-api.gemspec b/logstash-core-plugin-api/logstash-core-plugin-api.gemspec index fa58ca3148f..86e56d022b0 100644 --- a/logstash-core-plugin-api/logstash-core-plugin-api.gemspec +++ b/logstash-core-plugin-api/logstash-core-plugin-api.gemspec @@ -12,6 +12,7 @@ if File.exist?(project_versions_yaml_path) # we ignore the copy in git and we overwrite an existing file # each time we build the logstash-core gem original_lines = IO.read(project_versions_yaml_path) + # introduce the version qualifier (e.g. beta1, rc1) into the copied yml so it's displayed by Logstash original_lines.gsub!(/^logstash: (.+?)\n/, "logstash: \\1-#{ENV['VERSION_QUALIFIER']}\n") if ENV['VERSION_QUALIFIER'] original_lines << "\n" original_lines << "# This is a copy the project level versions.yml into this gem's root and it is created when the gemspec is evaluated."