breadcrumbs 0.1.6 → 0.1.7
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 +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +39 -44
- data/breadcrumbs.gemspec +2 -1
- data/examples/myapp/.gitignore +12 -0
- data/examples/myapp/Gemfile +12 -0
- data/examples/myapp/Gemfile.lock +124 -0
- data/examples/myapp/README.rdoc +28 -0
- data/examples/myapp/Rakefile +6 -0
- data/examples/myapp/app/assets/images/.keep +0 -0
- data/examples/myapp/app/assets/stylesheets/application.css +49 -0
- data/examples/myapp/app/controllers/application_controller.rb +13 -0
- data/examples/myapp/app/controllers/concerns/.keep +0 -0
- data/examples/myapp/app/controllers/site_controller.rb +9 -0
- data/examples/myapp/app/helpers/application_helper.rb +2 -0
- data/examples/myapp/app/mailers/.keep +0 -0
- data/examples/myapp/app/models/.keep +0 -0
- data/examples/myapp/app/models/concerns/.keep +0 -0
- data/examples/myapp/app/views/layouts/application.html.erb +15 -0
- data/examples/myapp/app/views/site/contact.html.erb +1 -0
- data/examples/myapp/app/views/site/home.html.erb +1 -0
- data/examples/myapp/bin/bundle +3 -0
- data/examples/myapp/bin/rails +4 -0
- data/examples/myapp/bin/rake +4 -0
- data/examples/myapp/bin/setup +29 -0
- data/examples/myapp/config.ru +4 -0
- data/examples/myapp/config/application.rb +30 -0
- data/examples/myapp/config/boot.rb +3 -0
- data/examples/myapp/config/environment.rb +5 -0
- data/examples/myapp/config/environments/development.rb +38 -0
- data/examples/myapp/config/environments/production.rb +73 -0
- data/examples/myapp/config/environments/test.rb +39 -0
- data/examples/myapp/config/initializers/assets.rb +11 -0
- data/examples/myapp/config/initializers/backtrace_silencers.rb +7 -0
- data/examples/myapp/config/initializers/cookies_serializer.rb +3 -0
- data/examples/myapp/config/initializers/filter_parameter_logging.rb +4 -0
- data/examples/myapp/config/initializers/inflections.rb +16 -0
- data/examples/myapp/config/initializers/mime_types.rb +4 -0
- data/examples/myapp/config/initializers/session_store.rb +3 -0
- data/examples/myapp/config/initializers/wrap_parameters.rb +9 -0
- data/examples/myapp/config/locales/en.yml +28 -0
- data/examples/myapp/config/routes.rb +5 -0
- data/examples/myapp/config/secrets.yml +22 -0
- data/examples/myapp/db/seeds.rb +7 -0
- data/examples/myapp/lib/assets/.keep +0 -0
- data/examples/myapp/lib/tasks/.keep +0 -0
- data/examples/myapp/log/.keep +0 -0
- data/examples/myapp/public/404.html +67 -0
- data/examples/myapp/public/422.html +67 -0
- data/examples/myapp/public/500.html +66 -0
- data/examples/myapp/public/favicon.ico +0 -0
- data/examples/myapp/public/robots.txt +5 -0
- data/examples/myapp/vendor/assets/stylesheets/.keep +0 -0
- data/lib/breadcrumbs.rb +14 -14
- data/lib/breadcrumbs/render.rb +4 -4
- data/lib/breadcrumbs/render/base.rb +2 -2
- data/lib/breadcrumbs/render/inline.rb +5 -2
- data/lib/breadcrumbs/render/list.rb +3 -5
- data/lib/breadcrumbs/version.rb +1 -1
- data/test/breadcrumbs_test.rb +20 -20
- data/test/{resources/pt.yml → support/pt-BR.yml} +2 -2
- data/test/test_helper.rb +4 -3
- metadata +145 -76
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/500.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
|
62
|
+
</div>
|
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
64
|
+
</div>
|
|
65
|
+
</body>
|
|
66
|
+
</html>
|
|
File without changes
|
|
File without changes
|
data/lib/breadcrumbs.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "i18n"
|
|
1
|
+
require "i18n"
|
|
2
2
|
require "breadcrumbs/render"
|
|
3
3
|
require "breadcrumbs/action_controller_ext" if defined?(ActionController)
|
|
4
4
|
require "active_support/inflector"
|
|
@@ -12,15 +12,15 @@ class Breadcrumbs
|
|
|
12
12
|
|
|
13
13
|
# Add a new breadcrumbs.
|
|
14
14
|
#
|
|
15
|
-
# breadcrumbs.add
|
|
16
|
-
# breadcrumbs.add
|
|
17
|
-
# breadcrumbs.add
|
|
15
|
+
# breadcrumbs.add 'Home'
|
|
16
|
+
# breadcrumbs.add 'Home', '/'
|
|
17
|
+
# breadcrumbs.add 'Home', '/', class: 'home'
|
|
18
18
|
#
|
|
19
19
|
# If you provide a symbol as text, it will try to
|
|
20
20
|
# find it as I18n scope.
|
|
21
21
|
#
|
|
22
22
|
def add(text, url = nil, options = {})
|
|
23
|
-
options
|
|
23
|
+
options = {i18n: true}.merge(options)
|
|
24
24
|
text = translate(text) if options.delete(:i18n)
|
|
25
25
|
items << [text.to_s, url, options]
|
|
26
26
|
end
|
|
@@ -31,12 +31,12 @@ class Breadcrumbs
|
|
|
31
31
|
# Use HTML lists by default, but can be plain links.
|
|
32
32
|
#
|
|
33
33
|
# breadcrumbs.render
|
|
34
|
-
# breadcrumbs.render(:
|
|
35
|
-
# breadcrumbs.render(:
|
|
36
|
-
# breadcrumbs.render(:
|
|
37
|
-
# breadcrumbs.render(:
|
|
38
|
-
# breadcrumbs.render(:
|
|
39
|
-
# breadcrumbs.render(:
|
|
34
|
+
# breadcrumbs.render(format: 'inline')
|
|
35
|
+
# breadcrumbs.render(format: 'inline', separator: '|')
|
|
36
|
+
# breadcrumbs.render(format: 'list')
|
|
37
|
+
# breadcrumbs.render(format: 'ordered_list')
|
|
38
|
+
# breadcrumbs.render(id: 'breadcrumbs')
|
|
39
|
+
# breadcrumbs.render(class: 'breadcrumbs')
|
|
40
40
|
#
|
|
41
41
|
# You can also define your own formatter. Just create a class that implements a +render+ instance
|
|
42
42
|
# method and you're good to go.
|
|
@@ -49,7 +49,7 @@ class Breadcrumbs
|
|
|
49
49
|
#
|
|
50
50
|
# To use your new format, just provide the <tt>:format</tt> option.
|
|
51
51
|
#
|
|
52
|
-
# breadcrumbs.render(:
|
|
52
|
+
# breadcrumbs.render(format: 'dl')
|
|
53
53
|
#
|
|
54
54
|
def render(options = {})
|
|
55
55
|
options[:format] ||= :list
|
|
@@ -62,8 +62,8 @@ class Breadcrumbs
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def translate(scope) # :nodoc:
|
|
65
|
-
text = I18n.t(scope, :
|
|
66
|
-
text ||= I18n.t(scope, :
|
|
65
|
+
text = I18n.t(scope, scope: 'breadcrumbs', raise: true) rescue nil
|
|
66
|
+
text ||= I18n.t(scope, default: scope.to_s) rescue scope
|
|
67
67
|
text
|
|
68
68
|
end
|
|
69
69
|
end
|
data/lib/breadcrumbs/render.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
class Breadcrumbs
|
|
2
2
|
module Render
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
require "breadcrumbs/render/base"
|
|
4
|
+
require "breadcrumbs/render/inline"
|
|
5
|
+
require "breadcrumbs/render/list"
|
|
6
|
+
require "breadcrumbs/render/ordered_list"
|
|
7
7
|
end
|
|
8
8
|
end
|
|
@@ -12,8 +12,8 @@ class Breadcrumbs
|
|
|
12
12
|
# Build a HTML tag.
|
|
13
13
|
#
|
|
14
14
|
# tag(:p, "Hello!")
|
|
15
|
-
# tag(:p, "Hello!", :
|
|
16
|
-
# tag(:p, :
|
|
15
|
+
# tag(:p, "Hello!", class: "hello")
|
|
16
|
+
# tag(:p, class: "phrase") { "Hello" }
|
|
17
17
|
#
|
|
18
18
|
def tag(name, *args, &block)
|
|
19
19
|
options = args.pop if args.last.kind_of?(Hash)
|
|
@@ -2,7 +2,10 @@ class Breadcrumbs
|
|
|
2
2
|
module Render
|
|
3
3
|
class Inline < Base # :nodoc: all
|
|
4
4
|
def render
|
|
5
|
-
options = {
|
|
5
|
+
options = {
|
|
6
|
+
class: "breadcrumbs",
|
|
7
|
+
separator: "»"
|
|
8
|
+
}.merge(default_options)
|
|
6
9
|
|
|
7
10
|
html = []
|
|
8
11
|
items = breadcrumbs.items
|
|
@@ -12,7 +15,7 @@ class Breadcrumbs
|
|
|
12
15
|
html << render_item(item, i, size)
|
|
13
16
|
end
|
|
14
17
|
|
|
15
|
-
separator = tag(:span, options[:separator], :
|
|
18
|
+
separator = tag(:span, options[:separator], class: "separator")
|
|
16
19
|
|
|
17
20
|
html.join(" #{separator} ")
|
|
18
21
|
end
|
|
@@ -2,12 +2,10 @@ class Breadcrumbs
|
|
|
2
2
|
module Render
|
|
3
3
|
class List < Base # :nodoc: all
|
|
4
4
|
def render
|
|
5
|
-
options = {
|
|
6
|
-
:class => "breadcrumbs"
|
|
7
|
-
}.merge(default_options)
|
|
5
|
+
options = {class: "breadcrumbs"}.merge(default_options)
|
|
8
6
|
|
|
9
7
|
tag(list_style, options) do
|
|
10
|
-
html =
|
|
8
|
+
html = ''
|
|
11
9
|
items = breadcrumbs.items
|
|
12
10
|
size = items.size
|
|
13
11
|
|
|
@@ -31,7 +29,7 @@ class Breadcrumbs
|
|
|
31
29
|
|
|
32
30
|
text, url, options = *item
|
|
33
31
|
text = wrap_item(url, CGI.escapeHTML(text), options)
|
|
34
|
-
tag(:li, text, :
|
|
32
|
+
tag(:li, text, class: css.join(" "))
|
|
35
33
|
end
|
|
36
34
|
end
|
|
37
35
|
end
|
data/lib/breadcrumbs/version.rb
CHANGED
data/test/breadcrumbs_test.rb
CHANGED
|
@@ -8,10 +8,10 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def test_return_safe_html
|
|
11
|
-
html_mock = mock
|
|
11
|
+
html_mock = mock()
|
|
12
12
|
html_mock.expects(:html_safe).once
|
|
13
13
|
Breadcrumbs::Render::List.any_instance.stubs(:render).returns(html_mock)
|
|
14
|
-
@breadcrumbs.render(:
|
|
14
|
+
@breadcrumbs.render(format: "list")
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def test_add_item
|
|
@@ -28,7 +28,7 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
28
28
|
|
|
29
29
|
def test_tag_with_attributes
|
|
30
30
|
expected = %[<span class="greetings" id="hi">Hi!</span>]
|
|
31
|
-
assert_equal expected, @inline.tag(:span, "Hi!", :
|
|
31
|
+
assert_equal expected, @inline.tag(:span, "Hi!", class: "greetings", id: "hi")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def test_tag_with_block
|
|
@@ -37,17 +37,17 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
37
37
|
|
|
38
38
|
def test_tag_with_block_and_attributes
|
|
39
39
|
expected = %[<span class="greetings" id="hi">Hi!</span>]
|
|
40
|
-
assert_equal expected, @inline.tag(:span, :
|
|
40
|
+
assert_equal expected, @inline.tag(:span, class: "greetings", id: "hi") { "Hi!" }
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def test_nested_tags
|
|
44
44
|
expected = %[<span class="greetings"><strong id="hi">Hi!</strong></span>]
|
|
45
|
-
actual = @inline.tag(:span, :
|
|
45
|
+
actual = @inline.tag(:span, class: "greetings") { tag(:strong, "Hi!", id: "hi") }
|
|
46
46
|
assert_equal expected, actual
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def test_render_as_list
|
|
50
|
-
@breadcrumbs.add "Home", "/", :
|
|
50
|
+
@breadcrumbs.add "Home", "/", class: "home"
|
|
51
51
|
html = Nokogiri::HTML(@breadcrumbs.render)
|
|
52
52
|
|
|
53
53
|
assert_not_nil html.at("ul.breadcrumbs")
|
|
@@ -56,21 +56,21 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
56
56
|
|
|
57
57
|
def test_render_as_ordered_list
|
|
58
58
|
@breadcrumbs.add "Home", "/"
|
|
59
|
-
html = Nokogiri::HTML(@breadcrumbs.render(:
|
|
59
|
+
html = Nokogiri::HTML(@breadcrumbs.render(format: "ordered_list"))
|
|
60
60
|
|
|
61
61
|
assert_not_nil html.at("ol.breadcrumbs")
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def test_render_as_list_with_custom_attributes
|
|
65
|
-
@breadcrumbs.add "Home", "/", :
|
|
66
|
-
html = Nokogiri::HTML(@breadcrumbs.render(:
|
|
65
|
+
@breadcrumbs.add "Home", "/", class: "home"
|
|
66
|
+
html = Nokogiri::HTML(@breadcrumbs.render(id: "breadcrumbs", class: "top"))
|
|
67
67
|
|
|
68
68
|
assert_not_nil html.at("ul.top#breadcrumbs")
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def test_render_as_list_add_items
|
|
72
|
-
@breadcrumbs.add "Home", "/", :
|
|
73
|
-
@breadcrumbs.add "About", "/about", :
|
|
72
|
+
@breadcrumbs.add "Home", "/", class: "home"
|
|
73
|
+
@breadcrumbs.add "About", "/about", class: "about"
|
|
74
74
|
@breadcrumbs.add "People"
|
|
75
75
|
|
|
76
76
|
html = Nokogiri::HTML(@breadcrumbs.render)
|
|
@@ -99,18 +99,18 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
def test_render_inline
|
|
102
|
-
@breadcrumbs.add "Home", "/", :
|
|
103
|
-
html = Nokogiri::HTML(@breadcrumbs.render(:
|
|
102
|
+
@breadcrumbs.add "Home", "/", class: "home"
|
|
103
|
+
html = Nokogiri::HTML(@breadcrumbs.render(format: "inline"))
|
|
104
104
|
|
|
105
105
|
assert_nil html.at("ul.breadcrumbs")
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
def test_render_inline_add_items
|
|
109
|
-
@breadcrumbs.add "Home", "/", :
|
|
110
|
-
@breadcrumbs.add "About", "/about", :
|
|
109
|
+
@breadcrumbs.add "Home", "/", class: "home"
|
|
110
|
+
@breadcrumbs.add "About", "/about", class: "about"
|
|
111
111
|
@breadcrumbs.add "People"
|
|
112
112
|
|
|
113
|
-
html = @breadcrumbs.render(:
|
|
113
|
+
html = @breadcrumbs.render(format: "inline")
|
|
114
114
|
html = Nokogiri::HTML("<div>#{html}</div>")
|
|
115
115
|
separator = Nokogiri::HTML("<span>»</span>").at("span").inner_text
|
|
116
116
|
|
|
@@ -142,16 +142,16 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
def test_render_inline_with_custom_separator
|
|
145
|
-
@breadcrumbs.add "Home", "/", :
|
|
145
|
+
@breadcrumbs.add "Home", "/", class: "home"
|
|
146
146
|
@breadcrumbs.add "People"
|
|
147
147
|
|
|
148
|
-
html = Nokogiri::HTML(@breadcrumbs.render(:
|
|
148
|
+
html = Nokogiri::HTML(@breadcrumbs.render(format: "inline", separator: "|"))
|
|
149
149
|
|
|
150
150
|
assert_equal "|", html.at("span.separator").inner_text
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
def test_render_original_text_when_disabling_translation
|
|
154
|
-
@breadcrumbs.add :home, nil, :
|
|
154
|
+
@breadcrumbs.add :home, nil, i18n: false
|
|
155
155
|
@breadcrumbs.add :people
|
|
156
156
|
|
|
157
157
|
html = Nokogiri::HTML(@breadcrumbs.render)
|
|
@@ -193,7 +193,7 @@ class BreadcrumbsTest < Test::Unit::TestCase
|
|
|
193
193
|
|
|
194
194
|
def test_escape_text_when_rendering_inline
|
|
195
195
|
@breadcrumbs.add "<script>alert(1)</script>"
|
|
196
|
-
html = @breadcrumbs.render(:
|
|
196
|
+
html = @breadcrumbs.render(format: "inline")
|
|
197
197
|
|
|
198
198
|
assert_equal %[<span class="first last item-0"><script>alert(1)</script></span>], html
|
|
199
199
|
end
|
data/test/test_helper.rb
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
require "bundler"
|
|
1
2
|
require "test/unit"
|
|
2
3
|
require "cgi"
|
|
3
4
|
require "nokogiri"
|
|
4
5
|
require "action_controller"
|
|
5
|
-
require "mocha"
|
|
6
|
+
require "mocha/test_unit"
|
|
6
7
|
|
|
7
8
|
require "breadcrumbs"
|
|
8
9
|
|
|
9
|
-
I18n.load_path << File.dirname(__FILE__) + "/
|
|
10
|
-
I18n.locale =
|
|
10
|
+
I18n.load_path << File.dirname(__FILE__) + "/support/pt-BR.yml"
|
|
11
|
+
I18n.locale = "pt-BR"
|
metadata
CHANGED
|
@@ -1,89 +1,162 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: breadcrumbs
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
version: 0.1.6
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.7
|
|
6
5
|
platform: ruby
|
|
7
|
-
authors:
|
|
6
|
+
authors:
|
|
8
7
|
- Nando Vieira
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
dependencies:
|
|
16
|
-
- !ruby/object:Gem::Dependency
|
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
17
14
|
name: i18n
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
none: false
|
|
21
|
-
requirements:
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
22
17
|
- - ">="
|
|
23
|
-
- !ruby/object:Gem::Version
|
|
24
|
-
version:
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
25
20
|
type: :runtime
|
|
26
|
-
version_requirements: *id001
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: nokogiri
|
|
29
21
|
prerelease: false
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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: nokogiri
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
33
31
|
- - ">="
|
|
34
|
-
- !ruby/object:Gem::Version
|
|
35
|
-
version:
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
36
34
|
type: :development
|
|
37
|
-
version_requirements: *id002
|
|
38
|
-
- !ruby/object:Gem::Dependency
|
|
39
|
-
name: actionpack
|
|
40
35
|
prerelease: false
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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: actionpack
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
44
45
|
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version:
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
47
48
|
type: :development
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
50
56
|
name: mocha
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
51
63
|
prerelease: false
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rake
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
55
73
|
- - ">="
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
version:
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
58
76
|
type: :development
|
|
59
|
-
version_requirements: *id004
|
|
60
|
-
- !ruby/object:Gem::Dependency
|
|
61
|
-
name: ruby-debug19
|
|
62
77
|
prerelease: false
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
requirements:
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
66
80
|
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: test-unit
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
69
90
|
type: :development
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
description: Breadcrumbs is a simple plugin that adds a `breadcrumbs` object to controllers
|
|
98
|
+
and views.
|
|
99
|
+
email:
|
|
73
100
|
- fnando.vieira@gmail.com
|
|
74
101
|
executables: []
|
|
75
|
-
|
|
76
102
|
extensions: []
|
|
77
|
-
|
|
78
103
|
extra_rdoc_files: []
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- .gitignore
|
|
104
|
+
files:
|
|
105
|
+
- ".gitignore"
|
|
82
106
|
- Gemfile
|
|
83
107
|
- Gemfile.lock
|
|
84
108
|
- README.rdoc
|
|
85
109
|
- Rakefile
|
|
86
110
|
- breadcrumbs.gemspec
|
|
111
|
+
- examples/myapp/.gitignore
|
|
112
|
+
- examples/myapp/Gemfile
|
|
113
|
+
- examples/myapp/Gemfile.lock
|
|
114
|
+
- examples/myapp/README.rdoc
|
|
115
|
+
- examples/myapp/Rakefile
|
|
116
|
+
- examples/myapp/app/assets/images/.keep
|
|
117
|
+
- examples/myapp/app/assets/stylesheets/application.css
|
|
118
|
+
- examples/myapp/app/controllers/application_controller.rb
|
|
119
|
+
- examples/myapp/app/controllers/concerns/.keep
|
|
120
|
+
- examples/myapp/app/controllers/site_controller.rb
|
|
121
|
+
- examples/myapp/app/helpers/application_helper.rb
|
|
122
|
+
- examples/myapp/app/mailers/.keep
|
|
123
|
+
- examples/myapp/app/models/.keep
|
|
124
|
+
- examples/myapp/app/models/concerns/.keep
|
|
125
|
+
- examples/myapp/app/views/layouts/application.html.erb
|
|
126
|
+
- examples/myapp/app/views/site/contact.html.erb
|
|
127
|
+
- examples/myapp/app/views/site/home.html.erb
|
|
128
|
+
- examples/myapp/bin/bundle
|
|
129
|
+
- examples/myapp/bin/rails
|
|
130
|
+
- examples/myapp/bin/rake
|
|
131
|
+
- examples/myapp/bin/setup
|
|
132
|
+
- examples/myapp/config.ru
|
|
133
|
+
- examples/myapp/config/application.rb
|
|
134
|
+
- examples/myapp/config/boot.rb
|
|
135
|
+
- examples/myapp/config/environment.rb
|
|
136
|
+
- examples/myapp/config/environments/development.rb
|
|
137
|
+
- examples/myapp/config/environments/production.rb
|
|
138
|
+
- examples/myapp/config/environments/test.rb
|
|
139
|
+
- examples/myapp/config/initializers/assets.rb
|
|
140
|
+
- examples/myapp/config/initializers/backtrace_silencers.rb
|
|
141
|
+
- examples/myapp/config/initializers/cookies_serializer.rb
|
|
142
|
+
- examples/myapp/config/initializers/filter_parameter_logging.rb
|
|
143
|
+
- examples/myapp/config/initializers/inflections.rb
|
|
144
|
+
- examples/myapp/config/initializers/mime_types.rb
|
|
145
|
+
- examples/myapp/config/initializers/session_store.rb
|
|
146
|
+
- examples/myapp/config/initializers/wrap_parameters.rb
|
|
147
|
+
- examples/myapp/config/locales/en.yml
|
|
148
|
+
- examples/myapp/config/routes.rb
|
|
149
|
+
- examples/myapp/config/secrets.yml
|
|
150
|
+
- examples/myapp/db/seeds.rb
|
|
151
|
+
- examples/myapp/lib/assets/.keep
|
|
152
|
+
- examples/myapp/lib/tasks/.keep
|
|
153
|
+
- examples/myapp/log/.keep
|
|
154
|
+
- examples/myapp/public/404.html
|
|
155
|
+
- examples/myapp/public/422.html
|
|
156
|
+
- examples/myapp/public/500.html
|
|
157
|
+
- examples/myapp/public/favicon.ico
|
|
158
|
+
- examples/myapp/public/robots.txt
|
|
159
|
+
- examples/myapp/vendor/assets/stylesheets/.keep
|
|
87
160
|
- lib/breadcrumbs.rb
|
|
88
161
|
- lib/breadcrumbs/action_controller_ext.rb
|
|
89
162
|
- lib/breadcrumbs/render.rb
|
|
@@ -93,37 +166,33 @@ files:
|
|
|
93
166
|
- lib/breadcrumbs/render/ordered_list.rb
|
|
94
167
|
- lib/breadcrumbs/version.rb
|
|
95
168
|
- test/breadcrumbs_test.rb
|
|
96
|
-
- test/
|
|
169
|
+
- test/support/pt-BR.yml
|
|
97
170
|
- test/test_helper.rb
|
|
98
|
-
has_rdoc: true
|
|
99
171
|
homepage: http://rubygems.org/gems/breadcrumbs
|
|
100
172
|
licenses: []
|
|
101
|
-
|
|
173
|
+
metadata: {}
|
|
102
174
|
post_install_message:
|
|
103
175
|
rdoc_options: []
|
|
104
|
-
|
|
105
|
-
require_paths:
|
|
176
|
+
require_paths:
|
|
106
177
|
- lib
|
|
107
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
|
-
|
|
109
|
-
requirements:
|
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
|
+
requirements:
|
|
110
180
|
- - ">="
|
|
111
|
-
- !ruby/object:Gem::Version
|
|
112
|
-
version:
|
|
113
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
|
-
|
|
115
|
-
requirements:
|
|
181
|
+
- !ruby/object:Gem::Version
|
|
182
|
+
version: '0'
|
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
116
185
|
- - ">="
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version:
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '0'
|
|
119
188
|
requirements: []
|
|
120
|
-
|
|
121
189
|
rubyforge_project:
|
|
122
|
-
rubygems_version:
|
|
190
|
+
rubygems_version: 2.2.2
|
|
123
191
|
signing_key:
|
|
124
|
-
specification_version:
|
|
125
|
-
summary: Breadcrumbs is a simple plugin that adds a `breadcrumbs` object to controllers
|
|
126
|
-
|
|
192
|
+
specification_version: 4
|
|
193
|
+
summary: Breadcrumbs is a simple plugin that adds a `breadcrumbs` object to controllers
|
|
194
|
+
and views.
|
|
195
|
+
test_files:
|
|
127
196
|
- test/breadcrumbs_test.rb
|
|
128
|
-
- test/
|
|
197
|
+
- test/support/pt-BR.yml
|
|
129
198
|
- test/test_helper.rb
|