radiant-forms-extension 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/models/form_mail.rb +22 -33
- data/radiant-forms-extension.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.1
|
data/app/models/form_mail.rb
CHANGED
@@ -31,64 +31,53 @@ class FormMail
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def from
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
from = @config[:from]
|
34
|
+
begin
|
35
|
+
Forms::Tags::Responses.retrieve(@data, @config[:field][:from])
|
36
|
+
rescue
|
37
|
+
@config[:from]
|
39
38
|
end
|
40
|
-
from
|
41
39
|
end
|
42
40
|
|
43
41
|
def recipients
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
to = @config[:to]
|
42
|
+
begin
|
43
|
+
Forms::Tags::Responses.retrieve(@data, @config[:field][:to])
|
44
|
+
rescue
|
45
|
+
@config[:to]
|
49
46
|
end
|
50
|
-
to
|
51
47
|
end
|
52
48
|
|
53
49
|
def reply_to
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
reply_to = @config[:reply_to]
|
50
|
+
begin
|
51
|
+
Forms::Tags::Responses.retrieve(@data, @config[:field][:reply_to])
|
52
|
+
rescue
|
53
|
+
@config[:reply_to]
|
59
54
|
end
|
60
|
-
reply_to
|
61
55
|
end
|
62
56
|
|
63
57
|
def sender
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
sender = @config[:sender]
|
58
|
+
begin
|
59
|
+
Forms::Tags::Responses.retrieve(@data, @config[:field][:sender])
|
60
|
+
rescue
|
61
|
+
@config[:sender]
|
69
62
|
end
|
70
|
-
sender
|
71
63
|
end
|
72
64
|
|
73
65
|
def subject
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
subject = @config[:subject]
|
66
|
+
begin
|
67
|
+
Forms::Tags::Responses.retrieve(@data, @config[:field][:subject])
|
68
|
+
rescue
|
69
|
+
@config[:subject]
|
79
70
|
end
|
80
|
-
subject
|
81
71
|
end
|
82
72
|
|
83
73
|
def body
|
84
74
|
# This parses the content of the form
|
85
75
|
@parser = Radius::Parser.new(PageContext.new(@page), :tag_prefix => 'r')
|
86
76
|
if @config[:body]
|
87
|
-
@
|
77
|
+
@parser.parse(@form.send(@config[:body]))
|
88
78
|
else
|
89
|
-
@
|
79
|
+
@parser.parse(@form.content)
|
90
80
|
end
|
91
|
-
@body
|
92
81
|
end
|
93
82
|
|
94
83
|
def cc
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-forms-extension}
|
8
|
-
s.version = "3.3.
|
8
|
+
s.version = "3.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["dirkkelly"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-15}
|
13
13
|
s.description = %q{Send data from a page to a form handler, extendable with addons}
|
14
14
|
s.email = %q{dirk.kelly@squaretalent.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-forms-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 3.3.
|
9
|
+
- 1
|
10
|
+
version: 3.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- dirkkelly
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-15 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|