formtastic 2.0.0.rc2 → 2.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
2.0.0.rc2
|
2
2
|
|
3
|
-
* Fixed
|
3
|
+
* Fixed install instructions in readme to reflect 2.0.0.rc1
|
4
|
+
* Fixed that the checkbox was mistakenly placed after the label text in BooleanInput, not before it as per 1.x (#591)
|
5
|
+
* Fixed that select inputs had two "blank" options at the top in some cases (#590)
|
6
|
+
* Added documentation for Timeish inputs (date, datetime, time) (#589)
|
4
7
|
|
5
8
|
2.0.0.rc1
|
6
9
|
|
data/formtastic.gemspec
CHANGED
@@ -104,7 +104,7 @@ module Formtastic
|
|
104
104
|
check_box_with_hidden_input(choice) :
|
105
105
|
check_box_without_hidden_input(choice) <<
|
106
106
|
choice_label(choice),
|
107
|
-
label_html_options.merge(:for => choice_input_dom_id(choice))
|
107
|
+
label_html_options.merge(:for => choice_input_dom_id(choice), :class => nil)
|
108
108
|
)
|
109
109
|
end
|
110
110
|
|
@@ -142,7 +142,7 @@ module Formtastic
|
|
142
142
|
template.content_tag(:label,
|
143
143
|
builder.radio_button(input_name, choice_value(choice), input_html_options.merge(choice_html_options(choice))) <<
|
144
144
|
choice_label(choice),
|
145
|
-
label_html_options.merge(:for => choice_input_dom_id(choice))
|
145
|
+
label_html_options.merge(:for => choice_input_dom_id(choice), :class => nil)
|
146
146
|
)
|
147
147
|
end
|
148
148
|
|
data/lib/formtastic/version.rb
CHANGED
@@ -56,7 +56,11 @@ describe 'check_boxes input' do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
describe "each choice" do
|
59
|
-
|
59
|
+
|
60
|
+
it 'should not give the choice label the .label class' do
|
61
|
+
output_buffer.should_not have_tag('li.choice label.label')
|
62
|
+
end
|
63
|
+
|
60
64
|
it 'should contain a label for the radio input with a nested input and label text' do
|
61
65
|
::Post.all.each do |post|
|
62
66
|
output_buffer.should have_tag('form li fieldset ol li label', /#{post.to_label}/)
|
@@ -365,8 +369,11 @@ describe 'check_boxes input' do
|
|
365
369
|
concat(builder.input(:posts, :as => :check_boxes))
|
366
370
|
end)
|
367
371
|
end
|
372
|
+
|
373
|
+
it "should have a label for #context2_author_post_ids_19" do
|
374
|
+
output_buffer.should have_tag("form li label[@for='context2_author_post_ids_19']")
|
375
|
+
end
|
368
376
|
|
369
|
-
it_should_have_label_for('context2_author_post_ids_19')
|
370
377
|
it_should_have_input_with_id('context2_author_post_ids_19')
|
371
378
|
it_should_have_input_wrapper_with_id("context2_author_posts_input")
|
372
379
|
end
|
@@ -45,7 +45,11 @@ describe 'radio input' do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
describe "each choice" do
|
48
|
-
|
48
|
+
|
49
|
+
it 'should not give the choice label the .label class' do
|
50
|
+
output_buffer.should_not have_tag('li.choice label.label')
|
51
|
+
end
|
52
|
+
|
49
53
|
it 'should contain a label for the radio input with a nested input and label text' do
|
50
54
|
::Author.all.each do |author|
|
51
55
|
output_buffer.should have_tag('form li fieldset ol li label', /#{author.to_label}/)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 977940588
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.0.0.
|
10
|
+
- rc3
|
11
|
+
version: 2.0.0.rc3
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Justin French
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-06-
|
19
|
+
date: 2011-06-19 00:00:00 +10:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|