Skip to content

Commit

Permalink
Added rakefile and gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Feb 18, 2009
1 parent 8ed704e commit 285df14
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 9 deletions.
34 changes: 34 additions & 0 deletions Rakefile
@@ -1,8 +1,32 @@
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'spec/rake/spectask'

NAME = "machinist"
GEM_VERSION = "0.2.0"
AUTHOR = "Pete Yandell"
EMAIL = "pete@nothat.com"
HOMEPAGE = "http://github.com/notahat/machinist"
SUMMARY = "Fixtures aren't fun. Machinist is."

spec = Gem::Specification.new do |s|
s.rubyforge_project = 'machinist'
s.name = NAME
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.markdown", "MIT-LICENSE"]
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
s.require_path = 'lib'
s.files = %w(MIT-LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*")
end

desc 'Default: run specs.'
task :default => :spec

Expand All @@ -12,3 +36,13 @@ Spec::Rake::SpecTask.new do |t|
t.rcov = false
end

Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end

desc "create a gemspec file"
task :make_spec do
File.open("#{NAME}.gemspec", "w") do |file|
file.puts spec.to_ruby
end
end
37 changes: 28 additions & 9 deletions machinist.gemspec
@@ -1,11 +1,30 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = "machinist"
s.version = "0.2.0"
s.author = "Pete Yandell"
s.email = "pete@nothat.com"
s.homepage = "http://github.com/notahat/machinist"
s.summary = "Fixtures aren't fun. Machinist is."
s.files = ["lib/machinist.rb", "lib/sham.rb"]
s.require_path = "lib"
s.has_rdoc = false
s.name = %q{machinist}
s.version = "0.2.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Pete Yandell"]
s.date = %q{2009-02-18}
s.description = %q{Fixtures aren't fun. Machinist is.}
s.email = %q{pete@nothat.com}
s.extra_rdoc_files = ["README.markdown", "MIT-LICENSE"]
s.files = ["MIT-LICENSE", "README.markdown", "Rakefile", "lib/machinist.rb", "lib/sham.rb", "spec/db", "spec/db/database.yml", "spec/db/schema.rb", "spec/db/test.sqlite3", "spec/log", "spec/log/test.log", "spec/machinist_spec.rb", "spec/sham_spec.rb", "spec/spec_helper.rb"]
s.has_rdoc = true
s.homepage = %q{http://github.com/notahat/machinist}
s.require_paths = ["lib"]
s.rubyforge_project = %q{merb}
s.rubygems_version = %q{1.3.1}
s.summary = %q{Fixtures aren't fun. Machinist is.}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else
end
else
end
end

0 comments on commit 285df14

Please sign in to comment.