radiant-forms-extension 3.2.6 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/VERSION +1 -1
- data/lib/forms/tags/core.rb +4 -0
- data/radiant-forms-extension.gemspec +58 -56
- data/spec/lib/forms/tags/core_spec.rb +16 -0
- metadata +7 -6
data/.gitignore
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.7
|
data/lib/forms/tags/core.rb
CHANGED
@@ -1,81 +1,83 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-forms-extension}
|
8
|
-
s.version = "3.2.
|
8
|
+
s.version = "3.2.7"
|
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
|
+
s.date = %q{2010-12-02}
|
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 = [
|
16
16
|
"README.md"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
19
|
+
".gitignore",
|
20
|
+
"README.md",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"app/controllers/admin/forms_controller.rb",
|
24
|
+
"app/controllers/forms_controller.rb",
|
25
|
+
"app/models/form.rb",
|
26
|
+
"app/models/form_mail.rb",
|
27
|
+
"app/models/form_mailer.rb",
|
28
|
+
"app/models/form_page.rb",
|
29
|
+
"app/models/response.rb",
|
30
|
+
"app/views/admin/forms/_fields.html.haml",
|
31
|
+
"app/views/admin/forms/_filters.html.haml",
|
32
|
+
"app/views/admin/forms/_form.html.haml",
|
33
|
+
"app/views/admin/forms/_header.html.haml",
|
34
|
+
"app/views/admin/forms/edit.html.haml",
|
35
|
+
"app/views/admin/forms/index.html.haml",
|
36
|
+
"app/views/admin/forms/new.html.haml",
|
37
|
+
"app/views/admin/forms/remove.html.haml",
|
38
|
+
"config/locales/en.yml",
|
39
|
+
"config/routes.rb",
|
40
|
+
"cucumber.yml",
|
41
|
+
"db/migrate/001_create_forms.rb",
|
42
|
+
"db/migrate/002_create_user_observer.rb",
|
43
|
+
"db/migrate/003_rename_output_to_content.rb",
|
44
|
+
"db/migrate/004_create_responses.rb",
|
45
|
+
"db/migrate/20100929150423_change_to_updated_by_id.rb",
|
46
|
+
"db/migrate/20101012230144_add_another_content_field.rb",
|
47
|
+
"forms_extension.rb",
|
48
|
+
"lib/forms/config.rb",
|
49
|
+
"lib/forms/controllers/application_controller.rb",
|
50
|
+
"lib/forms/controllers/site_controller.rb",
|
51
|
+
"lib/forms/interface/forms.rb",
|
52
|
+
"lib/forms/models/extension.rb",
|
53
|
+
"lib/forms/models/page.rb",
|
54
|
+
"lib/forms/tags/core.rb",
|
55
|
+
"lib/forms/tags/helpers.rb",
|
56
|
+
"lib/forms/tags/responses.rb",
|
57
|
+
"lib/radiant-forms-extension.rb",
|
58
|
+
"lib/tasks/forms_extension_tasks.rake",
|
59
|
+
"public/images/admin/extensions/form/form.png",
|
60
|
+
"radiant-forms-extension.gemspec",
|
61
|
+
"spec/controllers/forms_controller_spec.rb",
|
62
|
+
"spec/datasets/forms.rb",
|
63
|
+
"spec/lib/forms/tags/core_spec.rb",
|
64
|
+
"spec/models/form_spec.rb",
|
65
|
+
"spec/models/response_spec.rb",
|
66
|
+
"spec/spec.opts",
|
67
|
+
"spec/spec_helper.rb"
|
67
68
|
]
|
68
69
|
s.homepage = %q{http://github.com/squaretalent/radiant-forms-extension}
|
70
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
69
71
|
s.require_paths = ["lib"]
|
70
72
|
s.rubygems_version = %q{1.3.7}
|
71
73
|
s.summary = %q{Forms Extension for Radiant CMS}
|
72
74
|
s.test_files = [
|
73
75
|
"spec/controllers/forms_controller_spec.rb",
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
"spec/datasets/forms.rb",
|
77
|
+
"spec/lib/forms/tags/core_spec.rb",
|
78
|
+
"spec/models/form_spec.rb",
|
79
|
+
"spec/models/response_spec.rb",
|
80
|
+
"spec/spec_helper.rb"
|
79
81
|
]
|
80
82
|
|
81
83
|
if s.respond_to? :specification_version then
|
@@ -25,6 +25,7 @@ describe Forms::Tags::Core do
|
|
25
25
|
'form:read',
|
26
26
|
'form:read:each',
|
27
27
|
|
28
|
+
'param',
|
28
29
|
'response',
|
29
30
|
'response:if_response',
|
30
31
|
'response:unless_response',
|
@@ -147,6 +148,21 @@ describe Forms::Tags::Core do
|
|
147
148
|
|
148
149
|
end
|
149
150
|
|
151
|
+
context 'param' do
|
152
|
+
|
153
|
+
before :each do
|
154
|
+
@page = pages(:home)
|
155
|
+
stub(@page).params { { 'test' => 'param'} }
|
156
|
+
end
|
157
|
+
|
158
|
+
it 'should return the requested param' do
|
159
|
+
tag = %{<r:param name='test' />}
|
160
|
+
exp = %{param}
|
161
|
+
@page.should render(tag).as(exp)
|
162
|
+
end
|
163
|
+
|
164
|
+
end
|
165
|
+
|
150
166
|
context 'response' do
|
151
167
|
|
152
168
|
context 'conditionals' do
|
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: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 3.2.
|
9
|
+
- 7
|
10
|
+
version: 3.2.7
|
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-
|
18
|
+
date: 2010-12-02 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -28,6 +28,7 @@ extensions: []
|
|
28
28
|
extra_rdoc_files:
|
29
29
|
- README.md
|
30
30
|
files:
|
31
|
+
- .gitignore
|
31
32
|
- README.md
|
32
33
|
- Rakefile
|
33
34
|
- VERSION
|
@@ -81,8 +82,8 @@ homepage: http://github.com/squaretalent/radiant-forms-extension
|
|
81
82
|
licenses: []
|
82
83
|
|
83
84
|
post_install_message:
|
84
|
-
rdoc_options:
|
85
|
-
|
85
|
+
rdoc_options:
|
86
|
+
- --charset=UTF-8
|
86
87
|
require_paths:
|
87
88
|
- lib
|
88
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|