introduced app structure, made gem, empty specs
[script_gem.git] / Rakefile
blob2e996d68cc5144a97f208c177acc8cfe04e973fd
1 require 'rubygems'
2 require 'rake/gempackagetask'
4 GEM = 'script_gem'
5 GEM_VERSION = '0.1.0'
6 AUTHOR = 'Naitik Shah'
7 EMAIL = 'naitik.shah@yahoo.com'
8 HOMEPAGE = 'http://github.com/nshah/script_gem'
9 SUMMARY = 'A way to vendor rubygems for Rails applications'
11 spec = Gem::Specification.new do |s|
12   s.name         = GEM
13   s.version      = GEM_VERSION
14   s.platform     = Gem::Platform::RUBY
15   s.has_rdoc     = true
16   s.summary      = SUMMARY
17   s.description  = s.summary
18   s.author       = AUTHOR
19   s.email        = EMAIL
20   s.homepage     = HOMEPAGE
22   s.bindir       = 'bin'
23   s.executables  = 'script_gem'
24   s.require_path = 'lib'
25   s.files        = %w(LICENSE README.html Rakefile TODO) + Dir.glob('{bin,lib,specs}/**/*')
26   s.extra_rdoc_files = ['README.html', 'LICENSE', 'TODO']
27 end
29 Rake::GemPackageTask.new(spec) do |pkg|
30   pkg.gem_spec = spec
31 end
33 desc "Install the gem file #{GEM}-#{GEM_VERSION}.gem"
34 task :install => [:package] do
35   sh %{gem install pkg/#{GEM}-#{GEM_VERSION}}
36 end