actionview-encoded_mail_to 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8b0721d292877e6dda9b740676c558b44e5d5d3
4
- data.tar.gz: 0fd2f8f2bdaff2157629e1adca5aa7d288da79ec
3
+ metadata.gz: 895b6d9a2de55ebfa5c7e7bfab7aeced22515182
4
+ data.tar.gz: f3f6b8d6aa7782edee26a6a8b95236990b65c5ac
5
5
  SHA512:
6
- metadata.gz: bab2ea1803620e87b920b5aa6422d61b9a4a98ede91cebf438702107e806381da015a74d9ffa8068d589b16656c02013098a775d2981ce556f008300ebe0404b
7
- data.tar.gz: c173894318bf4f37b9ea55e0407ed0b61f58b97b0e5f7941b37986befe22b63ae918ff1866d8ba1f22b9bcdb24e649a1c624d82e34ccaf70769bca14fd826663
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 |name,value|
79
- set_attributes += "a.setAttribute('#{name}', '#{value}');"
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
@@ -1,5 +1,5 @@
1
1
  module ActionView
2
2
  module EncodedMailTo
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.9"
4
4
  end
5
5
  end
@@ -2,10 +2,11 @@ require "action_view/encoded_mail_to/version"
2
2
 
3
3
  module ActionView
4
4
  module EncodedMailTo
5
- class Railtie < ::Rails::Railtie
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/helpers/capture_helper'
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
- require 'action_view/buffers'
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.8
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-10-16 00:00:00.000000000 Z
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.2.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