formtastic-rails3 0.9.7 → 0.9.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/README.textile +23 -7
  2. data/Rakefile +27 -4
  3. data/generators/formtastic/templates/formtastic.css +9 -7
  4. data/generators/formtastic/templates/formtastic.rb +1 -1
  5. data/generators/formtastic/templates/formtastic_changes.css +4 -0
  6. data/lib/formtastic.rb +190 -142
  7. data/lib/formtastic/i18n.rb +8 -5
  8. data/lib/formtastic/railtie.rb +12 -0
  9. data/lib/formtastic/util.rb +35 -0
  10. data/lib/generators/formtastic/form/form_generator.rb +4 -3
  11. data/lib/generators/formtastic/install/install_generator.rb +2 -1
  12. data/rails/init.rb +5 -0
  13. data/spec/buttons_spec.rb +25 -8
  14. data/spec/commit_button_spec.rb +88 -64
  15. data/spec/custom_builder_spec.rb +1 -1
  16. data/spec/custom_macros.rb +67 -26
  17. data/spec/error_proc_spec.rb +1 -1
  18. data/spec/errors_spec.rb +21 -1
  19. data/spec/form_helper_spec.rb +47 -15
  20. data/spec/i18n_spec.rb +40 -19
  21. data/spec/include_blank_spec.rb +9 -5
  22. data/spec/input_spec.rb +224 -76
  23. data/spec/inputs/boolean_input_spec.rb +22 -11
  24. data/spec/inputs/check_boxes_input_spec.rb +103 -11
  25. data/spec/inputs/country_input_spec.rb +46 -8
  26. data/spec/inputs/date_input_spec.rb +80 -55
  27. data/spec/inputs/datetime_input_spec.rb +134 -83
  28. data/spec/inputs/file_input_spec.rb +4 -3
  29. data/spec/inputs/hidden_input_spec.rb +17 -3
  30. data/spec/inputs/numeric_input_spec.rb +3 -3
  31. data/spec/inputs/password_input_spec.rb +3 -3
  32. data/spec/inputs/radio_input_spec.rb +28 -11
  33. data/spec/inputs/select_input_spec.rb +122 -46
  34. data/spec/inputs/string_input_spec.rb +3 -3
  35. data/spec/inputs/text_input_spec.rb +4 -3
  36. data/spec/inputs/time_input_spec.rb +109 -53
  37. data/spec/inputs/time_zone_input_spec.rb +15 -7
  38. data/spec/inputs_spec.rb +85 -39
  39. data/spec/label_spec.rb +1 -1
  40. data/spec/layout_helper_spec.rb +5 -16
  41. data/spec/semantic_errors_spec.rb +7 -7
  42. data/spec/semantic_fields_for_spec.rb +5 -4
  43. data/spec/spec_helper.rb +102 -36
  44. metadata +11 -14
  45. data/lib/generators/formtastic/form/templates/_form.html.erb +0 -5
  46. data/lib/generators/formtastic/form/templates/_form.html.haml +0 -4
  47. data/lib/generators/formtastic/install/templates/formtastic.css +0 -144
  48. data/lib/generators/formtastic/install/templates/formtastic.rb +0 -58
  49. data/lib/generators/formtastic/install/templates/formtastic_changes.css +0 -10
  50. data/spec/inputs/currency_input_spec.rb +0 -80
@@ -6,7 +6,7 @@ describe 'SemanticFormBuilder#label' do
6
6
  include FormtasticSpecHelper
7
7
 
8
8
  before do
9
- @output_buffer = ActiveSupport::SafeBuffer.new
9
+ @output_buffer = ''
10
10
  mock_everything
11
11
  end
12
12
 
@@ -2,41 +2,30 @@
2
2
  require File.dirname(__FILE__) + '/spec_helper'
3
3
 
4
4
  describe 'LayoutHelper' do
5
-
5
+
6
6
  include FormtasticSpecHelper
7
7
  include Formtastic::LayoutHelper
8
8
 
9
9
  before do
10
- @output_buffer = ActiveSupport::SafeBuffer.new
10
+ @output_buffer = ''
11
11
  end
12
12
 
13
13
  describe '#formtastic_stylesheet_link_tag' do
14
14
 
15
15
  before do
16
- concat(formtastic_stylesheet_link_tag())
16
+ @tags = concat(formtastic_stylesheet_link_tag())
17
17
  end
18
18
 
19
19
  it 'should render a link to formtastic.css' do
20
+ output_buffer.concat(@tags) if Formtastic::Util.rails3?
20
21
  output_buffer.should have_tag("link[@href='/stylesheets/formtastic.css']")
21
22
  end
22
23
 
23
24
  it 'should render a link to formtastic_changes.css' do
25
+ output_buffer.concat(@tags) if Formtastic::Util.rails3?
24
26
  output_buffer.should have_tag("link[@href='/stylesheets/formtastic_changes.css']")
25
27
  end
26
28
 
27
29
  end
28
-
29
- # FIXME: Rspec issue?
30
- def controller
31
- mock('controller')
32
- end
33
-
34
- # FIXME: Rspec issue?
35
- def config
36
- returning mock('config') do |config|
37
- config.stub!(:assets_dir).and_return('')
38
- end
39
- end
40
-
41
30
  end
42
31
 
@@ -6,7 +6,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
6
6
  include FormtasticSpecHelper
7
7
 
8
8
  before do
9
- @output_buffer = ActiveSupport::SafeBuffer.new
9
+ @output_buffer = ''
10
10
  mock_everything
11
11
  @title_errors = ['must not be blank', 'must be awesome']
12
12
  @base_errors = ['base error message', 'nasty error']
@@ -17,7 +17,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
17
17
 
18
18
  describe 'when there is only one error on base' do
19
19
  before do
20
- @errors.stub!(:on_base).and_return(@base_error)
20
+ @errors.stub!(:[]).with(:base).and_return(@base_error)
21
21
  end
22
22
 
23
23
  it 'should render an unordered list' do
@@ -29,7 +29,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
29
29
 
30
30
  describe 'when there is more than one error on base' do
31
31
  before do
32
- @errors.stub!(:on_base).and_return(@base_errors)
32
+ @errors.stub!(:[]).with(:base).and_return(@base_errors)
33
33
  end
34
34
 
35
35
  it 'should render an unordered list' do
@@ -45,7 +45,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
45
45
  describe 'when there are errors on title' do
46
46
  before do
47
47
  @errors.stub!(:[]).with(:title).and_return(@title_errors)
48
- @errors.stub!(:on_base).and_return([])
48
+ @errors.stub!(:[]).with(:base).and_return([])
49
49
  end
50
50
 
51
51
  it 'should render an unordered list' do
@@ -59,7 +59,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
59
59
  describe 'when there are errors on title and base' do
60
60
  before do
61
61
  @errors.stub!(:[]).with(:title).and_return(@title_errors)
62
- @errors.stub!(:on_base).and_return(@base_error)
62
+ @errors.stub!(:[]).with(:base).and_return(@base_error)
63
63
  end
64
64
 
65
65
  it 'should render an unordered list' do
@@ -74,7 +74,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
74
74
  describe 'when there are no errors' do
75
75
  before do
76
76
  @errors.stub!(:[]).with(:title).and_return(nil)
77
- @errors.stub!(:on_base).and_return(nil)
77
+ @errors.stub!(:[]).with(:base).and_return(nil)
78
78
  end
79
79
 
80
80
  it 'should return nil' do
@@ -86,7 +86,7 @@ describe 'SemanticFormBuilder#semantic_errors' do
86
86
 
87
87
  describe 'when there is one error on base and options with class is passed' do
88
88
  before do
89
- @errors.stub!(:on_base).and_return(@base_error)
89
+ @errors.stub!(:[]).with(:base).and_return(@base_error)
90
90
  end
91
91
 
92
92
  it 'should render an unordered list with given class' do
@@ -6,7 +6,7 @@ describe 'SemanticFormBuilder#semantic_fields_for' do
6
6
  include FormtasticSpecHelper
7
7
 
8
8
  before do
9
- @output_buffer = ActiveSupport::SafeBuffer.new
9
+ @output_buffer = ''
10
10
  mock_everything
11
11
  @new_post.stub!(:author).and_return(::Author.new)
12
12
  end
@@ -29,11 +29,12 @@ describe 'SemanticFormBuilder#semantic_fields_for' do
29
29
 
30
30
  it 'should sanitize html id for li tag' do
31
31
  @bob.stub!(:column_for_attribute).and_return(mock('column', :type => :string, :limit => 255))
32
- semantic_form_for(@new_post) do |builder|
33
- builder.semantic_fields_for(@bob, :index => 1) do |nested_builder|
32
+ form = semantic_form_for(@new_post) do |builder|
33
+ concat(builder.semantic_fields_for(@bob, :index => 1) do |nested_builder|
34
34
  concat(nested_builder.inputs(:login))
35
- end
35
+ end)
36
36
  end
37
+ output_buffer.concat(form) if Formtastic::Util.rails3?
37
38
  output_buffer.should have_tag('form fieldset.inputs #post_author_1_login_input')
38
39
  # Not valid selector, so using good ol' regex
39
40
  output_buffer.should_not =~ /id="post\[author\]_1_login_input"/
@@ -1,42 +1,61 @@
1
1
  # coding: utf-8
2
2
  require 'rubygems'
3
3
 
4
- gem 'activesupport', '3.0.0.beta'
5
- gem 'actionpack', '3.0.0.beta'
6
- gem 'activemodel', '3.0.0.beta'
4
+ gem 'activesupport', '>=2.3.8'
5
+ gem 'actionpack', '>=2.3.8'
7
6
  require 'active_support'
8
7
  require 'action_pack'
9
8
  require 'action_view'
10
9
  require 'action_controller'
11
- require 'active_model'
12
10
 
13
- gem 'rspec', '>= 2.0.0.beta.2'
14
- gem 'rspec-rails', '>= 2.0.0.beta.2'
11
+ begin
12
+ gem 'activemodel', '>= 3.0.0.beta'
13
+ require 'active_model'
14
+ rescue Exception
15
+ end
16
+
17
+ gem 'rspec', '>= 1.2.6'
18
+ gem 'rspec-rails', '>= 1.2.6'
15
19
  gem 'hpricot', '>= 0.6.1'
16
20
  gem 'rspec_tag_matchers', '>= 1.0.0'
17
21
  require 'rspec_tag_matchers'
18
22
 
19
23
  require 'custom_macros'
20
24
 
21
- Rspec.configure do |config|
22
- config.include RspecTagMatchers
23
- config.include CustomMacros
24
- config.mock_with :rspec
25
+ begin
26
+ Spec::Runner.configure do |config|
27
+ config.include(RspecTagMatchers)
28
+ config.include(CustomMacros)
29
+ end
30
+ rescue
31
+ require 'rspec/core'
32
+ Rspec.configure do |config|
33
+ config.include RspecTagMatchers
34
+ config.include CustomMacros
35
+ config.mock_with :rspec
36
+ end
25
37
  end
26
38
 
27
39
  require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic'))
40
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic/util'))
28
41
  require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic/layout_helper'))
29
42
 
43
+ module ActionView
44
+ class OutputBuffer < Formtastic::Util.rails_safe_buffer_class
45
+ end
46
+ end
30
47
 
31
48
  module FormtasticSpecHelper
32
- include ActionView::Context
49
+ include ActionPack
50
+ include ActionView::Context if defined?(ActionView::Context)
33
51
  include ActionView::Helpers::FormHelper
34
52
  include ActionView::Helpers::FormTagHelper
35
53
  include ActionView::Helpers::FormOptionsHelper
36
54
  include ActionView::Helpers::UrlHelper
37
55
  include ActionView::Helpers::TagHelper
38
56
  include ActionView::Helpers::TextHelper
39
- include ActionView::Helpers::ActiveModelHelper
57
+ include ActionView::Helpers::ActiveRecordHelper if defined?(ActionView::Helpers::ActiveRecordHelper)
58
+ include ActionView::Helpers::ActiveModelHelper if defined?(ActionView::Helpers::ActiveModelHelper)
40
59
  include ActionView::Helpers::RecordIdentificationHelper
41
60
  include ActionView::Helpers::DateHelper
42
61
  include ActionView::Helpers::CaptureHelper
@@ -46,6 +65,14 @@ module FormtasticSpecHelper
46
65
 
47
66
  include Formtastic::SemanticFormHelper
48
67
 
68
+ def rails3?
69
+ ActionPack::VERSION::MAJOR > 2
70
+ end
71
+
72
+ def rails2?
73
+ ActionPack::VERSION::MAJOR == 2
74
+ end
75
+
49
76
  def default_input_type(column_type, column_name = :generic_column_name)
50
77
  @new_post.stub!(column_name)
51
78
  @new_post.stub!(:column_for_attribute).and_return(mock('column', :type => column_type)) unless column_type.nil?
@@ -57,35 +84,44 @@ module FormtasticSpecHelper
57
84
  return @default_type
58
85
  end
59
86
 
87
+ def active_model_presence_validator(attributes, options = {})
88
+ presence_validator = mock('ActiveModel::Validations::PresenceValidator', :attributes => attributes, :options => options)
89
+ presence_validator.stub!(:kind).and_return(:presence)
90
+ presence_validator
91
+ end
92
+
60
93
  class ::Post
61
- extend ActiveModel::Naming
62
- include ActiveModel::Conversion
63
-
94
+ extend ActiveModel::Naming if defined?(ActiveModel::Naming)
95
+ include ActiveModel::Conversion if defined?(ActiveModel::Conversion)
96
+
64
97
  def id
65
98
  end
99
+
100
+ def persisted?
101
+ end
66
102
  end
67
-
68
103
  module ::Namespaced
69
104
  class Post
70
- extend ActiveModel::Naming
71
- include ActiveModel::Conversion
72
-
105
+ extend ActiveModel::Naming if defined?(ActiveModel::Naming)
106
+ include ActiveModel::Conversion if defined?(ActiveModel::Conversion)
107
+
73
108
  def id
74
109
  end
110
+
111
+ def persisted?
112
+ end
75
113
  end
76
114
  end
77
-
78
115
  class ::Author
79
- extend ActiveModel::Naming
80
- include ActiveModel::Conversion
81
-
116
+ extend ActiveModel::Naming if defined?(ActiveModel::Naming)
117
+ include ActiveModel::Conversion if defined?(ActiveModel::Conversion)
118
+
82
119
  def to_label
83
120
  end
84
121
  end
85
-
86
122
  class ::Continent
87
- extend ActiveModel::Naming
88
- include ActiveModel::Conversion
123
+ extend ActiveModel::Naming if defined?(ActiveModel::Naming)
124
+ include ActiveModel::Conversion if defined?(ActiveModel::Conversion)
89
125
  end
90
126
 
91
127
  def mock_everything
@@ -107,6 +143,8 @@ module FormtasticSpecHelper
107
143
  @fred.stub!(:id).and_return(37)
108
144
  @fred.stub!(:new_record?).and_return(false)
109
145
  @fred.stub!(:errors).and_return(mock('errors', :[] => nil))
146
+ @fred.stub!(:to_key).and_return(nil)
147
+ @fred.stub!(:persisted?).and_return(nil)
110
148
 
111
149
  @bob = mock('user')
112
150
  @bob.stub!(:class).and_return(::Author)
@@ -118,24 +156,29 @@ module FormtasticSpecHelper
118
156
  @bob.stub!(:post_ids).and_return([])
119
157
  @bob.stub!(:new_record?).and_return(false)
120
158
  @bob.stub!(:errors).and_return(mock('errors', :[] => nil))
159
+ @bob.stub!(:to_key).and_return(nil)
160
+ @bob.stub!(:persisted?).and_return(nil)
121
161
 
122
162
  @james = mock('user')
123
- @james.stub!(:class).and_return(::Author)
124
- @james.stub!(:to_label).and_return('James Shock')
125
- @james.stub!(:login).and_return('james')
126
- @james.stub!(:id).and_return(75)
127
- @james.stub!(:posts).and_return([])
128
- @james.stub!(:post_ids).and_return([])
129
- @james.stub!(:new_record?).and_return(false)
130
- @james.stub!(:errors).and_return(mock('errors', :[] => nil))
163
+ @james.stub!(:class).and_return(::Author)
164
+ @james.stub!(:to_label).and_return('James Shock')
165
+ @james.stub!(:login).and_return('james')
166
+ @james.stub!(:id).and_return(75)
167
+ @james.stub!(:posts).and_return([])
168
+ @james.stub!(:post_ids).and_return([])
169
+ @james.stub!(:new_record?).and_return(false)
170
+ @james.stub!(:errors).and_return(mock('errors', :[] => nil))
171
+ @james.stub!(:to_key).and_return(nil)
172
+ @james.stub!(:persisted?).and_return(nil)
131
173
 
132
174
 
133
175
  ::Author.stub!(:find).and_return([@fred, @bob])
134
176
  ::Author.stub!(:human_attribute_name).and_return { |column_name| column_name.humanize }
135
177
  ::Author.stub!(:human_name).and_return('::Author')
136
- ::Author.stub!(:validators_on).and_return([])
137
178
  ::Author.stub!(:reflect_on_association).and_return { |column_name| mock('reflection', :options => {}, :klass => Post, :macro => :has_many) if column_name == :posts }
138
179
  ::Author.stub!(:content_columns).and_return([mock('column', :name => 'login'), mock('column', :name => 'created_at')])
180
+ ::Author.stub!(:to_key).and_return(nil)
181
+ ::Author.stub!(:persisted?).and_return(nil)
139
182
 
140
183
  # Sometimes we need a mock @post object and some Authors for belongs_to
141
184
  @new_post = mock('post')
@@ -144,9 +187,12 @@ module FormtasticSpecHelper
144
187
  @new_post.stub!(:new_record?).and_return(true)
145
188
  @new_post.stub!(:errors).and_return(mock('errors', :[] => nil))
146
189
  @new_post.stub!(:author).and_return(nil)
190
+ @new_post.stub!(:reviewer).and_return(nil)
147
191
  @new_post.stub!(:main_post).and_return(nil)
148
192
  @new_post.stub!(:sub_posts).and_return([]) #TODO should be a mock with methods for adding sub posts
193
+ @new_post.stub!(:to_key).and_return(nil)
149
194
  @new_post.stub!(:to_model).and_return(@new_post)
195
+ @new_post.stub!(:persisted?).and_return(nil)
150
196
 
151
197
  @freds_post = mock('post')
152
198
  @freds_post.stub!(:class).and_return(::Post)
@@ -158,18 +204,26 @@ module FormtasticSpecHelper
158
204
  @freds_post.stub!(:author_ids).and_return([@fred.id])
159
205
  @freds_post.stub!(:new_record?).and_return(false)
160
206
  @freds_post.stub!(:errors).and_return(mock('errors', :[] => nil))
207
+ @freds_post.stub!(:to_key).and_return(nil)
208
+ @freds_post.stub!(:persisted?).and_return(nil)
161
209
  @fred.stub!(:posts).and_return([@freds_post])
162
210
  @fred.stub!(:post_ids).and_return([@freds_post.id])
163
211
 
164
212
  ::Post.stub!(:human_attribute_name).and_return { |column_name| column_name.humanize }
165
213
  ::Post.stub!(:human_name).and_return('Post')
166
- ::Post.stub!(:validators_on).and_return([])
214
+ ::Post.stub!(:reflect_on_all_validations).and_return([])
215
+ ::Post.stub!(:reflect_on_validations_for).and_return([]) if defined?(Rspec)
216
+ ::Post.stub!(:reflections).and_return({})
167
217
  ::Post.stub!(:reflect_on_association).and_return do |column_name|
168
218
  case column_name
169
219
  when :author, :author_status
170
220
  mock = mock('reflection', :options => {}, :klass => ::Author, :macro => :belongs_to)
171
221
  mock.stub!(:[]).with(:class_name).and_return("Author")
172
222
  mock
223
+ when :reviewer
224
+ mock = mock('reflection', :options => {:class_name => 'Author'}, :klass => ::Author, :macro => :belongs_to)
225
+ mock.stub!(:[]).with(:class_name).and_return("Author")
226
+ mock
173
227
  when :authors
174
228
  mock('reflection', :options => {}, :klass => ::Author, :macro => :has_and_belongs_to_many)
175
229
  when :sub_posts
@@ -181,6 +235,8 @@ module FormtasticSpecHelper
181
235
  end
182
236
  ::Post.stub!(:find).and_return([@freds_post])
183
237
  ::Post.stub!(:content_columns).and_return([mock('column', :name => 'title'), mock('column', :name => 'body'), mock('column', :name => 'created_at')])
238
+ ::Post.stub!(:to_key).and_return(nil)
239
+ ::Post.stub!(:persisted?).and_return(nil)
184
240
 
185
241
  @new_post.stub!(:title)
186
242
  @new_post.stub!(:body)
@@ -191,6 +247,9 @@ module FormtasticSpecHelper
191
247
  @new_post.stub!(:time_zone)
192
248
  @new_post.stub!(:category_name)
193
249
  @new_post.stub!(:allow_comments)
250
+ @new_post.stub!(:country)
251
+ @new_post.stub!(:country_subdivision)
252
+ @new_post.stub!(:country_code)
194
253
  @new_post.stub!(:column_for_attribute).with(:meta_description).and_return(mock('column', :type => :string, :limit => 255))
195
254
  @new_post.stub!(:column_for_attribute).with(:title).and_return(mock('column', :type => :string, :limit => 50))
196
255
  @new_post.stub!(:column_for_attribute).with(:body).and_return(mock('column', :type => :text))
@@ -198,10 +257,17 @@ module FormtasticSpecHelper
198
257
  @new_post.stub!(:column_for_attribute).with(:publish_at).and_return(mock('column', :type => :date))
199
258
  @new_post.stub!(:column_for_attribute).with(:time_zone).and_return(mock('column', :type => :string))
200
259
  @new_post.stub!(:column_for_attribute).with(:allow_comments).and_return(mock('column', :type => :boolean))
260
+ @new_post.stub!(:column_for_attribute).with(:author).and_return(mock('column', :type => :integer))
261
+ @new_post.stub!(:column_for_attribute).with(:country).and_return(mock('column', :type => :string, :limit => 255))
262
+ @new_post.stub!(:column_for_attribute).with(:country_subdivision).and_return(mock('column', :type => :string, :limit => 255))
263
+ @new_post.stub!(:column_for_attribute).with(:country_code).and_return(mock('column', :type => :string, :limit => 255))
201
264
 
202
265
  @new_post.stub!(:author).and_return(@bob)
203
266
  @new_post.stub!(:author_id).and_return(@bob.id)
204
267
 
268
+ @new_post.stub!(:reviewer).and_return(@fred)
269
+ @new_post.stub!(:reviewer_id).and_return(@fred.id)
270
+
205
271
  @new_post.should_receive(:publish_at=).any_number_of_times
206
272
  @new_post.should_receive(:title=).any_number_of_times
207
273
  @new_post.stub!(:main_post_id).and_return(nil)
metadata CHANGED
@@ -5,8 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 7
9
- version: 0.9.7
8
+ - 10
9
+ - 0
10
+ version: 0.9.10.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Rodrigo Alvarez
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-22 00:00:00 +01:00
18
+ date: 2010-06-03 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,10 +26,10 @@ dependencies:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
27
28
  segments:
28
- - 2
29
29
  - 3
30
30
  - 0
31
- version: 2.3.0
31
+ - 0beta3
32
+ version: 3.0.0beta3
32
33
  type: :runtime
33
34
  version_requirements: *id001
34
35
  - !ruby/object:Gem::Dependency
@@ -39,10 +40,10 @@ dependencies:
39
40
  - - ">="
40
41
  - !ruby/object:Gem::Version
41
42
  segments:
42
- - 2
43
43
  - 3
44
44
  - 0
45
- version: 2.3.0
45
+ - 0beta3
46
+ version: 3.0.0beta3
46
47
  type: :runtime
47
48
  version_requirements: *id002
48
49
  - !ruby/object:Gem::Dependency
@@ -97,14 +98,12 @@ files:
97
98
  - lib/formtastic.rb
98
99
  - lib/formtastic/i18n.rb
99
100
  - lib/formtastic/layout_helper.rb
101
+ - lib/formtastic/railtie.rb
102
+ - lib/formtastic/util.rb
100
103
  - lib/generators/formtastic/form/form_generator.rb
101
- - lib/generators/formtastic/form/templates/_form.html.erb
102
- - lib/generators/formtastic/form/templates/_form.html.haml
103
104
  - lib/generators/formtastic/install/install_generator.rb
104
- - lib/generators/formtastic/install/templates/formtastic.css
105
- - lib/generators/formtastic/install/templates/formtastic.rb
106
- - lib/generators/formtastic/install/templates/formtastic_changes.css
107
105
  - lib/locale/en.yml
106
+ - rails/init.rb
108
107
  - spec/buttons_spec.rb
109
108
  - spec/commit_button_spec.rb
110
109
  - spec/custom_builder_spec.rb
@@ -119,7 +118,6 @@ files:
119
118
  - spec/inputs/boolean_input_spec.rb
120
119
  - spec/inputs/check_boxes_input_spec.rb
121
120
  - spec/inputs/country_input_spec.rb
122
- - spec/inputs/currency_input_spec.rb
123
121
  - spec/inputs/date_input_spec.rb
124
122
  - spec/inputs/datetime_input_spec.rb
125
123
  - spec/inputs/file_input_spec.rb
@@ -184,7 +182,6 @@ test_files:
184
182
  - spec/inputs/boolean_input_spec.rb
185
183
  - spec/inputs/check_boxes_input_spec.rb
186
184
  - spec/inputs/country_input_spec.rb
187
- - spec/inputs/currency_input_spec.rb
188
185
  - spec/inputs/date_input_spec.rb
189
186
  - spec/inputs/datetime_input_spec.rb
190
187
  - spec/inputs/file_input_spec.rb