Permalink
Browse files

Added gemfile, moved gemspec to gemspec file. Added rcov to rakefile.…

… Changed tests to include test_helper. Added test rake task.
  • Loading branch information...
1 parent 77a36cc commit c2075fc8da6f8ddfcad0fcac6c4bfc6226851e98 @BRIMIL01 committed Apr 16, 2011
View
@@ -0,0 +1,3 @@
+source :rubygems
+
+gemspec
View
@@ -0,0 +1,22 @@
+PATH
+ remote: .
+ specs:
+ neptune (0.0.8)
+ soap4r
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ flexmock (0.9.0)
+ httpclient (2.2.0)
+ rcov (0.9.9)
+ soap4r (1.5.8)
+ httpclient (>= 2.1.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ flexmock
+ neptune!
+ rcov
View
@@ -1,37 +1,18 @@
require 'rubygems'
-require 'rake/gempackagetask'
+require 'rake/testtask'
+require 'rcov/rcovtask'
-spec = Gem::Specification.new do |s|
- s.name = 'neptune'
- s.version = '0.0.8'
-
- s.summary = "A domain specific language for deploying HPC apps to cloud platforms"
- s.description = <<-EOF
- Neptune is a domain specific language that lets you deploy high performance
- computing applications to supported cloud platforms. Jobs can be deployed in
- standard Ruby syntax.
- EOF
-
- s.author = "Chris Bunch"
- s.email = "appscale_community@googlegroups.com"
- s.homepage = "http://neptune-lang.org"
-
- s.executables = ["neptune"]
- s.default_executable = 'neptune'
- s.platform = Gem::Platform::RUBY
-
- candidates = Dir.glob("{bin,doc,lib,test}/**/*")
- s.files = candidates.delete_if do |item|
- item.include?(".bzr") || item.include?("rdoc")
- end
- s.require_path = "lib"
- s.autorequire = "neptune"
-
- s.has_rdoc = true
- s.extra_rdoc_files = ["README", "LICENSE"]
+desc "Run tests"
+Rake::TestTask.new do |t|
+ t.test_files = FileList['test/tc_*.rb']
+ t.verbose = true
end
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_tar = true
+Rcov::RcovTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/tc_*.rb']
+ t.verbose = true
end
+
+
Oops, something went wrong.

0 comments on commit c2075fc

Please sign in to comment.