breadcrumbs_on_rails 3.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +12 -0
- data/.gitignore +8 -6
- data/.travis.yml +23 -20
- data/Appraisals +8 -8
- data/CHANGELOG.md +34 -17
- data/Gemfile +9 -1
- data/LICENSE.txt +1 -1
- data/README.md +43 -23
- data/Rakefile +6 -6
- data/SECURITY.md +104 -0
- data/breadcrumbs_on_rails.gemspec +12 -17
- data/gemfiles/5.0.gemfile +5 -0
- data/gemfiles/5.1.gemfile +12 -0
- data/gemfiles/5.2.gemfile +12 -0
- data/gemfiles/6.0.gemfile +12 -0
- data/lib/breadcrumbs_on_rails.rb +1 -1
- data/lib/breadcrumbs_on_rails/action_controller.rb +21 -44
- data/lib/breadcrumbs_on_rails/breadcrumbs.rb +1 -1
- data/lib/breadcrumbs_on_rails/railtie.rb +1 -1
- data/lib/breadcrumbs_on_rails/version.rb +2 -2
- data/test/test_helper.rb +2 -2
- data/test/unit/action_controller_test.rb +2 -2
- metadata +14 -86
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/gemfiles/4.0.gemfile +0 -7
- data/gemfiles/4.1.gemfile +0 -7
- data/gemfiles/4.2.gemfile +0 -7
- data/init.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 14dfbf134d188e56a61ce23697b7cb694b91533ba178f0b44fb0656998b2edb9
|
4
|
+
data.tar.gz: 5222f831fde4d793ad0b930f4b0ab5eea98aef5c299297b0e56b4a483d835489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62948675b4ee8e02da86931911890b60cd8f50e3655237342e4a668cf4da9f30e94078c5ee781bac2526e702678db24f2108aa2b9727c8c52148cbfe479bd767
|
7
|
+
data.tar.gz: 3b7a76198651a8468066012bf24097e8909d6a24183c7e316d5674f80c459617d79c192e48edc87e745d01442b93bbbf8f8172c9b30b7051056f72327514a941
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# These are supported funding model platforms
|
2
|
+
|
3
|
+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
4
|
+
patreon: # Replace with a single Patreon username
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
7
|
+
tidelift: "rubygems/breadcrumbs_on_rails"
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
11
|
+
otechie: # Replace with a single Otechie username
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,28 +1,31 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
1
3
|
rvm:
|
2
|
-
- 2.
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.
|
4
|
+
- 2.4
|
5
|
+
- 2.5
|
6
|
+
- 2.6
|
7
|
+
- 2.7
|
8
|
+
- ruby-head
|
9
|
+
|
10
|
+
env:
|
11
|
+
global:
|
12
|
+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
13
|
+
|
14
|
+
cache:
|
15
|
+
- bundler
|
6
16
|
|
7
17
|
gemfile:
|
8
|
-
- gemfiles/4.0.gemfile
|
9
|
-
- gemfiles/4.1.gemfile
|
10
|
-
- gemfiles/4.2.gemfile
|
11
18
|
- gemfiles/5.0.gemfile
|
12
|
-
|
13
|
-
|
14
|
-
-
|
19
|
+
- gemfiles/5.1.gemfile
|
20
|
+
- gemfiles/5.2.gemfile
|
21
|
+
- gemfiles/6.0.gemfile
|
15
22
|
|
16
23
|
matrix:
|
24
|
+
allow_failures:
|
25
|
+
- rvm: ruby-head
|
17
26
|
exclude:
|
18
|
-
- rvm: 2.
|
19
|
-
gemfile: gemfiles/
|
20
|
-
- rvm: 2.1
|
21
|
-
gemfile: gemfiles/5.0.gemfile
|
22
|
-
env:
|
23
|
-
global:
|
24
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
27
|
+
- rvm: 2.4
|
28
|
+
gemfile: gemfiles/6.0.gemfile
|
25
29
|
|
26
|
-
|
27
|
-
|
28
|
-
- weppos@weppos.net
|
30
|
+
before_install:
|
31
|
+
- gem install bundler -v 1.17.3
|
data/Appraisals
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
appraise "
|
2
|
-
gem "rails", "~>
|
1
|
+
appraise "5.0" do
|
2
|
+
gem "rails", "~> 5.0.0"
|
3
3
|
end
|
4
|
-
appraise "
|
5
|
-
gem "rails", "~>
|
4
|
+
appraise "5.1" do
|
5
|
+
gem "rails", "~> 5.1.0"
|
6
6
|
end
|
7
|
-
appraise "
|
8
|
-
gem "rails", "~>
|
7
|
+
appraise "5.2" do
|
8
|
+
gem "rails", "~> 5.2.0"
|
9
9
|
end
|
10
|
-
appraise "
|
11
|
-
gem "rails", "~>
|
10
|
+
appraise "6.0" do
|
11
|
+
gem "rails", "~> 6.0.0"
|
12
12
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,26 +1,43 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
|
4
|
-
|
4
|
+
## Release 4.0.0
|
5
5
|
|
6
|
-
|
6
|
+
### Changed
|
7
7
|
|
8
|
+
- Minimum requirements Rails >= 5
|
8
9
|
|
9
|
-
|
10
|
+
### Enhancements
|
10
11
|
|
11
|
-
-
|
12
|
-
- FIXED: Fixed initialization error (GH-75). [Thanks @soulcutter]
|
13
|
-
- FIXED: Escape user input by default to avoid XSS attacks (GH-63). [Thanks @rdunlop]
|
12
|
+
- Prefixed shared helpers to reduce collision probability (GH-65, GH-129). [Thanks @justame, @ngelx]
|
14
13
|
|
15
|
-
- CHANGED: Minimum requirements Rails >= 4 and Ruby >= 2.
|
16
14
|
|
15
|
+
## Release 3.0.1
|
17
16
|
|
18
|
-
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- Fixed compatibility with Rails 5.0 and ActionController::API (GH-99). [Thanks @jcoyne]
|
20
|
+
|
21
|
+
|
22
|
+
## Release 3.0.0
|
23
|
+
|
24
|
+
### Fixed
|
25
|
+
|
26
|
+
- Fixed compatibility with Rails 5.0 (GH-80). [Thanks @ochko]
|
27
|
+
- Fixed initialization error (GH-75). [Thanks @soulcutter]
|
28
|
+
- Escape user input by default to avoid XSS attacks (GH-63). [Thanks @rdunlop]
|
29
|
+
|
30
|
+
### Changed
|
31
|
+
|
32
|
+
- Minimum requirements Rails >= 4 and Ruby >= 2.
|
33
|
+
|
34
|
+
|
35
|
+
## Release 2.3.1
|
19
36
|
|
20
37
|
- FIXED: Using `add_breadcrumbs` did not properly pass `options` (GH-46). [Thanks @link664]
|
21
38
|
|
22
39
|
|
23
|
-
|
40
|
+
## Release 2.3.0
|
24
41
|
|
25
42
|
- FIXED: In some circumstances the BreadcrumbsOnRails::ActionController::HelperMethods is not mixed into the controller.
|
26
43
|
- FIXED: Breadcrumbs now accepts a polymorphic path (GH-15).
|
@@ -29,42 +46,42 @@
|
|
29
46
|
- CHANGED: Breadcrumb path computation fallbacks to url_for in case of unknown arguments.
|
30
47
|
|
31
48
|
|
32
|
-
|
49
|
+
## Release 2.2.0
|
33
50
|
|
34
51
|
- NEW: Support for Rails 3.2.
|
35
52
|
|
36
53
|
- FIXED: Fixed Rails 3.2 ActiveSupport::Concern deprecation warning (GH-17, GH-20).
|
37
54
|
|
38
55
|
|
39
|
-
|
56
|
+
## Release 2.1.0
|
40
57
|
|
41
58
|
- NEW: Element now accepts a Hash of options. The options can be useful to customize the appearance of the element, for example to set a link title or class.
|
42
59
|
|
43
60
|
|
44
|
-
|
61
|
+
## Release 2.0.0
|
45
62
|
|
46
63
|
- FIXED: Invalid documentation for Element target in the controller class context (closes #2)
|
47
64
|
|
48
65
|
- CHANGED: Upgraded to Rails 3
|
49
66
|
|
50
67
|
|
51
|
-
|
68
|
+
## Release 1.0.1
|
52
69
|
|
53
70
|
- FIXED: Since the removal of rails/init.rb in 7278376ab77651e540e39552384ad9677e32ff7e, Rails fails to load the helpers.
|
54
71
|
|
55
72
|
|
56
|
-
|
73
|
+
## Release 1.0.0
|
57
74
|
|
58
75
|
- CHANGED: Removed empty install/uninstall hooks and tasks folder.
|
59
76
|
- CHANGED: Removed rails/init hook because deprecated in Rails 3.
|
60
77
|
|
61
78
|
|
62
|
-
|
79
|
+
## Release 0.2.0
|
63
80
|
|
64
81
|
- Releasing the library as open source project.
|
65
82
|
|
66
83
|
|
67
|
-
|
84
|
+
## Release 0.1.1
|
68
85
|
|
69
86
|
|
70
87
|
- NEW: documentation file.
|
@@ -73,6 +90,6 @@
|
|
73
90
|
- CHANGED: Removed BUILD and STATUS constants. Added Version::ALPHA constant to be used when I need to package prereleases (see RubyGem --prerelease flag).
|
74
91
|
|
75
92
|
|
76
|
-
|
93
|
+
## Release 0.1.0
|
77
94
|
|
78
95
|
- Initial version
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,26 +2,38 @@
|
|
2
2
|
|
3
3
|
<tt>BreadcrumbsOnRails</tt> is a simple Ruby on Rails plugin for creating and managing a breadcrumb navigation for a Rails project. It provides helpers for creating navigation elements with a flexible interface.
|
4
4
|
|
5
|
-
[![Build Status](https://travis-ci.
|
6
|
-
[![
|
5
|
+
[![Build Status](https://travis-ci.com/weppos/breadcrumbs_on_rails.svg?branch=master)](https://travis-ci.com/weppos/breadcrumbs_on_rails)
|
6
|
+
[![Tidelift dependencies](https://tidelift.com/badges/package/rubygems/breadcrumbs_on_rails)](https://tidelift.com/subscription/pkg/rubygems-breadcrumbs.on.rails?utm_source=rubygems-breadcrumbs-on-rails&utm_medium=referral&utm_campaign=enterprise)
|
7
|
+
|
8
|
+
|
9
|
+
## Links
|
10
|
+
|
11
|
+
- [Homepage](https://simonecarletti.com/code/breadcrumbs-on-rails)
|
12
|
+
- [Repository](https://github.com/weppos/breadcrumbs_on_rails)
|
13
|
+
- [API Documentation](https://rubydoc.info/gems/breadcrumbs_on_rails)
|
7
14
|
|
8
15
|
|
9
16
|
## Requirements
|
10
17
|
|
11
|
-
-
|
18
|
+
- Ruby >= 2.4
|
19
|
+
- Rails >= 5
|
12
20
|
|
13
|
-
For older versions
|
21
|
+
For older versions use a previous release.
|
14
22
|
|
15
23
|
|
16
24
|
## Installation
|
17
25
|
|
18
26
|
Add this line to your application's `Gemfile`:
|
19
27
|
|
20
|
-
|
28
|
+
```
|
29
|
+
gem "breadcrumbs_on_rails"
|
30
|
+
```
|
21
31
|
|
22
32
|
And then execute `bundle` to install the dependencies:
|
23
33
|
|
24
|
-
|
34
|
+
```
|
35
|
+
bundle
|
36
|
+
```
|
25
37
|
|
26
38
|
Use [Bundler](http://bundler.io/) and the `:git` option if you want to grab the latest version from the Git repository.
|
27
39
|
|
@@ -54,7 +66,7 @@ The third, optional argument is a Hash of options to customize the breadcrumb li
|
|
54
66
|
```ruby
|
55
67
|
class MyController
|
56
68
|
def index
|
57
|
-
add_breadcrumb "index", index_path, :
|
69
|
+
add_breadcrumb "index", index_path, title: "Back to the Index"
|
58
70
|
end
|
59
71
|
end
|
60
72
|
```
|
@@ -117,7 +129,9 @@ end
|
|
117
129
|
|
118
130
|
In this case, if `@user_name` is `<script>`, it will output:
|
119
131
|
|
120
|
-
|
132
|
+
```
|
133
|
+
This is the <b>Main</b> page > <script> Profile
|
134
|
+
```
|
121
135
|
|
122
136
|
|
123
137
|
### Breadcrumb Element
|
@@ -188,11 +202,11 @@ Taking advantage of Rails filter options, you can restrict a tab to a selected g
|
|
188
202
|
```ruby
|
189
203
|
class PostsController < ApplicationController
|
190
204
|
add_breadcrumb "admin", :admin_path
|
191
|
-
add_breadcrumb "posts", :posts_path, :
|
205
|
+
add_breadcrumb "posts", :posts_path, only: [:index, :show]
|
192
206
|
end
|
193
207
|
|
194
208
|
class ApplicationController < ActionController::Base
|
195
|
-
add_breadcrumb "admin", :admin_path, :
|
209
|
+
add_breadcrumb "admin", :admin_path, if: :admin_controller?
|
196
210
|
|
197
211
|
def admin_controller?
|
198
212
|
self.class.name =~ /^Admin(::|Controller)/
|
@@ -229,8 +243,8 @@ In your controller, use the `I18n.t` method.
|
|
229
243
|
```ruby
|
230
244
|
class PostsController < ApplicationController
|
231
245
|
add_breadcrumb I18n.t("breadcrumbs.first"), :first_path
|
232
|
-
add_breadcrumb I18n.t("breadcrumbs.second"), :second_path, :
|
233
|
-
add_breadcrumb I18n.t("breadcrumbs.third"), :third_path, :
|
246
|
+
add_breadcrumb I18n.t("breadcrumbs.second"), :second_path, only: [:second]
|
247
|
+
add_breadcrumb I18n.t("breadcrumbs.third"), :third_path, only: [:third]
|
234
248
|
end
|
235
249
|
|
236
250
|
class ApplicationController < ActionController::Base
|
@@ -239,27 +253,33 @@ end
|
|
239
253
|
```
|
240
254
|
|
241
255
|
|
242
|
-
##
|
256
|
+
## Support
|
243
257
|
|
244
|
-
|
258
|
+
Library documentation is auto-generated from the [README](https://github.com/weppos/breadcrumbs_on_rails/blob/master/README.md) and the source code, and it's available at https://rubydoc.info/gems/breadcrumbs_on_rails.
|
259
|
+
|
260
|
+
- The bug tracker is here: https://github.com/weppos/breadcrumbs_on_rails/issues
|
261
|
+
- The code repository is here: https://github.com/weppos/breadcrumbs_on_rails. Contributions are welcome! Please include tests and/or feature coverage for every patch, and create a topic branch for every separate change you make.
|
262
|
+
|
263
|
+
**Commercial support available as part of the Tidelift Subscription** - [Learn more](https://tidelift.com/subscription/pkg/rubygems-breadcrumbs.on.rails?utm_source=rubygems-breadcrumbs-on-rails&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
245
264
|
|
265
|
+
The maintainers of breadcrumbs_on_rails and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Consider subscribing to Tidelift which provides Enterprise support for this project.](https://tidelift.com/subscription/pkg/rubygems-breadcrumbs.on.rails?utm_source=rubygems-breadcrumbs-on-rails&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
246
266
|
|
247
|
-
## Contributing
|
248
267
|
|
249
|
-
|
268
|
+
## Credits
|
269
|
+
|
270
|
+
<tt>BreadcrumbsOnRails</tt> was created and is maintained by [Simone Carletti](http://simonecarletti.com/). Many improvements and bugfixes were contributed by the [open source community](https://github.com/weppos/breadcrumbs_on_rails/graphs/contributors).
|
271
|
+
|
250
272
|
|
251
|
-
|
273
|
+
## Security and Vulnerability Reporting
|
252
274
|
|
253
|
-
|
275
|
+
Full information and description of our security policy please visit [SECURITY.md](SECURITY.md)
|
254
276
|
|
255
277
|
|
256
|
-
##
|
278
|
+
## Changelog
|
257
279
|
|
258
|
-
|
259
|
-
- [RubyGems](https://rubygems.org/gems/breadcrumbs_on_rails)
|
260
|
-
- [Issues](https://github.com/weppos/breadcrumbs_on_rails/issues)
|
280
|
+
See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
261
281
|
|
262
282
|
|
263
283
|
## License
|
264
284
|
|
265
|
-
Copyright (c) 2009-
|
285
|
+
Copyright (c) 2009-2020 Simone Carletti. This is Free Software distributed under the MIT license.
|
data/Rakefile
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "appraisal"
|
3
3
|
|
4
4
|
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
|
5
|
-
task :
|
5
|
+
task default: :appraisal
|
6
6
|
else
|
7
|
-
task :
|
7
|
+
task default: :test
|
8
8
|
end
|
9
9
|
|
10
10
|
|
11
|
-
require
|
11
|
+
require "rake/testtask"
|
12
12
|
|
13
13
|
Rake::TestTask.new do |t|
|
14
14
|
t.libs << "test"
|
@@ -18,7 +18,7 @@ Rake::TestTask.new do |t|
|
|
18
18
|
end
|
19
19
|
|
20
20
|
|
21
|
-
require
|
21
|
+
require "yard/rake/yardoc_task"
|
22
22
|
|
23
23
|
YARD::Rake::YardocTask.new(:yardoc) do |y|
|
24
24
|
y.options = ["--output-dir", "yardoc"]
|
data/SECURITY.md
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
Security updates are provided only for the current minor version.
|
6
|
+
|
7
|
+
If you are using a previous minor version, we recommend to upgrade to the current minor version.
|
8
|
+
This project uses [semantic versioning](https://semver.org/), therefore you can upgrade to a more recent minor version without incurring into breaking changes.
|
9
|
+
|
10
|
+
Exceptionally, we may support previous minor versions upon request if there are significant reasons preventing to immediately switch the latest minor version.
|
11
|
+
|
12
|
+
Older major versions are no longer supported.
|
13
|
+
|
14
|
+
|
15
|
+
## Reporting a Vulnerability
|
16
|
+
|
17
|
+
To make a report, please email weppos@weppos.net.
|
18
|
+
|
19
|
+
Please consider encrypting your report with GPG using the key [0x420da82a989398df](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x420da82a989398df).
|
20
|
+
|
21
|
+
```
|
22
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
23
|
+
|
24
|
+
xsBNBE/QiI0BCACtBbjJnJIzaLb4NfjaljzT/+dvodst+wyDRE8Vwc6ujwboZjr2
|
25
|
+
0QwXScNzObPazyvkSZVh3g6PveneeSD0dSw2XDqKbbtLMg/Ss12yqXJfjavH/zjk
|
26
|
+
6Xq+nnbSnxBPzwFAAEaEFIc6H6BygJ7zHPP5WEY5QIMqifEAX//aBqHi4GXHJiHE
|
27
|
+
237Zqufdry23jBYjY7wGXAa11VsU9Iwqh6LPB9/hc1KtzjAuvvm5ufeT/iVjxGQX
|
28
|
+
te1OZZk6n8xSVYeLsn97PfgYs0yauhexwD9dG7FbRCB379JxPRn5akr391qXcVOG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dG+WTBoW5dWQGXBZ1IHYVR8HLGaF+Vate1MofE1BNHXhnilIMMfH4G
|
88
|
+
Tcr3Z3/FaSk9OdHlyiE/Jo7++8PQ+auHVyjtqry+/ysAnyr+lnCn+K4E0PQ1fYpP
|
89
|
+
fiawKtfSqk9h6HjjMyx9Adrz+ljXh+NyVqYZUfRytjgO+v+dAQmMczT1EawLTdX+
|
90
|
+
trx1tHR549pEey7in5QKsje3GLH4zq4mCdWBlivQxmmmlvR07DysLADMbcpjKK2g
|
91
|
+
utfzygZHCU9hWGR3wbWZ7lXjB/0ZzutNaNYzSCkiC8PIWH1bG+TJO9pslHwP+aBJ
|
92
|
+
NGAmcwyOH9Bub2CSXikQFZNUmVRwtl7mN4bVAHI8zbMd6xdlX22yDgQei54dPXDw
|
93
|
+
UYsvGE4zmrD97he1EYcIOKMFHzlJNcWK+uR7lEq6mv7SFGnBr8qTYZRi1bySRgwd
|
94
|
+
UORuDV12GKTen9WectKtepW0fgYSz+udbDKQyyRef+7xGtCErWRL7f1qr8xm60da
|
95
|
+
+gSwyD/WkPTY8SP2mdq4u+6m4dWS26kKoENwuL7jUktl/C/EG7NmUKURbXG8lmeu
|
96
|
+
q59MIs/Fb3SgaO+zN2FZTYp6dyRJHbeEz55JdOu6F+6ihZYH
|
97
|
+
=j6Xr
|
98
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
99
|
+
```
|
100
|
+
|
101
|
+
|
102
|
+
## Tracking Security Updates
|
103
|
+
|
104
|
+
Information about security vulnerabilities are published in the [Security Advisories](https://github.com/weppos/breadcrumbs_on_rails/security/advisories) page.
|
@@ -1,28 +1,23 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
require 'breadcrumbs_on_rails/version'
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "breadcrumbs_on_rails/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = "breadcrumbs_on_rails"
|
8
7
|
spec.version = BreadcrumbsOnRails::VERSION
|
9
8
|
spec.authors = ["Simone Carletti"]
|
10
9
|
spec.email = ["weppos@weppos.net"]
|
11
|
-
|
12
|
-
spec.summary = %q{A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation}
|
13
|
-
spec.description = %q{BreadcrumbsOnRails is a simple Ruby on Rails plugin for creating and managing a breadcrumb navigation for a Rails project.}
|
14
10
|
spec.homepage = "https://simonecarletti.com/code/breadcrumbs_on_rails"
|
15
|
-
spec.
|
11
|
+
spec.summary = "A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation"
|
12
|
+
spec.description = "BreadcrumbsOnRails is a simple Ruby on Rails plugin for creating and managing a breadcrumb navigation for a Rails project."
|
13
|
+
spec.licenses = ["MIT"]
|
14
|
+
|
15
|
+
spec.required_ruby_version = ">= 2.4"
|
16
16
|
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
17
|
spec.require_paths = ["lib"]
|
18
|
+
spec.files = `git ls-files`.split("\n")
|
19
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
spec.extra_rdoc_files = %w( LICENSE.txt )
|
20
21
|
|
21
|
-
spec.
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "bundler"
|
24
|
-
spec.add_development_dependency "appraisal"
|
25
|
-
spec.add_development_dependency "rails", ">= 4.0"
|
26
|
-
spec.add_development_dependency "mocha", ">= 1.0"
|
27
|
-
spec.add_development_dependency "yard"
|
22
|
+
spec.add_dependency "rails", ">= 5.0"
|
28
23
|
end
|
data/gemfiles/5.0.gemfile
CHANGED
data/lib/breadcrumbs_on_rails.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
require 'breadcrumbs_on_rails/breadcrumbs'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
module BreadcrumbsOnRails
|
@@ -14,7 +14,8 @@ module BreadcrumbsOnRails
|
|
14
14
|
included do |base|
|
15
15
|
extend ClassMethods
|
16
16
|
helper HelperMethods
|
17
|
-
helper_method :
|
17
|
+
helper_method :add_breadcrumb_on_rails, :add_breadcrumb,
|
18
|
+
:breadcrumbs_on_rails, :breadcrumbs
|
18
19
|
|
19
20
|
unless base.respond_to?(:before_action)
|
20
21
|
base.alias_method :before_action, :before_filter
|
@@ -23,67 +24,43 @@ module BreadcrumbsOnRails
|
|
23
24
|
|
24
25
|
protected
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
# Pushes a new breadcrumb element into the collection.
|
28
|
+
#
|
29
|
+
# @param name [String]
|
30
|
+
# @param path [String, nil]
|
31
|
+
# @param options [Hash]
|
32
|
+
# @return [void]
|
33
|
+
def add_breadcrumb_on_rails(name, path = nil, options = {})
|
34
|
+
breadcrumbs_on_rails << Breadcrumbs::Element.new(name, path, options)
|
28
35
|
end
|
36
|
+
alias add_breadcrumb add_breadcrumb_on_rails
|
29
37
|
|
30
|
-
|
31
|
-
|
38
|
+
# Gets the list of all breadcrumb element in the collection.
|
39
|
+
#
|
40
|
+
# @return [Array<Breadcrumbs::Element>]
|
41
|
+
def breadcrumbs_on_rails
|
42
|
+
@breadcrumbs_on_rails ||= []
|
32
43
|
end
|
44
|
+
alias breadcrumbs breadcrumbs_on_rails
|
33
45
|
|
34
|
-
module Utils
|
35
|
-
|
36
|
-
def self.instance_proc(string)
|
37
|
-
if string.kind_of?(String)
|
38
|
-
proc { |controller| controller.instance_eval(string) }
|
39
|
-
else
|
40
|
-
string
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# This is a horrible method with a horrible name.
|
45
|
-
#
|
46
|
-
# convert_to_set_of_strings(nil, [:foo, :bar])
|
47
|
-
# # => nil
|
48
|
-
# convert_to_set_of_strings(true, [:foo, :bar])
|
49
|
-
# # => ["foo", "bar"]
|
50
|
-
# convert_to_set_of_strings(:foo, [:foo, :bar])
|
51
|
-
# # => ["foo"]
|
52
|
-
# convert_to_set_of_strings([:foo, :bar, :baz], [:foo, :bar])
|
53
|
-
# # => ["foo", "bar", "baz"]
|
54
|
-
#
|
55
|
-
def self.convert_to_set_of_strings(value, keys)
|
56
|
-
if value == true
|
57
|
-
keys.map(&:to_s).to_set
|
58
|
-
elsif value
|
59
|
-
Array(value).map(&:to_s).to_set
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
46
|
|
65
47
|
module ClassMethods
|
66
48
|
|
67
|
-
def
|
68
|
-
# This isn't really nice here
|
69
|
-
if eval = Utils.convert_to_set_of_strings(filter_options.delete(:eval), %w(name path))
|
70
|
-
name = Utils.instance_proc(name) if eval.include?("name")
|
71
|
-
path = Utils.instance_proc(path) if eval.include?("path")
|
72
|
-
end
|
73
|
-
|
49
|
+
def add_breadcrumb_on_rails(name, path = nil, filter_options = {})
|
74
50
|
element_options = filter_options.delete(:options) || {}
|
75
51
|
|
76
52
|
before_action(filter_options) do |controller|
|
77
53
|
controller.send(:add_breadcrumb, name, path, element_options)
|
78
54
|
end
|
79
55
|
end
|
56
|
+
alias add_breadcrumb add_breadcrumb_on_rails
|
80
57
|
|
81
58
|
end
|
82
59
|
|
83
60
|
module HelperMethods
|
84
61
|
|
85
62
|
def render_breadcrumbs(options = {}, &block)
|
86
|
-
builder = (options.delete(:builder) || Breadcrumbs::SimpleBuilder).new(self,
|
63
|
+
builder = (options.delete(:builder) || Breadcrumbs::SimpleBuilder).new(self, breadcrumbs_on_rails, options)
|
87
64
|
content = builder.render.html_safe
|
88
65
|
if block_given?
|
89
66
|
capture(content, &block)
|
@@ -3,9 +3,9 @@
|
|
3
3
|
#
|
4
4
|
# A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
module BreadcrumbsOnRails
|
10
|
-
VERSION = "
|
10
|
+
VERSION = "4.0.0"
|
11
11
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
|
-
require 'mocha/
|
2
|
+
require 'mocha/minitest'
|
3
3
|
require 'dummy'
|
4
4
|
|
5
|
-
|
5
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
6
6
|
require 'breadcrumbs_on_rails'
|
7
7
|
|
8
8
|
Encoding.default_external = Encoding::UTF_8
|
@@ -96,10 +96,10 @@ class ExampleHelpersTest < ActionView::TestCase
|
|
96
96
|
include ActionView::Helpers::TagHelper
|
97
97
|
include ActionView::Helpers::UrlHelper
|
98
98
|
|
99
|
-
attr_accessor :
|
99
|
+
attr_accessor :breadcrumbs_on_rails
|
100
100
|
|
101
101
|
setup do
|
102
|
-
self.
|
102
|
+
self.breadcrumbs_on_rails = []
|
103
103
|
end
|
104
104
|
|
105
105
|
def test_render_breadcrumbs
|
metadata
CHANGED
@@ -1,110 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breadcrumbs_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: appraisal
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
13
|
- !ruby/object:Gem::Dependency
|
56
14
|
name: rails
|
57
15
|
requirement: !ruby/object:Gem::Requirement
|
58
16
|
requirements:
|
59
17
|
- - ">="
|
60
18
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
19
|
+
version: '5.0'
|
20
|
+
type: :runtime
|
63
21
|
prerelease: false
|
64
22
|
version_requirements: !ruby/object:Gem::Requirement
|
65
23
|
requirements:
|
66
24
|
- - ">="
|
67
25
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: mocha
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: yard
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
26
|
+
version: '5.0'
|
97
27
|
description: BreadcrumbsOnRails is a simple Ruby on Rails plugin for creating and
|
98
28
|
managing a breadcrumb navigation for a Rails project.
|
99
29
|
email:
|
100
30
|
- weppos@weppos.net
|
101
31
|
executables: []
|
102
32
|
extensions: []
|
103
|
-
extra_rdoc_files:
|
33
|
+
extra_rdoc_files:
|
34
|
+
- LICENSE.txt
|
104
35
|
files:
|
36
|
+
- ".github/FUNDING.yml"
|
105
37
|
- ".gitignore"
|
106
|
-
- ".ruby-gemset"
|
107
|
-
- ".ruby-version"
|
108
38
|
- ".travis.yml"
|
109
39
|
- Appraisals
|
110
40
|
- CHANGELOG.md
|
@@ -112,12 +42,12 @@ files:
|
|
112
42
|
- LICENSE.txt
|
113
43
|
- README.md
|
114
44
|
- Rakefile
|
45
|
+
- SECURITY.md
|
115
46
|
- breadcrumbs_on_rails.gemspec
|
116
|
-
- gemfiles/4.0.gemfile
|
117
|
-
- gemfiles/4.1.gemfile
|
118
|
-
- gemfiles/4.2.gemfile
|
119
47
|
- gemfiles/5.0.gemfile
|
120
|
-
-
|
48
|
+
- gemfiles/5.1.gemfile
|
49
|
+
- gemfiles/5.2.gemfile
|
50
|
+
- gemfiles/6.0.gemfile
|
121
51
|
- lib/breadcrumbs_on_rails.rb
|
122
52
|
- lib/breadcrumbs_on_rails/action_controller.rb
|
123
53
|
- lib/breadcrumbs_on_rails/breadcrumbs.rb
|
@@ -142,15 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
72
|
requirements:
|
143
73
|
- - ">="
|
144
74
|
- !ruby/object:Gem::Version
|
145
|
-
version: '2.
|
75
|
+
version: '2.4'
|
146
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
77
|
requirements:
|
148
78
|
- - ">="
|
149
79
|
- !ruby/object:Gem::Version
|
150
80
|
version: '0'
|
151
81
|
requirements: []
|
152
|
-
|
153
|
-
rubygems_version: 2.5.1
|
82
|
+
rubygems_version: 3.1.2
|
154
83
|
signing_key:
|
155
84
|
specification_version: 4
|
156
85
|
summary: A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation
|
@@ -162,4 +91,3 @@ test_files:
|
|
162
91
|
- test/unit/element_test.rb
|
163
92
|
- test/unit/simple_builder_test.rb
|
164
93
|
- test/views/example/default.html.erb
|
165
|
-
has_rdoc:
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
breadcrumbs_on_rails
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.1
|
data/gemfiles/4.0.gemfile
DELETED
data/gemfiles/4.1.gemfile
DELETED
data/gemfiles/4.2.gemfile
DELETED
data/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'breadcrumbs_on_rails'
|