Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use tarpit 2, bundler, minitest
  • Loading branch information
David Kellum committed Mar 18, 2012
1 parent 4484353 commit 4bb6cf5
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*~
pkg/
doc/
.bundle/
5 changes: 5 additions & 0 deletions Gemfile
@@ -0,0 +1,5 @@
# -*- ruby -*-

source :rubygems

gemspec :name => 'hashdot-test-daemon'
35 changes: 35 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,35 @@
PATH
remote: .
specs:
hashdot-test-daemon (1.2.2-java)
rjack-logback (~> 1.1)
rjack-slf4j (~> 1.6.1)

GEM
remote: http://rubygems.org/
specs:
bouncy-castle-java (1.5.0146.1)
jruby-openssl (0.7.6.1)
bouncy-castle-java (>= 1.5.0146.1)
json (1.6.5-java)
minitest (2.11.3)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
rjack-logback (1.3.0-java)
rjack-slf4j (~> 1.6.0)
rjack-maven (3.0.3.1-java)
rjack-slf4j (1.6.4.0-java)
rjack-tarpit (2.0.1-java)
jruby-openssl (~> 0.7.4)
rake (~> 0.9.2, >= 0.9.2.2)
rdoc (~> 3.12)
rjack-maven (~> 3.0.3)

PLATFORMS
java

DEPENDENCIES
hashdot-test-daemon!
minitest (~> 2.2)
rjack-tarpit (~> 2.0)
33 changes: 3 additions & 30 deletions Rakefile
@@ -1,35 +1,8 @@
# -*- ruby -*-

$LOAD_PATH << './lib'
require 'hashdot-test-daemon/base'

require 'rubygems'
gem 'rjack-tarpit', '~> 1.3.3'
require 'bundler/setup'
require 'rjack-tarpit'

t = RJack::TarPit.new( 'hashdot-test-daemon',
Hashdot::Daemon::VERSION,
:java_platform )

t.specify do |h|
h.developer( "David Kellum", "dek-oss@gravitext.com" )
h.extra_deps += [ [ 'rjack-slf4j', '~> 1.6.1' ],
[ 'rjack-logback', '~> 1.1' ] ]
end

task :check_init_versions do
t.test_line_match( 'init/hashdot-test-daemon',
/^gem.+#{t.name}/, /= #{t.version}/ )
end
task :check_history_version do
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
end
task :check_history_date do
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
end

task :gem => [ :check_init_versions, :check_history_version ]
task :tag => [ :check_init_versions, :check_history_version, :check_history_date ]
task :push => [ :check_init_versions, :check_history_version, :check_history_date ]

t.define_tasks
tp = RJack::TarPit.new( 'hashdot-test-daemon' )
tp.define_tasks
19 changes: 19 additions & 0 deletions hashdot-test-daemon.gemspec
@@ -0,0 +1,19 @@
# -*- ruby -*-

gem 'rjack-tarpit', '~> 2.0'
require 'rjack-tarpit/spec'

RJack::TarPit.specify do |s|
require 'hashdot-test-daemon/base'

s.version = Hashdot::Daemon::VERSION

s.add_developer( 'David Kellum', 'dek-oss@gravitext.com' )

s.depend 'rjack-slf4j', '~> 1.6.1'
s.depend 'rjack-logback', '~> 1.1'

s.depend 'minitest', '~> 2.2', :dev

s.platform = :java
end
13 changes: 7 additions & 6 deletions test/test_daemon.rb
Expand Up @@ -16,19 +16,20 @@
# permissions and limitations under the License.
#++

TEST_DIR = File.dirname(__FILE__)

$LOAD_PATH.unshift File.join( TEST_DIR, "..", "lib" )

require 'rubygems'
require 'bundler/setup'

require 'rjack-logback'
RJack::Logback.config_console( :stderr => true )

require 'hashdot-test-daemon'
require 'test/unit'

require 'minitest/unit'
require 'minitest/autorun'

RJack::Logback.config_console

class TestDaemon < Test::Unit::TestCase
class TestDaemon < MiniTest::Unit::TestCase
include Hashdot::Daemon
def test_daemon
assert Runner.new
Expand Down

0 comments on commit 4bb6cf5

Please sign in to comment.