[DRE-commits] [ruby-bootstrap-sass] 02/06: fix to work with standalone sprockets (i.e. not on Rails apps)
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Aug 9 15:53:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-bootstrap-sass.
commit d841f33cbd4300b775b9cc7de8a4a2fb41d7da31
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Aug 9 12:35:55 2015 -0300
fix to work with standalone sprockets (i.e. not on Rails apps)
---
debian/changelog | 2 ++
debian/patches/assets_path.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 23 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 78f2fcc..d8664e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
ruby-bootstrap-sass (3.3.4.1-2) UNRELEASED; urgency=medium
* add a autopkgtest suite with a functional test
+ * assets_path.patch: fix for bootstrap-sass to work with standalone
+ sprockets (i.e. not on Rails apps).
-- Antonio Terceiro <terceiro at debian.org> Sun, 09 Aug 2015 12:31:01 -0300
diff --git a/debian/patches/assets_path.patch b/debian/patches/assets_path.patch
new file mode 100644
index 0000000..b8960f4
--- /dev/null
+++ b/debian/patches/assets_path.patch
@@ -0,0 +1,20 @@
+Description: Set correct path to assets off Rails
+ This makes bootstrap-sass on Debian work with standalone sprockets and e.g. in
+ Sinatra apps.
+Author: Antonio Terceiro <terceiro at debian.org>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2015-08-09
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/bootstrap-sass.rb
++++ b/lib/bootstrap-sass.rb
+@@ -32,7 +32,7 @@ module Bootstrap
+ end
+
+ def assets_path
+- @assets_path ||= File.join gem_path, 'assets'
++ @assets_path ||= '/usr/share/ruby-bootstrap-sass/assets'
+ end
+
+ # Environment detection helpers
diff --git a/debian/patches/series b/debian/patches/series
index d77d941..b9fbf74 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
engine-root.patch
+assets_path.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-bootstrap-sass.git
More information about the Pkg-ruby-extras-commits
mailing list