avo 2.15.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28077d1bee6c3fbd827dda92a04cc8355cfad4911c676672e7bdc1b815c16d78
4
- data.tar.gz: 78a39f2bbbed254b543a683b7406424ae7abff30396c42491236b4474c0a4d53
3
+ metadata.gz: e1ab7eb43d1f112ff5307e96837c8d4a7198864b5f27730fb798fc3f35b4f3df
4
+ data.tar.gz: edbe08766003e670fe83553e5eb11300cb61985e7826b11f7eb96552d5c68bec
5
5
  SHA512:
6
- metadata.gz: 4eb4cd41172fc2cd8e046bb614c4561c687663be76c36d8ac8960e3902f9d7750747ccadf159a7a9f928805c6253df9ee07f2ed9654ff419cac795fdf64ecf61
7
- data.tar.gz: 9a19ac21d995411cdf147d0659c6fe5c886333188f1e7c4374a7b0e14d9155186e91ecb833a594ab3c1c46ff1d5ec410f2bb128a38f5bb06022153b38e097c65
6
+ metadata.gz: f194547e6652e8f1d3aefa09ccadb769ee3fdce46aaeb2c75ec25b6e45671293bb405e93be8b18cf7850537182a934b32c607266e7c25a04453c2029e4fd18fb
7
+ data.tar.gz: 10faeb4cc74ae9cc025aad81fac3e1b0d6364fd609c5169e4ed91dbec20b99946fd360a75cf13a520ef97611fdf9c4963993581ee6b80b13ffbd964009106310
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.15.0)
4
+ avo (2.15.2.pre.1)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
File without changes
@@ -6,8 +6,8 @@
6
6
  <%= csrf_meta_tags %>
7
7
  <%= csp_meta_tag %>
8
8
  <%= render partial: 'avo/partials/javascript' %>
9
- <%= render partial: 'avo/partials/head' %>
10
9
  <%= render partial: 'avo/partials/branding' %>
10
+ <%= render partial: 'avo/partials/pre_head' %>
11
11
  <% if Avo::PACKED %>
12
12
  <%= javascript_include_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %>
13
13
  <%= stylesheet_link_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %>
data/config/master.key ADDED
@@ -0,0 +1 @@
1
+ 2aeb23d82b909d9c6b5abb62f7058c2a
@@ -1,6 +1,6 @@
1
1
  class Avo::Configuration::Branding
2
2
  def initialize(colors: nil, chart_colors: nil, logo: nil, logomark: nil)
3
- @colors = colors
3
+ @colors = colors || {}
4
4
  @chart_colors = chart_colors
5
5
  @logo = logo
6
6
  @logomark = logomark
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.15.0" unless const_defined?(:VERSION)
2
+ VERSION = "2.15.2.pre.1" 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 %>"
@@ -21,7 +21,7 @@ module Generators
21
21
  end
22
22
 
23
23
  if Rails.root.join("Procfile.dev").exist?
24
- append_to_file "Procfile.dev", "css: bin/rails avo:tailwindcss:watch\n"
24
+ append_to_file "Procfile.dev", "avo_css: bin/rails avo:tailwindcss:watch\n"
25
25
  else
26
26
  say "Add default Procfile.dev"
27
27
  copy_file template_path("Procfile.dev"), "Procfile.dev"
@@ -30,13 +30,14 @@ module Generators
30
30
  run "gem install foreman"
31
31
  end
32
32
 
33
- append_to_file "Procfile.dev", "avo_css: bin/rails tailwindcss:watch\n"
34
-
35
- say "Ejecting the _head.html.erb partial"
36
- 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
37
38
 
38
39
  say "Adding the CSS asset to the partial"
39
- 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\" %>"
40
41
  end
41
42
 
42
43
  no_tasks do
@@ -62,7 +62,7 @@ Avo.configure do |config|
62
62
  ## == Branding ==
63
63
  # config.branding = {
64
64
  # colors: {
65
- # background => "248 246 242",
65
+ # background: "248 246 242",
66
66
  # 100 => "#CEE7F8",
67
67
  # 400 => "#399EE5",
68
68
  # 500 => "#0886DE",
@@ -1,2 +1,2 @@
1
1
  web: bin/rails server -p 3000
2
- css: bin/rails avo:tailwindcss:watch
2
+ avo_css: bin/rails avo:tailwindcss:watch
@@ -8,7 +8,7 @@ if Gem.loaded_specs.key? TAILWINDCSS_RAILS
8
8
  # Get the path
9
9
  GEM_PATH = Gem.loaded_specs[TAILWINDCSS_RAILS].full_gem_path
10
10
  # Compose the compile command
11
- AVO_TAILWIND_COMPILE_COMMAND = "#{RbConfig.ruby} #{Pathname.new(GEM_PATH)}/exe/tailwindcss -i '#{Rails.root.join("app/assets/stylesheets/avo.css")}' -o '#{Rails.root.join(ASSET_FILE)}' -c '#{Rails.root.join("config/tailwind.config.js")}' --minify"
11
+ AVO_TAILWIND_COMPILE_COMMAND = "#{RbConfig.ruby} #{Pathname.new(GEM_PATH)}/exe/tailwindcss -i '#{Rails.root.join("app/assets/stylesheets/avo.tailwind.css")}' -o '#{Rails.root.join(ASSET_FILE)}' -c '#{Rails.root.join("config/tailwind.config.js")}' --minify"
12
12
 
13
13
  namespace "avo:tailwindcss" do
14
14
  desc "Build your Tailwind CSS"
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.0
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-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
@@ -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: '0'
1981
+ version: 1.3.1
1980
1982
  requirements: []
1981
1983
  rubygems_version: 3.3.3
1982
1984
  signing_key: