[DRE-commits] [ruby-rails-assets-highlightjs] 01/01: use libjs-highlight.js, run smoke test

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon Dec 28 06:15:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-rails-assets-highlightjs.

commit 142fd343d421353276d68428444ad9bfb7ea7de2
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Mon Dec 28 11:42:06 2015 +0530

    use libjs-highlight.js, run smoke test
---
 debian/changelog                           |  6 ++++++
 debian/control                             |  1 +
 debian/ruby-rails-assets-highlightjs.links |  1 +
 debian/tests/control                       |  2 ++
 debian/tests/control.ex                    | 13 -------------
 debian/tests/smoke-test                    | 20 ++++++++++++++++++++
 6 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d72265e..39e1d81 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-rails-assets-highlightjs (8.8.0-2) unstable; urgency=medium
+
+  * Use libjs-highlight.js (Closes: #793522) 
+
+ -- Pirate Praveen <praveen at debian.org>  Mon, 28 Dec 2015 11:41:46 +0530
+
 ruby-rails-assets-highlightjs (8.8.0-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/control b/debian/control
index 2822171..39e81c3 100644
--- a/debian/control
+++ b/debian/control
@@ -16,6 +16,7 @@ Package: ruby-rails-assets-highlightjs
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ruby | ruby-interpreter,
+         libjs-highlight.js,
          ${misc:Depends},
          ${shlibs:Depends}
 Description: highlightjs for rails applications
diff --git a/debian/ruby-rails-assets-highlightjs.links b/debian/ruby-rails-assets-highlightjs.links
new file mode 100644
index 0000000..bae6b48
--- /dev/null
+++ b/debian/ruby-rails-assets-highlightjs.links
@@ -0,0 +1 @@
+usr/share/javascript/highlight.js/highlight.min.js usr/share/ruby-rails-assets-highlightjs/app/assets/javascripts/highlightjs/highlight.pack.js
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0974d48
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoke-test
+Depends: @, rails, ruby-coffee-script, ruby-sqlite3, ruby-spring
diff --git a/debian/tests/control.ex b/debian/tests/control.ex
deleted file mode 100644
index d604201..0000000
--- a/debian/tests/control.ex
+++ /dev/null
@@ -1,13 +0,0 @@
-# AUTOGENERATED FILE
-#
-# As of autopkgtest 3.5, Ruby packages that use gem2deb are automatically
-# detected, and if debian/tests/control does not exist the contents below will
-# be assumed (with the exception of gem2deb being filtered out from
-# @builddeps@):
-
-Test-Command: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
-Depends: @, @builddeps@, gem2deb-test-runner
-
-# if you would need to change something to the above, to that and rename this
-# file to `control`. Otherwise, you should probably delete this file
-# (recommended).
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100755
index 0000000..2bcfe27
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+
+cd $ADTTMP
+rails new foo
+cd foo
+
+cat >> app/assets/javascripts/application.js <<EOF
+# =require highlightjs
+EOF
+
+cat >> Gemfile <<EOF
+gem "rails-assets-highlightjs"
+EOF
+
+bundle install --local
+bundle exec rake assets:precompile

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rails-assets-highlightjs.git



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