gretel 3.0.4 → 3.0.5

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: 40ece82a8d02b5d8c7fd562e0f8e56dcfa63d5f2
4
- data.tar.gz: 8af9c505d86d3211227b1314962b2b3b2a784c67
3
+ metadata.gz: 1c82f3dde4a98f82f3eb6f0ce135a64a2ca7e8dc
4
+ data.tar.gz: 44d2c6ec3b8405991c4f0c2b9fc837d8a2711b70
5
5
  SHA512:
6
- metadata.gz: ac1d0502e36bc103ad740d61c4ad35bc242a9e5015f51d39f0379990b60666f3512cd14af4b93ecf7bee0e2df8fbac60979e1fe9f4ad6c88f145058e72d04e55
7
- data.tar.gz: ee05b24e3c1905a2651cee63be48024b371012793a252d8ee778a78fd02300385ee52861f6865e69a290ceec317a6dd34862f8ccdcf1512449d3587a80f3b113
6
+ metadata.gz: 01e17764cb6cdfc58a8010a114722d9941671b4933cb92ca6b221c20d29fc787652f7bd504454a753626faee3cfbb1e7c813558f172468766740c22c4cf1264a
7
+ data.tar.gz: 6cd0c52eb47346f631916d66d9203857567b33c294adff6be93411eed6b3f72d1092349be8364d3915868bbf79890c523b439ebaead4317c957166f1c5892c97
@@ -12,7 +12,7 @@
12
12
  ## Version 3.0.1
13
13
  * Breadcrumbs can now be inferred if you pass in an ActiveRecord model instance. E.g. `breadcrumb @product` is short for `breadcrumb :product, @product`.
14
14
 
15
- # Version 3.0
15
+ ## Version 3.0
16
16
  * Support for defining breadcrumbs using `Gretel::Crumbs.layout do ... end` in an initializer has been removed. See the readme for details on how to upgrade.
17
17
  * Breadcrumbs rendering is now done in a separate class to unclutter the view with helpers. The public API is still the same.
18
18
  * Support for rendering the breadcrumbs in different styles like ul- and ol lists, and for use with [Twitter Bootstrap](http://getbootstrap.com/). See the `:style` option in the readme for more info.
@@ -21,10 +21,10 @@
21
21
  * New view helper: `parent_breadcrumb` returns the parent breadcrumb link (with `#key`, `#text`, and `#url`). This can for example be used to create a dynamic back link. You can supply options like `:autoroot` etc.
22
22
  If you supply a block, it will yield the parent breadcrumb if it is present.
23
23
 
24
- # Version 2.1
24
+ ## Version 2.1
25
25
  * Breadcrumbs are now configured in `config/breadcrumbs.rb` and `config/breadcrumbs/**/*.rb` and reloaded when changed in the development environment instead of the initializer that required restart when configuration changed.
26
26
 
27
- # Version 2.0
27
+ ## Version 2.0
28
28
 
29
29
  * Totally rewritten for better structure.
30
30
  * `options[:autoroot]` is now `true` by default which means it will automatically link to the `:root` breadcrumb if no parent is specified.
data/README.md CHANGED
@@ -360,10 +360,13 @@ You are very welcome to help improve Gretel if you have suggestions for features
360
360
  To contribute:
361
361
 
362
362
  1. Fork the project
363
- 2. Create your feature branch (git checkout -b my-new-feature)
364
- 3. Commit your changes (git commit -am 'Add new feature')
365
- 4. Push to the branch (git push origin my-new-feature)
366
- 5. Create new pull request
363
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
364
+ 3. Make your changes
365
+ 4. Add tests
366
+ 5. Run `rake` to make sure all tests pass
367
+ 6. Commit your changes (`git commit -am 'Add new feature'`)
368
+ 7. Push to the branch (`git push origin my-new-feature`)
369
+ 8. Create new pull request
367
370
 
368
371
  Thanks.
369
372
 
@@ -19,7 +19,7 @@ module Gretel
19
19
  ol: { container_tag: :ol, fragment_tag: :li },
20
20
  ul: { container_tag: :ul, fragment_tag: :li },
21
21
  bootstrap: { container_tag: :ol, fragment_tag: :li, class: "breadcrumb", current_class: "active" },
22
- foundation5: { container_tag: :ul, fragment_tag: :li, class: "breadcrumb", current_class: "current" }
22
+ foundation5: { container_tag: :ul, fragment_tag: :li, class: "breadcrumbs", current_class: "current" }
23
23
  }
24
24
 
25
25
  def initialize(context, breadcrumb_key, *breadcrumb_args)
@@ -1,3 +1,3 @@
1
1
  module Gretel
2
- VERSION = "3.0.4"
2
+ VERSION = "3.0.5"
3
3
  end
@@ -330,7 +330,7 @@ class HelperMethodsTest < ActionView::TestCase
330
330
 
331
331
  test "foundation5 style" do
332
332
  breadcrumb :basic
333
- assert_equal %{<ul class="breadcrumb"><li><a href="/">Home</a></li><li class="current">About</li></ul>},
333
+ assert_equal %{<ul class="breadcrumbs"><li><a href="/">Home</a></li><li class="current">About</li></ul>},
334
334
  breadcrumbs(style: :foundation5)
335
335
  end
336
336
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gretel
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lasse Bunk
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.0.3
149
+ rubygems_version: 2.1.10
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Flexible Ruby on Rails breadcrumbs plugin.