dynamic_fieldsets 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/app/helpers/dynamic_fieldsets_helper.rb +1 -1
- data/dynamic_fieldsets.gemspec +11 -11
- data/spec/dynamic_fieldsets_helper_spec.rb +6 -6
- metadata +3 -3
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.14
|
@@ -28,7 +28,7 @@ module DynamicFieldsetsHelper
|
|
28
28
|
field = fieldset_child.child
|
29
29
|
lines = []
|
30
30
|
lines.push "<div class='dynamic_fieldsets field'>"
|
31
|
-
lines.push "<span class='label'>#{field.label}</
|
31
|
+
lines.push "<span class='label'>#{field.label}</span>"
|
32
32
|
lines.push "<span class='value'>"
|
33
33
|
if values
|
34
34
|
if field.field_type == "multiple_select" || field.field_type == "checkbox"
|
data/dynamic_fieldsets.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.0.
|
7
|
+
s.name = "dynamic_fieldsets"
|
8
|
+
s.version = "0.0.14"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Jeremiah Hemphill", "Ethan Pemble", "John Carter"]
|
12
|
+
s.date = "2012-01-30"
|
13
|
+
s.description = "Dynamic fieldsets for rails controllers"
|
14
|
+
s.email = "jeremiah@cloudspace.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
17
17
|
]
|
@@ -167,11 +167,11 @@ Gem::Specification.new do |s|
|
|
167
167
|
"spec/support/fieldset_child_helper.rb",
|
168
168
|
"spec/support/fieldset_helper.rb"
|
169
169
|
]
|
170
|
-
s.homepage =
|
171
|
-
s.licenses = [
|
172
|
-
s.require_paths = [
|
173
|
-
s.rubygems_version =
|
174
|
-
s.summary =
|
170
|
+
s.homepage = "http://github.com/jeremiahishere/dynamic_fieldsets"
|
171
|
+
s.licenses = ["MIT"]
|
172
|
+
s.require_paths = ["lib"]
|
173
|
+
s.rubygems_version = "1.8.15"
|
174
|
+
s.summary = "Dynamic fieldsets for rails controllers"
|
175
175
|
|
176
176
|
if s.respond_to? :specification_version then
|
177
177
|
s.specification_version = 3
|
@@ -355,16 +355,16 @@ describe DynamicFieldsetsHelper do
|
|
355
355
|
result.should be_a_kind_of Array
|
356
356
|
end
|
357
357
|
|
358
|
-
it "should include the class
|
359
|
-
field_show_renderer(@fsa, @fieldset_child, @values).join.should match /
|
358
|
+
it "should include the class field" do
|
359
|
+
field_show_renderer(@fsa, @fieldset_child, @values).join.should match /field/
|
360
360
|
end
|
361
361
|
|
362
|
-
it "should include the class
|
363
|
-
field_show_renderer(@fsa, @fieldset_child, @values).join.should match /
|
362
|
+
it "should include the class label" do
|
363
|
+
field_show_renderer(@fsa, @fieldset_child, @values).join.should match /label/
|
364
364
|
end
|
365
365
|
|
366
|
-
it "should include the class
|
367
|
-
field_show_renderer(@fsa, @fieldset_child, @values).join.should match /
|
366
|
+
it "should include the class value" do
|
367
|
+
field_show_renderer(@fsa, @fieldset_child, @values).join.should match /value/
|
368
368
|
end
|
369
369
|
|
370
370
|
it "should return 'No answer given' if the field has no answer for the current fieldset associator" do
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dynamic_fieldsets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.14
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jeremiah Hemphill
|
@@ -351,7 +351,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
351
351
|
requirements:
|
352
352
|
- - ">="
|
353
353
|
- !ruby/object:Gem::Version
|
354
|
-
hash:
|
354
|
+
hash: 168862572230651736
|
355
355
|
segments:
|
356
356
|
- 0
|
357
357
|
version: "0"
|
@@ -364,7 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
364
364
|
requirements: []
|
365
365
|
|
366
366
|
rubyforge_project:
|
367
|
-
rubygems_version: 1.8.
|
367
|
+
rubygems_version: 1.8.15
|
368
368
|
signing_key:
|
369
369
|
specification_version: 3
|
370
370
|
summary: Dynamic fieldsets for rails controllers
|