Rakefile in stack-0.0.1 vs Rakefile in stack-0.0.2
- old
+ new
@@ -8,11 +8,13 @@
gem.summary = %Q{Simple static site generator.}
gem.description = %Q{Generates a static site from template files in Liquid, Markdown and Textile.}
gem.email = "dev@sixones.com"
gem.homepage = "http://github.com/sixones/stack"
gem.authors = ["sixones"]
+ gem.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
@@ -41,12 +43,22 @@
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
+ if File.exist?('VERSION.yml')
+ config = YAML.load(File.read('VERSION.yml'))
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
+ else
+ version = ""
+ end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "stack #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+
+desc "provide a console like merb -i or script/console"
+task :console do
+ exec "irb -r irb/completion -r lib/stack.rb"
+end
\ No newline at end of file