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 CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.3.1
@@ -31,64 +31,53 @@ class FormMail
31
31
  end
32
32
 
33
33
  def from
34
- from = nil
35
- unless @config[:field].nil? or !@config[:field][:from].blank?
36
- from = Forms::Tags::Responses.retrieve(@data, @config[:field][:from])
37
- else
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
- to = nil
45
- unless @config[:field].nil? or !@config[:field][:to].blank?
46
- to = Forms::Tags::Responses.retrieve(@data, @config[:field][:to])
47
- else
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
- reply_to = nil
55
- unless @config[:field].nil? or !@config[:field][:reply_to].blank?
56
- reply_to = Forms::Tags::Responses.retrieve(@data, @config[:field][:reply_to])
57
- else
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
- sender = nil
65
- unless @config[:field].nil? or !@config[:field][:sender].blank?
66
- sender = Forms::Tags::Responses.retrieve(@data, @config[:field][:sender])
67
- else
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
- subject = nil
75
- unless @config[:field].nil? or !@config[:field][:subject].blank?
76
- subject = Forms::Tags::Responses.retrieve(@data, @config[:field][:subject])
77
- else
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
- @body = @parser.parse(@form.send(@config[:body]))
77
+ @parser.parse(@form.send(@config[:body]))
88
78
  else
89
- @body = @parser.parse(@form.content)
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.0"
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-14}
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
- - 0
10
- version: 3.3.0
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-14 00:00:00 +08:00
18
+ date: 2010-12-15 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency