Rakefile in X12-0.1.0 vs Rakefile in X12-1.1.0

- old
+ new

@@ -18,11 +18,11 @@ # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # -# $Id: Rakefile 58 2009-03-19 20:31:26Z ikk $ +# $Id: Rakefile 92 2009-05-13 22:12:10Z ikk $ #++ require 'rubygems' require 'rake' require 'rake/clean' require 'rake/testtask' @@ -80,12 +80,14 @@ } end task :test do |x| Rake::TestTask.new { |t| - t.libs << "test" +# t.libs << "test" t.test_files = Dir['test/tc_*.rb'] +# t.test_files = Dir['test/tc_factory_270interchange.rb'] +# t.test_files = Dir['test/tc_parse_270interchange.rb'] t.verbose = true } end # :test file 'doc/index.html' => ['misc/rdoc_template.rb' ] @@ -124,45 +126,33 @@ s.has_rdoc = true s.requirements << 'none' s.require_path = 'lib' s.autorequire = 'x12' - s.add_dependency "treetop" [ "Rakefile", "README", "TODO", "CHANGELOG", "COPYING", "doc/**/*", "lib/**/*", - "test/tc_factory_997.rb", - "test/tc_parse_997.rb", + "test/**/*", "example/**/*", "misc/**/*" ].each do |i| s.files += Dir.glob(i).delete_if do |x| x =~ /.*~/ end end puts "Files included into the GEM:" if $VERBOSE pp s.files if $VERBOSE - s.test_files = Dir.glob( "test/**/ts_*rb" ) + s.test_files = Dir.glob( "test/tc_*rb" ) end Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = true p.need_zip = true -end - -# Compile treetop definition into Ruby code. Like this: -# >rake lib/X12/X12syntax.rb -# It's needed only for debugging Treetop's internals. -rule '.rb' => ['.treetop'] do |t| - require 'treetop' - compiler = Treetop::Compiler::GrammarCompiler.new - puts "Compiling [#{t.source}]" - compiler.compile(t.source) end