kozenet_ui 0.1.6 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dba396e448979a52c6053afc1eb12bdb9a15bad47b3e84f0df956c7f825f799
4
- data.tar.gz: 34168a38aeda23eb60c02c0cb3af1d9c2885fec1faa60a30d48d7c1ed779e626
3
+ metadata.gz: dc0ac2b784e2fdfa27d7e09c660c462030cf10ae8d35d0a6da79e5537b5bd02d
4
+ data.tar.gz: 96ced146acc7ea21f132442b66898963fae6421b7471c27eecefd4d87aa4aa74
5
5
  SHA512:
6
- metadata.gz: 8be433e46c7ccf17ab464e323cd2232a660c6438910e6d0de676eccf342f325774c61c0b62a080f9ecbffab5fda1cebb5688251643a2cd43990e6259ec9ed56d
7
- data.tar.gz: 3ad8f9ca442520bd17598550219cb376dc70525a022918cc4e9b8dcd4742bd4b0026706989ea35a33ef93fa36ef57e04b008a93f6db16021592e81ebe0dce4cd
6
+ metadata.gz: 7769b32ba6df7cb171d2b47dcd76592527dc4bc776e996efcace8ca716e607cd6e751b73e5be8d214124f71cf5da7e1faaf3159b52e002e41f8fc7d2d75c2ae9
7
+ data.tar.gz: b64ec97340f45f8a1ff7be5720937201b5d689aca2572f74fa78ea542e1e690e4eef552c4c031c38fb1904e67d65a1021fda6d35196deb4d55f65976e29ae70a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.7] - 2026-05-31
4
+
5
+ - Fix: CI workflow now properly handles Rails 8.1.3 (commented out config.assets.quiet)
6
+ - Fix: HeaderComponent test now properly validates Stimulus prefix with mobile menu
7
+ - Improvement: Verified all 27 tests pass with Rails 8.1.3
8
+
3
9
  ## [0.1.5] - 2025-10-31
4
10
 
5
11
  - Feature: Robust icon helper now supports both heroicon and asset-based SVGs, with automatic fallback and variant/class support
@@ -21,8 +21,7 @@ module KozenetUi
21
21
  both: :always
22
22
  }.freeze
23
23
 
24
- attr_reader :placement
25
- attr_reader :visible_on
24
+ attr_reader :placement, :visible_on
26
25
 
27
26
  def initialize(
28
27
  href: "#",
@@ -70,7 +69,7 @@ module KozenetUi
70
69
  end
71
70
 
72
71
  def visible_text
73
- @text.presence || (content if content.present?)
72
+ @text.presence || content.presence
74
73
  end
75
74
 
76
75
  def visible_text?
@@ -67,9 +67,7 @@ module KozenetUi
67
67
 
68
68
  # Inject inline theme variables (CSP-compliant)
69
69
  def kozenet_ui_theme_variables_tag
70
- # rubocop:disable Rails/OutputSafety
71
70
  content_tag(:style, kozenet_ui_theme_variables, nonce: content_security_policy_nonce)
72
- # rubocop:enable Rails/OutputSafety
73
71
  end
74
72
 
75
73
  def kozenet_ui_theme_variables
@@ -5,7 +5,7 @@ require "rails/generators/base"
5
5
  module KozenetUi
6
6
  module Generators
7
7
  # Generator for installing Kozenet UI into a Rails application
8
- # Copies stylesheets, creates initializer, and adds runtime tags
8
+ # Copies stylesheets, creates initializer, and adds runtime tags
9
9
  class InstallGenerator < Rails::Generators::Base
10
10
  source_root File.expand_path("templates", __dir__)
11
11
 
@@ -10,8 +10,8 @@ module KozenetUi
10
10
  }
11
11
  }.freeze
12
12
 
13
- attr_accessor :palette, :default_variant, :default_size, :theme, :stimulus_prefix
14
- attr_reader :component_defaults
13
+ attr_accessor :palette, :default_variant, :default_size, :theme
14
+ attr_reader :component_defaults, :stimulus_prefix
15
15
 
16
16
  def initialize
17
17
  @palette = Theme::Palette.new
@@ -50,7 +50,7 @@ module KozenetUi
50
50
  private
51
51
 
52
52
  def symbolize_keys(hash)
53
- hash.to_h.transform_keys { |key| key.to_sym }
53
+ hash.to_h.transform_keys(&:to_sym)
54
54
  end
55
55
  end
56
56
  end
@@ -24,7 +24,9 @@ module KozenetUi
24
24
  end
25
25
 
26
26
  # Configure where to look for components
27
- config.view_component.preview_paths << "#{root}/spec/components/previews" if Rails.env.development?
27
+ if Rails.env.development? && config.view_component&.preview_paths
28
+ config.view_component.preview_paths << "#{root}/spec/components/previews"
29
+ end
28
30
 
29
31
  # Add assets paths (for Rails 7/Sprockets only)
30
32
  if config.respond_to?(:assets) && config.assets.respond_to?(:paths)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KozenetUi
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kozenet_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kozenet Pro
@@ -80,7 +80,7 @@ dependencies:
80
80
  version: '3.0'
81
81
  - - "<"
82
82
  - !ruby/object:Gem::Version
83
- version: '4.0'
83
+ version: '5.0'
84
84
  type: :runtime
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: '3.0'
91
91
  - - "<"
92
92
  - !ruby/object:Gem::Version
93
- version: '4.0'
93
+ version: '5.0'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: bundler
96
96
  requirement: !ruby/object:Gem::Requirement