gretel 3.0.4 → 3.0.5
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 +4 -4
- data/CHANGELOG.md +3 -3
- data/README.md +7 -4
- data/lib/gretel/renderer.rb +1 -1
- data/lib/gretel/version.rb +1 -1
- data/test/helper_methods_test.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: 1c82f3dde4a98f82f3eb6f0ce135a64a2ca7e8dc
|
4
|
+
data.tar.gz: 44d2c6ec3b8405991c4f0c2b9fc837d8a2711b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e17764cb6cdfc58a8010a114722d9941671b4933cb92ca6b221c20d29fc787652f7bd504454a753626faee3cfbb1e7c813558f172468766740c22c4cf1264a
|
7
|
+
data.tar.gz: 6cd0c52eb47346f631916d66d9203857567b33c294adff6be93411eed6b3f72d1092349be8364d3915868bbf79890c523b439ebaead4317c957166f1c5892c97
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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.
|
365
|
-
4.
|
366
|
-
5.
|
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
|
|
data/lib/gretel/renderer.rb
CHANGED
@@ -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: "
|
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)
|
data/lib/gretel/version.rb
CHANGED
data/test/helper_methods_test.rb
CHANGED
@@ -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="
|
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
|
+
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.
|
149
|
+
rubygems_version: 2.1.10
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Flexible Ruby on Rails breadcrumbs plugin.
|