rjack-tarpit 2.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/History.rdoc +71 -0
  2. data/Manifest.txt +45 -0
  3. data/NOTICE.txt +2 -0
  4. data/README.rdoc +124 -0
  5. data/Rakefile +21 -0
  6. data/lib/rjack-tarpit.rb +40 -0
  7. data/lib/rjack-tarpit/base.rb +22 -0
  8. data/lib/rjack-tarpit/base_strategy.rb +175 -0
  9. data/lib/rjack-tarpit/clean.rb +43 -0
  10. data/lib/rjack-tarpit/doc.rb +67 -0
  11. data/lib/rjack-tarpit/gem.rb +119 -0
  12. data/lib/rjack-tarpit/git.rb +45 -0
  13. data/lib/rjack-tarpit/line_match.rb +134 -0
  14. data/lib/rjack-tarpit/readme_parser.rb +74 -0
  15. data/lib/rjack-tarpit/spec.rb +314 -0
  16. data/lib/rjack-tarpit/test.rb +110 -0
  17. data/lib/rjack-tarpit/util.rb +37 -0
  18. data/test/jproject/History.rdoc +2 -0
  19. data/test/jproject/Manifest.static +10 -0
  20. data/test/jproject/Manifest.txt +11 -0
  21. data/test/jproject/NOTICE.txt +2 -0
  22. data/test/jproject/README.rdoc +24 -0
  23. data/test/jproject/Rakefile +7 -0
  24. data/test/jproject/jproject.gemspec +15 -0
  25. data/test/jproject/lib/jproject.rb +11 -0
  26. data/test/jproject/lib/jproject/base.rb +3 -0
  27. data/test/jproject/pom.xml +75 -0
  28. data/test/jproject/test/setup.rb +7 -0
  29. data/test/jproject/test/test_jproject.rb +14 -0
  30. data/test/setup.rb +7 -0
  31. data/test/test_projects.rb +71 -0
  32. data/test/test_readme_parser.rb +97 -0
  33. data/test/test_tarpit.rb +33 -0
  34. data/test/zookeeper/History.rdoc +2 -0
  35. data/test/zookeeper/Manifest.static +10 -0
  36. data/test/zookeeper/Manifest.txt +13 -0
  37. data/test/zookeeper/README.rdoc +23 -0
  38. data/test/zookeeper/Rakefile +7 -0
  39. data/test/zookeeper/assembly.xml +15 -0
  40. data/test/zookeeper/lib/rjack-zookeeper.rb +29 -0
  41. data/test/zookeeper/lib/rjack-zookeeper/base.rb +23 -0
  42. data/test/zookeeper/pom.xml +73 -0
  43. data/test/zookeeper/rjack-zookeeper.gemspec +18 -0
  44. data/test/zookeeper/test/setup.rb +17 -0
  45. data/test/zookeeper/test/test_zookeeper.rb +14 -0
  46. metadata +186 -0
@@ -0,0 +1,23 @@
1
+ = rjack-zookeeper
2
+
3
+ * http://rjack.rubyforge.org/tarpit
4
+
5
+ == Description
6
+
7
+ A gem packaging of {ZooKeeper}[http://zookeeper.apache.org/] for JRuby.
8
+
9
+ == License
10
+
11
+ Copyright (c) 2009-2012 David Kellum
12
+
13
+ Licensed under the Apache License, Version 2.0 (the "License"); you
14
+ may not use this file except in compliance with the License. You
15
+ may obtain a copy of the License at:
16
+
17
+ http://www.apache.org/licenses/LICENSE-2.0
18
+
19
+ Unless required by applicable law or agreed to in writing, software
20
+ distributed under the License is distributed on an "AS IS" BASIS,
21
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
22
+ implied. See the License for the specific language governing
23
+ permissions and limitations under the License.
@@ -0,0 +1,7 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'rjack-tarpit'
6
+
7
+ RJack::TarPit.new( "rjack-zookeeper" ).define_tasks
@@ -0,0 +1,15 @@
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
+ <excludes>
11
+ <exclude>org.slf4j:slf4j-api</exclude>
12
+ </excludes>
13
+ </dependencySet>
14
+ </dependencySets>
15
+ </assembly>
@@ -0,0 +1,29 @@
1
+ #--
2
+ # Copyright (c) 2009-2012 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 may
6
+ # 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-zookeeper/base'
18
+
19
+ require 'rjack-slf4j'
20
+
21
+ require 'java'
22
+
23
+ module RJack::RZooKeeper
24
+
25
+ Dir.glob( File.join( LIB_DIR, '*.jar' ) ).each { |jar| require jar }
26
+
27
+ java_import "org.apache.zookeeper.ZooKeeper"
28
+
29
+ end
@@ -0,0 +1,23 @@
1
+ #--
2
+ # Copyright (c) 2009-2012 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 may
6
+ # 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 RZooKeeper
19
+ ZOOKEEPER_VERSION = '3.4.1'
20
+ VERSION = ZOOKEEPER_VERSION + '.0'
21
+ LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
22
+ end
23
+ end
@@ -0,0 +1,73 @@
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-zookeeper</artifactId>
6
+ <packaging>pom</packaging>
7
+ <version>1.0</version>
8
+ <name>ZooKeeper for Gem</name>
9
+
10
+ <properties>
11
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
+ </properties>
13
+
14
+ <dependencies>
15
+
16
+ <dependency>
17
+ <groupId>org.apache.zookeeper</groupId>
18
+ <artifactId>zookeeper</artifactId>
19
+ <version>3.4.1</version>
20
+ <exclusions>
21
+ <exclusion>
22
+ <groupId>org.slf4j</groupId>
23
+ <artifactId>slf4j-log4j12</artifactId>
24
+ </exclusion>
25
+ <exclusion>
26
+ <groupId>log4j</groupId>
27
+ <artifactId>log4j</artifactId>
28
+ </exclusion>
29
+ <exclusion>
30
+ <groupId>junit</groupId>
31
+ <artifactId>junit</artifactId>
32
+ </exclusion>
33
+ </exclusions>
34
+ </dependency>
35
+ <dependency>
36
+ <groupId>org.jboss.netty</groupId>
37
+ <artifactId>netty</artifactId>
38
+ <version>3.2.7.Final</version>
39
+ </dependency>
40
+ <dependency>
41
+ <groupId>jline</groupId>
42
+ <artifactId>jline</artifactId>
43
+ <version>1.0</version>
44
+ </dependency>
45
+
46
+ </dependencies>
47
+
48
+ <build>
49
+ <plugins>
50
+ <plugin>
51
+ <artifactId>maven-assembly-plugin</artifactId>
52
+ <version>2.2.1</version>
53
+ <configuration>
54
+ <attach>false</attach>
55
+ <ignoreDirFormatExtensions>false</ignoreDirFormatExtensions>
56
+ <descriptors>
57
+ <descriptor>assembly.xml</descriptor>
58
+ </descriptors>
59
+ </configuration>
60
+ <executions>
61
+ <execution>
62
+ <id>assembly</id>
63
+ <phase>package</phase>
64
+ <goals>
65
+ <goal>single</goal>
66
+ </goals>
67
+ </execution>
68
+ </executions>
69
+ </plugin>
70
+ </plugins>
71
+ </build>
72
+
73
+ </project>
@@ -0,0 +1,18 @@
1
+ # -*- ruby -*- encoding: utf-8 -*-
2
+
3
+ require 'rjack-tarpit/spec'
4
+
5
+ RJack::TarPit.specify do |s|
6
+ require 'rjack-zookeeper/base'
7
+
8
+ s.version = RJack::RZooKeeper::VERSION
9
+
10
+ s.add_developer 'David Kellum', 'dek-oss@gravitext.com'
11
+
12
+ s.maven_strategy = :jars_from_assembly
13
+ s.assembly_version = 1.0
14
+
15
+ s.depend 'rjack-slf4j', '~> 1.6.4'
16
+ s.depend 'minitest', '~> 2.3', :dev
17
+ s.depend 'rjack-logback', '~> 1.2', :dev
18
+ end
@@ -0,0 +1,17 @@
1
+ $LOAD_PATH.unshift( File.join( File.dirname( __FILE__ ), '..', 'lib' ) )
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+
6
+ require 'minitest/unit'
7
+ require 'minitest/autorun'
8
+
9
+ require 'rjack-logback'
10
+
11
+ RJack::Logback.config_console( :stderr => true )
12
+
13
+ if ARGV.include?( '-v' ) || ARGV.include?( '--verbose' )
14
+ RJack::Logback.root.level = :debug
15
+ else
16
+ RJack::Logback[ 'org.apache.zookeeper' ].level = :warn
17
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env jruby
2
+ #.hashdot.profile += jruby-shortlived
3
+
4
+ require File.join( File.dirname( __FILE__ ), "setup" )
5
+
6
+ require 'rjack-zookeeper'
7
+
8
+ class TestZooKeeper < MiniTest::Unit::TestCase
9
+
10
+ def test
11
+ pass #FIXME
12
+ end
13
+
14
+ end
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rjack-tarpit
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 2.0.0
6
+ platform: java
7
+ authors:
8
+ - David Kellum
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-01-13 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake
17
+ version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 0.9.2
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 0.9.2.2
26
+ requirement: *id001
27
+ prerelease: false
28
+ type: :runtime
29
+ - !ruby/object:Gem::Dependency
30
+ name: rdoc
31
+ version_requirements: &id002 !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: "3.12"
37
+ requirement: *id002
38
+ prerelease: false
39
+ type: :runtime
40
+ - !ruby/object:Gem::Dependency
41
+ name: minitest
42
+ version_requirements: &id003 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: "2.10"
48
+ requirement: *id003
49
+ prerelease: false
50
+ type: :development
51
+ - !ruby/object:Gem::Dependency
52
+ name: rjack-maven
53
+ version_requirements: &id004 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ version: 3.0.3
59
+ requirement: *id004
60
+ prerelease: false
61
+ type: :runtime
62
+ - !ruby/object:Gem::Dependency
63
+ name: jruby-openssl
64
+ version_requirements: &id005 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 0.7.4
70
+ requirement: *id005
71
+ prerelease: false
72
+ type: :runtime
73
+ - !ruby/object:Gem::Dependency
74
+ name: rjack-slf4j
75
+ version_requirements: &id006 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: 1.6.4
81
+ requirement: *id006
82
+ prerelease: false
83
+ type: :development
84
+ - !ruby/object:Gem::Dependency
85
+ name: rjack-logback
86
+ version_requirements: &id007 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ~>
90
+ - !ruby/object:Gem::Version
91
+ version: "1.2"
92
+ requirement: *id007
93
+ prerelease: false
94
+ type: :development
95
+ description: TarPit provides the glue for an unholy union of build tools. TarPit includes general automation for any rubygems project. It originally used and remains heavily influenced by Hoe (e.g. Manifest.txt.) However, it fully supports use of Bundler. The gemspec benefits from sensible automation but remains in a <project>.gemspec per Bundler's requirements.
96
+ email:
97
+ - dek-oss@gravitext.com
98
+ executables: []
99
+
100
+ extensions: []
101
+
102
+ extra_rdoc_files:
103
+ - History.rdoc
104
+ - README.rdoc
105
+ files:
106
+ - History.rdoc
107
+ - Manifest.txt
108
+ - NOTICE.txt
109
+ - README.rdoc
110
+ - Rakefile
111
+ - lib/rjack-tarpit/base.rb
112
+ - lib/rjack-tarpit.rb
113
+ - lib/rjack-tarpit/base_strategy.rb
114
+ - lib/rjack-tarpit/clean.rb
115
+ - lib/rjack-tarpit/doc.rb
116
+ - lib/rjack-tarpit/gem.rb
117
+ - lib/rjack-tarpit/git.rb
118
+ - lib/rjack-tarpit/line_match.rb
119
+ - lib/rjack-tarpit/readme_parser.rb
120
+ - lib/rjack-tarpit/spec.rb
121
+ - lib/rjack-tarpit/test.rb
122
+ - lib/rjack-tarpit/util.rb
123
+ - test/setup.rb
124
+ - test/test_projects.rb
125
+ - test/test_readme_parser.rb
126
+ - test/test_tarpit.rb
127
+ - test/jproject/History.rdoc
128
+ - test/jproject/Manifest.static
129
+ - test/jproject/Manifest.txt
130
+ - test/jproject/NOTICE.txt
131
+ - test/jproject/README.rdoc
132
+ - test/jproject/Rakefile
133
+ - test/jproject/jproject.gemspec
134
+ - test/jproject/pom.xml
135
+ - test/jproject/lib/jproject/base.rb
136
+ - test/jproject/lib/jproject.rb
137
+ - test/jproject/test/setup.rb
138
+ - test/jproject/test/test_jproject.rb
139
+ - test/zookeeper/History.rdoc
140
+ - test/zookeeper/Manifest.static
141
+ - test/zookeeper/Manifest.txt
142
+ - test/zookeeper/README.rdoc
143
+ - test/zookeeper/Rakefile
144
+ - test/zookeeper/assembly.xml
145
+ - test/zookeeper/pom.xml
146
+ - test/zookeeper/rjack-zookeeper.gemspec
147
+ - test/zookeeper/lib/rjack-zookeeper/base.rb
148
+ - test/zookeeper/lib/rjack-zookeeper.rb
149
+ - test/zookeeper/test/setup.rb
150
+ - test/zookeeper/test/test_zookeeper.rb
151
+ homepage: http://rjack.rubyforge.org/tarpit
152
+ licenses: []
153
+
154
+ post_install_message:
155
+ rdoc_options:
156
+ - --main
157
+ - README.rdoc
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ hash: 2
166
+ segments:
167
+ - 0
168
+ version: "0"
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ hash: 2
175
+ segments:
176
+ - 0
177
+ version: "0"
178
+ requirements: []
179
+
180
+ rubyforge_project:
181
+ rubygems_version: 1.8.11
182
+ signing_key:
183
+ specification_version: 3
184
+ summary: TarPit provides the glue for an unholy union of build tools. TarPit includes general automation for any rubygems project. It originally used and remains heavily influenced by Hoe (e.g. Manifest.txt.) However, it fully supports use of Bundler.
185
+ test_files: []
186
+