uberkit 0.0.9 → 0.0.10

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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/uberkit/menu.rb +2 -2
  3. metadata +1 -1
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :build:
3
- :patch: 9
3
+ :patch: 10
4
4
  :major: 0
5
5
  :minor: 0
@@ -22,8 +22,8 @@ module Uberkit
22
22
  classes << "current" if merits_current?(contents,options,url_for_options)
23
23
  classes << "disabled" if options.delete(:disabled)
24
24
  classes << classes.join("_") if classes.size > 1
25
- classes << options[:html].delete(:class) if options[:html]
26
- content_tag(:li, contents, options[:html].merge(:class => classes.join(" ")))
25
+ classes << options[:html].delete(:class) if options[:html] && options[:html][:class]
26
+ content_tag(:li, contents, (options[:html] || {}).merge(:class => classes.join(" ")))
27
27
  end
28
28
 
29
29
  def merits_current?(contents,options={},url_for_options={})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uberkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh