BootstrapMan 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/README.md +1 -1
- data/lib/BootstrapMan/version.rb +1 -1
- data/lib/generators/bootstrap/install/install_generator.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3268b94c438f7eae2bb0f3af57c4568ee0eb0a055d0d4dadc0c0a3fd96881f70
|
4
|
+
data.tar.gz: 1a640e85e303e69cb8a407c5eb04328e1aaba49d88b14f5ef8e2ae80addf31c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3ecb62718f7b0940a3476425fc8a971a31d2e8228fc9b9171b404cd0818568fb23de292d68f671acda3fa3b4509bbdedda6d3281cb75428fc882b8fe24f6d73
|
7
|
+
data.tar.gz: d99f9644e386397feaf81946db9d285e4daf17a91e7cbd29dd4347405d1021862b59c50e43ff3e7b17dd744ac66fa0764f5cd135b943da1908e67b06dec4aef1
|
data/.gitignore
CHANGED
data/README.md
CHANGED
data/lib/BootstrapMan/version.rb
CHANGED
@@ -7,7 +7,8 @@ module Bootstrap
|
|
7
7
|
|
8
8
|
attr_reader :app_name
|
9
9
|
|
10
|
-
def
|
10
|
+
def setup
|
11
|
+
# Adding Templates
|
11
12
|
js_manifest = 'app/assets/javascripts/application.js'
|
12
13
|
|
13
14
|
if File.exist?(js_manifest)
|
@@ -34,12 +35,15 @@ module Bootstrap
|
|
34
35
|
copy_file "bootstrap_forms.scss", "app/assets/stylesheets/bootstrap_forms.scss"
|
35
36
|
end
|
36
37
|
|
38
|
+
# Adding Templates
|
37
39
|
app = ::Rails.application
|
38
40
|
@app_name = app.class.to_s.split("::").first
|
39
41
|
ext = app.config.generators.options[:rails][:template_engine] || :erb
|
40
42
|
template "layout.html.#{ext}", "app/views/layouts/application.html.#{ext}"
|
41
43
|
template "_navbar.html.#{ext}", "app/views/shared/_navbar.html.#{ext}"
|
42
44
|
template "_footer.html.#{ext}", "app/views/shared/_footer.html.#{ext}"
|
45
|
+
|
46
|
+
insert_into_file "Gemfile", "# Adding gems required by BootstrapMan\ngem 'jquery-rails'\ngem 'bootstrap'\ngem 'font-awesome-rails'\ngem 'bootstrap_form'\n", :before => "end"
|
43
47
|
end
|
44
48
|
end
|
45
49
|
end
|