Rakefile in X12-0.0.5 vs Rakefile in X12-0.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 39 2008-11-13 19:43:55Z ikk $ +# $Id: Rakefile 58 2009-03-19 20:31:26Z ikk $ #++ require 'rubygems' require 'rake' require 'rake/clean' require 'rake/testtask' @@ -68,14 +68,24 @@ fail "Command failed (status = #{res.exitstatus})" unless ok end } end +# Run examples in scratch dir +task :scratch do |x| + Dir['scratch/p270.rb'].each {|f| + puts "Running #{f}" + sh(RUBY, '-I', 'lib', f) do |ok, res| + fail "Command failed (status = #{res.exitstatus})" unless ok + end + } +end + task :test do |x| Rake::TestTask.new { |t| t.libs << "test" - t.test_files = Dir['test/ts_*.rb'] + t.test_files = Dir['test/tc_*.rb'] t.verbose = true } end # :test file 'doc/index.html' => ['misc/rdoc_template.rb' ] @@ -124,10 +134,11 @@ "TODO", "CHANGELOG", "COPYING", "doc/**/*", "lib/**/*", - "test/**/*", + "test/tc_factory_997.rb", + "test/tc_parse_997.rb", "example/**/*", "misc/**/*" ].each do |i| s.files += Dir.glob(i).delete_if do |x| x =~ /.*~/