wycats / merb-plugins

Merb Plugins: Even more modules to hook up your Merb installation

This URL has Read+Write access

merb-plugins / merb_stories / Rakefile
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 1 require 'rubygems'
2 require 'rake/gempackagetask'
3
43bdb1fe » benburkert 2008-03-03 Moved merb_rspec to merb_st... 4 PLUGIN = "merb_stories"
5 NAME = "merb_stories"
b4193b78 » ivey 2008-02-29 prep for 0.9.1 release 6 VERSION = "0.9.1"
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 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 prep for 0.9.1 release 23 s.add_dependency('merb-core', '>= 0.9.1')
14e41aa5 » benburkert 2008-02-28 Adding rspec dependency to ... 24 s.add_dependency('rspec', '>= 1.1.3')
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 25 s.require_path = 'lib'
26 s.autorequire = PLUGIN
d117d44f » benburkert 2008-02-13 including hassox's changes ... 27 s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,rspec_generators}/**/*")
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 28 end
29
836fa1bf » johnny 2008-02-27 Rakefile updates 30 windows = (PLATFORM =~ /win32|cygwin/) rescue nil
31
32 SUDO = windows ? "" : "sudo"
33
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 34 Rake::GemPackageTask.new(spec) do |pkg|
35 pkg.gem_spec = spec
36 end
37
836fa1bf » johnny 2008-02-27 Rakefile updates 38 desc "Install merb_rspec"
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 39 task :install => [:package] do
836fa1bf » johnny 2008-02-27 Rakefile updates 40 sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri}
3b2c7b50 » benburkert 2008-02-10 Initial import of merb_rspe... 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 Rakefile updates 49
50 end