[DRE-commits] [bundler] 01/01: fix `bundle gem foo`
Antonio Terceiro
terceiro at moszumanska.debian.org
Thu Oct 1 21:46:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository bundler.
commit 6ad88513203127611bec1125704b56f17484ba72
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Oct 1 18:28:47 2015 -0300
fix `bundle gem foo`
---
debian/changelog | 9 +++++++++
debian/install | 1 +
debian/tests/bundle-gem | 24 ++++++++++++++++++++++++
debian/tests/control | 4 ++--
4 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index debec0c..4695c60 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+bundler (1.10.6-2) unstable; urgency=medium
+
+ * fix `bundle gem foo` by installing
+ lib/bundler/templates/newgem/.travis.yml.tt to the correct place. gem2deb
+ don't installs dot-files inside lib/ by default, what is probably
+ sensible.
+
+ -- Antonio Terceiro <terceiro at debian.org> Thu, 01 Oct 2015 18:30:14 -0300
+
bundler (1.10.6-1) unstable; urgency=medium
* Imported Upstream version 1.10.6
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..85a6169
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+lib/bundler/templates/newgem/.travis.yml.tt /usr/lib/ruby/vendor_ruby/bundler/templates/newgem
diff --git a/debian/tests/bundle-gem b/debian/tests/bundle-gem
new file mode 100755
index 0000000..ca9da3f
--- /dev/null
+++ b/debian/tests/bundle-gem
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+if [ -z "$ADTTMP" ]; then
+ ADTTMP=$(mktemp -d)
+ cleanup() {
+ rm -rf "$ADTTMP"
+ }
+ trap cleanup INT TERM EXIT
+fi
+
+cd $ADTTMP
+
+mkdir .bundle
+cat > .bundle/config <<EOF
+---
+BUNDLE_GEM__COC: true
+BUNDLE_GEM__MIT: false
+BUNDLE_GEM__TEST: rspec
+EOF
+
+HOME=$(pwd) bundle gem foobar
diff --git a/debian/tests/control b/debian/tests/control
index 027ed70..9e141da 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
-Tests: testsuite
-Depends: @, build-essential, bash, ruby-dev, libxml2-dev, libz-dev
+Tests: testsuite bundle-gem
+Depends: @, build-essential, bash, ruby-dev, libxml2-dev, libz-dev, git
Restrictions: rw-build-tree allow-stderr
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/bundler.git
More information about the Pkg-ruby-extras-commits
mailing list