[DRE-commits] [SCM] ruby-bluefeather.git branch, master, updated. upstream/0.40-2-ga5d58d4

Youhei SASAKI uwabami at gfd-dennou.org
Tue Oct 9 12:07:03 UTC 2012


The following commit has been merged in the master branch:
commit a5d58d4152c1539dc5e6ae3c200d7114fef2ee65
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Tue Oct 9 21:06:20 2012 +0900

    Fix test during build
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>

diff --git a/debian/control b/debian/control
index 7d4d7ab..9437b40 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Package: ruby-bluefeather
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-Description: Extend Markdown Converter
- BlueFeather is software for converting text written by extended Markdown to
- html. It is pair of command-line tool and pure Ruby library.
+Description: Extend Markdown Converter written in
+ BlueFeather is software for converting text written by extended
+ Markdown like PHP Markdown Extra to html. It is pair of command-line
+ tool and pure Ruby library.
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..8c71700
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,41 @@
+require 'gem2deb/rake/testtask'
+require 'rspec/core/rake_task'
+require 'fileutils'
+# task 'default' => [:spec, 'original-test']
+task 'default' => :spec
+
+Rake::TestTask.new('original-test') do |tasklib|
+  tasklib.test_files = FileList['original-tests/*.tests.rb']
+end
+
+
+task_cls = RSpec::Core::RakeTask
+rspec_opts_setting_proc = proc do |task|
+  task.rspec_opts = ['-fs']
+end
+# Proc for initializing each spec-tasks by common parameters
+setting = proc do |st|
+  st.ruby_opts = %w(-Ku)
+end
+desc "Verify all spec files."
+task_cls.new do |st|
+  setting.call(st)
+  st.pattern = 'spec/*.rb'
+end
+
+desc "Verify all spec files with specdocs."
+task_cls.new(:specd) do |st|
+  setting.call(st)
+  rspec_opts_setting_proc.call(st)
+  st.pattern = 'spec/*.rb'
+end
+
+namespace :spec do
+  Dir.glob('spec/*.rb') do |path|
+    desc "Verify '#{path}'"
+    task_cls.new(File.basename(path, '.rb')) do |st|
+      setting.call(st)
+      st.pattern = path
+    end
+  end
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 89009bc..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'rbconfig'
-ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-exec("#{ruby} -Ku /usr/bin/rake spec")
-#exec("#{ruby} -Ku /usr/bin/rake tests-all")

-- 
ruby-bluefeather.git



More information about the Pkg-ruby-extras-commits mailing list