avo 2.15.1 → 2.15.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7b63867fca5d2dc4791630386b28bd0ee3639e42f7c78cbaad121a7426adfde
4
- data.tar.gz: 200949e561a9db7b6ecb94cddf380d3b4535eca34791309c57a15c5a69af62da
3
+ metadata.gz: afff2c325122eaf769499aac7aec03ba806717a5d17666765c2ce063536bf665
4
+ data.tar.gz: 56f28ef14b94dc3636481a96494632c0b3d2362e9158fe94d91af0b3972f40cf
5
5
  SHA512:
6
- metadata.gz: 35b9ea6f6b6a5ef17f2d7499e1c699c89b12fc51c916be38042a8baff0f47445eb13e9b8a805f96233e9c8c8a8f36629d86a04aec65de994582e5ed2319cb068
7
- data.tar.gz: d0a9aa4e603acfd3c81f552a7e3ea306b3f68806cb0005596654c8c875d948e10c760a3127f0980faabb03882285f6a49fbab07e7bc97e4db61bc5b07477b7c2
6
+ metadata.gz: e6091db813153b5cd5a16a13da7c4ca3fe033967f4c78c39e81c027d99848d6d6cc81b5d57f2ad07c914cce6ec960e57918f7ba711f22e0e4ac3acaa35557c8f
7
+ data.tar.gz: 000e61a2068531bf1ace9deeecdf9b58f300ad26453d7b86996cb610d0bcebb79c92b9707aec0f9a54612c9d98a4ff8556a2ac28649980d5a8b265823e566f7e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.15.1)
4
+ avo (2.15.2)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
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/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.15.1" unless const_defined?(:VERSION)
2
+ VERSION = "2.15.2" unless const_defined?(:VERSION)
3
3
  end
@@ -9,7 +9,7 @@ module Generators
9
9
  super(*args)
10
10
 
11
11
  # Don't output the version if requested so
12
- unless args.include?(["--no-avo-version"])
12
+ unless args.include?(["--skip-avo-version"])
13
13
  invoke "avo:version", *args
14
14
  end
15
15
  end
@@ -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", "--no-avo-version"], {destination_root: Rails.root})
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", "--no-avo-version"], {destination_root: Rails.root})
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
- say "Ejecting the _head.html.erb partial"
34
- Rails::Generators.invoke("avo:eject", [":head", "--no-avo-version"], {destination_root: Rails.root})
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", "_head.html.erb"), "<%= stylesheet_link_tag \"avo.tailwind.css\", media: \"all\" %>"
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
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-13 00:00:00.000000000 Z
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