Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/actionview/files/
Date: Mon, 31 Oct 2016 12:10:06
Message-Id: 1477915211.0d3b5a3112cde73ea7999ac03947e50805d161f8.monsieurp@gentoo
1 commit: 0d3b5a3112cde73ea7999ac03947e50805d161f8
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 26 16:11:35 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 12:00:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d3b5a31
7
8 dev-ruby/actionview: remove unused patches.
9
10 Closes: https://github.com/gentoo/gentoo/pull/2417
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 .../files/actionview-4.1.13-url-helper.patch | 39 --------------------
15 .../files/actionview-4.2.4-url-helper.patch | 43 ----------------------
16 2 files changed, 82 deletions(-)
17
18 diff --git a/dev-ruby/actionview/files/actionview-4.1.13-url-helper.patch b/dev-ruby/actionview/files/actionview-4.1.13-url-helper.patch
19 deleted file mode 100644
20 index 6059557..00000000
21 --- a/dev-ruby/actionview/files/actionview-4.1.13-url-helper.patch
22 +++ /dev/null
23 @@ -1,39 +0,0 @@
24 -commit e5ba382ccbfe08a1a4681e1b6ac851379eb41c7c
25 -Author: Rafael Mendonça França <rafaelmfranca@×××××.com>
26 -Date: Fri Aug 28 01:36:00 2015 -0300
27 -
28 - Merge pull request #21402 from k0kubun/ruby20-url-helper
29 -
30 - Fix mail_to to work well with Ruby 2.0
31 -
32 -diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
33 -index b130457..97e299d 100644
34 ---- a/actionview/lib/action_view/helpers/url_helper.rb
35 -+++ b/actionview/lib/action_view/helpers/url_helper.rb
36 -@@ -471,7 +471,7 @@ module ActionView
37 - }.compact
38 - extras = extras.empty? ? '' : '?' + ERB::Util.html_escape(extras.join('&'))
39 -
40 -- encoded_email_address = ERB::Util.url_encode(email_address).gsub("%40", "@")
41 -+ encoded_email_address = ERB::Util.url_encode(email_address.to_str).gsub("%40", "@")
42 - html_options["href"] = "mailto:#{encoded_email_address}#{extras}".html_safe
43 -
44 - content_tag(:a, name || email_address, html_options, &block)
45 -diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb
46 -index 10195dd..b044ebd 100644
47 ---- a/actionview/test/template/url_helper_test.rb
48 -+++ b/actionview/test/template/url_helper_test.rb
49 -@@ -505,6 +505,13 @@ class UrlHelperTest < ActiveSupport::TestCase
50 - )
51 - end
52 -
53 -+ def test_mail_to_with_html_safe_string
54 -+ assert_dom_equal(
55 -+ %{<a href="mailto:david@××××××××××××.com">david@××××××××××××.com</a>},
56 -+ mail_to("david@××××××××××××.com".html_safe)
57 -+ )
58 -+ end
59 -+
60 - def test_mail_to_with_img
61 - assert_dom_equal %{<a href="mailto:feedback@×××××××.com"><img src="/feedback.png" /></a>},
62 - mail_to('feedback@×××××××.com', '<img src="/feedback.png" />'.html_safe)
63
64 diff --git a/dev-ruby/actionview/files/actionview-4.2.4-url-helper.patch b/dev-ruby/actionview/files/actionview-4.2.4-url-helper.patch
65 deleted file mode 100644
66 index fb6f28e..00000000
67 --- a/dev-ruby/actionview/files/actionview-4.2.4-url-helper.patch
68 +++ /dev/null
69 @@ -1,43 +0,0 @@
70 -From 253ba56f5639ffb5ebe98d01c3515604c756a96a Mon Sep 17 00:00:00 2001
71 -From: Takashi Kokubun <takashikkbn@×××××.com>
72 -Date: Thu, 27 Aug 2015 21:40:11 +0900
73 -Subject: [PATCH] Fix mail_to to work well with Ruby 2.0
74 -
75 -Ruby 2.0's ERB::Util.url_encode crashes ActiveSupport::SafeBuffer.
76 -Related to 0789e06
77 ----
78 - actionview/lib/action_view/helpers/url_helper.rb | 2 +-
79 - actionview/test/template/url_helper_test.rb | 7 +++++++
80 - 2 files changed, 8 insertions(+), 1 deletion(-)
81 -
82 -diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
83 -index b724b9c..7485fc0 100644
84 ---- a/actionview/lib/action_view/helpers/url_helper.rb
85 -+++ b/actionview/lib/action_view/helpers/url_helper.rb
86 -@@ -463,7 +463,7 @@ def mail_to(email_address, name = nil, html_options = {}, &block)
87 - }.compact
88 - extras = extras.empty? ? '' : '?' + extras.join('&')
89 -
90 -- encoded_email_address = ERB::Util.url_encode(email_address).gsub("%40", "@")
91 -+ encoded_email_address = ERB::Util.url_encode(email_address.to_str).gsub("%40", "@")
92 - html_options["href"] = "mailto:#{encoded_email_address}#{extras}"
93 -
94 - content_tag(:a, name || email_address, html_options, &block)
95 -diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb
96 -index 6ca937a..9e09490 100644
97 ---- a/actionview/test/template/url_helper_test.rb
98 -+++ b/actionview/test/template/url_helper_test.rb
99 -@@ -515,6 +515,13 @@ def test_mail_with_options
100 - )
101 - end
102 -
103 -+ def test_mail_to_with_html_safe_string
104 -+ assert_dom_equal(
105 -+ %{<a href="mailto:david@××××××××××××.com">david@××××××××××××.com</a>},
106 -+ mail_to("david@××××××××××××.com".html_safe)
107 -+ )
108 -+ end
109 -+
110 - def test_mail_to_with_img
111 - assert_dom_equal %{<a href="mailto:feedback@×××××××.com"><img src="/feedback.png" /></a>},
112 - mail_to('feedback@×××××××.com', '<img src="/feedback.png" />'.html_safe)