BootstrapMan 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55a2ae02c16c64c625cc087353c9662977a9172fe4709338d00b57798c7d77f3
4
- data.tar.gz: 4ff6cbb3600938c7bb569d4bc9d21c748e4d45852377c18cc7d150a5876911d1
3
+ metadata.gz: 3268b94c438f7eae2bb0f3af57c4568ee0eb0a055d0d4dadc0c0a3fd96881f70
4
+ data.tar.gz: 1a640e85e303e69cb8a407c5eb04328e1aaba49d88b14f5ef8e2ae80addf31c9
5
5
  SHA512:
6
- metadata.gz: 31dc10ff723ebf945166c8f8025aa730ea9760df786d3001c9665925f96b2e0dc7f2bcddf12a0e8b94e5d2118bace5644d793b2f5757ff6e3096f570661c8fa3
7
- data.tar.gz: 604aa75760e47e69ea8b6e728e0a4aac6fc1d4e602aa7c5a83125e690200da0feb2848a5146b51077483931de529c7391c3d2ebc39ce77fc5ccfe36a242ec679
6
+ metadata.gz: a3ecb62718f7b0940a3476425fc8a971a31d2e8228fc9b9171b404cd0818568fb23de292d68f671acda3fa3b4509bbdedda6d3281cb75428fc882b8fe24f6d73
7
+ data.tar.gz: d99f9644e386397feaf81946db9d285e4daf17a91e7cbd29dd4347405d1021862b59c50e43ff3e7b17dd744ac66fa0764f5cd135b943da1908e67b06dec4aef1
data/.gitignore CHANGED
@@ -152,6 +152,5 @@ build-iPhoneSimulator/
152
152
  /spec/reports/
153
153
  /tmp/
154
154
 
155
- BootstrapMan-0.1.0.gem
156
155
  # rspec failure tracking
157
156
  .rspec_status
data/README.md CHANGED
@@ -9,7 +9,7 @@ You don't need to customize the stylesheets manually, the only gem you need is t
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'BootstrapMan'
12
+ gem 'BootstrapMan', '~> 0.1.2'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -1,3 +1,3 @@
1
1
  module BootstrapMan
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -7,7 +7,8 @@ module Bootstrap
7
7
 
8
8
  attr_reader :app_name
9
9
 
10
- def add_assets
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BootstrapMan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndyMental