rjack-jdom 1.1.0.2-java

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.
@@ -0,0 +1,9 @@
1
+ === 1.1.0.2 (2010-9-1)
2
+ * Remove require 'rubygems' from lib.
3
+
4
+ === 1.1.0.1 (2010-3-6)
5
+ * Set gem platform to java
6
+ * Upgraded to tarpit ~> 1.2.0
7
+
8
+ === 1.1.0.0 (2009-10-17)
9
+ * Initial release based on jdom 1.1
@@ -0,0 +1,10 @@
1
+ History.rdoc
2
+ Manifest.txt
3
+ README.rdoc
4
+ Rakefile
5
+ assembly.xml
6
+ pom.xml
7
+ lib/rjack-jdom/base.rb
8
+ lib/rjack-jdom.rb
9
+ test/test_jdom.rb
10
+ lib/rjack-jdom/jdom-1.1.jar
@@ -0,0 +1,67 @@
1
+ = rjack-jdom
2
+
3
+ * http://rjack.rubyforge.org
4
+ * http://rubyforge.org/projects/rjack
5
+
6
+ == Description
7
+
8
+ A gem packaging of JDOM[http://www.jdom.org/]. This product includes
9
+ software developed by the {JDOM Project}[http://www.jdom.org/], see
10
+ license below.
11
+
12
+ == License
13
+
14
+ === rjack-jdom
15
+
16
+ Copyright (c) 2009-2010 David Kellum
17
+
18
+ The rjack-jdom gem is released under the same license terms as the
19
+ JDOM source and binaries, see below.
20
+
21
+ === JDOM (java)
22
+
23
+ Copyright (c) 2000-2007 Jason Hunter & Brett McLaughlin.
24
+
25
+ Redistribution and use in source and binary forms, with or without
26
+ modification, are permitted provided that the following conditions
27
+ are met:
28
+
29
+ 1. Redistributions of source code must retain the above copyright
30
+ notice, this list of conditions, and the following disclaimer.
31
+ 2. Redistributions in binary form must reproduce the above copyright
32
+ notice, this list of conditions, and the disclaimer that follows
33
+ these conditions in the documentation and/or other materials
34
+ provided with the distribution.
35
+ 3. The name "JDOM" must not be used to endorse or promote products
36
+ derived from this software without prior written permission. For
37
+ written permission, please contact <request_AT_jdom_DOT_org>.
38
+ 4. Products derived from this software may not be called "JDOM", nor
39
+ may "JDOM" appear in their name, without prior written permission
40
+ from the JDOM Project Management <request_AT_jdom_DOT_org>.
41
+
42
+ In addition, we request (but do not require) that you include in the
43
+ end-user documentation provided with the redistribution and/or in the
44
+ software itself an acknowledgement equivalent to the following:
45
+ "This product includes software developed by the
46
+ JDOM Project (http://www.jdom.org/)."
47
+ Alternatively, the acknowledgment may be graphical using the logos
48
+ available at http://www.jdom.org/images/logos.
49
+
50
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
51
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
53
+ DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
54
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
55
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
56
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
57
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
58
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
59
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
60
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
61
+ SUCH DAMAGE.
62
+
63
+ This software consists of voluntary contributions made by many
64
+ individuals on behalf of the JDOM Project and was originally
65
+ created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
66
+ Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
67
+ on the JDOM Project, please see <http://www.jdom.org/>.
@@ -0,0 +1,41 @@
1
+ # -*- ruby -*-
2
+
3
+ $LOAD_PATH << './lib'
4
+ require 'rjack-jdom/base'
5
+
6
+ require 'rubygems'
7
+ gem 'rjack-tarpit', '~> 1.2.0'
8
+ require 'rjack-tarpit'
9
+
10
+ include RJack
11
+
12
+ t = TarPit.new( 'rjack-jdom', JDOM::VERSION, :java_platform )
13
+
14
+ t.specify do |h|
15
+ h.developer( "David Kellum", "dek-oss@gravitext.com" )
16
+ h.rubyforge_name = "rjack"
17
+ h.remote_rdoc_dir = "jdom"
18
+ end
19
+
20
+ t.jars = [ "jdom-#{ JDOM::JDOM_VERSION }.jar" ]
21
+
22
+ t.assembly_version = 1.0
23
+
24
+ file 'Manifest.txt' => [ "lib/#{t.name}/base.rb" ]
25
+
26
+ task :check_pom_deps do
27
+ t.test_line_match( 'pom.xml',
28
+ %r[<version>#{ JDOM::JDOM_VERSION }</version>] )
29
+ end
30
+ task :check_history_version do
31
+ t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
32
+ end
33
+ task :check_history_date do
34
+ t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
35
+ end
36
+
37
+ task :gem => [ :check_pom_deps, :check_history_version ]
38
+ task :tag => [ :check_pom_deps, :check_history_version, :check_history_date ]
39
+ task :push => [ :check_history_date ]
40
+
41
+ t.define_tasks
@@ -0,0 +1,14 @@
1
+ <assembly>
2
+ <id>bin</id>
3
+ <formats>
4
+ <format>dir</format>
5
+ </formats>
6
+ <includeBaseDirectory>false</includeBaseDirectory>
7
+ <dependencySets>
8
+ <dependencySet>
9
+ <includes>
10
+ <include>org.jdom:jdom</include>
11
+ </includes>
12
+ </dependencySet>
13
+ </dependencySets>
14
+ </assembly>
@@ -0,0 +1,14 @@
1
+ #--
2
+ # Copyright (c) 2009-2010 David Kellum
3
+ #
4
+ # See README.rdoc for license terms.
5
+ #++
6
+
7
+ require 'rjack-jdom/base'
8
+
9
+ # JDOM wrapper module
10
+ module RJack
11
+ module JDOM
12
+ require "#{JDOM_DIR}/jdom-#{JDOM_VERSION}.jar"
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ #--
2
+ # Copyright (c) 2009-2010 David Kellum
3
+ #
4
+ # See README.rdoc for license terms.
5
+ #++
6
+
7
+ module RJack
8
+ module JDOM
9
+
10
+ # JDOM (java) version
11
+ # Note a jdom 1.1.1 preview is available (not yet in maven)
12
+ JDOM_VERSION = '1.1'
13
+
14
+ # rjack gem version (reserve one more decimal for jdom itself)
15
+ VERSION = JDOM_VERSION + '.0.2'
16
+
17
+ JDOM_DIR = File.dirname( __FILE__ ) # :nodoc:
18
+ end
19
+ end
data/pom.xml ADDED
@@ -0,0 +1,54 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
+
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <groupId>rjack</groupId>
5
+ <artifactId>rjack-jdom</artifactId>
6
+ <packaging>pom</packaging>
7
+ <version>1.0</version>
8
+ <name>JDOM Assembly for Gem</name>
9
+
10
+ <dependencies>
11
+ <dependency>
12
+ <groupId>org.jdom</groupId>
13
+ <artifactId>jdom</artifactId>
14
+ <version>1.1</version>
15
+ </dependency>
16
+
17
+ </dependencies>
18
+
19
+ <build>
20
+ <plugins>
21
+ <plugin>
22
+ <artifactId>maven-assembly-plugin</artifactId>
23
+ <configuration>
24
+ <descriptors>
25
+ <descriptor>assembly.xml</descriptor>
26
+ </descriptors>
27
+ <tarLongFileMode>gnu</tarLongFileMode>
28
+ </configuration>
29
+ <executions>
30
+ <execution>
31
+ <id>assembly</id>
32
+ <phase>package</phase>
33
+ <goals>
34
+ <goal>attached</goal>
35
+ </goals>
36
+ </execution>
37
+ </executions>
38
+ </plugin>
39
+ <plugin>
40
+ <artifactId>maven-compiler-plugin</artifactId>
41
+ <configuration>
42
+ <source>1.5</source>
43
+ <target>1.5</target>
44
+ <optimize>true</optimize>
45
+ <debug>true</debug>
46
+ <encoding>UTF-8</encoding>
47
+ <showDeprecation>true</showDeprecation>
48
+ <showWarnings>true</showWarnings>
49
+ </configuration>
50
+ </plugin>
51
+ </plugins>
52
+ </build>
53
+
54
+ </project>
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env jruby
2
+ #.hashdot.profile += jruby-shortlived
3
+
4
+ #--
5
+ # Copyright (c) 2009-2010 David Kellum
6
+ #
7
+ # See README.rdoc for license terms.
8
+ #++
9
+
10
+ require 'java'
11
+ require 'rubygems'
12
+ require 'test/unit'
13
+
14
+ $LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
15
+
16
+ require 'rjack-jdom'
17
+
18
+ class TestJdom < Test::Unit::TestCase
19
+
20
+ import 'org.jdom.Element'
21
+ import 'org.jdom.Document'
22
+ import 'org.jdom.output.XMLOutputter'
23
+
24
+ def test_output
25
+ doc = Document.new( Element.new( "document" ) )
26
+ assert( XMLOutputter.new.outputString( doc ) =~ /<document/ )
27
+ end
28
+ end
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rjack-jdom
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 1
8
+ - 0
9
+ - 2
10
+ version: 1.1.0.2
11
+ platform: java
12
+ authors:
13
+ - David Kellum
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-09-01 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rjack-tarpit
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 2
31
+ - 2
32
+ version: 1.2.2
33
+ type: :development
34
+ version_requirements: *id001
35
+ description: |-
36
+ A gem packaging of JDOM[http://www.jdom.org/]. This product includes
37
+ software developed by the {JDOM Project}[http://www.jdom.org/], see
38
+ license below.
39
+ email:
40
+ - dek-oss@gravitext.com
41
+ executables: []
42
+
43
+ extensions: []
44
+
45
+ extra_rdoc_files:
46
+ - Manifest.txt
47
+ - History.rdoc
48
+ - README.rdoc
49
+ files:
50
+ - History.rdoc
51
+ - Manifest.txt
52
+ - README.rdoc
53
+ - Rakefile
54
+ - assembly.xml
55
+ - pom.xml
56
+ - lib/rjack-jdom/base.rb
57
+ - lib/rjack-jdom.rb
58
+ - test/test_jdom.rb
59
+ - lib/rjack-jdom/jdom-1.1.jar
60
+ has_rdoc: true
61
+ homepage: http://rjack.rubyforge.org
62
+ licenses: []
63
+
64
+ post_install_message:
65
+ rdoc_options:
66
+ - --main
67
+ - README.rdoc
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
83
+ version: "0"
84
+ requirements: []
85
+
86
+ rubyforge_project: rjack
87
+ rubygems_version: 1.3.6
88
+ signing_key:
89
+ specification_version: 3
90
+ summary: A gem packaging of JDOM[http://www.jdom.org/]
91
+ test_files:
92
+ - test/test_jdom.rb