sinatra-cross_origin: enable tests and latest tuning
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 19 Sep 2016 12:17:32 +0000 (14:17 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 19 Sep 2016 12:17:32 +0000 (14:17 +0200)
sinatra-cross_origin/debian/changelog
sinatra-cross_origin/debian/control
sinatra-cross_origin/debian/ruby-tests.rb
sinatra-cross_origin/debian/rules

index e6157fb..3f914ca 100644 (file)
@@ -1,4 +1,4 @@
-ruby-sinatra-cross-origin (0.3.2-1) UNRELEASED; urgency=medium
+ruby-sinatra-cross-origin (0.3.2-1) trusty; urgency=low
 
   * Initial release
 
index 9c495b7..464bd6c 100644 (file)
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
 Uploaders: František Dvořák <valtri@civ.zcu.cz>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.1~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.1~), ruby-rack-test, ruby-sinatra, ruby-rspec
 Standards-Version: 3.9.5
 #Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-sinatra-cross-origin.git
 #Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-sinatra-cross-origin.git;a=summary
index eac5ce6..ce1b32e 100644 (file)
@@ -11,3 +11,8 @@
 # require 'rbconfig'
 # ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
 # exec("#{ruby} -I. test/runtests.rb")
+
+$: << 'lib'
+$: << 'test'
+
+require 'test/test_all.rb'
index 29682dd..5df7f46 100755 (executable)
@@ -1,15 +1,5 @@
 #!/usr/bin/make -f
-export DH_VERBOSE=1
-#
-# Uncomment to ignore all test failures (but the tests will run anyway)
-#export DH_RUBY_IGNORE_TESTS=all
-#
-# Uncomment to ignore some test failures (but the tests will run anyway).
-# Valid values:
-#export DH_RUBY_IGNORE_TESTS=ruby1.9.1 ruby2.0 require-rubygems
-#
-# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
+#export DH_VERBOSE=1
 
 %:
        dh $@ --buildsystem=ruby --with ruby