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 ADDED
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ */.DS_Store
3
+ pkg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.6
1
+ 3.2.7
@@ -316,6 +316,10 @@ module Forms
316
316
  nil
317
317
  end
318
318
 
319
+ tag 'param' do |tag|
320
+ tag.locals.page.params[tag.attr['name']]
321
+ end
322
+
319
323
  end
320
324
  end
321
325
  end
@@ -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 'rake gemspec'
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.6"
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-11-22}
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
- "README.md",
20
- "Rakefile",
21
- "VERSION",
22
- "app/controllers/admin/forms_controller.rb",
23
- "app/controllers/forms_controller.rb",
24
- "app/models/form.rb",
25
- "app/models/form_mail.rb",
26
- "app/models/form_mailer.rb",
27
- "app/models/form_page.rb",
28
- "app/models/response.rb",
29
- "app/views/admin/forms/_fields.html.haml",
30
- "app/views/admin/forms/_filters.html.haml",
31
- "app/views/admin/forms/_form.html.haml",
32
- "app/views/admin/forms/_header.html.haml",
33
- "app/views/admin/forms/edit.html.haml",
34
- "app/views/admin/forms/index.html.haml",
35
- "app/views/admin/forms/new.html.haml",
36
- "app/views/admin/forms/remove.html.haml",
37
- "config/locales/en.yml",
38
- "config/routes.rb",
39
- "cucumber.yml",
40
- "db/migrate/001_create_forms.rb",
41
- "db/migrate/002_create_user_observer.rb",
42
- "db/migrate/003_rename_output_to_content.rb",
43
- "db/migrate/004_create_responses.rb",
44
- "db/migrate/20100929150423_change_to_updated_by_id.rb",
45
- "db/migrate/20101012230144_add_another_content_field.rb",
46
- "forms_extension.rb",
47
- "lib/forms/config.rb",
48
- "lib/forms/controllers/application_controller.rb",
49
- "lib/forms/controllers/site_controller.rb",
50
- "lib/forms/interface/forms.rb",
51
- "lib/forms/models/extension.rb",
52
- "lib/forms/models/page.rb",
53
- "lib/forms/tags/core.rb",
54
- "lib/forms/tags/helpers.rb",
55
- "lib/forms/tags/responses.rb",
56
- "lib/radiant-forms-extension.rb",
57
- "lib/tasks/forms_extension_tasks.rake",
58
- "public/images/admin/extensions/form/form.png",
59
- "radiant-forms-extension.gemspec",
60
- "spec/controllers/forms_controller_spec.rb",
61
- "spec/datasets/forms.rb",
62
- "spec/lib/forms/tags/core_spec.rb",
63
- "spec/models/form_spec.rb",
64
- "spec/models/response_spec.rb",
65
- "spec/spec.opts",
66
- "spec/spec_helper.rb"
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
- "spec/datasets/forms.rb",
75
- "spec/lib/forms/tags/core_spec.rb",
76
- "spec/models/form_spec.rb",
77
- "spec/models/response_spec.rb",
78
- "spec/spec_helper.rb"
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: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 6
10
- version: 3.2.6
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-11-22 00:00:00 +08:00
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