Created
July 21, 2008 21:11
-
-
Save collin/243 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "[email protected]" | |
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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