twitter-bootstrap-rails 1.4.1 → 1.4.2

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
@@ -26,13 +26,13 @@ You can run generator from command line
26
26
 
27
27
 
28
28
  rails g bootstrap:install
29
-
29
+
30
30
  Generator;
31
-
31
+
32
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
-
33
+ Adds bootstrap boilerplate Less and Coffee files to build with Twitter Bootstrap easily.
34
+
35
+
36
36
  ## Using with Less
37
37
 
38
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.
@@ -46,12 +46,12 @@ You have to require Bootstrap LESS (bootstrap.less) in your application.css
46
46
  */
47
47
 
48
48
  /* Your stylesheets goes here... */
49
-
49
+
50
50
 
51
51
  Now, you can override LESS files provided by Twitter Bootstrap
52
52
 
53
53
  @import "twitter/bootstrap";
54
-
54
+
55
55
  // Baseline grid
56
56
  @basefont: 13px;
57
57
  @baseline: 18px;
@@ -91,17 +91,17 @@ Just create a "bootstrap.js.coffee" file to /app/assets/javascripts/ folder and
91
91
  closeOnEscape: true
92
92
  )
93
93
  $(".open-modal").click ->
94
- domModal.toggle()
94
+ domModal.toggle()
95
95
  $ ->
96
96
  $(".btn").button "complete"
97
-
97
+
98
98
 
99
99
  ## Using Static CSS, JS (w/o Less)
100
100
 
101
101
  twitter-bootstrap-rails has seperate branch (w/o Less) that just serves latest static CSS, JS files.
102
102
 
103
103
  You can install from latest build (from branch);
104
-
104
+
105
105
  gem 'twitter-bootstrap-rails', :git => "git://github.com/seyhunak/twitter-bootstrap-rails.git", :branch => "static"
106
106
 
107
107
 
@@ -117,12 +117,14 @@ twitter-bootstrap-rails has seperate branch (w/o Less) that just serves latest s
117
117
  <li>Updated asset files to 1.4.0</li>
118
118
  <li>Updated dependency less-rails (now requires 2.1.0)</li>
119
119
  <li>Added generators</li>
120
+ <li>Fixed generators</li>
121
+ <li>Fixed class name conflicts from (bootstrap.js.coffee)</li>
120
122
  </ul>
121
123
 
122
124
 
123
125
  ## Future
124
126
  <ul>
125
- <li>Writing tests (not implemented yet)</li>
127
+ <li>Writing tests (not implemented yet)</li>
126
128
  </ul>
127
129
 
128
130
 
@@ -155,4 +157,3 @@ Copyright (c) 2011 Seyhun Akyürek
155
157
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
156
158
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
157
159
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
158
-
@@ -3,19 +3,27 @@ require 'rails/generators'
3
3
  module Bootstrap
4
4
  module Generators
5
5
  class InstallGenerator < Rails::Generators::Base
6
- source_root File.expand_path("../templates", __FILE__)
6
+ source_root File.expand_path("../templates", __FILE__)
7
7
  desc "This generator installs Twitter Bootstrap to Asset Pipeline"
8
-
8
+
9
9
  def add_assets
10
+ if File.exist?('app/assets/javascripts/application.js')
10
11
  insert_into_file "app/assets/javascripts/application.js", "//= require twitter/bootstrap\n", :after => "jquery_ujs\n"
12
+ else
13
+ copy_file "application.js", "app/assets/javascripts/application.js"
14
+ end
15
+ if File.exist?('app/assets/stylesheets/application.css')
11
16
  insert_into_file "app/assets/stylesheets/application.css", " *= require twitter/bootstrap\n", :after => "require_self\n"
17
+ else
18
+ copy_file "application.css", "app/assets/stylesheets/application.css"
19
+ end
12
20
  end
13
-
21
+
14
22
  def add_bootstrap
15
23
  copy_file "bootstrap.coffee", "app/assets/javascripts/bootstrap.js.coffee"
16
24
  copy_file "bootstrap.less", "app/assets/stylesheets/bootstrap.css.less"
17
25
  end
18
-
26
+
19
27
  end
20
28
  end
21
29
  end
@@ -0,0 +1,8 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require twitter/bootstrap
7
+ *= require_tree .
8
+ */
@@ -0,0 +1,10 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require twitter/bootstrap
10
+ //= require_tree .
@@ -17,5 +17,3 @@ $ ->
17
17
  )
18
18
  $(".open-modal").click ->
19
19
  domModal.toggle()
20
- $ ->
21
- $(".btn").button "complete"
@@ -1,8 +1,7 @@
1
1
  module Twitter
2
2
  module Bootstrap
3
3
  module Rails
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
6
6
  end
7
7
  end
8
-
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.1
4
+ version: 1.4.2
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-21 00:00:00.000000000Z
12
+ date: 2011-12-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: less
16
- requirement: &86169320 !ruby/object:Gem::Requirement
16
+ requirement: &82671160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *86169320
24
+ version_requirements: *82671160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: less-rails
27
- requirement: &86169070 !ruby/object:Gem::Requirement
27
+ requirement: &82670810 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.1.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *86169070
35
+ version_requirements: *82670810
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jquery-rails
38
- requirement: &86168790 !ruby/object:Gem::Requirement
38
+ requirement: &82670380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *86168790
46
+ version_requirements: *82670380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: railties
49
- requirement: &86168590 !ruby/object:Gem::Requirement
49
+ requirement: &82669710 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *86168590
57
+ version_requirements: *82669710
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: actionpack
60
- requirement: &86168270 !ruby/object:Gem::Requirement
60
+ requirement: &82669460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *86168270
68
+ version_requirements: *82669460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &86167930 !ruby/object:Gem::Requirement
71
+ requirement: &82669160 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *86167930
79
+ version_requirements: *82669160
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rails
82
- requirement: &86167440 !ruby/object:Gem::Requirement
82
+ requirement: &82668840 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 3.1.1
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *86167440
90
+ version_requirements: *82668840
91
91
  description: twitter-bootstrap-rails project integrates Bootstrap CSS toolkit for
92
92
  Rails 3.1 Asset Pipeline
93
93
  email:
@@ -97,6 +97,8 @@ extensions: []
97
97
  extra_rdoc_files: []
98
98
  files:
99
99
  - lib/generators/bootstrap/install/templates/bootstrap.coffee
100
+ - lib/generators/bootstrap/install/templates/application.js
101
+ - lib/generators/bootstrap/install/templates/application.css
100
102
  - lib/generators/bootstrap/install/templates/bootstrap.less
101
103
  - lib/generators/bootstrap/install/install_generator.rb
102
104
  - lib/twitter-bootstrap-rails.rb