Permalink
Browse files

Use Jeweler

  • Loading branch information...
1 parent 30d2b43 commit f8f08d09b85ac385e87b45966c6e6fede180eb66 @glejeune glejeune committed Nov 26, 2009
View
@@ -0,0 +1,21 @@
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
+pkg
+
+## PROJECT::SPECIFIC
File renamed without changes.
View
File renamed without changes.
View
@@ -1,8 +0,0 @@
-.autotest
-History.txt
-Manifest.txt
-README.txt
-Rakefile
-bin/rcomet
-lib/rcomet.rb
-test/test_rcomet.rb
@@ -27,9 +27,7 @@ gem install rcomet
== LICENSE:
-RComet is freely distributable according to the terms of the
-GNU General Public License.
+RComet is freely distributable according to the terms of the GNU General Public License.
-This program is distributed without any warranty. See the file
-'COPYING' for details.
+This program is distributed without any warranty. See the file 'LICENCE' for details.
View
@@ -1,12 +1,53 @@
-# -*- ruby -*-
-
require 'rubygems'
-require 'hoe'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "rcomet"
+ gem.summary = %Q{RComet is an implementation of the Bayeux protocol in Ruby.}
+ gem.description = %Q{RComet implement the Bayeux protocole to allow you to create client and/or Comet's server.}
+ gem.email = "guillaume.dorchies@gmail.com"
+ gem.homepage = "http://github.com/glejeune/rcomet"
+ gem.authors = ["Guillaume Dorchies", "Grégoire Lejeune"]
+ gem.add_development_dependency "rspec", ">= 1.2.9"
+ gem.bindir = "bin"
+ gem.executables = ["rcomet"]
+ gem.rubyforge_project = 'rcomet'
+ gem.has_rdoc = true
+ gem.extra_rdoc_files = ["README.rdoc", "LICENCE"]
+ gem.rdoc_options = ["--title", "RComet", "--main", "README.rdoc", "--line-numbers"]
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
-Hoe.spec 'rcomet' do
- developer('Guillaume Dorchies','guillaume.dorchies@gmail.com')
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.spec_files = FileList['spec/**/*_spec.rb']
+end
- # self.rubyforge_name = 'rcometx' # if different than 'rcomet'
+Spec::Rake::SpecTask.new(:rcov) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
end
-# vim: syntax=ruby
+task :spec => :check_dependencies
+
+task :default => :spec
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "RComet #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('LICENSE')
+ rdoc.rdoc_files.include('History.rdoc')
+ rdoc.rdoc_files.include('bin/**/*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
@@ -0,0 +1 @@
+0.0.1
View
@@ -0,0 +1,7 @@
+require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+
+describe "Rcomet" do
+ it "fails" do
+ fail "hey buddy, you should probably rename this file and start specing for real"
+ end
+end
View
@@ -0,0 +1 @@
+--color
View
@@ -0,0 +1,9 @@
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+require 'rcomet'
+require 'spec'
+require 'spec/autorun'
+
+Spec::Runner.configure do |config|
+
+end
View
@@ -1,8 +0,0 @@
-require "test/unit"
-require "rcomet"
-
-class TestRcomet < Test::Unit::TestCase
- def test_sanity
- flunk "write tests or I will kneecap you"
- end
-end

0 comments on commit f8f08d0

Please sign in to comment.