bootstrap-generators 3.0.0 → 3.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9a29d2113c2d2b744aff5611e03e66861eec058
4
- data.tar.gz: 7f6431aa2b5cb3e54ceed9860f0d4e9ad3dad93c
3
+ metadata.gz: 45c1a65a154ab3da4dddb5bf0841c67a6993d41a
4
+ data.tar.gz: 878afc9777833c4e07f02a2b606691892a09813a
5
5
  SHA512:
6
- metadata.gz: a1e6eb32227a21c36a7337eab295f1a4eece5cf450ff15df4b3eb1cef559f0540a0cc06290b4546b27e3474228c1bf5162893e4ad3481dc018786f0dfe9c3812
7
- data.tar.gz: 2107a3eadb94faf8eee87794df79019673a5eae559a569da0cbe5123f6733276329d4128eed26a6c6e7823b7cf674fd9de37c0bc435fe1a35dc2f6b36670f15d
6
+ metadata.gz: b46fca4dc193722548740e3900583e2a2fbd6cd6f8464e2708c7c2302471b1679e181e81d10f0ac251527e4bc9f2f35ed1c1147e8f7ddae3de8be786c49d78b6
7
+ data.tar.gz: 8f5a57e9287ba0ff1c0344ced35434d8a1a6886f563795d486df66d28bc853214ffd2bb56ac92508690c62a7d5f905eb003b07cb38d6c370c52f6c4ee537ceeb
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/decioferreira/bootstrap-generators.png?branch=master)](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. Checkout http://decioferreira.github.com/bootstrap-generators.
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/transition
123
+ //= require bootstrap/affix
124
+ //= require bootstrap/scrollspy
124
125
  //= require bootstrap/collapse
125
- //= require bootstrap/carousel
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/alert
130
- //= require bootstrap/affix
131
- //= require bootstrap/modal
133
+ //= require bootstrap/transition
132
134
  //= require bootstrap/tab
133
- //= require bootstrap/scrollspy
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
- twitter_latest_dist_zip_url = 'https://github.com/twbs/bootstrap/archive/v3.0.0.zip'
16
- twitter_bootstrap_dir = 'tmp/bootstrap-3.0.0'
17
- twitter_sass_bootstrap_dir = 'tmp/sass-bootstrap-3.0.0-sass2'
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 https://github.com/twbs/bootstrap/archive/v3.0.0.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 https://github.com/jlong/sass-bootstrap/archive/v3.0.0-sass2.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}"
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Generators
3
- VERSION = "3.0.0"
3
+ VERSION = "3.0.0.1"
4
4
  end
5
5
  end
@@ -58,7 +58,7 @@
58
58
  // Iconography
59
59
  // -------------------------
60
60
 
61
- @icon-font-path: "/assets/";
61
+ @icon-font-path: "";
62
62
  @icon-font-name: "glyphicons-halflings-regular";
63
63
 
64
64
 
@@ -58,7 +58,7 @@ $headings-line-height: 1.1 !default;
58
58
  // Iconography
59
59
  // -------------------------
60
60
 
61
- $icon-font-path: "/assets/" !default;
61
+ $icon-font-path: "" !default;
62
62
  $icon-font-name: "glyphicons-halflings-regular" !default;
63
63
 
64
64
 
@@ -15,5 +15,5 @@
15
15
  = f.<%= attribute.field_type %> :<%= attribute.name %>, :class => 'form-control'
16
16
  <% end -%>
17
17
  .form-group
18
- .col-lg-offset-2 col-lg-10
18
+ .col-lg-offset-2.col-lg-10
19
19
  = f.submit :class => 'btn btn-primary'
@@ -2,40 +2,38 @@
2
2
  %html
3
3
  %head
4
4
  %meta{:charset => "utf-8"}
5
- %title Bootstrap, from Twitter
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
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
13
- = stylesheet_link_tag "application"
14
- = javascript_include_tag "application"
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
- .navbar-inner
19
- .container
20
- %a.btn.btn-navbar{:data => {:toggle => "collapse", :target => ".nav-collapse"} }
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
- .nav-collapse
26
- %ul.nav
27
- %li.active
28
- %a{:href => "#"} Home
29
- %li
30
- %a{:href => "#about"} About
31
- %li
32
- %a{:href => "#contact"} Contact
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 #{name == :error ? "alert-error" : "alert-success" }" do
36
- %a.close{:href => "#", :data => {:dismiss => "alert"} } ×
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"} } &times;
37
38
  = msg
38
39
  = yield
39
- %hr
40
- %footer
41
- %p &copy; Company 2012
@@ -8,9 +8,9 @@
8
8
  %table.table.table-striped.table-bordered.table-hover
9
9
  %thead
10
10
  %tr
11
- <% for attribute in attributes -%>
11
+ <% for attribute in attributes -%>
12
12
  %th <%= attribute.human_name %>
13
- <% end -%>
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
- <% for attribute in attributes -%>
21
+ <% for attribute in attributes -%>
22
22
  %td= <%= singular_table_name %>.<%= attribute.name %>
23
- <% end -%>
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/decioferreira/bootstrap-generators.png?branch=master)](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. Checkout http://decioferreira.github.com/bootstrap-generators.
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/transition
1
+ //= require bootstrap/affix
2
+ //= require bootstrap/scrollspy
2
3
  //= require bootstrap/collapse
3
- //= require bootstrap/carousel
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/alert
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-08-26 00:00:00.000000000 Z
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.0.3
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