bootstrap-generators 3.0.0 → 3.0.0.1
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.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/Rakefile +9 -8
- data/lib/bootstrap-generators.rb +3 -0
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +1 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +1 -1
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +1 -1
- data/lib/generators/bootstrap/install/templates/layouts/starter.html.haml +21 -23
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +4 -4
- data/readme-template.md.erb +1 -1
- data/vendor/assets/javascripts/bootstrap.js +7 -7
- data/vendor/twitter/bootstrap/less/glyphicons.less +5 -5
- data/vendor/twitter/bootstrap/sass/_glyphicons.scss +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c1a65a154ab3da4dddb5bf0841c67a6993d41a
|
4
|
+
data.tar.gz: 878afc9777833c4e07f02a2b606691892a09813a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b46fca4dc193722548740e3900583e2a2fbd6cd6f8464e2708c7c2302471b1679e181e81d10f0ac251527e4bc9f2f35ed1c1147e8f7ddae3de8be786c49d78b6
|
7
|
+
data.tar.gz: 8f5a57e9287ba0ff1c0344ced35434d8a1a6886f563795d486df66d28bc853214ffd2bb56ac92508690c62a7d5f905eb003b07cb38d6c370c52f6c4ee537ceeb
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/decioferreira/bootstrap-generators)
|
4
4
|
|
5
|
-
Bootstrap-generators provides [Twitter Bootstrap](http://twitter.github.com/bootstrap/) generators for Rails 4 (supported Rails >= 3.1). Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
|
5
|
+
Bootstrap-generators provides [Twitter Bootstrap](http://twitter.github.com/bootstrap/) generators for Rails 4 (supported Rails >= 3.1). Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
|
6
6
|
|
7
7
|
## Current Twitter Bootstrap version
|
8
8
|
|
@@ -120,18 +120,19 @@ Select all jQuery plugins (`app/assets/javascripts/bootstrap.js`)
|
|
120
120
|
|
121
121
|
Or quickly add only the necessary javascript (Transitions: required for any animation; Popovers: requires Tooltips)
|
122
122
|
|
123
|
-
//= require bootstrap/
|
123
|
+
//= require bootstrap/affix
|
124
|
+
//= require bootstrap/scrollspy
|
124
125
|
//= require bootstrap/collapse
|
125
|
-
//= require bootstrap/
|
126
|
+
//= require bootstrap/alert
|
127
|
+
//= require bootstrap/dropdown
|
126
128
|
//= require bootstrap/button
|
129
|
+
//= require bootstrap/modal
|
130
|
+
//= require bootstrap/carousel
|
127
131
|
//= require bootstrap/tooltip
|
128
132
|
//= require bootstrap/popover
|
129
|
-
//= require bootstrap/
|
130
|
-
//= require bootstrap/affix
|
131
|
-
//= require bootstrap/modal
|
133
|
+
//= require bootstrap/transition
|
132
134
|
//= require bootstrap/tab
|
133
|
-
|
134
|
-
//= require bootstrap/dropdown
|
135
|
+
|
135
136
|
|
136
137
|
## Customizing Templates
|
137
138
|
|
data/Rakefile
CHANGED
@@ -12,9 +12,13 @@ task :default => :test
|
|
12
12
|
namespace :bootstrap do
|
13
13
|
desc "Update to a new version of Twitter Bootstrap"
|
14
14
|
task :update do
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
bootstrap_version = "3.0.0"
|
16
|
+
striped_bootstrap_generators_version = "3.0"
|
17
|
+
|
18
|
+
twitter_latest_dist_zip_url = "https://github.com/twbs/bootstrap/archive/v#{bootstrap_version}.zip"
|
19
|
+
twitter_sass_lastest_dist_zip_url = "https://github.com/jlong/sass-bootstrap/archive/v#{bootstrap_version}.zip"
|
20
|
+
twitter_bootstrap_dir = "tmp/bootstrap-#{bootstrap_version}"
|
21
|
+
twitter_sass_bootstrap_dir = "tmp/sass-bootstrap-#{bootstrap_version}"
|
18
22
|
|
19
23
|
# Make sure tmp/ dir exists
|
20
24
|
Dir.mkdir('tmp') unless File.exists?('tmp')
|
@@ -23,7 +27,7 @@ namespace :bootstrap do
|
|
23
27
|
puts "Twitter Bootstrap already downloaded."
|
24
28
|
else
|
25
29
|
# Download the latest version of Twitter Bootstrap
|
26
|
-
`wget -O tmp/bootstrap.zip
|
30
|
+
`wget -O tmp/bootstrap.zip #{twitter_latest_dist_zip_url}`
|
27
31
|
|
28
32
|
# Extract Twitter Bootstrap
|
29
33
|
`unzip -d tmp tmp/bootstrap.zip`
|
@@ -33,7 +37,7 @@ namespace :bootstrap do
|
|
33
37
|
puts "Twitter Bootstrap Sass already downloaded."
|
34
38
|
else
|
35
39
|
# Download the latest version of Twitter Bootstrap Sass
|
36
|
-
`wget -O tmp/sass-bootstrap.zip
|
40
|
+
`wget -O tmp/sass-bootstrap.zip #{twitter_sass_lastest_dist_zip_url}`
|
37
41
|
|
38
42
|
# Extract Twitter Bootstrap
|
39
43
|
`unzip -d tmp tmp/sass-bootstrap.zip`
|
@@ -101,9 +105,6 @@ namespace :bootstrap do
|
|
101
105
|
# Generate README.md
|
102
106
|
require 'erb'
|
103
107
|
|
104
|
-
bootstrap_version = "3.0.0"
|
105
|
-
striped_bootstrap_generators_version = "3.0"
|
106
|
-
|
107
108
|
javascript_bootstrap_content_code = ""
|
108
109
|
File.open(bootstrap_main_javascript, 'r').each_line do |line|
|
109
110
|
javascript_bootstrap_content_code += " #{line}"
|
data/lib/bootstrap-generators.rb
CHANGED
@@ -9,6 +9,9 @@ module Bootstrap
|
|
9
9
|
app.config.less.paths << File.expand_path('../../vendor/twitter/bootstrap/less', __FILE__) if app.config.respond_to?(:less)
|
10
10
|
app.config.assets.paths << File.expand_path('../../vendor/twitter/bootstrap/sass', __FILE__) if app.config.respond_to?(:sass)
|
11
11
|
|
12
|
+
app.config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
13
|
+
|
14
|
+
app.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
|
12
15
|
app.config.assets.precompile += %w(bootstrap-ie.js)
|
13
16
|
end
|
14
17
|
end
|
@@ -2,40 +2,38 @@
|
|
2
2
|
%html
|
3
3
|
%head
|
4
4
|
%meta{:charset => "utf-8"}
|
5
|
-
%title
|
6
|
-
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
|
5
|
+
%title Starter Template for Bootstrap
|
6
|
+
%meta{:content => "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no", :name => "viewport"}
|
7
7
|
%meta{:content => "", :name => "description"}
|
8
8
|
%meta{:content => "", :name => "author"}
|
9
9
|
|
10
10
|
/ Le HTML5 shim, for IE6-8 support of HTML5 elements
|
11
11
|
/[if lt IE 9]
|
12
|
-
|
13
|
-
|
14
|
-
=
|
12
|
+
= javascript_include_tag "bootstrap-ie"
|
13
|
+
|
14
|
+
= stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true
|
15
|
+
= javascript_include_tag "application", "data-turbolinks-track" => true
|
15
16
|
= csrf_meta_tags
|
16
17
|
%body
|
17
|
-
.navbar.navbar-fixed-top
|
18
|
-
.
|
19
|
-
.
|
20
|
-
%
|
18
|
+
.navbar.navbar-inverse.navbar-fixed-top
|
19
|
+
.container
|
20
|
+
.navbar-header
|
21
|
+
%button.navbar-toggle{:type => "button", :data => {:toggle => "collapse", :target => ".navbar-collapse"} }
|
21
22
|
%span.icon-bar
|
22
23
|
%span.icon-bar
|
23
24
|
%span.icon-bar
|
24
|
-
= link_to "Project name", "#", :class => "brand"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
25
|
+
= link_to "Project name", "#", :class => "navbar-brand"
|
26
|
+
.collapse.navbar-collapse
|
27
|
+
%ul.nav.navbar-nav
|
28
|
+
%li.active
|
29
|
+
%a{:href => "#"} Home
|
30
|
+
%li
|
31
|
+
%a{:href => "#about"} About
|
32
|
+
%li
|
33
|
+
%a{:href => "#contact"} Contact
|
33
34
|
.container
|
34
35
|
- flash.each do |name, msg|
|
35
|
-
= content_tag :div, :class => "alert
|
36
|
-
%
|
36
|
+
= content_tag :div, :class => "alert alert-#{name == :error ? "danger" : "success" } alert-dismissable" do
|
37
|
+
%button.close{:type => "button", :data => {:dismiss => "alert"}, :aria => {:hidden => "true"} } ×
|
37
38
|
= msg
|
38
39
|
= yield
|
39
|
-
%hr
|
40
|
-
%footer
|
41
|
-
%p © Company 2012
|
@@ -8,9 +8,9 @@
|
|
8
8
|
%table.table.table-striped.table-bordered.table-hover
|
9
9
|
%thead
|
10
10
|
%tr
|
11
|
-
|
11
|
+
<% for attribute in attributes -%>
|
12
12
|
%th <%= attribute.human_name %>
|
13
|
-
|
13
|
+
<% end -%>
|
14
14
|
%th
|
15
15
|
%th
|
16
16
|
%th
|
@@ -18,9 +18,9 @@
|
|
18
18
|
%tbody
|
19
19
|
- @<%= plural_table_name %>.each do |<%= singular_table_name %>|
|
20
20
|
%tr
|
21
|
-
|
21
|
+
<% for attribute in attributes -%>
|
22
22
|
%td= <%= singular_table_name %>.<%= attribute.name %>
|
23
|
-
|
23
|
+
<% end -%>
|
24
24
|
%td= link_to 'Show', <%= singular_table_name %>
|
25
25
|
%td= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
|
26
26
|
%td= link_to 'Destroy', <%= singular_table_name %>, :data => { confirm: 'Are you sure?' }, :method => :delete
|
data/readme-template.md.erb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/decioferreira/bootstrap-generators)
|
4
4
|
|
5
|
-
Bootstrap-generators provides [Twitter Bootstrap](http://twitter.github.com/bootstrap/) generators for Rails 4 (supported Rails >= 3.1). Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
|
5
|
+
Bootstrap-generators provides [Twitter Bootstrap](http://twitter.github.com/bootstrap/) generators for Rails 4 (supported Rails >= 3.1). Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
|
6
6
|
|
7
7
|
## Current Twitter Bootstrap version
|
8
8
|
|
@@ -1,12 +1,12 @@
|
|
1
|
-
//= require bootstrap/
|
1
|
+
//= require bootstrap/affix
|
2
|
+
//= require bootstrap/scrollspy
|
2
3
|
//= require bootstrap/collapse
|
3
|
-
//= require bootstrap/
|
4
|
+
//= require bootstrap/alert
|
5
|
+
//= require bootstrap/dropdown
|
4
6
|
//= require bootstrap/button
|
7
|
+
//= require bootstrap/modal
|
8
|
+
//= require bootstrap/carousel
|
5
9
|
//= require bootstrap/tooltip
|
6
10
|
//= require bootstrap/popover
|
7
|
-
//= require bootstrap/
|
8
|
-
//= require bootstrap/affix
|
9
|
-
//= require bootstrap/modal
|
11
|
+
//= require bootstrap/transition
|
10
12
|
//= require bootstrap/tab
|
11
|
-
//= require bootstrap/scrollspy
|
12
|
-
//= require bootstrap/dropdown
|
@@ -10,11 +10,11 @@
|
|
10
10
|
// Import the fonts
|
11
11
|
@font-face {
|
12
12
|
font-family: 'Glyphicons Halflings';
|
13
|
-
src: url('@{icon-font-path}@{icon-font-name}.eot');
|
14
|
-
src: url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),
|
15
|
-
url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),
|
16
|
-
url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),
|
17
|
-
url('@{icon-font-path}@{icon-font-name}.svg#glyphicons-halflingsregular') format('svg');
|
13
|
+
src: font-url('@{icon-font-path}@{icon-font-name}.eot');
|
14
|
+
src: font-url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),
|
15
|
+
font-url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),
|
16
|
+
font-url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),
|
17
|
+
font-url('@{icon-font-path}@{icon-font-name}.svg#glyphicons-halflingsregular') format('svg');
|
18
18
|
}
|
19
19
|
|
20
20
|
// Catchall baseclass
|
@@ -10,11 +10,11 @@
|
|
10
10
|
// Import the fonts
|
11
11
|
@font-face {
|
12
12
|
font-family: 'Glyphicons Halflings';
|
13
|
-
src: url('#{$icon-font-path}#{$icon-font-name}.eot');
|
14
|
-
src: url('#{$icon-font-path}#{$icon-font-name}.eot?#iefix') format('embedded-opentype'),
|
15
|
-
url('#{$icon-font-path}#{$icon-font-name}.woff') format('woff'),
|
16
|
-
url('#{$icon-font-path}#{$icon-font-name}.ttf') format('truetype'),
|
17
|
-
url('#{$icon-font-path}#{$icon-font-name}.svg#glyphicons-halflingsregular') format('svg');
|
13
|
+
src: font-url('#{$icon-font-path}#{$icon-font-name}.eot');
|
14
|
+
src: font-url('#{$icon-font-path}#{$icon-font-name}.eot?#iefix') format('embedded-opentype'),
|
15
|
+
font-url('#{$icon-font-path}#{$icon-font-name}.woff') format('woff'),
|
16
|
+
font-url('#{$icon-font-path}#{$icon-font-name}.ttf') format('truetype'),
|
17
|
+
font-url('#{$icon-font-path}#{$icon-font-name}.svg#glyphicons-halflingsregular') format('svg');
|
18
18
|
}
|
19
19
|
|
20
20
|
// Catchall baseclass
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
4
|
+
version: 3.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Décio Ferreira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project: bootstrap-generators
|
232
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.1.9
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: Bootstrap-generators provides Twitter Bootstrap generators for Rails 4 (supported
|