Permalink
Browse files

Add support for pluginspec display_name and repo.

These features were added in 0.1.13, so bumping dependency.
  • Loading branch information...
jorgenpt committed Nov 14, 2011
1 parent 34fbdbe commit 307db5e7ac7e540bd1f79cb2da8eb4a189d9b6ef
View
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.add_dependency "thor"
s.add_dependency "jenkins-war", ">= 1.427"
s.add_dependency "bundler", "~> 1.1.rc"
- s.add_dependency "jenkins-plugin-runtime", "~> 0.1.12"
+ s.add_dependency "jenkins-plugin-runtime", "~> 0.1.13"
s.add_development_dependency "rspec", "~> 2.0"
s.add_development_dependency "cucumber", "~> 1.0"
@@ -23,7 +23,7 @@ def write_hpi(io)
w.put "Group-Id", "org.jenkins-ci.plugins"
w.put "Short-Name", @spec.name
- w.put "Long-Name", @spec.name # TODO: better name
+ w.put "Long-Name", @spec.display_name
w.put "Url", @spec.url
w.put "Plugin-Class", "ruby.RubyPlugin"
@@ -9,7 +9,7 @@
<groupId>org.jenkins-ci.ruby-plugins</groupId>
<artifactId><%= @spec.name %></artifactId>
<version><%= version %></version>
- <name><%= @spec.name %></name>
+ <name><%= @spec.display_name %></name>
<description><%= @spec.description %></description>
<packaging>hpi</packaging>
@@ -45,4 +45,10 @@
</dependency>
<% end %>
</dependencies>
+
+<% if not @spec.repository.nil? %>
+ <scm>
+ <connection>scm:<%= @spec.repository[:type] %>:<%= @spec.repository[:url] %></connection>
+ </scm>
+<% end %>
</project>

0 comments on commit 307db5e

Please sign in to comment.