Permalink
Browse files

gemify

  • Loading branch information...
1 parent fe4ed76 commit 8bad83c3b38b1df034dcfadd54a00b12bdf4ca94 @mischa mischa committed Dec 18, 2008
View
@@ -0,0 +1,4 @@
+== 0.0.1 2008-12-18
+
+* 1 major enhancement:
+ * Initial release
View
@@ -0,0 +1,19 @@
+Copyright (c) 2007 Bryan Helmkamp, Seth Fitzsimmons
+
+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,84 @@
+require 'rubygems'
+require "rake/gempackagetask"
+require 'rake/rdoctask'
+require "rake/clean"
+require 'spec'
+require 'spec/rake/spectask'
+#require 'spec/rake/verify_rcov'
+require File.expand_path('./lib/email_spec.rb')
+
+##############################################################################
+# Package && release
+##############################################################################
+spec = Gem::Specification.new do |s|
+ s.name = "email_spec"
+ s.version = EmailSpec::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Ben Mabrey', 'Aaron Gibralter', 'Mischa Fierer']
+ s.email = "f.mischa@gmail.com"
+ s.homepage = "http://github.com/bmabey/email-spec/"
+ s.summary = "Easily test email in rspec and cucumber"
+ s.bindir = "bin"
+ s.description = s.summary
+ s.require_path = "lib"
+ s.files = %w(History.txt install.rb MIT-LICENSE.txt README.rdoc Rakefile) + Dir["lib/**/*"]
+ # rdoc
+ s.has_rdoc = true
+ s.extra_rdoc_files = %w(README.rdoc MIT-LICENSE.txt)
+
+ # Dependencies
+ # s.add_dependency "nokogiri", ">= 1.0.6"
+
+ # s.rubyforge_project = "webrat"
+end
+
+Rake::GemPackageTask.new(spec) do |package|
+ package.gem_spec = spec
+end
+
+desc 'Show information about the gem.'
+task :debug_gem do
+ puts spec.to_ruby
+end
+
+CLEAN.include ["pkg", "*.gem", "doc", "ri", "coverage", '**/.*.sw?', '*.gem', '.config', '**/.DS_Store', '**/*.class', '**/*.jar', '**/.*.swp' ]
+
+desc "Run API and Core specs"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+end
+
+desc "Run all specs in spec directory with RCov"
+Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+ t.rcov_opts = lambda do
+ IO.readlines(File.dirname(__FILE__) + "/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
+ end
+end
+
+desc 'Install the package as a gem.'
+task :install_gem => [:clean, :package] do
+ gem = Dir['pkg/*.gem'].first
+ sh "sudo gem install --local #{gem}"
+end
+
+desc "Delete generated RDoc"
+task :clobber_docs do
+ FileUtils.rm_rf("doc")
+end
+
+desc "Generate RDoc"
+task :docs => :clobber_docs do
+ system "hanna --title 'Webrat #{Webrat::VERSION} API Documentation'"
+end
+
+
+task :test_features do
+ puts "hi"
+end
+
+task :default => :test_features
+
View
@@ -1,5 +0,0 @@
-if RAILS_ENV == "test"
- %w[helpers matchers].each do |file|
- require File.join(File.dirname(__FILE__), "lib/email_spec_#{file}.rb")
- end
-end
View
No changes.
View
@@ -0,0 +1,3 @@
+class EmailSpec
+ VERSION = '0.0.1'
+end
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8bad83c

Please sign in to comment.