rjack-mina 1.0.10.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc ADDED
@@ -0,0 +1,2 @@
1
+ === 1.0.10.0 (2011-2-5)
2
+ * Initial release based on mina 1.0.10
data/Manifest.txt ADDED
@@ -0,0 +1,11 @@
1
+ History.rdoc
2
+ Manifest.txt
3
+ NOTICE.txt
4
+ README.rdoc
5
+ Rakefile
6
+ assembly.xml
7
+ pom.xml
8
+ lib/rjack-mina/base.rb
9
+ lib/rjack-mina.rb
10
+ test/test_mina.rb
11
+ lib/rjack-mina/mina-core-1.0.10.jar
data/NOTICE.txt ADDED
@@ -0,0 +1,7 @@
1
+ rjack-mina gem
2
+ Copyright (c) 2011 David Kellum
3
+
4
+ This product includes software developed by:
5
+
6
+ Apache MINA
7
+ Copyright (c) 2007 The Apache Software Foundation.
data/README.rdoc ADDED
@@ -0,0 +1,42 @@
1
+ = rjack-mina
2
+
3
+ * http://rjack.rubyforge.org
4
+ * http://rubyforge.org/projects/rjack
5
+
6
+ == Description
7
+
8
+ A gem packaging of {MINA}[http://mina.apache.org].
9
+
10
+ == License
11
+
12
+ === rjack-mina gem
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
+ === MINA (java)
29
+
30
+ Copyright (c) 2007 The Apache Software Foundation
31
+
32
+ Licensed under the Apache License, Version 2.0 (the "License"); you
33
+ may not use this file except in compliance with the License. You
34
+ may obtain a copy of the License at:
35
+
36
+ http://www.apache.org/licenses/LICENSE-2.0
37
+
38
+ Unless required by applicable law or agreed to in writing, software
39
+ distributed under the License is distributed on an "AS IS" BASIS,
40
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
41
+ implied. See the License for the specific language governing
42
+ permissions and limitations under the License.
data/Rakefile ADDED
@@ -0,0 +1,44 @@
1
+ # -*- ruby -*-
2
+
3
+ $LOAD_PATH << './lib'
4
+ require 'rjack-mina/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-mina', Mina::VERSION, :java_platform )
13
+
14
+ t.specify do |h|
15
+ h.developer( "David Kellum", "dek-oss@gravitext.com" )
16
+ h.extra_deps << [ 'rjack-slf4j', '>= 1.5.8', '< 1.7' ]
17
+ h.extra_dev_deps << [ 'rjack-logback', '>= 0.9.18', '< 2.0' ]
18
+ h.rubyforge_name = "rjack"
19
+ h.remote_rdoc_dir = "mina"
20
+ end
21
+
22
+ t.jars = [ "mina-core-#{ Mina::CORE_VERSION }.jar" ]
23
+
24
+ t.assembly_version = 1.0
25
+
26
+ file 'Manifest.txt' => [ "lib/#{t.name}/base.rb" ]
27
+
28
+ task :check_pom_deps do
29
+ t.test_line_match( 'pom.xml',
30
+ %r[<version>#{ Mina::CORE_VERSION }</version>] )
31
+ end
32
+
33
+ task :check_history_version do
34
+ t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
35
+ end
36
+ task :check_history_date do
37
+ t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
38
+ end
39
+
40
+ task :gem => [ :check_pom_deps, :check_history_version ]
41
+ task :tag => [ :check_pom_deps, :check_history_version, :check_history_date ]
42
+ task :push => [ :check_history_date ]
43
+
44
+ t.define_tasks
data/assembly.xml ADDED
@@ -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.apache.mina:mina-core</include>
11
+ </includes>
12
+ </dependencySet>
13
+ </dependencySets>
14
+ </assembly>
data/lib/rjack-mina.rb ADDED
@@ -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
+ require 'rjack-mina/base'
18
+
19
+ require 'rjack-slf4j'
20
+
21
+ # Mina module
22
+ #
23
+ module RJack
24
+ module Mina
25
+ require "#{LIB_DIR}/mina-core-#{CORE_VERSION}.jar"
26
+ end
27
+ end
@@ -0,0 +1,28 @@
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 Mina
19
+
20
+ # Mina (java) version
21
+ CORE_VERSION = '1.0.10'
22
+
23
+ # rjack gem version
24
+ VERSION = CORE_VERSION + '.0'
25
+
26
+ LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
27
+ end
28
+ end
Binary file
data/pom.xml ADDED
@@ -0,0 +1,41 @@
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-mina</artifactId>
6
+ <packaging>pom</packaging>
7
+ <version>1.0</version>
8
+ <name>MINA for Gem</name>
9
+
10
+ <dependencies>
11
+ <dependency>
12
+ <groupId>org.apache.mina</groupId>
13
+ <artifactId>mina-core</artifactId>
14
+ <version>1.0.10</version>
15
+ </dependency>
16
+ </dependencies>
17
+
18
+ <build>
19
+ <plugins>
20
+ <plugin>
21
+ <artifactId>maven-assembly-plugin</artifactId>
22
+ <configuration>
23
+ <descriptors>
24
+ <descriptor>assembly.xml</descriptor>
25
+ </descriptors>
26
+ <tarLongFileMode>gnu</tarLongFileMode>
27
+ </configuration>
28
+ <executions>
29
+ <execution>
30
+ <id>assembly</id>
31
+ <phase>package</phase>
32
+ <goals>
33
+ <goal>attached</goal>
34
+ </goals>
35
+ </execution>
36
+ </executions>
37
+ </plugin>
38
+ </plugins>
39
+ </build>
40
+
41
+ </project>
data/test/test_mina.rb ADDED
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env jruby
2
+ #.hashdot.profile += jruby-shortlived
3
+ #--
4
+ # Copyright (c) 2011 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
+
21
+ require 'java'
22
+ require 'rubygems'
23
+ require 'rjack-mina'
24
+
25
+ require 'test/unit'
26
+
27
+ class TestMina < Test::Unit::TestCase
28
+ import 'org.apache.mina.transport.socket.nio.SocketIoProcessor'
29
+ import 'org.apache.mina.util.SessionLog'
30
+
31
+ def test_load
32
+ assert( true ) #FIXME: Just asserting that the load works for now
33
+ end
34
+ end
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rjack-mina
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 10
9
+ - 0
10
+ version: 1.0.10.0
11
+ platform: java
12
+ authors:
13
+ - David Kellum
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-02-05 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rjack-slf4j
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 5
31
+ - 8
32
+ version: 1.5.8
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ segments:
36
+ - 1
37
+ - 7
38
+ version: "1.7"
39
+ type: :runtime
40
+ version_requirements: *id001
41
+ - !ruby/object:Gem::Dependency
42
+ name: rjack-logback
43
+ prerelease: false
44
+ requirement: &id002 !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ segments:
49
+ - 0
50
+ - 9
51
+ - 18
52
+ version: 0.9.18
53
+ - - <
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 2
57
+ - 0
58
+ version: "2.0"
59
+ type: :development
60
+ version_requirements: *id002
61
+ - !ruby/object:Gem::Dependency
62
+ name: rjack-tarpit
63
+ prerelease: false
64
+ requirement: &id003 !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 1
70
+ - 3
71
+ - 0
72
+ version: 1.3.0
73
+ type: :development
74
+ version_requirements: *id003
75
+ description: A gem packaging of {MINA}[http://mina.apache.org].
76
+ email:
77
+ - dek-oss@gravitext.com
78
+ executables: []
79
+
80
+ extensions: []
81
+
82
+ extra_rdoc_files:
83
+ - Manifest.txt
84
+ - NOTICE.txt
85
+ - History.rdoc
86
+ - README.rdoc
87
+ files:
88
+ - History.rdoc
89
+ - Manifest.txt
90
+ - NOTICE.txt
91
+ - README.rdoc
92
+ - Rakefile
93
+ - assembly.xml
94
+ - pom.xml
95
+ - lib/rjack-mina/base.rb
96
+ - lib/rjack-mina.rb
97
+ - test/test_mina.rb
98
+ - lib/rjack-mina/mina-core-1.0.10.jar
99
+ has_rdoc: true
100
+ homepage: http://rjack.rubyforge.org
101
+ licenses: []
102
+
103
+ post_install_message:
104
+ rdoc_options:
105
+ - --main
106
+ - README.rdoc
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ segments:
114
+ - 0
115
+ version: "0"
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ requirements: []
124
+
125
+ rubyforge_project: rjack
126
+ rubygems_version: 1.3.6
127
+ signing_key:
128
+ specification_version: 3
129
+ summary: A gem packaging of {MINA}[http://mina.apache.org].
130
+ test_files:
131
+ - test/test_mina.rb