tailwind_views_generator 0.0.1 → 0.0.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +15 -41
- data/README.md +1 -1
- data/lib/tailwind_views_generator/version.rb +1 -1
- data/lib/templates/layouts/application.html.erb.tt +6 -4
- data/lib/templates/layouts/application.html.haml.tt +7 -5
- data/lib/templates/layouts/application.html.slim.tt +7 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8280c9539737411b6bfc9e10812a0347f192c2ae40aa893380f7bc0e95f6f9e4
|
4
|
+
data.tar.gz: 9acd0757d03863158d2d0e552db4779b028a8e78a67e6917f87de060991d7781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c32bfe6b698cd7daf67a3f1762e01bfdb81e34f43d8ca2787b1fe513ecc27dcb7e96846edd2e119bf5fc9a7f8585d709444d0ae1bdb47d1dc78017abe941de2
|
7
|
+
data.tar.gz: 29a1643eeb86d22b2ee04f766d017dccf3d17eeac987402076a21912628e90ed63ea4d992a4e832278fd175acfcbc91c5fd4b631911cda66bcdbefdcb1ad7aa1
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## 2020-04-22
|
9
|
+
|
10
|
+
- Adjust `stylesheet_pack_tag` and `javascript_pack_tag` tags in the layout view depending on if the `--skip-javascript` tag has been passed
|
8
11
|
## 2021-04-14
|
9
12
|
|
10
13
|
- Initial commit
|
data/Gemfile.lock
CHANGED
@@ -1,48 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tailwind_views_generator (0.0.
|
4
|
+
tailwind_views_generator (0.0.2)
|
5
5
|
railties (>= 4.0, <= 7)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.1.1)
|
11
|
-
actionview (= 6.1.1)
|
12
|
-
activesupport (= 6.1.1)
|
10
|
+
actionpack (6.1.3.1)
|
11
|
+
actionview (= 6.1.3.1)
|
12
|
+
activesupport (= 6.1.3.1)
|
13
13
|
rack (~> 2.0, >= 2.0.9)
|
14
14
|
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
-
actionview (6.1.1)
|
18
|
-
activesupport (= 6.1.1)
|
17
|
+
actionview (6.1.3.1)
|
18
|
+
activesupport (= 6.1.3.1)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
-
activesupport (6.1.1)
|
23
|
+
activesupport (6.1.3.1)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
25
|
i18n (>= 1.6, < 2)
|
26
26
|
minitest (>= 5.1)
|
27
27
|
tzinfo (~> 2.0)
|
28
28
|
zeitwerk (~> 2.3)
|
29
|
-
ast (2.4.2)
|
30
29
|
builder (3.2.4)
|
31
30
|
concurrent-ruby (1.1.8)
|
32
31
|
crass (1.0.6)
|
33
32
|
erubi (1.10.0)
|
34
|
-
i18n (1.8.
|
33
|
+
i18n (1.8.10)
|
35
34
|
concurrent-ruby (~> 1.0)
|
36
|
-
loofah (2.9.
|
35
|
+
loofah (2.9.1)
|
37
36
|
crass (~> 1.0.2)
|
38
37
|
nokogiri (>= 1.5.9)
|
39
38
|
method_source (1.0.0)
|
40
|
-
minitest (5.14.
|
41
|
-
nokogiri (1.11.
|
39
|
+
minitest (5.14.4)
|
40
|
+
nokogiri (1.11.3-x86_64-darwin)
|
42
41
|
racc (~> 1.4)
|
43
|
-
parallel (1.20.1)
|
44
|
-
parser (3.0.0.0)
|
45
|
-
ast (~> 2.4.1)
|
46
42
|
racc (1.5.2)
|
47
43
|
rack (2.2.3)
|
48
44
|
rack-test (1.1.0)
|
@@ -52,35 +48,16 @@ GEM
|
|
52
48
|
nokogiri (>= 1.6)
|
53
49
|
rails-html-sanitizer (1.3.0)
|
54
50
|
loofah (~> 2.3)
|
55
|
-
railties (6.1.1)
|
56
|
-
actionpack (= 6.1.1)
|
57
|
-
activesupport (= 6.1.1)
|
51
|
+
railties (6.1.3.1)
|
52
|
+
actionpack (= 6.1.3.1)
|
53
|
+
activesupport (= 6.1.3.1)
|
58
54
|
method_source
|
59
55
|
rake (>= 0.8.7)
|
60
56
|
thor (~> 1.0)
|
61
|
-
rainbow (3.0.0)
|
62
57
|
rake (13.0.3)
|
63
|
-
regexp_parser (2.0.3)
|
64
|
-
rexml (3.2.4)
|
65
|
-
rubocop (1.8.1)
|
66
|
-
parallel (~> 1.10)
|
67
|
-
parser (>= 3.0.0.0)
|
68
|
-
rainbow (>= 2.2.2, < 4.0)
|
69
|
-
regexp_parser (>= 1.8, < 3.0)
|
70
|
-
rexml
|
71
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
72
|
-
ruby-progressbar (~> 1.7)
|
73
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
74
|
-
rubocop-ast (1.4.1)
|
75
|
-
parser (>= 2.7.1.5)
|
76
|
-
rubocop-performance (1.9.2)
|
77
|
-
rubocop (>= 0.90.0, < 2.0)
|
78
|
-
rubocop-ast (>= 0.4.0)
|
79
|
-
ruby-progressbar (1.11.0)
|
80
58
|
thor (1.1.0)
|
81
59
|
tzinfo (2.0.4)
|
82
60
|
concurrent-ruby (~> 1.0)
|
83
|
-
unicode-display_width (2.0.0)
|
84
61
|
zeitwerk (2.4.2)
|
85
62
|
|
86
63
|
PLATFORMS
|
@@ -88,11 +65,8 @@ PLATFORMS
|
|
88
65
|
|
89
66
|
DEPENDENCIES
|
90
67
|
bundler (>= 1.17, <= 3)
|
91
|
-
minitest
|
92
68
|
rake
|
93
|
-
rubocop
|
94
|
-
rubocop-performance
|
95
69
|
tailwind_views_generator!
|
96
70
|
|
97
71
|
BUNDLED WITH
|
98
|
-
2.2.
|
72
|
+
2.2.16
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
This gem is used for generating tailwind based scaffold views for your Rails application. They can be Erb, Slim, or HAML. You can include pagination (using Pagy), simple_form (for the form components), and if you'd like you can utilize the meta-tags gems to all dynamic page titles when switching between your view components.
|
6
6
|
|
7
|
-
This is more or less a sister project of the [bootstrap_views_generator](https://github.com/tarellel/bootstrap_views_generator) and [semantic_ui_views_generator](https://github.com/tarellel/semantic_ui_views_generator) gems, but for those who prefer to use TailwindCSS.
|
7
|
+
This is more or less a sister project of the [bootstrap_views_generator](https://github.com/tarellel/bootstrap_views_generator) and [semantic_ui_views_generator](https://github.com/tarellel/semantic_ui_views_generator) gems, but for those who prefer to use TailwindCSS. If you are using [simple_form](https://github.com/heartcombo/simple_form) I've also created a simple_form [config](https://github.com/tarellel/simple_form-tailwind) for styling your forms with Tailwind.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -12,13 +12,15 @@
|
|
12
12
|
<%%= csrf_meta_tags %>
|
13
13
|
<%%= csp_meta_tag %>
|
14
14
|
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
15
|
-
<%%= stylesheet_link_tag 'application', media: 'all'<%= (options[:skip_turbolinks] || options[:skip_javascript]) ? '' : ", 'data-turbolinks-track': 'reload'" %> %>
|
16
15
|
<%- unless options[:skip_javascript] -%>
|
17
|
-
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') -%>
|
16
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') -%>
|
18
17
|
<%%= javascript_include_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': true" -%> %>
|
19
|
-
<%- else -%>
|
18
|
+
<%- else -%>
|
19
|
+
<%%= stylesheet_pack_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': 'reload'" -%> %>
|
20
20
|
<%%= javascript_pack_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': 'reload'" -%> %>
|
21
|
-
<%- end -%>
|
21
|
+
<%- end -%>
|
22
|
+
<%- else -%>
|
23
|
+
<%%= stylesheet_link_tag 'application', media: 'all'<%= (options[:skip_turbolinks] || options[:skip_javascript]) ? '' : ", 'data-turbolinks-track': 'reload'" %> %>
|
22
24
|
<%- end -%>
|
23
25
|
<!--IE Polyfill for CSS Properties-->
|
24
26
|
<!--[if lte IE 11]>
|
@@ -13,14 +13,16 @@
|
|
13
13
|
= csrf_meta_tags
|
14
14
|
= csp_meta_tag
|
15
15
|
%link{href: "https://rsms.me/inter/inter.css", rel: "stylesheet"}
|
16
|
-
= stylesheet_link_tag 'application', media: 'all'<%= (options[:skip_turbolinks] || options[:skip_javascript]) ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
17
16
|
<%- unless options[:skip_javascript] -%>
|
18
|
-
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') -%>
|
19
|
-
= javascript_include_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': true"
|
17
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') -%>
|
18
|
+
= javascript_include_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': true" %>
|
19
|
+
<%- else -%>
|
20
|
+
= stylesheet_pack_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
21
|
+
= javascript_pack_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
22
|
+
<%- end -%>
|
20
23
|
<%- else -%>
|
21
|
-
=
|
24
|
+
= stylesheet_link_tag 'application', media: 'all'<%= (options[:skip_turbolinks] || options[:skip_javascript]) ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
22
25
|
<%- end -%>
|
23
|
-
<%- end %>
|
24
26
|
/ IE Polyfill for CSS Properties
|
25
27
|
/[if lte IE 11]
|
26
28
|
<script>window.MSInputMethodContext && document.documentMode && document.write('<scrip src="https://cdn.jsdelivr.net/gh/nuxodin/ie11CustomProperties@4.1.0/ie11CustomProperties.min.js"><\/script>');</script>
|
@@ -12,14 +12,16 @@ html
|
|
12
12
|
= csrf_meta_tags
|
13
13
|
= csp_meta_tag
|
14
14
|
link rel="stylesheet" href="https://rsms.me/inter/inter.css"
|
15
|
-
= stylesheet_link_tag 'application', media: 'all'<%= (options[:skip_turbolinks] || options[:skip_javascript]) ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
16
15
|
<%- unless options[:skip_javascript] -%>
|
17
|
-
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') -%>
|
18
|
-
= javascript_include_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': true"
|
16
|
+
<%- if Gem::Version.new(Rails.version) < Gem::Version.new('6.0') -%>
|
17
|
+
= javascript_include_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': true" %>
|
18
|
+
<%- else -%>
|
19
|
+
= stylesheet_pack_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
20
|
+
= javascript_pack_tag 'application'<%= options[:skip_turbolinks] ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
21
|
+
<%- end -%>
|
19
22
|
<%- else -%>
|
20
|
-
=
|
23
|
+
= stylesheet_link_tag 'application', media: 'all'<%= (options[:skip_turbolinks] || options[:skip_javascript]) ? '' : ", 'data-turbolinks-track': 'reload'" %>
|
21
24
|
<%- end -%>
|
22
|
-
<%- end %>
|
23
25
|
/! IE Polyfill for CSS Properties
|
24
26
|
/[if lte IE 11]
|
25
27
|
script window.MSInputMethodContext && document.documentMode && document.write('<scrip src="https://cdn.jsdelivr.net/gh/nuxodin/ie11CustomProperties@4.1.0/ie11CustomProperties.min.js"><\/script>');
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailwind_views_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hicks
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|