bootstrap_form 0.3.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +12 -1
- data/lib/bootstrap_form/form_builder.rb +16 -17
- data/lib/bootstrap_form/version.rb +1 -1
- data/test/bootstrap_form_test.rb +51 -27
- data/test/dummy/Gemfile +45 -0
- data/test/dummy/Gemfile.lock +120 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +0 -1
- data/test/dummy/app/assets/javascripts/application.js +11 -4
- data/test/dummy/app/assets/stylesheets/application.css +11 -5
- data/test/dummy/app/controllers/application_controller.rb +3 -1
- data/test/dummy/app/models/address.rb +3 -0
- data/test/dummy/app/models/user.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +2 -2
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/application.rb +3 -24
- data/test/dummy/config/boot.rb +3 -9
- data/test/dummy/config/environment.rb +2 -2
- data/test/dummy/config/environments/development.rb +12 -13
- data/test/dummy/config/environments/production.rb +44 -24
- data/test/dummy/config/environments/test.rb +15 -18
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +9 -3
- data/test/dummy/config/initializers/secret_token.rb +7 -2
- data/test/dummy/config/initializers/session_store.rb +0 -5
- data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/test/dummy/config/locales/en.yml +20 -2
- data/test/dummy/db/migrate/{20120106063521_create_users.rb → 20130703191909_create_users.rb} +0 -0
- data/test/dummy/db/migrate/20130703191937_create_addresses.rb +13 -0
- data/test/dummy/db/schema.rb +13 -3
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -32
- data/test/dummy/log/test.log +3505 -3
- data/test/dummy/public/404.html +43 -11
- data/test/dummy/public/422.html +43 -11
- data/test/dummy/public/500.html +43 -12
- data/test/dummy/public/robots.txt +5 -0
- data/test/dummy/test/fixtures/addresses.yml +15 -0
- data/test/dummy/test/fixtures/users.yml +2 -0
- data/test/dummy/test/models/address_test.rb +7 -0
- data/test/dummy/test/{unit → models}/user_test.rb +0 -0
- data/test/dummy/test/test_helper.rb +15 -0
- metadata +36 -12
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/script/rails +0 -6
data/test/dummy/public/404.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -22,5 +53,6 @@
|
|
22
53
|
<h1>The page you were looking for doesn't exist.</h1>
|
23
54
|
<p>You may have mistyped the address or the page may have moved.</p>
|
24
55
|
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
57
|
</body>
|
26
58
|
</html>
|
data/test/dummy/public/422.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -22,5 +53,6 @@
|
|
22
53
|
<h1>The change you wanted was rejected.</h1>
|
23
54
|
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
55
|
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
57
|
</body>
|
26
58
|
</html>
|
data/test/dummy/public/500.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -20,7 +51,7 @@
|
|
20
51
|
<!-- This file lives in public/500.html -->
|
21
52
|
<div class="dialog">
|
22
53
|
<h1>We're sorry, but something went wrong.</h1>
|
23
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
54
|
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
56
|
</body>
|
26
57
|
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
user_id: 1
|
5
|
+
street: MyString
|
6
|
+
city: MyString
|
7
|
+
state: MyString
|
8
|
+
zip_code: MyString
|
9
|
+
|
10
|
+
two:
|
11
|
+
user_id: 1
|
12
|
+
street: MyString
|
13
|
+
city: MyString
|
14
|
+
state: MyString
|
15
|
+
zip_code: MyString
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
ActiveRecord::Migration.check_pending!
|
7
|
+
|
8
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
9
|
+
#
|
10
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
11
|
+
# -- they do not yet inherit this setting
|
12
|
+
fixtures :all
|
13
|
+
|
14
|
+
# Add more helper methods to be used by all tests here...
|
15
|
+
end
|
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.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '4.0'
|
22
22
|
none: false
|
23
23
|
type: :development
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '4.0'
|
29
29
|
none: false
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sqlite3
|
@@ -82,8 +82,12 @@ files:
|
|
82
82
|
- test/dummy/app/assets/stylesheets/application.css
|
83
83
|
- test/dummy/app/controllers/application_controller.rb
|
84
84
|
- test/dummy/app/helpers/application_helper.rb
|
85
|
+
- test/dummy/app/models/address.rb
|
85
86
|
- test/dummy/app/models/user.rb
|
86
87
|
- test/dummy/app/views/layouts/application.html.erb
|
88
|
+
- test/dummy/bin/bundle
|
89
|
+
- test/dummy/bin/rails
|
90
|
+
- test/dummy/bin/rake
|
87
91
|
- test/dummy/config/application.rb
|
88
92
|
- test/dummy/config/boot.rb
|
89
93
|
- test/dummy/config/database.yml
|
@@ -92,6 +96,7 @@ files:
|
|
92
96
|
- test/dummy/config/environments/production.rb
|
93
97
|
- test/dummy/config/environments/test.rb
|
94
98
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
99
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
95
100
|
- test/dummy/config/initializers/inflections.rb
|
96
101
|
- test/dummy/config/initializers/mime_types.rb
|
97
102
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -100,20 +105,27 @@ files:
|
|
100
105
|
- test/dummy/config/locales/en.yml
|
101
106
|
- test/dummy/config/routes.rb
|
102
107
|
- test/dummy/config.ru
|
103
|
-
- test/dummy/db/
|
104
|
-
- test/dummy/db/migrate/
|
108
|
+
- test/dummy/db/migrate/20130703191909_create_users.rb
|
109
|
+
- test/dummy/db/migrate/20130703191937_create_addresses.rb
|
105
110
|
- test/dummy/db/schema.rb
|
111
|
+
- test/dummy/db/seeds.rb
|
106
112
|
- test/dummy/db/test.sqlite3
|
113
|
+
- test/dummy/Gemfile
|
114
|
+
- test/dummy/Gemfile.lock
|
107
115
|
- test/dummy/log/development.log
|
108
116
|
- test/dummy/log/test.log
|
109
117
|
- test/dummy/public/404.html
|
110
118
|
- test/dummy/public/422.html
|
111
119
|
- test/dummy/public/500.html
|
112
120
|
- test/dummy/public/favicon.ico
|
121
|
+
- test/dummy/public/robots.txt
|
113
122
|
- test/dummy/Rakefile
|
114
|
-
- test/dummy/
|
123
|
+
- test/dummy/README.rdoc
|
124
|
+
- test/dummy/test/fixtures/addresses.yml
|
115
125
|
- test/dummy/test/fixtures/users.yml
|
116
|
-
- test/dummy/test/
|
126
|
+
- test/dummy/test/models/address_test.rb
|
127
|
+
- test/dummy/test/models/user_test.rb
|
128
|
+
- test/dummy/test/test_helper.rb
|
117
129
|
- test/test_helper.rb
|
118
130
|
homepage: http://github.com/potenza/bootstrap_form
|
119
131
|
licenses: []
|
@@ -146,8 +158,12 @@ test_files:
|
|
146
158
|
- test/dummy/app/assets/stylesheets/application.css
|
147
159
|
- test/dummy/app/controllers/application_controller.rb
|
148
160
|
- test/dummy/app/helpers/application_helper.rb
|
161
|
+
- test/dummy/app/models/address.rb
|
149
162
|
- test/dummy/app/models/user.rb
|
150
163
|
- test/dummy/app/views/layouts/application.html.erb
|
164
|
+
- test/dummy/bin/bundle
|
165
|
+
- test/dummy/bin/rails
|
166
|
+
- test/dummy/bin/rake
|
151
167
|
- test/dummy/config/application.rb
|
152
168
|
- test/dummy/config/boot.rb
|
153
169
|
- test/dummy/config/database.yml
|
@@ -156,6 +172,7 @@ test_files:
|
|
156
172
|
- test/dummy/config/environments/production.rb
|
157
173
|
- test/dummy/config/environments/test.rb
|
158
174
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
175
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
159
176
|
- test/dummy/config/initializers/inflections.rb
|
160
177
|
- test/dummy/config/initializers/mime_types.rb
|
161
178
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -164,18 +181,25 @@ test_files:
|
|
164
181
|
- test/dummy/config/locales/en.yml
|
165
182
|
- test/dummy/config/routes.rb
|
166
183
|
- test/dummy/config.ru
|
167
|
-
- test/dummy/db/
|
168
|
-
- test/dummy/db/migrate/
|
184
|
+
- test/dummy/db/migrate/20130703191909_create_users.rb
|
185
|
+
- test/dummy/db/migrate/20130703191937_create_addresses.rb
|
169
186
|
- test/dummy/db/schema.rb
|
187
|
+
- test/dummy/db/seeds.rb
|
170
188
|
- test/dummy/db/test.sqlite3
|
189
|
+
- test/dummy/Gemfile
|
190
|
+
- test/dummy/Gemfile.lock
|
171
191
|
- test/dummy/log/development.log
|
172
192
|
- test/dummy/log/test.log
|
173
193
|
- test/dummy/public/404.html
|
174
194
|
- test/dummy/public/422.html
|
175
195
|
- test/dummy/public/500.html
|
176
196
|
- test/dummy/public/favicon.ico
|
197
|
+
- test/dummy/public/robots.txt
|
177
198
|
- test/dummy/Rakefile
|
178
|
-
- test/dummy/
|
199
|
+
- test/dummy/README.rdoc
|
200
|
+
- test/dummy/test/fixtures/addresses.yml
|
179
201
|
- test/dummy/test/fixtures/users.yml
|
180
|
-
- test/dummy/test/
|
202
|
+
- test/dummy/test/models/address_test.rb
|
203
|
+
- test/dummy/test/models/user_test.rb
|
204
|
+
- test/dummy/test/test_helper.rb
|
181
205
|
- test/test_helper.rb
|
Binary file
|
data/test/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|