crumpet 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 3ac3fa7d86ded8754d6ff31a719d1b419a9e3f69
4
- data.tar.gz: f88db704c061abc52c08ced92d067f6d81f6a0fd
3
+ metadata.gz: f931996638482bda209c63e1cf4d7ceec9632b1c
4
+ data.tar.gz: aed1448bb8b7e4f2fe1b0eb7058be883ceb3744f
5
5
  SHA512:
6
- metadata.gz: 0d1f5550efe4909e5cbc7b9a5c8b04a28544593bd08cf662ebb63eabcee600845a3964564fab2674b56456065657dd8a2b7e51f2c5375da2884085a061e16edc
7
- data.tar.gz: 28130667dcc36277fb312e20e36429b4dba430cb6fc6f0e29692c963827da3c175d44dd5dbf993e088a6e24d9a86c98856d629f246149088f333bb3739e9e9e2
6
+ metadata.gz: 22736686be117249372d7bdc484fff4b4d0cc89ea93357e4cfea1fce8de1de4725ef869b7a6b6d56b304a835aa0af2e13daaf5f918d0abcb265762f1f383ce30
7
+ data.tar.gz: 52fc4d5438bbd7b057b4b05c8d1478a25f58d04b7358b05a269fd817dd40a3bca7ce5b693cea4e91ee23464a9ef57171a661ba6856831dba33005b9281f653f8
@@ -71,7 +71,7 @@ module Crumpet
71
71
  def build_html_options(crumb)
72
72
  item_options = options.fetch(:item_options, {}).merge(crumb.item_options)
73
73
 
74
- item_options[:class] = Array(item_options.fetch(:class, []))
74
+ item_options[:class] = Array(item_options[:class])
75
75
  item_options[:class] << option_or_default(:default_crumb_class).presence
76
76
  item_options[:class] << option_or_default(:first_crumb_class).presence if crumb == crumbs.first
77
77
  item_options[:class] << option_or_default(:last_crumb_class).presence if crumb == crumbs.last
@@ -89,7 +89,7 @@ module Crumpet
89
89
  def build_wrapper_options(crumb)
90
90
  wrapper_options = options.fetch(:wrapper_options, {}).merge(crumb.wrapper_options)
91
91
 
92
- wrapper_options[:class] = Array(wrapper_options.fetch(:class, []))
92
+ wrapper_options[:class] = Array(wrapper_options[:class])
93
93
  wrapper_options[:class] << option_or_default(:default_wrapper_class).presence
94
94
  wrapper_options[:class].compact!
95
95
  wrapper_options[:class].uniq!
@@ -101,7 +101,7 @@ module Crumpet
101
101
  def build_container_options
102
102
  container_options = options.fetch(:container_options, {})
103
103
 
104
- container_options[:class] = Array(container_options.fetch(:class, []))
104
+ container_options[:class] = Array(container_options[:class])
105
105
  container_options[:class] << option_or_default(:default_container_class).presence
106
106
  container_options[:class].compact!
107
107
  container_options[:class].uniq!
@@ -1,3 +1,3 @@
1
1
  module Crumpet
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crumpet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Colegate
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-18 00:00:00.000000000 Z
11
+ date: 2017-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails