rails-bootstrap 3.0.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.
data/README.md CHANGED
@@ -1,3 +1,17 @@
1
1
  # Rails::Bootstrap
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/rails-bootstrap.png)](http://badge.fury.io/rb/rails-bootstrap)
4
+
3
5
  Bootstrap for Rails
6
+
7
+ # Usage
8
+
9
+ Add the gem to your Gemfile with:
10
+
11
+ gem 'rails-bootstrap'
12
+
13
+ Run the bundle command to install it.
14
+
15
+ Now you can run the generator to include the css and js:
16
+
17
+ rails generate bootstrap:install
@@ -0,0 +1,23 @@
1
+ module Bootstrap
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ #source_root File.expand_path("../../templates", __FILE__)
5
+
6
+ desc "Install bootstrap support to your application."
7
+
8
+ def install_stylesheets
9
+ line = " *= require_tree ."
10
+ gsub_file 'app/assets/stylesheets/application.css', /(#{Regexp.escape(line)})/mi do |match|
11
+ " *= require bootstrap\n#{match}"
12
+ end
13
+ end
14
+
15
+ def install_javascript
16
+ line = "//= require_tree ."
17
+ gsub_file 'app/assets/javascripts/application.js', /(#{Regexp.escape(line)})/mi do |match|
18
+ "//= require bootstrap\n#{match}"
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Bootstrap
3
- VERSION = "3.0.0.0"
3
+ VERSION = "3.0.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.0
4
+ version: 3.0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -55,6 +55,7 @@ files:
55
55
  - LICENSE.txt
56
56
  - README.md
57
57
  - Rakefile
58
+ - lib/generators/bootstrap/install_generator.rb
58
59
  - lib/rails/bootstrap.rb
59
60
  - lib/rails/bootstrap/version.rb
60
61
  - rails-bootstrap.gemspec
@@ -75,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
76
  version: '0'
76
77
  segments:
77
78
  - 0
78
- hash: -4562178427525346496
79
+ hash: 3766755867177778748
79
80
  required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  none: false
81
82
  requirements:
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  version: '0'
85
86
  segments:
86
87
  - 0
87
- hash: -4562178427525346496
88
+ hash: 3766755867177778748
88
89
  requirements: []
89
90
  rubyforge_project:
90
91
  rubygems_version: 1.8.25