bootstrap_views_generator 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -3
- data/bootstrap_views_generator.gemspec +1 -2
- data/lib/bootstrap_views_generator/version.rb +1 -1
- data/lib/generators/bootstrap/templates/layouts/application.html.erb.tt +9 -1
- data/lib/generators/bootstrap/templates/layouts/application.html.haml.tt +11 -3
- data/lib/generators/bootstrap/templates/layouts/application.html.slim.tt +9 -1
- metadata +3 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff96dca772d47607838d52846f96c6c5e80afeca00cbcfa7df3e95fef4afd15c
|
4
|
+
data.tar.gz: cb8ed662d53eb0a11854dc8ef77b7109ed031e8dade086d6ec3a0007deda6905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ad79e1d6ea6811657c9c2a6c55283655ba90e8b9477e0dda11b39e0e6d1f184a49f69f6e6191c2e7acfc9790483c027af3643e3d7371c861d609485077358ec
|
7
|
+
data.tar.gz: 85dff8913281a2bd8baddf99e8c1365f71a1e62834b671f1a9df79b4ef6f5cea652e8b63ca003be5bc9ecd3a767f16d7ff6ccfa18ca0ad41d95b1075d093f064
|
data/Gemfile.lock
CHANGED
@@ -34,8 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ['lib']
|
36
36
|
|
37
|
-
spec.add_runtime_dependency '
|
38
|
-
spec.add_runtime_dependency 'railties', '>= 4.0', '< 6.0'
|
37
|
+
spec.add_runtime_dependency 'railties', '>= 4.0'
|
39
38
|
spec.add_development_dependency 'bundler', '>= 1.17'
|
40
39
|
spec.add_development_dependency 'rake', '>= 10.0'
|
41
40
|
end
|
@@ -13,10 +13,18 @@
|
|
13
13
|
<%%= csp_meta_tag %>
|
14
14
|
<%- if options[:skip_turbolinks] -%>
|
15
15
|
<%%= stylesheet_link_tag 'application', media: 'all' %>
|
16
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') %>
|
16
17
|
<%%= javascript_include_tag 'application' %>
|
18
|
+
<%- else %>
|
19
|
+
<%%= javascript_pack_tag 'application' %>
|
20
|
+
<%- end %>
|
17
21
|
<%- else -%>
|
18
22
|
<%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
19
|
-
|
23
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') %>
|
24
|
+
<%%= javascript_include_tag 'application', 'data-turbolinks-track': true %>
|
25
|
+
<%- else %>
|
26
|
+
<%%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
27
|
+
<% end %>
|
20
28
|
<%- end -%>
|
21
29
|
<!--IE Polyfill for CSS Elements-->
|
22
30
|
<!--HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries-->
|
@@ -8,16 +8,24 @@
|
|
8
8
|
<%- if options[:metatags] %>
|
9
9
|
= display_meta_tags site: '<%= Rails.application.class.parent.to_s.titleize %>'
|
10
10
|
<% else %>
|
11
|
-
title Bootstrap template
|
11
|
+
%title Bootstrap template
|
12
12
|
<% end %>
|
13
13
|
= csrf_meta_tags
|
14
14
|
= csp_meta_tag
|
15
15
|
<%- if options[:skip_turbolinks] -%>
|
16
16
|
= stylesheet_link_tag 'application', media: 'all'
|
17
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') %>
|
17
18
|
= javascript_include_tag 'application'
|
19
|
+
<%- else %>
|
20
|
+
= javascript_pack_tag 'application'
|
21
|
+
<%- end %>
|
18
22
|
<%- else -%>
|
19
23
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
20
|
-
|
24
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') %>
|
25
|
+
= javascript_include_tag 'application', 'data-turbolinks-track': true
|
26
|
+
<%- else %>
|
27
|
+
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
28
|
+
<% end %>
|
21
29
|
<%- end -%>
|
22
30
|
/ IE Polyfill for CSS Elements
|
23
31
|
/ HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries
|
@@ -26,6 +34,6 @@
|
|
26
34
|
/[if lte IE 8]
|
27
35
|
= javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/ie8/0.8.0/ie8.js'
|
28
36
|
%body
|
29
|
-
%main
|
37
|
+
%main{class: 'container-fluid px-3 py-3', role: 'main'}
|
30
38
|
= flash_messages
|
31
39
|
= yield
|
@@ -13,10 +13,18 @@ html
|
|
13
13
|
= csp_meta_tag
|
14
14
|
<%- if options[:skip_turbolinks] -%>
|
15
15
|
= stylesheet_link_tag 'application', media: 'all'
|
16
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') %>
|
16
17
|
= javascript_include_tag 'application'
|
18
|
+
<%- else %>
|
19
|
+
= javascript_pack_tag 'application'
|
20
|
+
<%- end %>
|
17
21
|
<%- else -%>
|
18
22
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
19
|
-
|
23
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') %>
|
24
|
+
= javascript_include_tag 'application', 'data-turbolinks-track': true
|
25
|
+
<%- else %>
|
26
|
+
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
|
27
|
+
<% end %>
|
20
28
|
<%- end -%>
|
21
29
|
/! IE Polyfill for CSS Elements
|
22
30
|
/! HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries
|
metadata
CHANGED
@@ -1,35 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_views_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hicks
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bootstrap
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.0'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5.0'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '4.0'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5.0'
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: railties
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +17,6 @@ dependencies:
|
|
37
17
|
- - ">="
|
38
18
|
- !ruby/object:Gem::Version
|
39
19
|
version: '4.0'
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '6.0'
|
43
20
|
type: :runtime
|
44
21
|
prerelease: false
|
45
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +24,6 @@ dependencies:
|
|
47
24
|
- - ">="
|
48
25
|
- !ruby/object:Gem::Version
|
49
26
|
version: '4.0'
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '6.0'
|
53
27
|
- !ruby/object:Gem::Dependency
|
54
28
|
name: bundler
|
55
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
183
|
- !ruby/object:Gem::Version
|
210
184
|
version: '0'
|
211
185
|
requirements: []
|
212
|
-
rubygems_version: 3.0.
|
186
|
+
rubygems_version: 3.0.6
|
213
187
|
signing_key:
|
214
188
|
specification_version: 4
|
215
189
|
summary: Bootstrap generators for overwriting the default Rails view generators
|