[DRE-commits] [ruby-premailer-rails] 01/01: fix version
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Jun 2 16:34:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-premailer-rails.
commit 294d83bbcd1d3304eb41740ca01cadc28bfb8443
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Jun 2 20:27:19 2016 +0530
fix version
---
debian/changelog | 7 +++++++
debian/patches/fix-version.patch | 13 +++++++++++++
debian/patches/remove-git-gemspec.patch | 8 +++++---
debian/patches/series | 1 +
debian/rules | 8 +++++++-
5 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e33166f..d498866 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-premailer-rails (1.9.2-2) unstable; urgency=medium
+
+ * Team upload
+ * Fix 'premailer/rails/version'
+
+ -- Pirate Praveen <praveen at debian.org> Thu, 02 Jun 2016 20:25:45 +0530
+
ruby-premailer-rails (1.9.2-1) unstable; urgency=medium
* Initial release (Closes: #820929)
diff --git a/debian/patches/fix-version.patch b/debian/patches/fix-version.patch
new file mode 100644
index 0000000..b70c2b1
--- /dev/null
+++ b/debian/patches/fix-version.patch
@@ -0,0 +1,13 @@
+Index: ruby-premailer-rails/lib/premailer/rails/version.rb
+===================================================================
+--- ruby-premailer-rails.orig/lib/premailer/rails/version.rb
++++ ruby-premailer-rails/lib/premailer/rails/version.rb
+@@ -1,7 +1,7 @@
+ class Premailer
+ module Rails
+ VERSION = File.read(
+- File.expand_path('../../../../VERSION', __FILE__)
++ File.dirname(__FILE__) + '/VERSION'
+ ).strip
+ end
+ end
diff --git a/debian/patches/remove-git-gemspec.patch b/debian/patches/remove-git-gemspec.patch
index af740a3..2e25d13 100644
--- a/debian/patches/remove-git-gemspec.patch
+++ b/debian/patches/remove-git-gemspec.patch
@@ -3,9 +3,11 @@ Author: Balasankar C <balasankarc at autistici.org>
Last-Update: 2016-04-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/premailer-rails.gemspec
-+++ b/premailer-rails.gemspec
-@@ -15,9 +15,6 @@
+Index: ruby-premailer-rails/premailer-rails.gemspec
+===================================================================
+--- ruby-premailer-rails.orig/premailer-rails.gemspec
++++ ruby-premailer-rails/premailer-rails.gemspec
+@@ -15,9 +15,6 @@ Gem::Specification.new do |s|
include a CSS file as you do in a normal HTML document and
premailer will inline the included CSS.}
diff --git a/debian/patches/series b/debian/patches/series
index 90a45ba..527ec6c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix-version.patch
remove-git-gemspec.patch
diff --git a/debian/rules b/debian/rules
index 88b1f94..fa507e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,12 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
%:
dh $@ --buildsystem=ruby --with ruby
-override_dh_clean:
+override_dh_auto_install:
+ cp VERSION lib/premailer/rails
+ dh_auto_install
+
+clean:
+ cp -f VERSION lib/premailer/rails
dh_clean
rm -rf coverage
+ rm -rf lib/premailer/rails/VERSION
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-premailer-rails.git
More information about the Pkg-ruby-extras-commits
mailing list