twitter-bootstrap-rails 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of twitter-bootstrap-rails might be problematic. Click here for more details.

data/README.md CHANGED
@@ -20,11 +20,22 @@ You can run bundle from command line
20
20
 
21
21
  bundle install
22
22
 
23
+ ## Installing to App
24
+ Run generator to install Twitter Bootstrap
25
+ You can run generator from command line
23
26
 
27
+
28
+ rails g bootstrap:install
29
+
30
+ Generator;
31
+
32
+ Adds bootstrap requires to application.css and application.js.
33
+ Adds bootstrap boilerplate Less and Coffee files to build with Twitter Bootstrap easily.
34
+
35
+
24
36
  ## Using with Less
25
37
 
26
- Bootstrap was built with Preboot, an open-source pack of mixins and variables to be used in conjunction with Less,
27
- a CSS preprocessor for faster and easier web development.
38
+ Bootstrap was built with Preboot, an open-source pack of mixins and variables to be used in conjunction with Less, a CSS preprocessor for faster and easier web development.
28
39
 
29
40
  ## Using stylesheets with Less
30
41
 
@@ -60,28 +71,30 @@ You have to require Bootstrap JS (bootstrap.js) in your application.js
60
71
  ## Using With Coffeescript
61
72
 
62
73
  Using Twitter Bootstrap with the CoffeeScript is easy.
63
- Just create a "application.js.coffee" file to /app/assets/javascripts/ folder and put lines below.
64
-
65
- $ ->
66
- $("body > .topbar").scrollSpy()
67
- $ ->
68
- $(".tabs").tabs()
69
- $ ->
70
- $("a[rel=twipsy]").twipsy live: true
71
- $ ->
72
- $("a[rel=popover]").popover offset: 10
73
- $ ->
74
- $(".topbar-wrapper").dropdown()
75
- $ ->
76
- $(".alert-message").alert()
77
- $ ->
78
- domModal = $(".modal").modal(
79
- backdrop: true
80
- closeOnEscape: true
81
- )
82
- $(".open-modal").click ->
83
- domModal.toggle()
84
-
74
+ Just create a "bootstrap.js.coffee" file to /app/assets/javascripts/ folder and put lines below.
75
+
76
+ $ ->
77
+ $("body > .topbar").scrollSpy()
78
+ $ ->
79
+ $(".tabs").tabs()
80
+ $ ->
81
+ $("a[rel=twipsy]").twipsy live: true
82
+ $ ->
83
+ $("a[rel=popover]").popover offset: 10
84
+ $ ->
85
+ $(".topbar-wrapper").dropdown()
86
+ $ ->
87
+ $(".alert-message").alert()
88
+ $ ->
89
+ domModal = $(".modal").modal(
90
+ backdrop: true
91
+ closeOnEscape: true
92
+ )
93
+ $(".open-modal").click ->
94
+ domModal.toggle()
95
+ $ ->
96
+ $(".btn").button "complete"
97
+
85
98
 
86
99
  ## Using Static CSS, JS (w/o Less)
87
100
 
@@ -101,8 +114,18 @@ twitter-bootstrap-rails has seperate branch (w/o Less) that just serves latest s
101
114
  <li>Created new branch for the static version of Bootstrap (w/o Less) - check static branch</li>
102
115
  <li>Added path to support heroku deploy</li>
103
116
  <li>Rake precompile issue fixed</li>
117
+ <li>Updated asset files to 1.4.0</li>
118
+ <li>Updated dependency less-rails (now requires 2.1.0)</li>
119
+ <li>Added generators</li>
104
120
  </ul>
105
121
 
122
+
123
+ ## Future
124
+ <ul>
125
+ <li>Writing tests (not implemented yet)</li>
126
+ </ul>
127
+
128
+
106
129
  ## Credits
107
130
  Seyhun Akyürek - seyhunak [at] gmail com
108
131
 
@@ -0,0 +1,21 @@
1
+ require 'rails/generators'
2
+
3
+ module Bootstrap
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+ desc "This generator installs Twitter Bootstrap to Asset Pipeline"
8
+
9
+ def add_assets
10
+ insert_into_file "app/assets/javascripts/application.js", "//= require twitter/bootstrap\n", :after => "jquery_ujs\n"
11
+ insert_into_file "app/assets/stylesheets/application.css", " *= require twitter/bootstrap\n", :after => "require_self\n"
12
+ end
13
+
14
+ def add_bootstrap
15
+ copy_file "bootstrap.coffee", "app/assets/javascripts/bootstrap.js.coffee"
16
+ copy_file "bootstrap.less", "app/assets/stylesheets/bootstrap.css.less"
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ $ ->
2
+ $("body > .topbar").scrollSpy()
3
+ $ ->
4
+ $(".tabs").tabs()
5
+ $ ->
6
+ $("a[rel=twipsy]").twipsy live: true
7
+ $ ->
8
+ $("a[rel=popover]").popover offset: 10
9
+ $ ->
10
+ $(".topbar-wrapper").dropdown()
11
+ $ ->
12
+ $(".alert-message").alert()
13
+ $ ->
14
+ domModal = $(".modal").modal(
15
+ backdrop: true
16
+ closeOnEscape: true
17
+ )
18
+ $(".open-modal").click ->
19
+ domModal.toggle()
20
+ $ ->
21
+ $(".btn").button "complete"
@@ -0,0 +1,5 @@
1
+ @import "twitter/bootstrap";
2
+
3
+ // Baseline grid
4
+ @basefont: 13px;
5
+ @baseline: 18px;
@@ -1,10 +1,10 @@
1
1
  module Twitter
2
2
  module Bootstrap
3
- module Rails
3
+ module Rails
4
+ require 'twitter/bootstrap/rails/engine' if defined?(Rails)
4
5
  end
5
6
  end
6
7
  end
7
8
 
8
9
  require 'less-rails'
9
10
  require 'twitter/bootstrap/rails/bootstrap'
10
-
@@ -1,3 +1,5 @@
1
+ require 'rails'
2
+
1
3
  module Twitter
2
4
  module Bootstrap
3
5
  module Rails
@@ -1,7 +1,7 @@
1
1
  module Twitter
2
2
  module Bootstrap
3
3
  module Rails
4
- VERSION = "1.4.0"
4
+ VERSION = "1.4.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-05 00:00:00.000000000Z
12
+ date: 2011-11-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: less
16
- requirement: &75106590 !ruby/object:Gem::Requirement
16
+ requirement: &86169320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,32 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *75106590
24
+ version_requirements: *86169320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: less-rails
27
- requirement: &75106310 !ruby/object:Gem::Requirement
27
+ requirement: &86169070 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.1
32
+ version: 2.1.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *75106310
35
+ version_requirements: *86169070
36
+ - !ruby/object:Gem::Dependency
37
+ name: jquery-rails
38
+ requirement: &86168790 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '1.0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *86168790
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: railties
38
- requirement: &75106070 !ruby/object:Gem::Requirement
49
+ requirement: &86168590 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: '0'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *75106070
57
+ version_requirements: *86168590
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: actionpack
49
- requirement: &75105760 !ruby/object:Gem::Requirement
60
+ requirement: &86168270 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: '0'
55
66
  type: :runtime
56
67
  prerelease: false
57
- version_requirements: *75105760
68
+ version_requirements: *86168270
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: bundler
60
- requirement: &75105450 !ruby/object:Gem::Requirement
71
+ requirement: &86167930 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ! '>='
@@ -65,10 +76,10 @@ dependencies:
65
76
  version: '0'
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *75105450
79
+ version_requirements: *86167930
69
80
  - !ruby/object:Gem::Dependency
70
81
  name: rails
71
- requirement: &75105050 !ruby/object:Gem::Requirement
82
+ requirement: &86167440 !ruby/object:Gem::Requirement
72
83
  none: false
73
84
  requirements:
74
85
  - - ~>
@@ -76,7 +87,7 @@ dependencies:
76
87
  version: 3.1.1
77
88
  type: :development
78
89
  prerelease: false
79
- version_requirements: *75105050
90
+ version_requirements: *86167440
80
91
  description: twitter-bootstrap-rails project integrates Bootstrap CSS toolkit for
81
92
  Rails 3.1 Asset Pipeline
82
93
  email:
@@ -85,42 +96,41 @@ executables: []
85
96
  extensions: []
86
97
  extra_rdoc_files: []
87
98
  files:
88
- - .gitignore
89
- - Gemfile
90
- - README.md
91
- - Rakefile
99
+ - lib/generators/bootstrap/install/templates/bootstrap.coffee
100
+ - lib/generators/bootstrap/install/templates/bootstrap.less
101
+ - lib/generators/bootstrap/install/install_generator.rb
92
102
  - lib/twitter-bootstrap-rails.rb
93
103
  - lib/twitter/bootstrap/rails/bootstrap.rb
94
- - lib/twitter/bootstrap/rails/engine.rb
95
104
  - lib/twitter/bootstrap/rails/version.rb
96
- - twitter-bootstrap-rails.gemspec
105
+ - lib/twitter/bootstrap/rails/engine.rb
106
+ - vendor/assets/stylesheets/twitter/bootstrap.css.less
97
107
  - vendor/assets/javascripts/twitter/bootstrap.js
98
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-alerts.js
99
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-buttons.js
100
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js
108
+ - vendor/assets/javascripts/twitter/bootstrap/bootstrap-twipsy.js
101
109
  - vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js
110
+ - vendor/assets/javascripts/twitter/bootstrap/bootstrap-tabs.js
111
+ - vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js
102
112
  - vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js
113
+ - vendor/assets/javascripts/twitter/bootstrap/bootstrap-alerts.js
103
114
  - vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js
104
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-tabs.js
105
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-twipsy.js
106
- - vendor/assets/stylesheets/twitter/bootstrap.css.less
115
+ - vendor/assets/javascripts/twitter/bootstrap/bootstrap-buttons.js
107
116
  - vendor/toolkit/twitter/bootstrap.less
108
- - vendor/toolkit/twitter/bootstrap/bootstrap.less
109
- - vendor/toolkit/twitter/bootstrap/forms.less
110
- - vendor/toolkit/twitter/bootstrap/mixins.less
111
117
  - vendor/toolkit/twitter/bootstrap/patterns.less
112
- - vendor/toolkit/twitter/bootstrap/reset.less
113
- - vendor/toolkit/twitter/bootstrap/scaffolding.less
114
118
  - vendor/toolkit/twitter/bootstrap/tables.less
119
+ - vendor/toolkit/twitter/bootstrap/scaffolding.less
120
+ - vendor/toolkit/twitter/bootstrap/forms.less
121
+ - vendor/toolkit/twitter/bootstrap/reset.less
122
+ - vendor/toolkit/twitter/bootstrap/mixins.less
115
123
  - vendor/toolkit/twitter/bootstrap/type.less
124
+ - vendor/toolkit/twitter/bootstrap/bootstrap.less
116
125
  - vendor/toolkit/twitter/bootstrap/variables.less
126
+ - Rakefile
127
+ - README.md
117
128
  homepage: https://github.com/seyhunak/twitter-bootstrap-rails
118
129
  licenses: []
119
130
  post_install_message:
120
131
  rdoc_options: []
121
132
  require_paths:
122
133
  - lib
123
- - vendor
124
134
  required_ruby_version: !ruby/object:Gem::Requirement
125
135
  none: false
126
136
  requirements:
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- .DS_Store
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in twitter-bootstrap-rails.gemspec
4
- gemspec
5
- gem 'less-rails', :path => ENV['LESS_RAILS_PATH'] if ENV['LESS_RAILS_PATH']
@@ -1,29 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "twitter/bootstrap/rails/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "twitter-bootstrap-rails"
7
- s.version = Twitter::Bootstrap::Rails::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Seyhun Akyurek"]
10
- s.email = ["seyhunak@gmail.com"]
11
- s.homepage = "https://github.com/seyhunak/twitter-bootstrap-rails"
12
- s.summary = %q{Bootstrap CSS toolkit for Rails 3.1 Asset Pipeline}
13
- s.description = %q{twitter-bootstrap-rails project integrates Bootstrap CSS toolkit for Rails 3.1 Asset Pipeline}
14
-
15
- s.rubyforge_project = "twitter-bootstrap-rails"
16
-
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
- s.require_paths = ["lib","vendor"]
21
-
22
- s.add_runtime_dependency 'less'
23
- s.add_runtime_dependency "less-rails", "~> 2.0.1"
24
- s.add_runtime_dependency 'railties'
25
- s.add_runtime_dependency 'actionpack'
26
- s.add_development_dependency "bundler"
27
- s.add_development_dependency 'rails', '~> 3.1.1'
28
- end
29
-