formatted_form 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.0.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "formatted_form"
8
- s.version = "2.0.1"
8
+ s.version = "2.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Neto", "Oleg Khabarov", "The Working Group Inc."]
12
- s.date = "2012-12-07"
12
+ s.date = "2012-12-10"
13
13
  s.description = ""
14
14
  s.email = "jack@twg.ca"
15
15
  s.extra_rdoc_files = [
@@ -95,7 +95,7 @@ protected
95
95
 
96
96
  # Main rendering method
97
97
  def default_field(field_name, method, options = {}, &block)
98
- return yield if options[:builder] == false
98
+ return yield if options.delete(:builder) == false
99
99
  builder_options = builder_options!(options)
100
100
  @template.render(
101
101
  :partial => "formatted_form/#{field_name}",
@@ -112,6 +112,7 @@ class FormBuilderTest < ActionView::TestCase
112
112
  with_text_field :name, :builder => false
113
113
  assert_select "div[class='control-group cg-name']", 0
114
114
  assert_select "label[for='user_name']", 0
115
+ assert_select "input[builder='false']", 0
115
116
  end
116
117
 
117
118
  # -- Radio Button ---------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatted_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-07 00:00:00.000000000 Z
14
+ date: 2012-12-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: -949305071472839061
137
+ hash: 2473177573234554938
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements: