openc3-cosmos-init/plugins/packages/openc3-cosmos-http-example/Rakefile
PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')
task :require_version do
unless ENV['VERSION']
puts "VERSION is required: rake build VERSION=X.Y.Z"
exit 1
end
end
task :build => [:require_version] do
system("gem build #{PLUGIN_NAME}")
end