gravitext-xmlprod 1.3.0-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.
data/History.rdoc ADDED
@@ -0,0 +1,22 @@
1
+ === 1.3.0 (2010-5-8)
2
+ * New DOMWalker for writing W3C DOM fragments via an XMLProducer.
3
+ * XMLProducer supports start/end tag by String name and optional
4
+ Namespace.
5
+ * Add CharacterEncoder.modeNAC for handling non-characters U+FFFE and
6
+ U+FFFF.
7
+ * Upgrade to gravitext-util-1.4.0.
8
+ * Use rjack-tarpit for build.
9
+ * Add rjack-jdom as dev dependency (for perf. testing).
10
+ * Set gem platform to java.
11
+
12
+ === 1.2 (2009-2-23)
13
+ * New gem packaging.
14
+ * New gravitext-xmlprod-perftest replaces old java based harness for
15
+ comparative performance testing.
16
+
17
+ === 1.1 (2008-5-27)
18
+ * Fix: Escape '>' when it appears as "]]>"
19
+ * Better encode test coverage
20
+
21
+ === 1.0 (2008-4-28)
22
+ * Initial release.
data/Manifest.txt ADDED
@@ -0,0 +1,10 @@
1
+ History.rdoc
2
+ Manifest.txt
3
+ NOTICE.txt
4
+ README.rdoc
5
+ Rakefile
6
+ pom.xml
7
+ bin/gravitext-xmlprod-perftest
8
+ lib/gravitext-xmlprod/version.rb
9
+ lib/gravitext-xmlprod.rb
10
+ lib/gravitext-xmlprod/gravitext-xmlprod-1.3.0.jar
data/NOTICE.txt ADDED
@@ -0,0 +1,2 @@
1
+ gravitext-xmlprod
2
+ Copyright (c) 2008-2010 David Kellum
data/README.rdoc ADDED
@@ -0,0 +1,31 @@
1
+ = gravitext-xmlprod
2
+
3
+ * http://gravitext.rubyforge.org
4
+ * http://gravitext.com/oss/gravitext-xmlprod
5
+ * http://github.com/dekellum/gravitext
6
+
7
+ == Description
8
+
9
+ A fast and simple XML streaming production package in java.
10
+
11
+ == Dependencies
12
+
13
+ * Java 1.5+
14
+ * gravitext-util 1.3+ (perf testing)
15
+ * rjack-jdom (perf testing)
16
+
17
+ == License
18
+
19
+ Copyright (c) 2008-2010 David Kellum
20
+
21
+ Licensed under the Apache License, Version 2.0 (the "License"); you
22
+ may not use this file except in compliance with the License. You
23
+ may obtain a copy of the License at:
24
+
25
+ http://www.apache.org/licenses/LICENSE-2.0
26
+
27
+ Unless required by applicable law or agreed to in writing, software
28
+ distributed under the License is distributed on an "AS IS" BASIS,
29
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
30
+ implied. See the License for the specific language governing
31
+ permissions and limitations under the License.
data/Rakefile ADDED
@@ -0,0 +1,37 @@
1
+ # -*- ruby -*-
2
+
3
+ $LOAD_PATH << './lib'
4
+ require 'gravitext-xmlprod/version'
5
+
6
+ require 'rubygems'
7
+ gem 'rjack-tarpit', '~> 1.2.0'
8
+ require 'rjack-tarpit'
9
+
10
+ t = RJack::TarPit.new( 'gravitext-xmlprod',
11
+ Gravitext::XMLProd::VERSION,
12
+ :no_assembly, :java_platform )
13
+
14
+ t.specify do |h|
15
+ h.developer( "David Kellum", "dek-oss@gravitext.com" )
16
+ h.extra_deps << [ 'gravitext-util', '~> 1.3' ]
17
+ h.extra_dev_deps << [ 'rjack-jdom', '~> 1.1.0.0' ]
18
+ h.rubyforge_name = "gravitext"
19
+ end
20
+
21
+ file 'Manifest.txt' => [ 'lib/gravitext-xmlprod/version.rb' ]
22
+
23
+ task :check_pom_version do
24
+ t.test_line_match( 'pom.xml', /<version>/, /#{t.version}/ )
25
+ end
26
+ task :check_history_version do
27
+ t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
28
+ end
29
+ task :check_history_date do
30
+ t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
31
+ end
32
+
33
+ task :gem => [ :check_pom_version, :check_history_version ]
34
+ task :tag => [ :check_pom_version, :check_history_version, :check_history_date ]
35
+ task :push => [ :check_history_date ]
36
+
37
+ t.define_tasks
@@ -0,0 +1,70 @@
1
+ #!/usr/bin/env jruby
2
+ # -*- ruby -*-
3
+ #--
4
+ # Copyright (c) 2008-2010 David Kellum
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License"); you
7
+ # may not use this file except in compliance with the License. You
8
+ # may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15
+ # implied. See the License for the specific language governing
16
+ # permissions and limitations under the License.
17
+ #++
18
+
19
+ $LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
20
+ require 'gravitext-xmlprod'
21
+
22
+ require 'rubygems'
23
+ require 'gravitext-util/perftest'
24
+ require 'rjack-jdom'
25
+
26
+ require 'java'
27
+
28
+ module TestCollection
29
+ include Gravitext
30
+ include Gravitext::Concurrent
31
+
32
+ import 'com.gravitext.xml.producer.perftests.PerfTestFactory'
33
+ import 'com.gravitext.xml.producer.perftests.StringBufferEncodePerfTest'
34
+
35
+ def self.run
36
+ tests = TestCollection::lookup_factories( ARGV[0] || 'producer' )
37
+
38
+ harness = PerfTest::Harness.new( tests )
39
+ # harness.thread_count = 2
40
+
41
+ harness.execute
42
+ end
43
+
44
+ def self.lookup_factories( name )
45
+ case name
46
+ when 'producer'
47
+
48
+ tests = PerfTestFactory::Serializer.values.map do |s|
49
+ PerfTestFactory.new( s )
50
+ end
51
+
52
+ tests.each do |t|
53
+ #t.use_writer = false
54
+ #t.do_encode = true
55
+ #t.encoding = 'UTF-8'
56
+ end
57
+
58
+ tests
59
+
60
+ when 'encode'
61
+ tests = Array.new(2) { StringBufferEncodePerfTest.new }
62
+ tests.zip( [ false, true ] ) { |test,b| test.use_char_buffer = b }
63
+ tests
64
+ end
65
+
66
+ end
67
+
68
+ end
69
+
70
+ TestCollection.run
@@ -0,0 +1,23 @@
1
+ #--
2
+ # Copyright (c) 2008-2010 David Kellum
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License"); you
5
+ # may not use this file except in compliance with the License. You
6
+ # may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
+ # implied. See the License for the specific language governing
14
+ # permissions and limitations under the License.
15
+ #++
16
+
17
+ module Gravitext
18
+ module XMLProd
19
+ VERSION = '1.3.0'
20
+
21
+ LIB_DIR = File.dirname(__FILE__) # :nodoc:
22
+ end
23
+ end
@@ -0,0 +1,26 @@
1
+ #--
2
+ # Copyright (c) 2008-2010 David Kellum
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License"); you
5
+ # may not use this file except in compliance with the License. You
6
+ # may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
+ # implied. See the License for the specific language governing
14
+ # permissions and limitations under the License.
15
+ #++
16
+
17
+ require 'gravitext-xmlprod/version'
18
+ require 'java'
19
+
20
+ module Gravitext
21
+
22
+ module XMLProd
23
+ require File.join( LIB_DIR, "gravitext-xmlprod-#{ VERSION }.jar" )
24
+ end
25
+
26
+ end
data/pom.xml ADDED
@@ -0,0 +1,121 @@
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>com.gravitext</groupId>
5
+ <artifactId>gravitext-xmlprod</artifactId>
6
+ <packaging>jar</packaging>
7
+ <version>1.3.0</version>
8
+ <name>Gravitext XML Producer</name>
9
+ <url>http://gravitext.com/oss/gravitext-xmlprod</url>
10
+
11
+ <description>A fast and simple XML streaming production
12
+ package.</description>
13
+
14
+ <developers>
15
+ <developer>
16
+ <id>david</id>
17
+ <name>David Kellum</name>
18
+ <email>dek-oss@[org]</email>
19
+ <organization>Gravitext</organization>
20
+ <organizationUrl>http://gravitext.com</organizationUrl>
21
+ </developer>
22
+ </developers>
23
+
24
+ <licenses>
25
+ <license>
26
+ <name>Apache License, Version 2.0</name>
27
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
28
+ <distribution>repo</distribution>
29
+ </license>
30
+ </licenses>
31
+
32
+ <parent>
33
+ <groupId>com.gravitext</groupId>
34
+ <artifactId>gravitext-parent</artifactId>
35
+ <version>1.5</version>
36
+ <relativePath>../gravitext-parent/pom.xml</relativePath>
37
+ </parent>
38
+
39
+ <distributionManagement>
40
+ <site>
41
+ <id>gravitext-site</id>
42
+ <url>file:///home/david/src/oss/site/gravitext-xmlprod</url>
43
+ </site>
44
+ <downloadUrl>http://gravitext.com/repo/releases/gravitext-xmlprod</downloadUrl>
45
+ </distributionManagement>
46
+
47
+ <dependencies>
48
+
49
+ <dependency>
50
+ <groupId>com.gravitext</groupId>
51
+ <artifactId>gravitext-util</artifactId>
52
+ <version>1.4.0</version>
53
+ <scope>compile</scope>
54
+ <optional>true</optional>
55
+ </dependency>
56
+
57
+ <dependency>
58
+ <groupId>org.slf4j</groupId>
59
+ <artifactId>slf4j-api</artifactId>
60
+ <scope>test</scope>
61
+ </dependency>
62
+
63
+ <dependency>
64
+ <groupId>junit</groupId>
65
+ <artifactId>junit</artifactId>
66
+ <scope>test</scope>
67
+ </dependency>
68
+
69
+ <dependency>
70
+ <groupId>ch.qos.logback</groupId>
71
+ <artifactId>logback-classic</artifactId>
72
+ <scope>test</scope>
73
+ </dependency>
74
+
75
+ <dependency>
76
+ <groupId>org.jdom</groupId>
77
+ <artifactId>jdom</artifactId>
78
+ <version>1.1</version>
79
+ <optional>true</optional>
80
+ </dependency>
81
+
82
+ </dependencies>
83
+
84
+ <build>
85
+ <plugins>
86
+ <plugin>
87
+ <!-- Parent settings -->
88
+ <groupId>org.codehaus.mojo</groupId>
89
+ <artifactId>cobertura-maven-plugin</artifactId>
90
+ </plugin>
91
+ <plugin>
92
+ <!-- Parent settings -->
93
+ <artifactId>maven-source-plugin</artifactId>
94
+ </plugin>
95
+ <plugin>
96
+ <!-- Parent settings -->
97
+ <artifactId>maven-compiler-plugin</artifactId>
98
+ </plugin>
99
+ </plugins>
100
+ </build>
101
+
102
+ <reporting>
103
+ <plugins>
104
+ <plugin>
105
+ <groupId>org.codehaus.mojo</groupId>
106
+ <artifactId>cobertura-maven-plugin</artifactId>
107
+ <version>2.2</version>
108
+ </plugin>
109
+ <plugin>
110
+ <artifactId>maven-javadoc-plugin</artifactId>
111
+ <configuration>
112
+ <links>
113
+ <link>http://java.sun.com/javase/6/docs/api/</link>
114
+ </links>
115
+ <encoding>UTF-8</encoding>
116
+ </configuration>
117
+ </plugin>
118
+ </plugins>
119
+ </reporting>
120
+
121
+ </project>
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gravitext-xmlprod
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.0
5
+ platform: java
6
+ authors:
7
+ - David Kellum
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-05-08 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: gravitext-util
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: "1.3"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: rjack-jdom
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.1.0.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rjack-tarpit
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.2.1
44
+ version:
45
+ description: A fast and simple XML streaming production package in java.
46
+ email:
47
+ - dek-oss@gravitext.com
48
+ executables:
49
+ - gravitext-xmlprod-perftest
50
+ extensions: []
51
+
52
+ extra_rdoc_files:
53
+ - Manifest.txt
54
+ - NOTICE.txt
55
+ - README.rdoc
56
+ - History.rdoc
57
+ files:
58
+ - History.rdoc
59
+ - Manifest.txt
60
+ - NOTICE.txt
61
+ - README.rdoc
62
+ - Rakefile
63
+ - pom.xml
64
+ - bin/gravitext-xmlprod-perftest
65
+ - lib/gravitext-xmlprod/version.rb
66
+ - lib/gravitext-xmlprod.rb
67
+ - lib/gravitext-xmlprod/gravitext-xmlprod-1.3.0.jar
68
+ has_rdoc: true
69
+ homepage: http://gravitext.rubyforge.org
70
+ licenses: []
71
+
72
+ post_install_message:
73
+ rdoc_options:
74
+ - --main
75
+ - README.rdoc
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: "0"
83
+ version:
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: "0"
89
+ version:
90
+ requirements: []
91
+
92
+ rubyforge_project: gravitext
93
+ rubygems_version: 1.3.5
94
+ signing_key:
95
+ specification_version: 3
96
+ summary: A fast and simple XML streaming production package in java.
97
+ test_files: []
98
+