Skip to content

Instantly share code, notes, and snippets.

@collin
Created July 21, 2008 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save collin/243 to your computer and use it in GitHub Desktop.
Save collin/243 to your computer and use it in GitHub Desktop.
namespace :gem
task :spec => :version do
file = File.new(__DIR__ + "fold.gemspec", 'w+')
spec = %{
Gem::Specification.new do |s|
s.name = "fold"
s.version = "#{@version}"
s.platform = Gem::Platform::RUBY
s.has_rdoc = false
s.summary = "Toolkit for creating whitespace active mini-languages. Inspired by Haml. Feature light."
s.description = s.summary
s.author = "Collin Miller"
s.email = "collintmiller@gmail.com"
s.homepage = "http://github.com/collin/fold"
s.require_path = "lib"
s.files = %w{#{(%w(README Rakefile.rb) + Dir.glob("{lib,rspec}/**/*")).join(' ')}}
s.add_dependency "rake"
s.add_dependency "rspec"
end
}
@fold_gemspec = eval(spec)
file.write(spec)
end
end
collin@collin-tablet:/usr/lib/ruby/gems/1.8/gems/collin-fold-0.0.5$ ls -l
total 8
drwxr-xr-x 3 root root 31 2008-07-21 16:04 lib
-rwS-w--wx 1 root root 1629 2008-07-21 16:04 Rakefile.rb
-r-Sr--r-- 1 root root 605 2008-07-21 16:04 README
drwxr-xr-x 4 root root 77 2008-07-21 16:04 rspec
collin@collin-tablet:/usr/lib/ruby/gems/1.8/gems/collin-fold-0.0.5$ wtf?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment