bootstrap_form 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,7 +9,7 @@ Requirements
9
9
 
10
10
  * Ruby 1.9+
11
11
  * Rails 3.1+
12
- * Twitter Bootstrap 2.0+ -- I use [less-rails-bootstrap](https://github.com/metaskills/less-rails-bootstrap.git)
12
+ * Twitter Bootstrap 2.0+
13
13
 
14
14
 
15
15
  Installation
@@ -42,12 +42,18 @@ Usage
42
42
  This plugin provides the following form helpers:
43
43
 
44
44
  * text_field
45
- * text_area
46
45
  * password_field
46
+ * text_area
47
+ * file_field
48
+ * number_field
49
+ * email_field
50
+ * telephone_field (phone_field)
51
+ * url_field
47
52
  * select
48
53
  * collection_select
49
- * file_field
50
54
  * date_select
55
+ * time_select
56
+ * datetime_select
51
57
  * check_box
52
58
 
53
59
  These form helpers accept the same options as the Rails form
@@ -88,6 +94,32 @@ Here's an example of a horizontal-style form with block helpers:
88
94
  ![Example Form](https://github.com/potenza/bootstrap_form/raw/master/examples/example_horizontal_block_form.png)
89
95
 
90
96
 
97
+ Custom Controls
98
+ ---------------
99
+
100
+ If you have a custom form control or content that you want to wrap
101
+ in Bootstrap-style form markup, you can do the following:
102
+
103
+ <%= f.control_group "Custom Field" do %>
104
+ <span>My Custom Field</span>
105
+ <% end %>
106
+
107
+ which will output the following:
108
+
109
+ <div class="control-group">
110
+ <label class="control-label">Custom Field</label>
111
+ <div class="controls">
112
+ <span>My Custom Field</span>
113
+ </div>
114
+ </div>
115
+
116
+ You can also specify the label's for attribute like this:
117
+
118
+ <%= f.control_group "Custom Field", for: 'custom-control' do %>
119
+ <span>My Custom Field</span>
120
+ <% end %>
121
+
122
+
91
123
  Validation Errors
92
124
  -----------------
93
125
 
@@ -1,19 +1,21 @@
1
1
  module BootstrapForm
2
2
  class FormBuilder < ActionView::Helpers::FormBuilder
3
+ FORM_HELPERS = %w{text_field password_field text_area file_field
4
+ number_field email_field telephone_field phone_field url_field
5
+ select collection_select date_select time_select datetime_select}
6
+
3
7
  delegate :content_tag, to: :@template
4
8
 
5
9
  def initialize(object_name, object, template, options, proc)
6
10
  super
7
- if options.fetch(:help, '').to_sym == :block
8
- @help_tag = :p
9
- @help_css = 'help-block'
11
+ @help_tag, @help_css = if options.fetch(:help, '').to_sym == :block
12
+ [:p, 'help-block']
10
13
  else
11
- @help_tag = :span
12
- @help_css = 'help-inline'
14
+ [:span, 'help-inline']
13
15
  end
14
16
  end
15
17
 
16
- %w{text_field text_area password_field collection_select file_field date_select select}.each do |method_name|
18
+ FORM_HELPERS.each do |method_name|
17
19
  define_method(method_name) do |name, *args|
18
20
  options = args.extract_options!.symbolize_keys!
19
21
  content_tag :div, class: "control-group#{(' error' if object.errors[name].any?)}" do
@@ -39,6 +41,16 @@ module BootstrapForm
39
41
  end
40
42
  end
41
43
 
44
+ def control_group(label_name, label_options = {}, &block)
45
+ content_tag :div, class: "control-group" do
46
+ label_options[:class] = 'control-label'
47
+ content_tag(:label, label_name, label_options).html_safe +
48
+ content_tag(:div, class: 'controls') do
49
+ block.call.html_safe
50
+ end
51
+ end
52
+ end
53
+
42
54
  def actions(&block)
43
55
  content_tag :div, class: "form-actions" do
44
56
  block.call
@@ -1,3 +1,3 @@
1
1
  module BootstrapForm
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,6 +1,8 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class BootstrapFormTest < ActionView::TestCase
4
+ include BootstrapForm::Helper
5
+
4
6
  def setup
5
7
  @user = User.new(email: 'steve@example.com', password: 'secret', comments: 'my comment')
6
8
  @builder = BootstrapForm::FormBuilder.new :user, @user, self, {}, nil
@@ -45,6 +47,32 @@ class BootstrapFormTest < ActionView::TestCase
45
47
  assert_equal expected, @builder.text_area(:comments)
46
48
  end
47
49
 
50
+ test "file fields are wrapped correctly" do
51
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc\" name=\"user[misc]\" type=\"file\" /></div></div>}
52
+ assert_equal expected, @builder.file_field(:misc)
53
+ end
54
+
55
+ test "number fields are wrapped correctly" do
56
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc\" name=\"user[misc]\" size="30" type=\"number\" /></div></div>}
57
+ assert_equal expected, @builder.number_field(:misc)
58
+ end
59
+
60
+ test "email fields are wrapped correctly" do
61
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc\" name=\"user[misc]\" size="30" type=\"email\" /></div></div>}
62
+ assert_equal expected, @builder.email_field(:misc)
63
+ end
64
+
65
+ test "telephone/phone fields are wrapped correctly" do
66
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc\" name=\"user[misc]\" size="30" type=\"tel\" /></div></div>}
67
+ assert_equal expected, @builder.telephone_field(:misc)
68
+ assert_equal expected, @builder.phone_field(:misc)
69
+ end
70
+
71
+ test "url fields are wrapped correctly" do
72
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc\" name=\"user[misc]\" size="30" type=\"url\" /></div></div>}
73
+ assert_equal expected, @builder.url_field(:misc)
74
+ end
75
+
48
76
  test "selects are wrapped correctly (select)" do
49
77
  expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_status\">Status</label><div class=\"controls\"><select id=\"user_status\" name=\"user[status]\"><option value=\"1\">activated</option>\n<option value=\"2\">blocked</option></select></div></div>}
50
78
  assert_equal expected, @builder.select(:status, [['activated', 1], ['blocked', 2]])
@@ -55,18 +83,27 @@ class BootstrapFormTest < ActionView::TestCase
55
83
  assert_equal expected, @builder.collection_select(:status, [], :id, :name)
56
84
  end
57
85
 
58
- test "file fields are wrapped correctly" do
59
- expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc\" name=\"user[misc]\" type=\"file\" /></div></div>}
60
- assert_equal expected, @builder.file_field(:misc)
61
- end
62
-
63
86
  test "date selects are wrapped correctly" do
64
- Timecop.freeze(new_time = Time.local(2012, 2, 3, 12, 0, 0)) do
87
+ Timecop.freeze(Time.local(2012, 2, 3, 12, 0, 0)) do
65
88
  expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><select id=\"user_misc_1i\" name=\"user[misc(1i)]\">\n<option value=\"2007\">2007</option>\n<option value=\"2008\">2008</option>\n<option value=\"2009\">2009</option>\n<option value=\"2010\">2010</option>\n<option value=\"2011\">2011</option>\n<option selected=\"selected\" value=\"2012\">2012</option>\n<option value=\"2013\">2013</option>\n<option value=\"2014\">2014</option>\n<option value=\"2015\">2015</option>\n<option value=\"2016\">2016</option>\n<option value=\"2017\">2017</option>\n</select>\n<select id=\"user_misc_2i\" name=\"user[misc(2i)]\">\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"user_misc_3i\" name=\"user[misc(3i)]\">\n<option value=\"1\">1</option>\n<option value=\"2\">2</option>\n<option selected=\"selected\" value=\"3\">3</option>\n<option value=\"4\">4</option>\n<option value=\"5\">5</option>\n<option value=\"6\">6</option>\n<option value=\"7\">7</option>\n<option value=\"8\">8</option>\n<option value=\"9\">9</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n<option value=\"24\">24</option>\n<option value=\"25\">25</option>\n<option value=\"26\">26</option>\n<option value=\"27\">27</option>\n<option value=\"28\">28</option>\n<option value=\"29\">29</option>\n<option value=\"30\">30</option>\n<option value=\"31\">31</option>\n</select>\n</div></div>}
66
89
  assert_equal expected, @builder.date_select(:misc)
67
90
  end
68
91
  end
69
92
 
93
+ test "time selects are wrapped correctly" do
94
+ Timecop.freeze(Time.local(2012, 2, 3, 12, 0, 0)) do
95
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><input id=\"user_misc_1i\" name=\"user[misc(1i)]\" type=\"hidden\" value=\"2012\" />\n<input id=\"user_misc_2i\" name=\"user[misc(2i)]\" type=\"hidden\" value=\"2\" />\n<input id=\"user_misc_3i\" name=\"user[misc(3i)]\" type=\"hidden\" value=\"3\" />\n<select id=\"user_misc_4i\" name=\"user[misc(4i)]\">\n<option value=\"00\">00</option>\n<option value=\"01\">01</option>\n<option value=\"02\">02</option>\n<option value=\"03\">03</option>\n<option value=\"04\">04</option>\n<option value=\"05\">05</option>\n<option value=\"06\">06</option>\n<option value=\"07\">07</option>\n<option value=\"08\">08</option>\n<option value=\"09\">09</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option selected=\"selected\" value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n</select>\n : <select id=\"user_misc_5i\" name=\"user[misc(5i)]\">\n<option selected=\"selected\" value=\"00\">00</option>\n<option value=\"01\">01</option>\n<option value=\"02\">02</option>\n<option value=\"03\">03</option>\n<option value=\"04\">04</option>\n<option value=\"05\">05</option>\n<option value=\"06\">06</option>\n<option value=\"07\">07</option>\n<option value=\"08\">08</option>\n<option value=\"09\">09</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n<option value=\"24\">24</option>\n<option value=\"25\">25</option>\n<option value=\"26\">26</option>\n<option value=\"27\">27</option>\n<option value=\"28\">28</option>\n<option value=\"29\">29</option>\n<option value=\"30\">30</option>\n<option value=\"31\">31</option>\n<option value=\"32\">32</option>\n<option value=\"33\">33</option>\n<option value=\"34\">34</option>\n<option value=\"35\">35</option>\n<option value=\"36\">36</option>\n<option value=\"37\">37</option>\n<option value=\"38\">38</option>\n<option value=\"39\">39</option>\n<option value=\"40\">40</option>\n<option value=\"41\">41</option>\n<option value=\"42\">42</option>\n<option value=\"43\">43</option>\n<option value=\"44\">44</option>\n<option value=\"45\">45</option>\n<option value=\"46\">46</option>\n<option value=\"47\">47</option>\n<option value=\"48\">48</option>\n<option value=\"49\">49</option>\n<option value=\"50\">50</option>\n<option value=\"51\">51</option>\n<option value=\"52\">52</option>\n<option value=\"53\">53</option>\n<option value=\"54\">54</option>\n<option value=\"55\">55</option>\n<option value=\"56\">56</option>\n<option value=\"57\">57</option>\n<option value=\"58\">58</option>\n<option value=\"59\">59</option>\n</select>\n</div></div>}
96
+ assert_equal expected, @builder.time_select(:misc)
97
+ end
98
+ end
99
+
100
+ test "datetime selects are wrapped correctly" do
101
+ Timecop.freeze(Time.local(2012, 2, 3, 12, 0, 0)) do
102
+ expected = %{<div class=\"control-group\"><label class=\"control-label\" for=\"user_misc\">Misc</label><div class=\"controls\"><select id=\"user_misc_1i\" name=\"user[misc(1i)]\">\n<option value=\"2007\">2007</option>\n<option value=\"2008\">2008</option>\n<option value=\"2009\">2009</option>\n<option value=\"2010\">2010</option>\n<option value=\"2011\">2011</option>\n<option selected=\"selected\" value=\"2012\">2012</option>\n<option value=\"2013\">2013</option>\n<option value=\"2014\">2014</option>\n<option value=\"2015\">2015</option>\n<option value=\"2016\">2016</option>\n<option value=\"2017\">2017</option>\n</select>\n<select id=\"user_misc_2i\" name=\"user[misc(2i)]\">\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"user_misc_3i\" name=\"user[misc(3i)]\">\n<option value=\"1\">1</option>\n<option value=\"2\">2</option>\n<option selected=\"selected\" value=\"3\">3</option>\n<option value=\"4\">4</option>\n<option value=\"5\">5</option>\n<option value=\"6\">6</option>\n<option value=\"7\">7</option>\n<option value=\"8\">8</option>\n<option value=\"9\">9</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n<option value=\"24\">24</option>\n<option value=\"25\">25</option>\n<option value=\"26\">26</option>\n<option value=\"27\">27</option>\n<option value=\"28\">28</option>\n<option value=\"29\">29</option>\n<option value=\"30\">30</option>\n<option value=\"31\">31</option>\n</select>\n &mdash; <select id=\"user_misc_4i\" name=\"user[misc(4i)]\">\n<option value=\"00\">00</option>\n<option value=\"01\">01</option>\n<option value=\"02\">02</option>\n<option value=\"03\">03</option>\n<option value=\"04\">04</option>\n<option value=\"05\">05</option>\n<option value=\"06\">06</option>\n<option value=\"07\">07</option>\n<option value=\"08\">08</option>\n<option value=\"09\">09</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option selected=\"selected\" value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n</select>\n : <select id=\"user_misc_5i\" name=\"user[misc(5i)]\">\n<option selected=\"selected\" value=\"00\">00</option>\n<option value=\"01\">01</option>\n<option value=\"02\">02</option>\n<option value=\"03\">03</option>\n<option value=\"04\">04</option>\n<option value=\"05\">05</option>\n<option value=\"06\">06</option>\n<option value=\"07\">07</option>\n<option value=\"08\">08</option>\n<option value=\"09\">09</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n<option value=\"24\">24</option>\n<option value=\"25\">25</option>\n<option value=\"26\">26</option>\n<option value=\"27\">27</option>\n<option value=\"28\">28</option>\n<option value=\"29\">29</option>\n<option value=\"30\">30</option>\n<option value=\"31\">31</option>\n<option value=\"32\">32</option>\n<option value=\"33\">33</option>\n<option value=\"34\">34</option>\n<option value=\"35\">35</option>\n<option value=\"36\">36</option>\n<option value=\"37\">37</option>\n<option value=\"38\">38</option>\n<option value=\"39\">39</option>\n<option value=\"40\">40</option>\n<option value=\"41\">41</option>\n<option value=\"42\">42</option>\n<option value=\"43\">43</option>\n<option value=\"44\">44</option>\n<option value=\"45\">45</option>\n<option value=\"46\">46</option>\n<option value=\"47\">47</option>\n<option value=\"48\">48</option>\n<option value=\"49\">49</option>\n<option value=\"50\">50</option>\n<option value=\"51\">51</option>\n<option value=\"52\">52</option>\n<option value=\"53\">53</option>\n<option value=\"54\">54</option>\n<option value=\"55\">55</option>\n<option value=\"56\">56</option>\n<option value=\"57\">57</option>\n<option value=\"58\">58</option>\n<option value=\"59\">59</option>\n</select>\n</div></div>}
103
+ assert_equal expected, @builder.datetime_select(:misc)
104
+ end
105
+ end
106
+
70
107
  test "check_boxes are wrapped correctly" do
71
108
  expected = %{<div class=\"control-group\"><div class=\"controls\"><label class=\"checkbox\" for=\"user_misc\"><input name=\"user[misc]\" type=\"hidden\" value=\"0\" /><input id=\"user_misc\" name=\"user[misc]\" type=\"checkbox\" value=\"1\" /> This is a checkbox</label></div></div>}
72
109
  assert_equal expected, @builder.check_box(:misc, label: 'This is a checkbox')
@@ -87,6 +124,22 @@ class BootstrapFormTest < ActionView::TestCase
87
124
  assert_equal expected, @builder.text_field(:email, autofocus: true)
88
125
  end
89
126
 
127
+ test "control_group creates a valid structure and allows arbitrary html to be added via a block" do
128
+ output = @builder.control_group "Custom Control" do
129
+ '<span>custom control here</span>'
130
+ end
131
+ expected = %{<div class="control-group"><label class="control-label">Custom Control</label><div class="controls"><span>custom control here</span></div></div>}
132
+ assert_equal expected, output
133
+ end
134
+
135
+ test "control_group allows for the label's 'for' attribute to be set" do
136
+ output = @builder.control_group "Custom Control", for: 'custom_control' do
137
+ '<span>custom control here</span>'
138
+ end
139
+ expected = %{<div class="control-group"><label class="control-label" for="custom_control">Custom Control</label><div class="controls"><span>custom control here</span></div></div>}
140
+ assert_equal expected, output
141
+ end
142
+
90
143
  test "actions are wrapped correctly" do
91
144
  output = @builder.actions do
92
145
  'something'
Binary file
Binary file
@@ -0,0 +1,19 @@
1
+  (0.1ms) select sqlite_version(*)
2
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.1ms) PRAGMA index_list("schema_migrations")
4
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreateUsers (20120106063521)
7
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "comments" text, "status" varchar(255), "misc" varchar(255), "created_at" datetime, "updated_at" datetime)
8
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120106063521')
9
+  (0.2ms) select sqlite_version(*)
10
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11
+  (0.0ms) PRAGMA index_list("users")
12
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
13
+  (0.2ms) select sqlite_version(*)
14
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "comments" text, "status" varchar(255), "misc" varchar(255), "created_at" datetime, "updated_at" datetime) 
15
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
16
+  (0.0ms) PRAGMA index_list("schema_migrations")
17
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
+  (0.1ms) SELECT version FROM "schema_migrations"
19
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120106063521')
File without changes
data/test/test_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'timecop'
2
- require 'ruby-debug'
3
2
 
4
3
  # Configure Rails Environment
5
4
  ENV["RAILS_ENV"] = "test"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,22 +59,6 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.3.5
62
- - !ruby/object:Gem::Dependency
63
- name: ruby-debug19
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
62
  description: bootstrap_form is a rails form builder that makes it super easy to create
79
63
  beautiful-looking forms using Twitter Bootstrap 2.0
80
64
  email:
@@ -116,8 +100,12 @@ files:
116
100
  - test/dummy/config/locales/en.yml
117
101
  - test/dummy/config/routes.rb
118
102
  - test/dummy/config.ru
103
+ - test/dummy/db/development.sqlite3
119
104
  - test/dummy/db/migrate/20120106063521_create_users.rb
120
105
  - test/dummy/db/schema.rb
106
+ - test/dummy/db/test.sqlite3
107
+ - test/dummy/log/development.log
108
+ - test/dummy/log/test.log
121
109
  - test/dummy/public/404.html
122
110
  - test/dummy/public/422.html
123
111
  - test/dummy/public/500.html
@@ -176,8 +164,12 @@ test_files:
176
164
  - test/dummy/config/locales/en.yml
177
165
  - test/dummy/config/routes.rb
178
166
  - test/dummy/config.ru
167
+ - test/dummy/db/development.sqlite3
179
168
  - test/dummy/db/migrate/20120106063521_create_users.rb
180
169
  - test/dummy/db/schema.rb
170
+ - test/dummy/db/test.sqlite3
171
+ - test/dummy/log/development.log
172
+ - test/dummy/log/test.log
181
173
  - test/dummy/public/404.html
182
174
  - test/dummy/public/422.html
183
175
  - test/dummy/public/500.html