wycats / merb-plugins
- Source
- Commits
- Network (41)
- Issues (0)
- Downloads (12)
- Wiki (2)
- Graphs
-
Tree:
43bdb1f
merb-plugins / merb_stories / Rakefile
| 3b2c7b50 » | benburkert | 2008-02-10 | 1 | require 'rubygems' | |
| 2 | require 'rake/gempackagetask' | ||||
| 3 | |||||
| 43bdb1fe » | benburkert | 2008-03-03 | 4 | PLUGIN = "merb_stories" | |
| 5 | NAME = "merb_stories" | ||||
| b4193b78 » | ivey | 2008-02-29 | 6 | VERSION = "0.9.1" | |
| 3b2c7b50 » | benburkert | 2008-02-10 | 7 | AUTHOR = "Yehuda Katz" | |
| 8 | EMAIL = "ykatz@engineyard.com" | ||||
| 9 | HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-test/" | ||||
| 10 | SUMMARY = "Merb plugin that provides RSpec support" | ||||
| 11 | |||||
| 12 | spec = Gem::Specification.new do |s| | ||||
| 13 | s.name = NAME | ||||
| 14 | s.version = VERSION | ||||
| 15 | s.platform = Gem::Platform::RUBY | ||||
| 16 | s.has_rdoc = true | ||||
| 17 | s.extra_rdoc_files = ["README", "LICENSE", 'TODO'] | ||||
| 18 | s.summary = SUMMARY | ||||
| 19 | s.description = s.summary | ||||
| 20 | s.author = AUTHOR | ||||
| 21 | s.email = EMAIL | ||||
| 22 | s.homepage = HOMEPAGE | ||||
| b4193b78 » | ivey | 2008-02-29 | 23 | s.add_dependency('merb-core', '>= 0.9.1') | |
| 14e41aa5 » | benburkert | 2008-02-28 | 24 | s.add_dependency('rspec', '>= 1.1.3') | |
| 3b2c7b50 » | benburkert | 2008-02-10 | 25 | s.require_path = 'lib' | |
| 26 | s.autorequire = PLUGIN | ||||
| d117d44f » | benburkert | 2008-02-13 | 27 | s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,rspec_generators}/**/*") | |
| 3b2c7b50 » | benburkert | 2008-02-10 | 28 | end | |
| 29 | |||||
| 836fa1bf » | johnny | 2008-02-27 | 30 | windows = (PLATFORM =~ /win32|cygwin/) rescue nil | |
| 31 | |||||
| 32 | SUDO = windows ? "" : "sudo" | ||||
| 33 | |||||
| 3b2c7b50 » | benburkert | 2008-02-10 | 34 | Rake::GemPackageTask.new(spec) do |pkg| | |
| 35 | pkg.gem_spec = spec | ||||
| 36 | end | ||||
| 37 | |||||
| 836fa1bf » | johnny | 2008-02-27 | 38 | desc "Install merb_rspec" | |
| 3b2c7b50 » | benburkert | 2008-02-10 | 39 | task :install => [:package] do | |
| 836fa1bf » | johnny | 2008-02-27 | 40 | sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri} | |
| 3b2c7b50 » | benburkert | 2008-02-10 | 41 | end | |
| 42 | |||||
| 43 | namespace :jruby do | ||||
| 44 | |||||
| 45 | desc "Run :package and install the resulting .gem with jruby" | ||||
| 46 | task :install => :package do | ||||
| 47 | sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri} | ||||
| 48 | end | ||||
| 836fa1bf » | johnny | 2008-02-27 | 49 | ||
| 50 | end | ||||
