rjack-jackson 1.8.0.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.
@@ -0,0 +1,2 @@
1
+ === 1.8.0.0 (2011-5-15)
2
+ * Initial release based on Jackson 1.8.0
@@ -0,0 +1,7 @@
1
+ rjack-jackson gem
2
+ Copyright (c) 2011 David Kellum
3
+
4
+ This product includes software developed by:
5
+
6
+ Jackson (java)
7
+ Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
@@ -0,0 +1,45 @@
1
+ = rjack-jackson
2
+
3
+ * http://rjack.rubyforge.org/jackson
4
+ * http://rjack.rubyforge.org
5
+
6
+ == Description
7
+
8
+ A gem packaging of {Jackson JSON Processor}[http://jackson.codehaus.org/].
9
+
10
+ == License
11
+
12
+ === rjack-jackson
13
+
14
+ Copyright (c) 2011 David Kellum
15
+
16
+ Licensed under the Apache License, Version 2.0 (the "License"); you
17
+ may not use this file except in compliance with the License. You
18
+ may obtain a copy of the License at:
19
+
20
+ http://www.apache.org/licenses/LICENSE-2.0
21
+
22
+ Unless required by applicable law or agreed to in writing, software
23
+ distributed under the License is distributed on an "AS IS" BASIS,
24
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
25
+ implied. See the License for the specific language governing
26
+ permissions and limitations under the License.
27
+
28
+ === Jackson JSON Processor (java)
29
+
30
+ Copyright (c) 2007- Tatu Saloranta, and others
31
+
32
+ This copy of Jackson JSON processor is licensed under the
33
+ Apache (Software) License, version 2.0 ("the License").
34
+ See the License for details about distribution rights, and the
35
+ specific rights regarding derivate works.
36
+
37
+ You may obtain a copy of the License at:
38
+
39
+ http://www.apache.org/licenses/LICENSE-2.0
40
+
41
+ Unless required by applicable law or agreed to in writing, software
42
+ distributed under the License is distributed on an "AS IS" BASIS,
43
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
44
+ implied. See the License for the specific language governing
45
+ permissions and limitations under the License.
@@ -0,0 +1,43 @@
1
+ # -*- ruby -*-
2
+
3
+ $LOAD_PATH << './lib'
4
+ require 'rjack-jackson/base'
5
+
6
+ require 'rubygems'
7
+ gem 'rjack-tarpit', '~> 1.3.0'
8
+ require 'rjack-tarpit'
9
+
10
+ include RJack
11
+
12
+ t = TarPit.new( 'rjack-jackson', Jackson::VERSION, :java_platform )
13
+
14
+ t.specify do |h|
15
+ h.developer( "David Kellum", "dek-oss@gravitext.com" )
16
+ h.rdoc_locations << "dekellum@rubyforge.org:/var/www/gforge-projects/rjack/jackson"
17
+ end
18
+
19
+ modules = %w[ core-asl mapper-asl jaxrs xc ]
20
+
21
+ t.jars = modules.map { |m| "jackson-#{m}-#{ Jackson::JACKSON_VERSION }.jar" }
22
+
23
+ t.assembly_version = 1.0
24
+
25
+ file 'Manifest.txt' => [ "lib/#{t.name}/base.rb" ]
26
+
27
+ task :check_pom_deps do
28
+ t.test_line_match( 'pom.xml',
29
+ %r[<version>#{ Jackson::JACKSON_VERSION }</version>] )
30
+ end
31
+
32
+ task :check_history_version do
33
+ t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
34
+ end
35
+ task :check_history_date do
36
+ t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
37
+ end
38
+
39
+ task :gem => [ :check_pom_deps, :check_history_version ]
40
+ task :tag => [ :check_pom_deps, :check_history_version, :check_history_date ]
41
+ task :push => [ :check_history_date ]
42
+
43
+ t.define_tasks
@@ -0,0 +1,18 @@
1
+ <assembly>
2
+ <id>bin</id>
3
+ <formats>
4
+ <format>dir</format>
5
+ </formats>
6
+ <includeBaseDirectory>false</includeBaseDirectory>
7
+ <dependencySets>
8
+ <dependencySet>
9
+ <useProjectArtifact>false</useProjectArtifact>
10
+ <includes>
11
+ <include>org.codehaus.jackson:jackson-core-asl</include>
12
+ <include>org.codehaus.jackson:jackson-mapper-asl</include>
13
+ <include>org.codehaus.jackson:jackson-jaxrs</include>
14
+ <include>org.codehaus.jackson:jackson-xc</include>
15
+ </includes>
16
+ </dependencySet>
17
+ </dependencySets>
18
+ </assembly>
@@ -0,0 +1,30 @@
1
+ #--
2
+ # Copyright (c) 2011 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 'rjack-jackson/base'
18
+
19
+ require 'java'
20
+
21
+ # Jackson JSON parser module
22
+ #
23
+ # http://jackson.codehaus.org/
24
+ #
25
+ module RJack
26
+ module Jackson
27
+ require "#{LIB_DIR}/jackson-core-asl-#{JACKSON_VERSION}.jar"
28
+ require "#{LIB_DIR}/jackson-mapper-asl-#{JACKSON_VERSION}.jar"
29
+ end
30
+ end
@@ -0,0 +1,27 @@
1
+ #--
2
+ # Copyright (c) 2011 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 RJack
18
+ module Jackson
19
+
20
+ JACKSON_VERSION = '1.8.0'
21
+
22
+ # rjack gem version
23
+ VERSION = JACKSON_VERSION + '.0'
24
+
25
+ LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
26
+ end
27
+ end
@@ -0,0 +1,23 @@
1
+ #--
2
+ # Copyright (c) 2011 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 'rjack-jackson'
18
+
19
+ module RJack
20
+ module Jackson
21
+ require "#{LIB_DIR}/jackson-jaxrs-#{JACKSON_VERSION}.jar"
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ #--
2
+ # Copyright (c) 2011 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 'rjack-jackson'
18
+
19
+ module RJack
20
+ module Jackson
21
+ require "#{LIB_DIR}/jackson-xc-#{JACKSON_VERSION}.jar"
22
+ end
23
+ end
data/pom.xml ADDED
@@ -0,0 +1,62 @@
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-jackson</artifactId>
6
+ <packaging>pom</packaging>
7
+ <version>1.0</version>
8
+ <name>Jackson for Gem</name>
9
+
10
+ <properties>
11
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
+ </properties>
13
+
14
+ <dependencies>
15
+ <dependency>
16
+ <groupId>org.codehaus.jackson</groupId>
17
+ <artifactId>jackson-core-asl</artifactId>
18
+ <version>1.8.0</version>
19
+ </dependency>
20
+ <dependency>
21
+ <groupId>org.codehaus.jackson</groupId>
22
+ <artifactId>jackson-mapper-asl</artifactId>
23
+ <version>1.8.0</version>
24
+ </dependency>
25
+ <dependency>
26
+ <groupId>org.codehaus.jackson</groupId>
27
+ <artifactId>jackson-jaxrs</artifactId>
28
+ <version>1.8.0</version>
29
+ </dependency>
30
+ <dependency>
31
+ <groupId>org.codehaus.jackson</groupId>
32
+ <artifactId>jackson-xc</artifactId>
33
+ <version>1.8.0</version>
34
+ </dependency>
35
+ </dependencies>
36
+
37
+ <build>
38
+ <plugins>
39
+ <plugin>
40
+ <artifactId>maven-assembly-plugin</artifactId>
41
+ <version>2.2.1</version>
42
+ <configuration>
43
+ <attach>false</attach>
44
+ <ignoreDirFormatExtensions>false</ignoreDirFormatExtensions>
45
+ <descriptors>
46
+ <descriptor>assembly.xml</descriptor>
47
+ </descriptors>
48
+ </configuration>
49
+ <executions>
50
+ <execution>
51
+ <id>assembly</id>
52
+ <phase>package</phase>
53
+ <goals>
54
+ <goal>single</goal>
55
+ </goals>
56
+ </execution>
57
+ </executions>
58
+ </plugin>
59
+ </plugins>
60
+ </build>
61
+
62
+ </project>
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env jruby
2
+ #.hashdot.profile += jruby-shortlived
3
+
4
+ #--
5
+ # Copyright (c) 2011 David Kellum
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License"); you
8
+ # may not use this file except in compliance with the License. You
9
+ # may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16
+ # implied. See the License for the specific language governing
17
+ # permissions and limitations under the License.
18
+ #++
19
+
20
+ $LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
21
+
22
+ require 'rjack-jackson'
23
+
24
+ require 'rjack-jackson/jaxrs'
25
+ require 'rjack-jackson/xc'
26
+
27
+ require 'test/unit'
28
+
29
+ class TestJackson < Test::Unit::TestCase
30
+ include RJack
31
+
32
+ import 'org.codehaus.jackson.JsonParser'
33
+
34
+ import 'org.codehaus.jackson.jaxrs.MapperConfigurator' #jaxrs
35
+ import 'org.codehaus.jackson.xc.DataHandlerJsonDeserializer' #xc
36
+
37
+ def test_load
38
+
39
+ assert true
40
+ end
41
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rjack-jackson
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.8.0.0
6
+ platform: java
7
+ authors:
8
+ - David Kellum
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-15 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rjack-tarpit
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: 1.3.0
25
+ type: :development
26
+ version_requirements: *id001
27
+ description: A gem packaging of {Jackson JSON Processor}[http://jackson.codehaus.org/].
28
+ email:
29
+ - dek-oss@gravitext.com
30
+ executables: []
31
+
32
+ extensions: []
33
+
34
+ extra_rdoc_files:
35
+ - NOTICE.txt
36
+ - History.rdoc
37
+ - README.rdoc
38
+ files:
39
+ - History.rdoc
40
+ - NOTICE.txt
41
+ - README.rdoc
42
+ - Rakefile
43
+ - assembly.xml
44
+ - pom.xml
45
+ - lib/rjack-jackson/base.rb
46
+ - lib/rjack-jackson.rb
47
+ - lib/rjack-jackson/jaxrs.rb
48
+ - lib/rjack-jackson/xc.rb
49
+ - test/test_jackson.rb
50
+ - lib/rjack-jackson/jackson-core-asl-1.8.0.jar
51
+ - lib/rjack-jackson/jackson-jaxrs-1.8.0.jar
52
+ - lib/rjack-jackson/jackson-mapper-asl-1.8.0.jar
53
+ - lib/rjack-jackson/jackson-xc-1.8.0.jar
54
+ has_rdoc: true
55
+ homepage: http://rjack.rubyforge.org/jackson
56
+ licenses: []
57
+
58
+ post_install_message:
59
+ rdoc_options:
60
+ - --main
61
+ - README.rdoc
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ requirements: []
77
+
78
+ rubyforge_project: rjack-jackson
79
+ rubygems_version: 1.5.1
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: A gem packaging of {Jackson JSON Processor}[http://jackson.codehaus.org/].
83
+ test_files:
84
+ - test/test_jackson.rb