summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2022-01-20 13:29:07 +0100
committerHans de Graaff <hans@degraaff.org>2022-01-20 13:29:07 +0100
commitba2a732fc6df64ca7fa384db5ed5a0876a044b47 (patch)
treeb1fdb6e6d16cd72e29a9ba0e9c3b5c0b63857d9f /dev-ruby/xray-rails
parentdev-ruby/ice_cube: add 0.16.4 (diff)
downloadgraaff-ba2a732fc6df64ca7fa384db5ed5a0876a044b47.tar.gz
graaff-ba2a732fc6df64ca7fa384db5ed5a0876a044b47.tar.bz2
graaff-ba2a732fc6df64ca7fa384db5ed5a0876a044b47.zip
dev-ruby/xray-rails: add sprockets 4 patch
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'dev-ruby/xray-rails')
-rw-r--r--dev-ruby/xray-rails/files/xray-rails-0.3.2-sprockets-4.patch24
-rw-r--r--dev-ruby/xray-rails/xray-rails-0.3.2-r2.ebuild29
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/xray-rails/files/xray-rails-0.3.2-sprockets-4.patch b/dev-ruby/xray-rails/files/xray-rails-0.3.2-sprockets-4.patch
new file mode 100644
index 00000000..db3ec933
--- /dev/null
+++ b/dev-ruby/xray-rails/files/xray-rails-0.3.2-sprockets-4.patch
@@ -0,0 +1,24 @@
+From 4f6cca0cd01417d6be6a774314f941d52c660e4d Mon Sep 17 00:00:00 2001
+From: TANIGUCHI Kohei <a.d.xvii.kal.mai@gmail.com>
+Date: Sun, 17 Nov 2019 12:36:11 +0900
+Subject: [PATCH] Adapt to Sprockets 4 (#103)
+
+calling non-existent method 'pathname'
+https://github.com/brentd/xray-rails/issues/88
+---
+ lib/xray/engine.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/xray/engine.rb b/lib/xray/engine.rb
+index ea0ebee..6f9024a 100644
+--- a/lib/xray/engine.rb
++++ b/lib/xray/engine.rb
+@@ -55,7 +55,7 @@ def render(context, empty_hash_wtf)
+ end
+
+ def self.run(filename, source, context)
+- path = context.pathname.to_s
++ path = Pathname.new(context.filename).to_s
+ if path =~ /^#{Rails.root}.+\.(jst)(\.|$)/
+ Xray.augment_template(source, path)
+ else
diff --git a/dev-ruby/xray-rails/xray-rails-0.3.2-r2.ebuild b/dev-ruby/xray-rails/xray-rails-0.3.2-r2.ebuild
new file mode 100644
index 00000000..5239acd4
--- /dev/null
+++ b/dev-ruby/xray-rails/xray-rails-0.3.2-r2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_EXTRAINSTALL="app"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a dev bar and an overlay to visualize your UI's rendered partials"
+HOMEPAGE="https://github.com/brentd/xray-rails"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+# Uses various gemfiles
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}/${P}-sprockets-4.patch" )
+
+ruby_add_rdepend "
+ >=dev-ruby/rails-3.1.0:*
+"