bulmacomp 1.0.2 → 1.0.3

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: 88e7e5ad90eb4c31390ae4c94c074c1bbe32f338fe24ebd177e691c5a911bf46
4
- data.tar.gz: db0492f09910419be900d5d67f9d261581bb9ba25a35ad99e56e40c926d595e0
3
+ metadata.gz: 4c579db82c3306bf4ab683b2a0fb23a78fa1255419c7365a70114ae8017088a4
4
+ data.tar.gz: a09f86598c6811550e1c2079fed013a67f7f969a2b122ee9e6b3e94f5d004006
5
5
  SHA512:
6
- metadata.gz: c24b2fefa22d6c0482be54d7695554bde35bc5bb2d2ad25fb96889415f74e2733c61f2b90feb125700044434995095be42ec908104183906257dc681c9812994
7
- data.tar.gz: 5246ce53530ceb51d52e27b7e3573bbf0d3c7a2238e0bd70264f6160e2e160b8d59e71db20b7cc0543a3a8db3ea2577e4cfa5152435f654bb7263ae7c69f6fb8
6
+ metadata.gz: b1efdddbdf692b70bfa473db3eaab0c813ebb14991fa796e3b0ae325ec161f10bbce6e92ee4ce7ca2a7b65350b5f79a3892ed25a3bab6422567a70e07b4daefb
7
+ data.tar.gz: e04f0c81eca22bbdfd9b6e949417cb59b4e85178d4587280925c9d67598e11d87ddcfeba478b0071fc691f76cbd7c40cf82f3606f001c16501d863ac0fed30f6
@@ -52,11 +52,13 @@ module Bulmacomp
52
52
 
53
53
  # @return [String] html_safe navbar
54
54
  def call
55
- tag.nav safe_join([navbar_brand, navbar_menu]), @opts
55
+ tag.nav safe_join([navbar_brand, navbar_menu]), **@opts
56
56
  end
57
57
 
58
58
  # @return [String] html_safe navbar-brand tag
59
59
  def navbar_brand
60
+ return if @brand.blank?
61
+
60
62
  tag.div safe_join([link_to(@brand, root_path, data_turbo_frame: 'yield', class: 'navbar-item'), navbar_burger]),
61
63
  class: 'navbar-brand'
62
64
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bulmacomp
4
- VERSION = '1.0.2' # Costant of bulmacomp version
4
+ VERSION = '1.0.3' # Costant of bulmacomp version
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulmacomp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MDreW
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2023-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.4.8
88
+ rubygems_version: 3.4.10
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Rails 'View Components' for Bulma