Permalink
Browse files

Use jeweler to make this a ruby gem.

Now, users of clucumber can install it via "gem install clucumber" (that is, as soon
as I have uploaded it to gemcutter), and start using it immediately. Sweet!
  • Loading branch information...
1 parent c8a1e18 commit b920bab4accdc1d1c1cb857f0c62064028dec861 @antifuchs antifuchs committed May 3, 2010
View
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
@@ -1,3 +1,24 @@
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
+pkg
+
+## PROJECT::SPECIFIC
*.fasl
features/step_definitions/*.wire
tmp/
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Andreas Fuchs
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.
View
@@ -0,0 +1,46 @@
+require 'rubygems'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "clucumber"
+ gem.summary = %Q{Test drive your Common Lisp application from Cucumber}
+ gem.description = %Q{A cucumber extension that lets you write your step definitions in Common Lisp.
+ Set internal state in your Hunchentoot web app or your library, and use the full power of Cucumber and its other extensions.}
+ gem.email = "asf@boinkor.net"
+ gem.homepage = "http://github.com/antifuchs/clucumber"
+ gem.authors = ["Andreas Fuchs"]
+ gem.add_development_dependency "aruba", ">= 0"
+ gem.add_development_dependency "cucumber", ">= 0"
+
+ gem.files = "lib/**/*.rb", "lib/**/*.lisp", "lib/**/*.asd"
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
+
+begin
+ require 'cucumber/rake/task'
+ [:test, :cucumber, :features].each do |the_task|
+ Cucumber::Rake::Task.new(the_task)
+ task the_task => :check_dependencies
+ end
+rescue LoadError
+ task :test do
+ abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
+ end
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "clucumber #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
@@ -1 +1 @@
-0.0.0
+0.1.0
View
@@ -0,0 +1,52 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{clucumber}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Andreas Fuchs"]
+ s.date = %q{2010-05-03}
+ s.description = %q{A cucumber extension that lets you write your step definitions in Common Lisp.
+ Set internal state in your Hunchentoot web app or your library, and use the full power of Cucumber and its other extensions.}
+ s.email = %q{asf@boinkor.net}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ "lib/clucumber.rb",
+ "lib/clucumber/clucumber.asd",
+ "lib/clucumber/packages.lisp",
+ "lib/clucumber/server.lisp"
+ ]
+ s.homepage = %q{http://github.com/antifuchs/clucumber}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{Test drive your Common Lisp application from Cucumber}
+ s.test_files = [
+ "test/helper.rb",
+ "test/test_clucumber.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<aruba>, [">= 0"])
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
+ else
+ s.add_dependency(%q<aruba>, [">= 0"])
+ s.add_dependency(%q<cucumber>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<aruba>, [">= 0"])
+ s.add_dependency(%q<cucumber>, [">= 0"])
+ end
+end
+
View
@@ -1,7 +1,7 @@
require 'fileutils'
require 'tempfile'
require 'aruba'
-require File.expand_path("../../clucumber.rb", File.dirname(__FILE__))
+require File.expand_path("../../lib/clucumber.rb", File.dirname(__FILE__))
class ClucumberWorld
def strip_duration(s)
@@ -20,6 +20,7 @@ def initialize(dir, options={})
}
@in.puts(<<-LISP)
(require :asdf)
+ (load #p"#{File.expand_path("clucumber/clucumber.asd", File.dirname(__FILE__))}")
LISP
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
-require File.expand_path("../../../../clucumber.rb", File.dirname(__FILE__))
+require File.expand_path("../../../../lib/clucumber.rb", File.dirname(__FILE__))
begin
@main_clucumber = ClucumberSubprocess.new(File.expand_path("../", File.dirname(__FILE__)),
View
@@ -0,0 +1,10 @@
+require 'rubygems'
+require 'test/unit'
+require 'shoulda'
+
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'clucumber'
+
+class Test::Unit::TestCase
+end
View
@@ -0,0 +1,7 @@
+require 'helper'
+
+class TestClucumber < Test::Unit::TestCase
+ should "probably rename this file and start testing for real" do
+ flunk "hey buddy, you should probably rename this file and start testing for real"
+ end
+end

0 comments on commit b920bab

Please sign in to comment.