action_interceptor 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWQ3OTdmZjQyYjhlM2RkZTMzNmE0Yzc4YWE0YzNmZmY5ZWQ0NTJkMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YmU0MGRhNzNhMzgxOThkY2U5YjljMjliOWNhOTUxMmVmYzJhNzNmYg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ODdlMTlhMDlmNTM2MjRmODdlNTRhYzdhMzQ1NjhhYjA5YWUzMTE0ZjhiNzNj
|
10
|
+
OGFiN2NhNTgzMmQwYzE0ZDU0MGJhZDc5NGUwYjkwNGM0N2U2NWJhODVhODVm
|
11
|
+
ZGE4ODA3NmM3MjVkMjI4MzRmNDJlNmM3OTE2NDQyZjkzMTdiMGI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NzBmMTIwNDc5MjFkMTExYWJhMzg2Nzg2MTEzZDRiYTUwZjllYzk5NzU4N2Qw
|
14
|
+
MDliOThmYmMzYzgwMGNkZGNmZTk2NzBkZTVmYTI3MWVmZmEwMDhlNmUxOGQ5
|
15
|
+
Y2M4ZTk0ZjM2NmQ5OWQyZmQ2Yzk4N2QxYjU1MWJlMWEyMGU2ZmY=
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module ActionInterceptor
|
2
|
+
module Mailer
|
3
|
+
|
4
|
+
def self.included(base)
|
5
|
+
base.helper_method :use_interceptor, :use_interceptor=
|
6
|
+
end
|
7
|
+
|
8
|
+
protected
|
9
|
+
|
10
|
+
def use_interceptor
|
11
|
+
false
|
12
|
+
end
|
13
|
+
|
14
|
+
def use_interceptor=(arg)
|
15
|
+
false
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
ActionMailer::Base.send :include, ActionInterceptor::Mailer
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module ActionInterceptor
|
4
|
+
describe Mailer do
|
5
|
+
|
6
|
+
it 'modifies ActionMailer::Base' do
|
7
|
+
mailer = ActionMailer::Base.send(:new)
|
8
|
+
expect(mailer.respond_to?(:use_interceptor, true)).to eq(true)
|
9
|
+
expect(mailer.respond_to?(:use_interceptor=, true)).to eq(true)
|
10
|
+
|
11
|
+
expect(mailer.send(:use_interceptor)).to eq(false)
|
12
|
+
expect(mailer.send(:use_interceptor=, true)).to eq(false)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_interceptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dante Soares
|
@@ -14,42 +14,42 @@ dependencies:
|
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Action Interceptor provides controllers that require users to perform
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- lib/action_interceptor/controller.rb
|
71
71
|
- lib/action_interceptor/encryptor.rb
|
72
72
|
- lib/action_interceptor/engine.rb
|
73
|
+
- lib/action_interceptor/mailer.rb
|
73
74
|
- lib/action_interceptor/undefined_interceptor.rb
|
74
75
|
- lib/action_interceptor/version.rb
|
75
76
|
- lib/action_interceptor/view.rb
|
@@ -112,6 +113,7 @@ files:
|
|
112
113
|
- spec/dummy/public/favicon.ico
|
113
114
|
- spec/lib/action_interceptor/controller_spec.rb
|
114
115
|
- spec/lib/action_interceptor/encryptor_spec.rb
|
116
|
+
- spec/lib/action_interceptor/mailer_spec.rb
|
115
117
|
- spec/lib/action_interceptor/view_spec.rb
|
116
118
|
- spec/lib/action_interceptor_spec.rb
|
117
119
|
- spec/spec_helper.rb
|
@@ -125,12 +127,12 @@ require_paths:
|
|
125
127
|
- lib
|
126
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
129
|
requirements:
|
128
|
-
- -
|
130
|
+
- - ! '>='
|
129
131
|
- !ruby/object:Gem::Version
|
130
132
|
version: '0'
|
131
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
134
|
requirements:
|
133
|
-
- -
|
135
|
+
- - ! '>='
|
134
136
|
- !ruby/object:Gem::Version
|
135
137
|
version: '0'
|
136
138
|
requirements: []
|
@@ -178,6 +180,7 @@ test_files:
|
|
178
180
|
- spec/dummy/README.md
|
179
181
|
- spec/lib/action_interceptor/controller_spec.rb
|
180
182
|
- spec/lib/action_interceptor/encryptor_spec.rb
|
183
|
+
- spec/lib/action_interceptor/mailer_spec.rb
|
181
184
|
- spec/lib/action_interceptor/view_spec.rb
|
182
185
|
- spec/lib/action_interceptor_spec.rb
|
183
186
|
- spec/spec_helper.rb
|