katalyst-navigation 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 460acda562ea8be1a100c0c63e41bdf395ce8a169110437bcda6be901262f85b
4
- data.tar.gz: cfd61b1795bdf01f6c2e34f916b526dba13fe5eea1f26f9f561821c7cfcf0042
3
+ metadata.gz: 278f751a767203cf16a943556ace5d93f89e82f08130e87c4d6f668a5803ee52
4
+ data.tar.gz: ee91d52ee9dc9d5a48b1b484c52c21707aa812e885037eaa27ffe013d0ad887b
5
5
  SHA512:
6
- metadata.gz: 9dd3fc7f185f61d9a7fb4a7aa5ba2bae1b83017c385272022034ca5e3807be627ee7056880e89f22b7f109cac1fad37f9d28f521e6759c66a8cc035c1e868e72
7
- data.tar.gz: 6eb2ae8ef0bfc1ae09168c49403b1a8d557babca559bd1e53981bff6146f14335aaf6c4f61af39e17ca745e85cbb4c3f2c835ac9440cc9dfcdcc893e9524e28b
6
+ metadata.gz: c0a96defd73f0517aa4f94e9d982804b7b72f623720e51449d6d1760b6a1b21d2e9b06b527398690438afc73e25e0cf0fefc8afa7d309ff615da7ac0e2e19af4
7
+ data.tar.gz: 12bf4e7e378968ba31299ecaa76ada1bb07becfdf54699f771193c7f34e555d93f2baa83a01b121aa639adf09f92bf0bdbb0ed4736b64120a9bdccc4e83b61dd
@@ -11,7 +11,7 @@ module Katalyst
11
11
  with_collection_parameter :item
12
12
 
13
13
  def initialize(item:, menu: item.menu)
14
- super(item:, menu:)
14
+ super
15
15
  end
16
16
 
17
17
  def item_component(**)
data/config/importmap.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  pin "@katalyst/navigation", to: "katalyst/navigation.js"
@@ -10,7 +10,7 @@ class CreateKatalystNavigationItems < ActiveRecord::Migration[7.0]
10
10
  t.string :url
11
11
  t.string :http_method
12
12
  t.string :target
13
- t.boolean :visible, default: true
13
+ t.boolean :visible, default: true, null: false
14
14
 
15
15
  t.timestamps
16
16
  end
@@ -2,10 +2,12 @@
2
2
 
3
3
  # Ensures that all navigation items have a valid target and http_method.
4
4
  class UpdateTargetSyntax < ActiveRecord::Migration[7.0]
5
+ # rubocop:disable Rails/SkipsModelValidations
5
6
  def change
6
7
  Katalyst::Navigation::Item.where(http_method: nil).update_all(http_method: "get")
7
8
  Katalyst::Navigation::Item.where(target: nil).update_all(target: "self")
8
9
  Katalyst::Navigation::Item.where(target: "_blank").update_all(target: "blank")
9
10
  Katalyst::Navigation::Item.where(target: "_top").update_all(target: "top")
10
11
  end
12
+ # rubocop:enable Rails/SkipsModelValidations
11
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katalyst-html-attributes
@@ -164,14 +164,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: 3.2.0
167
+ version: 3.3.0
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubygems_version: 3.5.9
174
+ rubygems_version: 3.5.11
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: Navigation generator and editor