Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A quick gemspec.

  • Loading branch information...
commit 7f3ef9ffc8070202a69c8522d353fbc0b3ab6e25 1 parent 7184cd0
@jbarnette authored
Showing with 57 additions and 0 deletions.
  1. +28 −0 Rakefile
  2. +29 −0 lather.gemspec
View
28 Rakefile
@@ -1,6 +1,34 @@
require "rubygems"
+require "rubygems/specification"
+
require "./lib/lather"
+namespace :gem do
+ desc "Update the gemspec."
+ task :spec do
+ spec = Gem::Specification.new do |s|
+ s.name = "lather"
+ s.version = Lather::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = false
+ s.summary = "Lather rinses and repeats."
+ s.description = s.summary
+ s.author = "John Barnette"
+ s.email = "jbarnette@gmail.com"
+ s.homepage = "http://github.com/jbarnette/lather"
+ s.require_path = "lib"
+ s.bindir = "bin"
+ s.executables = %w(lather)
+
+ s.files = %w(Rakefile README.markdown) + Dir["{bin,lib,test}/**/*"]
+ end
+
+ File.open("#{spec.name}.gemspec", "w") do |f|
+ f.puts spec.to_ruby
+ end
+ end
+end
+
desc "Run tests."
task :test do
testify
View
29 lather.gemspec
@@ -0,0 +1,29 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{lather}
+ s.version = "1.0.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["John Barnette"]
+ s.date = %q{2009-01-28}
+ s.default_executable = %q{lather}
+ s.description = %q{Lather rinses and repeats.}
+ s.email = %q{jbarnette@gmail.com}
+ s.executables = ["lather"]
+ s.files = ["Rakefile", "README.markdown", "bin/lather", "lib/lather", "lib/lather/cli.rb", "lib/lather/version.rb", "lib/lather/watcher.rb", "lib/lather.rb", "test/helper.rb", "test/lather", "test/lather/cli_test.rb", "test/lather/watcher_test.rb"]
+ s.homepage = %q{http://github.com/jbarnette/lather}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{Lather rinses and repeats.}
+
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.