1 |
commit: c27764993f63431214fe491be0c109f20710e32f |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Fri Apr 20 12:44:53 2012 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 20 12:44:53 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=c2776499 |
7 |
|
8 |
Revision bump to add Rails 3 support. |
9 |
|
10 |
(Portage version: 2.1.10.49/git/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!) |
11 |
|
12 |
--- |
13 |
dev-ruby/responds_to_parent/ChangeLog | 9 ++++- |
14 |
dev-ruby/responds_to_parent/Manifest | 10 +--- |
15 |
.../responds_to_parent-1.0.20091013-rails3.patch | 45 ++++++++++++++++++++ |
16 |
.../responds_to_parent-1.0.20091013-r3.ebuild | 30 +++++++++++++ |
17 |
4 files changed, 86 insertions(+), 8 deletions(-) |
18 |
|
19 |
diff --git a/dev-ruby/responds_to_parent/ChangeLog b/dev-ruby/responds_to_parent/ChangeLog |
20 |
index 203fec1..d2d2b19 100644 |
21 |
--- a/dev-ruby/responds_to_parent/ChangeLog |
22 |
+++ b/dev-ruby/responds_to_parent/ChangeLog |
23 |
@@ -1,7 +1,14 @@ |
24 |
# ChangeLog for dev-ruby/responds_to_parent |
25 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*responds_to_parent-1.0.20091013-r3 (20 Apr 2012) |
30 |
+ |
31 |
+ 20 Apr 2012; Hans de Graaff <graaff@g.o> |
32 |
+ +responds_to_parent-1.0.20091013-r3.ebuild, |
33 |
+ +files/responds_to_parent-1.0.20091013-rails3.patch: |
34 |
+ Revision bump to add Rails 3 support. |
35 |
+ |
36 |
*responds_to_parent-1.0.20091013-r2 (05 Aug 2011) |
37 |
|
38 |
05 Aug 2011; Hans de Graaff <graaff@g.o> |
39 |
|
40 |
diff --git a/dev-ruby/responds_to_parent/Manifest b/dev-ruby/responds_to_parent/Manifest |
41 |
index 30ef1fd..fe68269 100644 |
42 |
--- a/dev-ruby/responds_to_parent/Manifest |
43 |
+++ b/dev-ruby/responds_to_parent/Manifest |
44 |
@@ -2,14 +2,10 @@ |
45 |
Hash: SHA256 |
46 |
|
47 |
DIST responds_to_parent-1.0.20091013.gem 7680 RMD160 91d034a8836acd3161b3a0d0eb3d0cb7bc42e0d1 SHA1 63115eaaee6a7dbd31ae76d22162009f917f2bfc SHA256 5b2158d0d205a1607bb8b9615c3d86bea455f145fd2900e19c8300fe9b7374eb |
48 |
-EBUILD responds_to_parent-1.0.20091013-r1.ebuild 589 RMD160 618ff64c7f63a83fae4603514e1dc0d9cbfa175c SHA1 5f6c7d9cb17fd4b315ec209854ca0412fc0e6509 SHA256 9725c4db7becdf99d6f31ad918ba3147ddd9439770e92f3434bbc208919fee71 |
49 |
-EBUILD responds_to_parent-1.0.20091013-r2.ebuild 802 RMD160 1a2f8683a9d4e69da7af2216ef76baaef6e28489 SHA1 c007404b32d2abbfc7a427d416463af3067d6454 SHA256 20c9781d5d9c80e132c6f32601c02982c6445909040dd71e327b53890b7d674d |
50 |
-MISC ChangeLog 994 RMD160 af7b45b463ac906c16b1eee6ee03af08bfe85a30 SHA1 44c71e1da98ddbeebdd797933388c4bed340e7fa SHA256 978cdc34fa2de8523ce531a006c2d7d3d0f0f34be73ae71626b9ae7f9584441f |
51 |
-MISC metadata.xml 201 RMD160 bbf7920d9809941fb024d20016dbe2fb9f15ff97 SHA1 e629d21795e99a77bd0a6aded1a153fd12d5b2c5 SHA256 c90b12c6600840878686d4544dbc51d97b0715add76b40d9400415cdef6324ad |
52 |
-----BEGIN PGP SIGNATURE----- |
53 |
Version: GnuPG v2.0.17 (GNU/Linux) |
54 |
|
55 |
-iF4EAREIAAYFAk47qE4ACgkQiIP6VqMIqNfgeAEAi9z0+5XhTD2/ysfrP47Mj9k3 |
56 |
-J//0NsfdodH+aMMbzu4BAIvjHbf1K5P7oNNr7VrnAY5urYrW86svXjmPT3LnEJ64 |
57 |
-=uK55 |
58 |
+iF0EAREIAAYFAk+RWkUACgkQiIP6VqMIqNe9egD2I3vorY+jnxx1+YtFNG22vk0q |
59 |
+cfxdWq7QGQDUShXRlgD+LGusr1Sr70RVQsxA+PXZKFTC5kWoqFjxwISd6/CzVp0= |
60 |
+=MWAb |
61 |
-----END PGP SIGNATURE----- |
62 |
|
63 |
diff --git a/dev-ruby/responds_to_parent/files/responds_to_parent-1.0.20091013-rails3.patch b/dev-ruby/responds_to_parent/files/responds_to_parent-1.0.20091013-rails3.patch |
64 |
new file mode 100644 |
65 |
index 0000000..e55f6b4 |
66 |
--- /dev/null |
67 |
+++ b/dev-ruby/responds_to_parent/files/responds_to_parent-1.0.20091013-rails3.patch |
68 |
@@ -0,0 +1,45 @@ |
69 |
+Hack the commit below to include substitute code for erase_results. |
70 |
+ |
71 |
+commit a2f18cb466a9c64b6c9c7234f8bd28be7970e45f |
72 |
+Author: Jason Rust <jason@××××××××××.com> |
73 |
+Date: Thu Mar 1 10:50:07 2012 -0800 |
74 |
+ |
75 |
+ Make rails 3 compatible |
76 |
+ |
77 |
+diff --git a/lib/responds_to_parent/action_controller.rb b/lib/responds_to_parent/action_controller.rb |
78 |
+index b2a4495..25b7ea6 100644 |
79 |
+--- a/lib/responds_to_parent/action_controller.rb |
80 |
++++ b/lib/responds_to_parent/action_controller.rb |
81 |
+@@ -9,18 +9,21 @@ module RespondsToParent |
82 |
+ |
83 |
+ if performed? |
84 |
+ # Either pull out a redirect or the request body |
85 |
+- script = if location = erase_redirect_results |
86 |
++ script = if response.headers['Location'] |
87 |
++ #TODO: erase_redirect_results is missing in rails 3.0 |
88 |
+ "document.location.href = '#{self.class.helpers.escape_javascript location.to_s}'" |
89 |
+ else |
90 |
+ response.body || '' |
91 |
+ end |
92 |
+ |
93 |
+- # Clear out the previous render to prevent double render |
94 |
+- erase_results |
95 |
++ @_response_body = nil |
96 |
++ self.response.body = nil |
97 |
+- |
98 |
+ # We're returning HTML instead of JS or XML now |
99 |
+ response.headers['Content-Type'] = 'text/html; charset=UTF-8' |
100 |
+ |
101 |
++ # Clear out the previous render to prevent double render |
102 |
++ response.request.env['action_controller.instance'].instance_variable_set(:@_response_body, nil) |
103 |
++ |
104 |
+ # Eval in parent scope and replace document location of this frame |
105 |
+ # so back button doesn't replay action on targeted forms |
106 |
+ # loc = document.location to be set after parent is updated for IE |
107 |
+@@ -35,4 +36,4 @@ module RespondsToParent |
108 |
+ end |
109 |
+ alias respond_to_parent responds_to_parent |
110 |
+ end |
111 |
+-end |
112 |
+\ No newline at end of file |
113 |
++end |
114 |
|
115 |
diff --git a/dev-ruby/responds_to_parent/responds_to_parent-1.0.20091013-r3.ebuild b/dev-ruby/responds_to_parent/responds_to_parent-1.0.20091013-r3.ebuild |
116 |
new file mode 100644 |
117 |
index 0000000..e1d2dbc |
118 |
--- /dev/null |
119 |
+++ b/dev-ruby/responds_to_parent/responds_to_parent-1.0.20091013-r3.ebuild |
120 |
@@ -0,0 +1,30 @@ |
121 |
+# Copyright 1999-2012 Gentoo Foundation |
122 |
+# Distributed under the terms of the GNU General Public License v2 |
123 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/zentest/zentest-3.3.0.ebuild,v 1.1 2006/08/28 14:34:06 pclouds Exp $ |
124 |
+ |
125 |
+EAPI=4 |
126 |
+USE_RUBY="ruby18 ruby19" |
127 |
+ |
128 |
+RUBY_FAKEGEM_EXTRADOC="README" |
129 |
+ |
130 |
+inherit ruby-fakegem |
131 |
+ |
132 |
+DESCRIPTION="Adds responds_to_parent to your controller to respond to the parent document of your page." |
133 |
+HOMEPAGE="http://github.com/markcatley/responds_to_parent" |
134 |
+LICENSE="MIT" |
135 |
+ |
136 |
+KEYWORDS="~amd64 ~x86 ~x86-macos" |
137 |
+SLOT="0" |
138 |
+IUSE="" |
139 |
+ |
140 |
+# Tests require additional dependencies. |
141 |
+RESTRICT="test" |
142 |
+ |
143 |
+RUBY_PATCHES=( "${P}-rails3.patch" ) |
144 |
+ |
145 |
+all_ruby_prepare() { |
146 |
+ # Apply ugly hack to work around the effects of the XSS plugin for |
147 |
+ # Rails 2.3. |
148 |
+# sed -i -e 's/response.body/String.new(response.body)/' lib/responds_to_parent/action_controller.rb || die |
149 |
+echo |
150 |
+} |