topfunky / merb_static
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
e91962e
Geoffrey Grosenbach (author)
Wed Nov 19 12:11:27 -0800 2008
commit e91962e605c3adeb81b09944877ca67e35bbea0b
tree 94ffb8de8919cb4e96da0571bb77adf3dab1ecc0
parent 8e8f00545fab03cbbae800d0afd03e3e2857c4a2
tree 94ffb8de8919cb4e96da0571bb77adf3dab1ecc0
parent 8e8f00545fab03cbbae800d0afd03e3e2857c4a2
merb_static / Rakefile
| 95e4766c » | Geoffrey Grosenbach | 2008-11-19 | 1 | require 'rubygems' | |
| 2 | require 'rake/gempackagetask' | ||||
| 3 | |||||
| 4 | require 'merb-core' | ||||
| 5 | require 'merb-core/tasks/merb' | ||||
| 6 | |||||
| 7 | GEM_NAME = "merb_static" | ||||
| 8 | GEM_VERSION = "0.0.1" | ||||
| 9 | AUTHOR = "Geoffrey Grosenbach" | ||||
| 10 | EMAIL = "boss@topfunky.com" | ||||
| 11 | HOMEPAGE = "http://topfunky.com/" | ||||
| 12 | SUMMARY = "Merb plugin that builds a static site from a dynamic Merb application, like Webby." | ||||
| 13 | |||||
| 14 | spec = Gem::Specification.new do |s| | ||||
| 15 | s.rubyforge_project = 'merb_static' | ||||
| 16 | s.name = GEM_NAME | ||||
| 17 | s.version = GEM_VERSION | ||||
| 18 | s.platform = Gem::Platform::RUBY | ||||
| 19 | s.has_rdoc = true | ||||
| e91962e6 » | Geoffrey Grosenbach | 2008-11-19 | 20 | s.extra_rdoc_files = ["README", "LICENSE"] | |
| 95e4766c » | Geoffrey Grosenbach | 2008-11-19 | 21 | s.summary = SUMMARY | |
| 22 | s.description = s.summary | ||||
| 23 | s.author = AUTHOR | ||||
| 24 | s.email = EMAIL | ||||
| 25 | s.homepage = HOMEPAGE | ||||
| 26 | s.add_dependency('merb', '>= 1.0') | ||||
| 27 | s.require_path = 'lib' | ||||
| e91962e6 » | Geoffrey Grosenbach | 2008-11-19 | 28 | s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec}/**/*") | |
| 95e4766c » | Geoffrey Grosenbach | 2008-11-19 | 29 | ||
| 30 | end | ||||
| 31 | |||||
| 32 | Rake::GemPackageTask.new(spec) do |pkg| | ||||
| 33 | pkg.gem_spec = spec | ||||
| 34 | end | ||||
| 35 | |||||
| 36 | desc "install the plugin as a gem" | ||||
| 37 | task :install do | ||||
| 38 | Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION) | ||||
| 39 | end | ||||
| 40 | |||||
| 41 | desc "Uninstall the gem" | ||||
| 42 | task :uninstall do | ||||
| 43 | Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION) | ||||
| 44 | end | ||||
| 45 | |||||
| 46 | desc "Create a gemspec file" | ||||
| 47 | task :gemspec do | ||||
| 48 | File.open("#{GEM_NAME}.gemspec", "w") do |file| | ||||
| 49 | file.puts spec.to_ruby | ||||
| 50 | end | ||||
| 51 | end | ||||
