Rakefile in dtext_rb-1.0.2 vs Rakefile in dtext_rb-1.0.3
- old
+ new
@@ -21,11 +21,11 @@
gem.email = "r888888888@gmail.com"
gem.authors = ["r888888888"]
end
Jeweler::RubygemsDotOrgTasks.new
-#ENV["G_MESSAGES_DEBUG"] = "all"
+# ENV["G_MESSAGES_DEBUG"] = "all"
Rake::ExtensionTask.new "dtext" do |ext|
ext.lib_dir = "lib/dtext"
end
@@ -46,12 +46,20 @@
task :ragel do
sh "ragel -G2 -C ext/dtext/dtext.rl -o ext/dtext/dtext.c"
end
+task test_forum_posts: %w(ragel compile) do
+ ruby '-Ilib', '-rdtext', '-rdtext_ruby', 'test/test_forum_posts.rb'
+end
+
+task test_wiki_pages: %w(ragel compile) do
+ ruby '-Ilib', '-rdtext', '-rdtext_ruby', 'test/test_wiki_pages.rb'
+end
+
task test_inline_ragel: %w(ragel compile) do
- ruby '-Ilib', '-rdtext', '-e', 'puts DTextRagel.parse("[b]mismatched [u]tags[/b] blah[/u]")'
+ ruby '-Ilib', '-rdtext', '-e', 'puts DTextRagel.parse("hello\r\nworld")'
end
task test_file_ruby: %w(ragel compile) do
ruby '-Ilib', '-rdtext_ruby', '-e', "puts DTextRuby.parse(File.read('test/wiki.txt'))"
end
@@ -59,9 +67,9 @@
task test_file_ragel: %w(ragel compile) do
ruby "-Ilib", '-rdtext', "-e", "puts DTextRagel.parse(File.read('test/wiki.txt'))"
end
task test: %w(ragel compile) do
- ruby "-Ilib", '-rdtext', "test/dtext_test.rb" #, '--name=test_strip'
+ ruby "-Ilib", '-rdtext', "test/dtext_test.rb" #, '--name=test_special'
end
task default: :test