breadcrumble 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +6 -1
- data/LICENSE +1 -1
- data/README.md +3 -1
- data/breadcrumble.gemspec +2 -2
- data/gemfiles/4.0.gemfile +5 -0
- data/gemfiles/4.1.gemfile +5 -0
- data/gemfiles/4.2.gemfile +5 -0
- data/gemfiles/edge.gemfile +6 -0
- data/lib/breadcrumble/action_controller.rb +5 -5
- data/lib/breadcrumble/version.rb +1 -1
- metadata +23 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a04fe576a816ff5cc81b197818ea9438a973713f
|
4
|
+
data.tar.gz: 12bf7abb6f7ff2e781d217ff14d5ebd93671671d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a690a5223bf04435d8eef351ef2995949b61eb0f96bf34a3fe567b9eb1fe1e24a79caef73a6a6592f19cc42f6f28196338bb3a1400f1db29b78aae3c31c5ff3b
|
7
|
+
data.tar.gz: 7da3ca9f1a79d2b89fd6b7b2db821a72e746fba3e99a63cc60a827ba9e4aecd0411dcf944f0a7b80d7a84f517816f521f70103fdee020bc5a83d789b6b56ddb5
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
![Breadcrumble Logo](http://ma2gedev.github.io/breadcrumble/images/logo_s.png)
|
10
10
|
logo designed by [@524shoutz_nika](https://twitter.com/524shoutz_nika)
|
11
11
|
|
12
|
-
Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails
|
12
|
+
Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0, 4.1 and 4.2.
|
13
13
|
|
14
14
|
Support rich snippets mark up using microdata format as default.
|
15
15
|
|
@@ -31,6 +31,8 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
$ gem install breadcrumble
|
33
33
|
|
34
|
+
Specify breadcrumble version 3.0.6 with Rails version 3.2.x.
|
35
|
+
|
34
36
|
## Usage
|
35
37
|
|
36
38
|
### Controller
|
data/breadcrumble.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/breadcrumble/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["ma2ge"]
|
6
6
|
gem.email = ["takayuki.1229@gmail.com"]
|
7
|
-
gem.description = "A breadcrumbs plugin for Ruby on Rails
|
8
|
-
gem.summary = "Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails
|
7
|
+
gem.description = "A breadcrumbs plugin for Ruby on Rails 4.0, 4.1 and 4.2."
|
8
|
+
gem.summary = "Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0, 4.1 and 4.2."
|
9
9
|
gem.homepage = "https://github.com/ma2gedev/breadcrumble"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
@@ -8,29 +8,29 @@ module Breadcrumble
|
|
8
8
|
|
9
9
|
module ClassMethods
|
10
10
|
# Add a breadcrumb.
|
11
|
-
# @param filter_options filter_options passed
|
11
|
+
# @param filter_options filter_options passed before_action method
|
12
12
|
# @example
|
13
13
|
# add_breadcrumb("home", home_url)
|
14
14
|
# add_breadcrumb(-> context { context.title }, -> context { context.sample_path })
|
15
15
|
def add_breadcrumb(name, url = nil, filter_options = {})
|
16
|
-
|
16
|
+
before_action(filter_options) do |controller|
|
17
17
|
controller.send(:add_breadcrumb, name, url)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
# Add a breadcrumb to breadcrumb trail.
|
22
22
|
# @param trail_index index of breadcrumb trail
|
23
|
-
# @param filter_options filter_options passed
|
23
|
+
# @param filter_options filter_options passed before_action method
|
24
24
|
# @example
|
25
25
|
# add_breadcrumb_to("level 1", "level 1 url", 0, only: :show)
|
26
26
|
def add_breadcrumb_to(name, url, trail_index, filter_options = {})
|
27
|
-
|
27
|
+
before_action(filter_options) do |controller|
|
28
28
|
controller.send(:add_breadcrumb_to, name, url, trail_index)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
def add_breadcrumbs(*args)
|
33
|
-
|
33
|
+
before_action do |controller|
|
34
34
|
args.each do |arg|
|
35
35
|
controller.send(:add_breadcrumb, arg[0], arg[1])
|
36
36
|
end
|
data/lib/breadcrumble/version.rb
CHANGED
metadata
CHANGED
@@ -1,81 +1,81 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breadcrumble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ma2ge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: coveralls
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: A breadcrumbs plugin for Ruby on Rails
|
69
|
+
description: A breadcrumbs plugin for Ruby on Rails 4.0, 4.1 and 4.2.
|
70
70
|
email:
|
71
71
|
- takayuki.1229@gmail.com
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .rubocop.yml
|
78
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rubocop.yml"
|
78
|
+
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE
|
81
81
|
- README.md
|
@@ -84,6 +84,10 @@ files:
|
|
84
84
|
- app/views/breadcrumble/_breadcrumb_trail.html.erb
|
85
85
|
- app/views/breadcrumble/_breadcrumb_trails.html.erb
|
86
86
|
- breadcrumble.gemspec
|
87
|
+
- gemfiles/4.0.gemfile
|
88
|
+
- gemfiles/4.1.gemfile
|
89
|
+
- gemfiles/4.2.gemfile
|
90
|
+
- gemfiles/edge.gemfile
|
87
91
|
- lib/breadcrumble.rb
|
88
92
|
- lib/breadcrumble/action_controller.rb
|
89
93
|
- lib/breadcrumble/action_view.rb
|
@@ -134,21 +138,21 @@ require_paths:
|
|
134
138
|
- lib
|
135
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
136
140
|
requirements:
|
137
|
-
- -
|
141
|
+
- - ">="
|
138
142
|
- !ruby/object:Gem::Version
|
139
143
|
version: '0'
|
140
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
145
|
requirements:
|
142
|
-
- -
|
146
|
+
- - ">="
|
143
147
|
- !ruby/object:Gem::Version
|
144
148
|
version: '0'
|
145
149
|
requirements: []
|
146
150
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.2.2
|
148
152
|
signing_key:
|
149
153
|
specification_version: 4
|
150
|
-
summary: Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails
|
151
|
-
|
154
|
+
summary: Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0,
|
155
|
+
4.1 and 4.2.
|
152
156
|
test_files:
|
153
157
|
- spec/controllers/application_controller_spec.rb
|
154
158
|
- spec/controllers/examples_controller_spec.rb
|