bootstrap-sass-extras 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.rspec +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +107 -0
- data/MIT-LICENSE +20 -0
- data/README.md +86 -0
- data/Rakefile +1 -0
- data/app/helpers/bootstrap_flash_helper.rb +17 -0
- data/bootstrap-sass-extras.gemspec +23 -0
- data/lib/.DS_Store +0 -0
- data/lib/bootstrap-sass-extras.rb +3 -0
- data/lib/bootstrap-sass-extras/engine.rb +9 -0
- data/lib/bootstrap-sass-extras/version.rb +3 -0
- data/lib/generators/.DS_Store +0 -0
- data/lib/generators/bootstrap/install/install_generator.rb +21 -0
- data/lib/generators/bootstrap/install/templates/.DS_Store +0 -0
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +17 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +23 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +109 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +69 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +69 -0
- data/lib/generators/bootstrap/partial/partial_generator.rb +20 -0
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +29 -0
- data/lib/generators/bootstrap/partial/templates/_navbar.html.erb +13 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +16 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.erb +5 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.haml +4 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +4 -0
- data/lib/generators/bootstrap/themed/templates/index.html.erb +40 -0
- data/lib/generators/bootstrap/themed/templates/index.html.haml +25 -0
- data/lib/generators/bootstrap/themed/templates/index.html.slim +27 -0
- data/lib/generators/bootstrap/themed/templates/new.html.erb +5 -0
- data/lib/generators/bootstrap/themed/templates/new.html.haml +4 -0
- data/lib/generators/bootstrap/themed/templates/new.html.slim +4 -0
- data/lib/generators/bootstrap/themed/templates/show.html.erb +23 -0
- data/lib/generators/bootstrap/themed/templates/show.html.haml +15 -0
- data/lib/generators/bootstrap/themed/templates/show.html.slim +17 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +14 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +11 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +12 -0
- data/lib/generators/bootstrap/themed/themed_generator.rb +148 -0
- data/script/rails +8 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/helpers/bootstrap_flash_helper_spec.rb +17 -0
- data/spec/spec_helper.rb +9 -0
- metadata +211 -0
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
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'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BootstrapFlashHelper do
|
4
|
+
describe "bootstrap_flash" do
|
5
|
+
|
6
|
+
it "should return flash message" do
|
7
|
+
stub!(:flash).and_return({:warning => "Update Success!"})
|
8
|
+
bootstrap_flash.should == "<div class=\"alert alert-warning\"><a class=\"close\" data-dismiss=\"alert\">×</a>Update Success!</div>"
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should return alert-success message when use notice message" do
|
12
|
+
stub!(:flash).and_return({:notice => "Update Success!"})
|
13
|
+
bootstrap_flash.should == "<div class=\"alert alert-notice\"><a class=\"close\" data-dismiss=\"alert\">×</a>Update Success!</div>"
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
3
|
+
require 'rspec/rails'
|
4
|
+
require 'rspec/autorun'
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
8
|
+
config.use_transactional_fixtures = true
|
9
|
+
end
|
metadata
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bootstrap-sass-extras
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- doabit
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: sqlite3
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: bootstrap-sass extras.
|
63
|
+
email:
|
64
|
+
- doinsist@gmail.com
|
65
|
+
executables: []
|
66
|
+
extensions: []
|
67
|
+
extra_rdoc_files: []
|
68
|
+
files:
|
69
|
+
- .gitignore
|
70
|
+
- .rspec
|
71
|
+
- Gemfile
|
72
|
+
- Gemfile.lock
|
73
|
+
- MIT-LICENSE
|
74
|
+
- README.md
|
75
|
+
- Rakefile
|
76
|
+
- app/helpers/bootstrap_flash_helper.rb
|
77
|
+
- bootstrap-sass-extras.gemspec
|
78
|
+
- lib/.DS_Store
|
79
|
+
- lib/bootstrap-sass-extras.rb
|
80
|
+
- lib/bootstrap-sass-extras/engine.rb
|
81
|
+
- lib/bootstrap-sass-extras/version.rb
|
82
|
+
- lib/generators/.DS_Store
|
83
|
+
- lib/generators/bootstrap/install/install_generator.rb
|
84
|
+
- lib/generators/bootstrap/install/templates/.DS_Store
|
85
|
+
- lib/generators/bootstrap/install/templates/en.bootstrap.yml
|
86
|
+
- lib/generators/bootstrap/layout/layout_generator.rb
|
87
|
+
- lib/generators/bootstrap/layout/templates/layout.html.erb
|
88
|
+
- lib/generators/bootstrap/layout/templates/layout.html.haml
|
89
|
+
- lib/generators/bootstrap/layout/templates/layout.html.slim
|
90
|
+
- lib/generators/bootstrap/partial/partial_generator.rb
|
91
|
+
- lib/generators/bootstrap/partial/templates/_login.html.erb
|
92
|
+
- lib/generators/bootstrap/partial/templates/_navbar.html.erb
|
93
|
+
- lib/generators/bootstrap/themed/templates/_form.html.erb
|
94
|
+
- lib/generators/bootstrap/themed/templates/_form.html.haml
|
95
|
+
- lib/generators/bootstrap/themed/templates/_form.html.slim
|
96
|
+
- lib/generators/bootstrap/themed/templates/edit.html.erb
|
97
|
+
- lib/generators/bootstrap/themed/templates/edit.html.haml
|
98
|
+
- lib/generators/bootstrap/themed/templates/edit.html.slim
|
99
|
+
- lib/generators/bootstrap/themed/templates/index.html.erb
|
100
|
+
- lib/generators/bootstrap/themed/templates/index.html.haml
|
101
|
+
- lib/generators/bootstrap/themed/templates/index.html.slim
|
102
|
+
- lib/generators/bootstrap/themed/templates/new.html.erb
|
103
|
+
- lib/generators/bootstrap/themed/templates/new.html.haml
|
104
|
+
- lib/generators/bootstrap/themed/templates/new.html.slim
|
105
|
+
- lib/generators/bootstrap/themed/templates/show.html.erb
|
106
|
+
- lib/generators/bootstrap/themed/templates/show.html.haml
|
107
|
+
- lib/generators/bootstrap/themed/templates/show.html.slim
|
108
|
+
- lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
|
109
|
+
- lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml
|
110
|
+
- lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim
|
111
|
+
- lib/generators/bootstrap/themed/themed_generator.rb
|
112
|
+
- script/rails
|
113
|
+
- spec/dummy/README.rdoc
|
114
|
+
- spec/dummy/Rakefile
|
115
|
+
- spec/dummy/app/assets/javascripts/application.js
|
116
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
117
|
+
- spec/dummy/app/controllers/application_controller.rb
|
118
|
+
- spec/dummy/app/helpers/application_helper.rb
|
119
|
+
- spec/dummy/app/mailers/.gitkeep
|
120
|
+
- spec/dummy/app/models/.gitkeep
|
121
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
122
|
+
- spec/dummy/config.ru
|
123
|
+
- spec/dummy/config/application.rb
|
124
|
+
- spec/dummy/config/boot.rb
|
125
|
+
- spec/dummy/config/database.yml
|
126
|
+
- spec/dummy/config/environment.rb
|
127
|
+
- spec/dummy/config/environments/development.rb
|
128
|
+
- spec/dummy/config/environments/production.rb
|
129
|
+
- spec/dummy/config/environments/test.rb
|
130
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
131
|
+
- spec/dummy/config/initializers/inflections.rb
|
132
|
+
- spec/dummy/config/initializers/mime_types.rb
|
133
|
+
- spec/dummy/config/initializers/secret_token.rb
|
134
|
+
- spec/dummy/config/initializers/session_store.rb
|
135
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
136
|
+
- spec/dummy/config/locales/en.yml
|
137
|
+
- spec/dummy/config/routes.rb
|
138
|
+
- spec/dummy/lib/assets/.gitkeep
|
139
|
+
- spec/dummy/log/.gitkeep
|
140
|
+
- spec/dummy/public/404.html
|
141
|
+
- spec/dummy/public/422.html
|
142
|
+
- spec/dummy/public/500.html
|
143
|
+
- spec/dummy/public/favicon.ico
|
144
|
+
- spec/dummy/script/rails
|
145
|
+
- spec/helpers/bootstrap_flash_helper_spec.rb
|
146
|
+
- spec/spec_helper.rb
|
147
|
+
homepage: https://github.com/doabit/bootstrap-sass-extra
|
148
|
+
licenses: []
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
segments:
|
160
|
+
- 0
|
161
|
+
hash: -2869253836133861346
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
none: false
|
164
|
+
requirements:
|
165
|
+
- - ! '>='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
segments:
|
169
|
+
- 0
|
170
|
+
hash: -2869253836133861346
|
171
|
+
requirements: []
|
172
|
+
rubyforge_project:
|
173
|
+
rubygems_version: 1.8.23
|
174
|
+
signing_key:
|
175
|
+
specification_version: 3
|
176
|
+
summary: bootstrap-sass extras.
|
177
|
+
test_files:
|
178
|
+
- spec/dummy/README.rdoc
|
179
|
+
- spec/dummy/Rakefile
|
180
|
+
- spec/dummy/app/assets/javascripts/application.js
|
181
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
182
|
+
- spec/dummy/app/controllers/application_controller.rb
|
183
|
+
- spec/dummy/app/helpers/application_helper.rb
|
184
|
+
- spec/dummy/app/mailers/.gitkeep
|
185
|
+
- spec/dummy/app/models/.gitkeep
|
186
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
187
|
+
- spec/dummy/config.ru
|
188
|
+
- spec/dummy/config/application.rb
|
189
|
+
- spec/dummy/config/boot.rb
|
190
|
+
- spec/dummy/config/database.yml
|
191
|
+
- spec/dummy/config/environment.rb
|
192
|
+
- spec/dummy/config/environments/development.rb
|
193
|
+
- spec/dummy/config/environments/production.rb
|
194
|
+
- spec/dummy/config/environments/test.rb
|
195
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
196
|
+
- spec/dummy/config/initializers/inflections.rb
|
197
|
+
- spec/dummy/config/initializers/mime_types.rb
|
198
|
+
- spec/dummy/config/initializers/secret_token.rb
|
199
|
+
- spec/dummy/config/initializers/session_store.rb
|
200
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
201
|
+
- spec/dummy/config/locales/en.yml
|
202
|
+
- spec/dummy/config/routes.rb
|
203
|
+
- spec/dummy/lib/assets/.gitkeep
|
204
|
+
- spec/dummy/log/.gitkeep
|
205
|
+
- spec/dummy/public/404.html
|
206
|
+
- spec/dummy/public/422.html
|
207
|
+
- spec/dummy/public/500.html
|
208
|
+
- spec/dummy/public/favicon.ico
|
209
|
+
- spec/dummy/script/rails
|
210
|
+
- spec/helpers/bootstrap_flash_helper_spec.rb
|
211
|
+
- spec/spec_helper.rb
|