Removed the manifest file + task.

Using a Dir.glob() is much easier when dealing with a bunch of generated files.
This commit is contained in:
Yorick Peterse 2014-05-07 11:11:29 +02:00
parent ee78b2c382
commit 3c621bf22e
4 changed files with 11 additions and 52 deletions

View File

@ -1,31 +0,0 @@
.yardopts
LICENSE
MANIFEST
README.md
doc/DCO.md
doc/changelog.md
doc/css/common.css
ext/c/extconf.rb
ext/c/lexer.c
ext/c/lexer.h
ext/c/lexer.rl
ext/c/liboga.c
ext/c/liboga.h
ext/java/LibogaService.java
ext/java/org/liboga/xml/Lexer.java
ext/java/org/liboga/xml/Lexer.rl
lib/oga.rb
lib/oga/html/parser.rb
lib/oga/version.rb
lib/oga/xml/cdata.rb
lib/oga/xml/comment.rb
lib/oga/xml/doctype.rb
lib/oga/xml/document.rb
lib/oga/xml/element.rb
lib/oga/xml/lexer.rb
lib/oga/xml/node.rb
lib/oga/xml/parser.rb
lib/oga/xml/pull_parser.rb
lib/oga/xml/text.rb
lib/oga/xml/xml_declaration.rb
oga.gemspec

View File

@ -32,18 +32,6 @@ CLEAN.include(
'ext/java/org/liboga/xml/Lexer.java'
)
FILE_LIST = FileList.new(
'checkum/**/*.*',
'doc/**/*.*',
'lib/**/*.rb',
'LICENSE',
'MANIFEST',
'*.gemspec',
'README.md',
'.yardopts',
'ext/**/*.*'
)
Dir['./task/*.rake'].each do |task|
import(task)
end

View File

@ -10,7 +10,17 @@ Gem::Specification.new do |s|
s.description = s.summary
s.license = 'MIT'
s.files = File.read(File.expand_path('../MANIFEST', __FILE__)).split("\n")
s.files = Dir.glob([
'checkum/**/*.*',
'doc/**/*.*',
'lib/**/*.rb',
'ext/**/*.*',
'README.md',
'LICENSE',
'MANIFEST',
'oga.gemspec',
'.yardopts'
])
if RUBY_PLATFORM == 'java'
s.files << 'lib/liboga.jar'

View File

@ -1,8 +0,0 @@
desc 'Generates the MANIFEST file'
task :manifest => [:generate] do
files = FILE_LIST.to_a.sort
handle = File.open(File.expand_path('../../MANIFEST', __FILE__), 'w')
handle.write(files.join("\n"))
handle.close
end