rakefile in ezcrypto-0.2.1 vs rakefile in ezcrypto-0.3
- old
+ new
@@ -6,11 +6,11 @@
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_NAME = 'ezcrypto'
-PKG_VERSION = '0.2.1' + PKG_BUILD
+PKG_VERSION = '0.3' + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
RELEASE_NAME = "REL #{PKG_VERSION}"
RUBY_FORGE_PROJECT = "ezcrypto"
@@ -29,18 +29,16 @@
# Genereate the RDoc documentation
Rake::RDocTask.new { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "EzCrypto - Simplified Crypto Library"
- rdoc.options << '--line-numbers --inline-source --main README --template=jamis'
+# rdoc.options << '--line-numbers --inline-source --main README #--template=jamis'
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('README_ACTIVE_CRYPTO')
rdoc.rdoc_files.include('CHANGELOG')
- rdoc.rdoc_files.include('lib/ezcrypto.rb')
- rdoc.rdoc_files.include('lib/active_crypto.rb')
-# rdoc.rdoc_files.include('lib/ezcrypto/*.rb')
+ rdoc.rdoc_files.include('lib/*.rb')
}
# Create compressed packages
spec = Gem::Specification.new do |s|
@@ -58,12 +56,12 @@
s.has_rdoc = true
s.requirements << 'none'
s.require_path = 'lib'
- s.files = [ "rakefile", "README", "README_ACTIVE_CRYPTO", "MIT-LICENSE","CHANGELOG" ]
- s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
- s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
+ s.files = [ "rakefile", "README", "README_ACTIVE_CRYPTO", "MIT-LICENSE","CHANGELOG","init.rb" ]
+ s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "CVS" )||item.include?("\.DS_Store")||item.include?("/\._") }
+ s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "CVS" )||item.include?("\.DS_Store")||item.include?("/\._") }
end
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true