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 +4 -4
- data/lib/crumpet/renderer.rb +3 -3
- data/lib/crumpet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f931996638482bda209c63e1cf4d7ceec9632b1c
|
4
|
+
data.tar.gz: aed1448bb8b7e4f2fe1b0eb7058be883ceb3744f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22736686be117249372d7bdc484fff4b4d0cc89ea93357e4cfea1fce8de1de4725ef869b7a6b6d56b304a835aa0af2e13daaf5f918d0abcb265762f1f383ce30
|
7
|
+
data.tar.gz: 52fc4d5438bbd7b057b4b05c8d1478a25f58d04b7358b05a269fd817dd40a3bca7ce5b693cea4e91ee23464a9ef57171a661ba6856831dba33005b9281f653f8
|
data/lib/crumpet/renderer.rb
CHANGED
@@ -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
|
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
|
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
|
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!
|
data/lib/crumpet/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|