avo 2.15.1 → 2.15.2.pre.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/views/avo/partials/_pre_head.html.erb +0 -0
- data/app/views/layouts/avo/application.html.erb +1 -0
- data/config/master.key +1 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/base_generator.rb +1 -1
- data/lib/generators/avo/eject_generator.rb +1 -0
- data/lib/generators/avo/js/install_generator.rb +2 -2
- data/lib/generators/avo/tailwindcss/install_generator.rb +6 -3
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1ab7eb43d1f112ff5307e96837c8d4a7198864b5f27730fb798fc3f35b4f3df
|
4
|
+
data.tar.gz: edbe08766003e670fe83553e5eb11300cb61985e7826b11f7eb96552d5c68bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f194547e6652e8f1d3aefa09ccadb769ee3fdce46aaeb2c75ec25b6e45671293bb405e93be8b18cf7850537182a934b32c607266e7c25a04453c2029e4fd18fb
|
7
|
+
data.tar.gz: 10faeb4cc74ae9cc025aad81fac3e1b0d6364fd609c5169e4ed91dbec20b99946fd360a75cf13a520ef97611fdf9c4963993581ee6b80b13ffbd964009106310
|
data/Gemfile.lock
CHANGED
File without changes
|
@@ -7,6 +7,7 @@
|
|
7
7
|
<%= csp_meta_tag %>
|
8
8
|
<%= render partial: 'avo/partials/javascript' %>
|
9
9
|
<%= render partial: 'avo/partials/branding' %>
|
10
|
+
<%= render partial: 'avo/partials/pre_head' %>
|
10
11
|
<% if Avo::PACKED %>
|
11
12
|
<%= javascript_include_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %>
|
12
13
|
<%= stylesheet_link_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %>
|
data/config/master.key
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2aeb23d82b909d9c6b5abb62f7058c2a
|
data/lib/avo/version.rb
CHANGED
@@ -14,6 +14,7 @@ module Generators
|
|
14
14
|
head: "app/views/avo/partials/_head.html.erb",
|
15
15
|
header: "app/views/avo/partials/_header.html.erb",
|
16
16
|
footer: "app/views/avo/partials/_footer.html.erb",
|
17
|
+
pre_head: "app/views/avo/partials/_pre_head.html.erb",
|
17
18
|
scripts: "app/views/avo/partials/_scripts.html.erb",
|
18
19
|
sidebar_extra: "app/views/avo/partials/_sidebar_extra.html.erb",
|
19
20
|
}
|
@@ -31,7 +31,7 @@ module Generators
|
|
31
31
|
end
|
32
32
|
|
33
33
|
say "Ejecting the _head.html.erb partial"
|
34
|
-
Rails::Generators.invoke("avo:eject", [":head", "--
|
34
|
+
Rails::Generators.invoke("avo:eject", [":head", "--skip-avo-version"], {destination_root: Rails.root})
|
35
35
|
|
36
36
|
say "Adding the JS asset to the partial"
|
37
37
|
append_to_file Rails.root.join("app", "views", "avo", "partials", "_head.html.erb"), "<%= javascript_importmap_tags \"avo.custom\" %>"
|
@@ -48,7 +48,7 @@ module Generators
|
|
48
48
|
end
|
49
49
|
|
50
50
|
say "Ejecting the _head.html.erb partial"
|
51
|
-
Rails::Generators.invoke("avo:eject", [":head", "--
|
51
|
+
Rails::Generators.invoke("avo:eject", [":head", "--skip-avo-version"], {destination_root: Rails.root})
|
52
52
|
|
53
53
|
say "Adding the JS asset to the partial"
|
54
54
|
append_to_file Rails.root.join("app", "views", "avo", "partials", "_head.html.erb"), "<%= javascript_include_tag \"avo.custom\", \"data-turbo-track\": \"reload\", defer: true %>"
|
@@ -30,11 +30,14 @@ module Generators
|
|
30
30
|
run "gem install foreman"
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
Rails
|
33
|
+
# Ensure that the _pre_head.html.erb template is available
|
34
|
+
unless Rails.root.join("app", "views", "avo", "partials", "_pre_head.html.erb").exist?
|
35
|
+
say "Ejecting the _pre_head.html.erb partial"
|
36
|
+
Rails::Generators.invoke("avo:eject", [":pre_head", "--skip-avo-version"], {destination_root: Rails.root})
|
37
|
+
end
|
35
38
|
|
36
39
|
say "Adding the CSS asset to the partial"
|
37
|
-
prepend_to_file Rails.root.join("app", "views", "avo", "partials", "
|
40
|
+
prepend_to_file Rails.root.join("app", "views", "avo", "partials", "_pre_head.html.erb"), "<%= stylesheet_link_tag \"avo.tailwind.css\", media: \"all\" %>"
|
38
41
|
end
|
39
42
|
|
40
43
|
no_tasks do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.15.1
|
4
|
+
version: 2.15.2.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-09-
|
12
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -1719,6 +1719,7 @@ files:
|
|
1719
1719
|
- app/views/avo/partials/_javascript.html.erb
|
1720
1720
|
- app/views/avo/partials/_logo.html.erb
|
1721
1721
|
- app/views/avo/partials/_navbar.html.erb
|
1722
|
+
- app/views/avo/partials/_pre_head.html.erb
|
1722
1723
|
- app/views/avo/partials/_resource_search.html.erb
|
1723
1724
|
- app/views/avo/partials/_scripts.html.erb
|
1724
1725
|
- app/views/avo/partials/_sidebar_extra.html.erb
|
@@ -1742,6 +1743,7 @@ files:
|
|
1742
1743
|
- config/cable.yml
|
1743
1744
|
- config/credentials.yml.enc
|
1744
1745
|
- config/initializers/pagy.rb
|
1746
|
+
- config/master.key
|
1745
1747
|
- config/routes.rb
|
1746
1748
|
- config/spring.rb
|
1747
1749
|
- db/factories.rb
|
@@ -1974,9 +1976,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1974
1976
|
version: 2.4.0
|
1975
1977
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1976
1978
|
requirements:
|
1977
|
-
- - "
|
1979
|
+
- - ">"
|
1978
1980
|
- !ruby/object:Gem::Version
|
1979
|
-
version:
|
1981
|
+
version: 1.3.1
|
1980
1982
|
requirements: []
|
1981
1983
|
rubygems_version: 3.3.3
|
1982
1984
|
signing_key:
|