jaxrsdoc 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/jaxrsdoc +8 -4
- data/lib/jaxrsdoc_version.rb +2 -2
- metadata +3 -3
data/bin/jaxrsdoc
CHANGED
@@ -57,10 +57,14 @@ project_name = options[:artifact_name]
|
|
57
57
|
if(options[:maven]) then
|
58
58
|
puts "Looking for a pom.xml file at #{resources_location}"
|
59
59
|
pom_xml = Dir.glob("#{resources_location}/pom.xml").first
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
if(pom_xml) then
|
61
|
+
pom = REXML::Document.new File.new(pom_xml)
|
62
|
+
project_name = pom.elements["//artifactId"].first
|
63
|
+
project_version = pom.elements["//version"].first
|
64
|
+
puts "Found maven project with name: #{project_name}, version: #{project_version}"
|
65
|
+
else
|
66
|
+
puts "--> ERROR: Cannot find any pom.xml file at #{resources_location}"
|
67
|
+
end
|
64
68
|
end
|
65
69
|
|
66
70
|
output_dir = JaxrsDoc::Site.new(processed_resources, Dir.pwd, {:project_version => project_version, :project_name => project_name}).generate
|
data/lib/jaxrsdoc_version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module JaxrsDoc
|
2
|
-
VERSION = '0.0.
|
3
|
-
end
|
2
|
+
VERSION = '0.0.2'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jaxrsdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
version: '0'
|
47
47
|
requirements: []
|
48
48
|
rubyforge_project: jaxrsdoc
|
49
|
-
rubygems_version: 1.8.
|
49
|
+
rubygems_version: 1.8.24
|
50
50
|
signing_key:
|
51
51
|
specification_version: 3
|
52
52
|
summary: Website bootstrap style generator for your JAXRS REST API doc
|