Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add version to gemspec

Alexanderc6c3bb267f94
diff --git a/lib/generators/open_project/plugin/templates/%full_name%.gemspec.tt b/lib/generators/open_project/plugin/templates/%full_name%.gemspec.tt
index e87bec033b3..e5011f880d8 100644
--- a/lib/generators/open_project/plugin/templates/%full_name%.gemspec.tt
+++ b/lib/generators/open_project/plugin/templates/%full_name%.gemspec.tt
@@ -1,10 +1,12 @@
$:.push File.expand_path("../lib", __FILE__)
$:.push File.expand_path("../../lib", __dir__)
+require 'open_project/<%= plugin_name %>/version'
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "<%= full_name %>"
+ s.version = OpenProject::<%= plugin_name.camelcase %>::VERSION
s.authors = "OpenProject GmbH"
s.email = "[email protected]"