Updated GEM packaging about renaming libraries to lib

This commit is contained in:
Alexey Verkhovsky 2005-03-25 19:32:28 +00:00
parent dda7c8eec0
commit f58d9a80d5
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
$: << File.dirname(__FILE__) + "../../libraries"
$: << File.dirname(__FILE__) + "../../lib"
require 'redcloth'
require 'rdocsupport'

View file

@ -1,4 +1,4 @@
$__instiki_source_patterns = ['[A-Z]*', 'instiki', 'app/**/*', 'libraries/**/*', 'vendor/**/*']
$__instiki_source_patterns = ['[A-Z]*', 'instiki', 'app/**/*', 'lib/**/*', 'vendor/**/*']
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
@ -29,12 +29,12 @@ spec = Gem::Specification.new do |s|
s.add_dependency('RedCloth', '= 2.0.11')
s.add_dependency('rubyzip', '= 0.5.5')
s.requirements << 'none'
s.require_path = 'libraries'
s.require_path = 'lib'
s.files = $__instiki_source_patterns.inject([]) { |list, glob|
list << Dir[glob].delete_if { |path|
File.directory?(path) or
path.include?('CVS/') or
path.include?('.svn/') or
path.include?('vendor/') or
path.include?('test/') or
path.include?('_test.rb')

View file

@ -115,11 +115,11 @@ CLEAN << 'pkg' << 'storage/2500' << 'doc' << 'html'
begin
require 'rubygems'
require 'rake/gempackagetask'
rescue Exception
rescue Exception => e
nil
end
if defined? GemPackageTask
if defined? Rake::GemPackageTask
gemspec = eval(File.read('instiki.gemspec'))
Rake::GemPackageTask.new(gemspec) do |p|
p.gem_spec = gemspec