middleman-breadcrumbs 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: cb327948a5ee3560e75c08cc83863aeeaf8eb696
4
- data.tar.gz: cf55b9802002900e4968cdbe9065abfb2f8d35a6
3
+ metadata.gz: 32b09baacf10a30c35128b96f1bb30e256a3caf5
4
+ data.tar.gz: b83cf71f33a70bc1c3a35009a061256c666a49fd
5
5
  SHA512:
6
- metadata.gz: 9c823d04dc7ab7a6a69b79e72284cb50a948dc290083617545acb21d65443f587f12666ab01a6a2e35788deccf28eb8195a8e56e536d7d5820ab2ea618aafc44
7
- data.tar.gz: 3d878201540499d3e3d4fd584dac972279273be754810e0a75530d534079d03b3457a2737cb0839b74e27f67239d8cc2ad48172cb91c428e456739407213d1be
6
+ metadata.gz: cb37bf4b7932f2ff5134547983c45b1ae4ff091e6440f16bdf670a1e3fba3844421f586b54ce8536975332fe0a6f77e21062fbc86b797caf2bc3a40cf1292dbe
7
+ data.tar.gz: a6d580c797953f545a03a4e43ad018895571d7a466ba961021a5384bbb81c803d78645f7facafaf33a793c9164d4f65bf43ec93b0d66bb9a5c6652a899064fa2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.4.1 / 2016-04-26
6
+
7
+ * Remove a silly circular argument reference.
8
+
5
9
  ## 0.4.0 / 2016-04-26
6
10
 
7
11
  * Create config options for default separator and wrapper. [#8]
data/README.md CHANGED
@@ -15,10 +15,18 @@ Put `activate :breadcrumbs` in config.rb (*not* in the `configure :build` block)
15
15
  This gem has two configuration options, which are set in the [usual way for Middleman extensions](https://middlemanapp.com/advanced/configuration/#configuring-extensions).
16
16
 
17
17
  <dl>
18
- <dt>`:separator`</dt>
19
- <dd>String that separates the breadcrumb levels. Default is ` > `.</dd>
20
- <dt>`:wrapper`</dt>
21
- <dd>Tag name (as a symbol) in which to wrap each breadcrumb level. Default is `nil`, which means no wrapping.</dd>
18
+ <dt>
19
+ <code>:separator</code>
20
+ </dt>
21
+ <dd>
22
+ String that separates the breadcrumb levels. Default is <code>&nbsp;>&nbsp;</code>.
23
+ </dd>
24
+ <dt>
25
+ <code>:wrapper</code>
26
+ </dt>
27
+ <dd>
28
+ Tag name (as a symbol) in which to wrap each breadcrumb level. Default is <code>nil</code>, which means no wrapping.
29
+ </dd>
22
30
  </dl>
23
31
 
24
32
  For example, if you wanted to wrap the breadcrumb levels in `<li>` elements and separate them with bullets, you would put the following in `config.rb`:
@@ -30,7 +38,9 @@ activate :breadcrumbs, separator: ' • ', wrapper: :li
30
38
 
31
39
  ## Usage
32
40
 
33
- In your view files, just call `breadcrumbs(current_page)` to display breadcrumbs. If you want to override the separator or wrapper defined in the `config.rb` file, pass the appropriate options to the `breadcrumbs` method:
41
+ In your view files, just call `breadcrumbs(current_page)` to display breadcrumbs. By default, this will use the separator and wrapper defined in the `config.rb` file.
42
+
43
+ If you want to override the separator or wrapper defined in the `config.rb` file, pass the appropriate options to the `breadcrumbs` method:
34
44
 
35
45
  ```erb
36
46
  <%= breadcrumbs(current_page, separator: ' ||| ', wrapper: :div) %>
@@ -26,7 +26,7 @@ class Breadcrumbs < Middleman::Extension
26
26
 
27
27
  private
28
28
 
29
- def wrap(content, wrapper: wrapper)
29
+ def wrap(content, wrapper: nil)
30
30
  wrapper ? content_tag(wrapper) { content } : content
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module BreadcrumbsVersion
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-breadcrumbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marnen Laibow-Koser