actionview-encoded_mail_to 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 895b6d9a2de55ebfa5c7e7bfab7aeced22515182
|
|
4
|
+
data.tar.gz: f3f6b8d6aa7782edee26a6a8b95236990b65c5ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92306721ad1c635bfabea24f8bf74c52252220b70c92966b51a77e7e4df101c9ae586e14f1ebe536db3912fe95fa132f777c6846a14086c5bce3466f237e0e6c
|
|
7
|
+
data.tar.gz: 31903eb995c19c454a2d7295ea35672052f9339ce009dd81c06369bf202bc4d5cee8a89f13aa20beaaabce523a143cd97c498e86099551a70e6c45813e248640
|
|
@@ -75,8 +75,8 @@ module ActionView
|
|
|
75
75
|
when "javascript"
|
|
76
76
|
string = ''
|
|
77
77
|
set_attributes = ''
|
|
78
|
-
html_options.merge("href" => "mailto:#{email_address}#{extras}".html_safe).each_pair do |
|
|
79
|
-
set_attributes += "a.setAttribute('#{
|
|
78
|
+
html_options.merge("href" => "mailto:#{email_address}#{extras}".html_safe).each_pair do |option_name,value|
|
|
79
|
+
set_attributes += "a.setAttribute('#{option_name}', '#{value}');"
|
|
80
80
|
end
|
|
81
81
|
script_id = rand(36**8).to_s(36)
|
|
82
82
|
if block_given?
|
|
@@ -114,5 +114,3 @@ module ActionView
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
end
|
|
117
|
-
|
|
118
|
-
ActionView::Helpers::UrlHelper.send :prepend, ActionView::EncodedMailTo::MailToWithEncoding
|
|
@@ -2,10 +2,11 @@ require "action_view/encoded_mail_to/version"
|
|
|
2
2
|
|
|
3
3
|
module ActionView
|
|
4
4
|
module EncodedMailTo
|
|
5
|
-
class
|
|
5
|
+
class Engine < ::Rails::Engine
|
|
6
6
|
initializer 'actionview-encoded_mail_to' do |app|
|
|
7
7
|
ActiveSupport.on_load(:action_view) do
|
|
8
8
|
require 'action_view/encoded_mail_to/mail_to_with_encoding'
|
|
9
|
+
ActionView::RoutingUrlFor.send :prepend, ActionView::EncodedMailTo::MailToWithEncoding
|
|
9
10
|
end
|
|
10
11
|
end
|
|
11
12
|
end
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
require 'minitest/autorun'
|
|
4
4
|
require 'rails'
|
|
5
5
|
require 'action_pack'
|
|
6
|
-
require 'action_view
|
|
7
|
-
require 'action_view/helpers/output_safety_helper'
|
|
8
|
-
require 'action_view/helpers/url_helper'
|
|
6
|
+
require 'action_view'
|
|
9
7
|
require 'action_view/encoded_mail_to/mail_to_with_encoding'
|
|
10
|
-
|
|
8
|
+
ActionView::Helpers::UrlHelper.module_eval do
|
|
9
|
+
prepend ActionView::EncodedMailTo::MailToWithEncoding
|
|
10
|
+
end
|
|
11
11
|
|
|
12
12
|
class TestActionViewEncodedMailTo < MiniTest::Unit::TestCase
|
|
13
13
|
include ActionView::Helpers::UrlHelper
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionview-encoded_mail_to
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Reed
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
requirements: []
|
|
77
77
|
rubyforge_project:
|
|
78
|
-
rubygems_version: 2.
|
|
78
|
+
rubygems_version: 2.5.1
|
|
79
79
|
signing_key:
|
|
80
80
|
specification_version: 4
|
|
81
81
|
summary: Deprecated support for email address obfuscation within the mail_to helper
|