gretel 1.2.1 → 2.0.0.beta1
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.
- data/.gitignore +23 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +15 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +98 -0
- data/{MIT-LICENSE → LICENSE.txt} +3 -1
- data/README.md +56 -62
- data/Rakefile +6 -34
- data/gretel.gemspec +22 -0
- data/lib/generators/gretel/templates/initializer.rb +2 -3
- data/lib/gretel/crumb.rb +33 -4
- data/lib/gretel/crumbs.rb +20 -40
- data/lib/gretel/link.rb +4 -4
- data/lib/gretel/version.rb +3 -0
- data/lib/gretel/view_helpers.rb +122 -0
- data/lib/gretel.rb +4 -5
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/config/initializers/breadcrumbs.rb +21 -0
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +1 -1
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/helper_methods_test.rb +76 -51
- metadata +38 -48
- data/lib/gretel/helper_methods.rb +0 -122
- data/lib/gretel/parent.rb +0 -9
- data/lib/gretel/view_link.rb +0 -13
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -899
- data/test/dummy/log/test.log +0 -9038
- data/test/dummy/tmp/cache/assets/CD0/C10/sprockets%2F54298310314d4114afd54d090ef4eae3 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D11/910/sprockets%2Fa4743dda75a6c1d923065da98d729f21 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F25f5ca97d1c1c044514dd8d2c5cb6d02 +0 -0
- data/test/dummy/tmp/cache/assets/D79/060/sprockets%2Fa2cf91ba98db7115dd35bcd7881934f8 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
module Gretel
|
2
|
+
module ViewHelpers
|
3
|
+
# Sets the current breadcrumb to be rendered elsewhere. Put it somewhere in the view, preferably in the top, before you render any breadcrumbs HTML:
|
4
|
+
# <%
|
5
|
+
# breadcrumb :category, @category
|
6
|
+
# %>
|
7
|
+
def breadcrumb(*args)
|
8
|
+
options = args.extract_options!
|
9
|
+
|
10
|
+
if args.any?
|
11
|
+
@_breadcrumb_key = args.shift
|
12
|
+
@_breadcrumb_args = args
|
13
|
+
else
|
14
|
+
breadcrumbs(options)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# Renders the breadcrumbs HTML, for example in your layout. See the readme for default options.
|
19
|
+
# <%= breadcrumbs :pretext => "You are here: " %>
|
20
|
+
#
|
21
|
+
# If you supply a block, it will yield an array with the breadcrumb links so you can build the breadcrumbs HTML manually:
|
22
|
+
# <% breadcrumbs do |links| %>
|
23
|
+
# <% if links.any? %>
|
24
|
+
# You are here:
|
25
|
+
# <% links.each do |link| %>
|
26
|
+
# <%= link_to link.text, link.url %> (<%= link.key %>) %>
|
27
|
+
# <% end %>
|
28
|
+
# <% end %>
|
29
|
+
# <% end %>
|
30
|
+
def breadcrumbs(options = {})
|
31
|
+
options = default_breadcrumb_options.merge(options)
|
32
|
+
links = get_breadcrumb_links(options)
|
33
|
+
if block_given?
|
34
|
+
yield links
|
35
|
+
else
|
36
|
+
render_breadcrumbs(links, options)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns an array of links for the path of the breadcrumb set by +breadcrumb+.
|
41
|
+
def get_breadcrumb_links(options = {})
|
42
|
+
return [] if @_breadcrumb_key.blank?
|
43
|
+
|
44
|
+
# Get breadcrumb set by the `breadcrumb` method
|
45
|
+
crumb = Gretel::Crumb.new(@_breadcrumb_key, *@_breadcrumb_args)
|
46
|
+
|
47
|
+
# Links of first crumb
|
48
|
+
links = crumb.links.dup
|
49
|
+
|
50
|
+
# Build parents
|
51
|
+
while crumb = crumb.parent
|
52
|
+
links.unshift *crumb.links
|
53
|
+
end
|
54
|
+
|
55
|
+
# Handle autoroot
|
56
|
+
if options[:autoroot] && links.map(&:key).exclude?(:root)
|
57
|
+
links.unshift *Gretel::Crumb.new(:root).links
|
58
|
+
end
|
59
|
+
|
60
|
+
# Handle show root alone
|
61
|
+
if links.count == 1 && links.first.key == :root && !options[:show_root_alone]
|
62
|
+
links.shift
|
63
|
+
end
|
64
|
+
|
65
|
+
links
|
66
|
+
end
|
67
|
+
|
68
|
+
# Renders breadcrumbs HTML.
|
69
|
+
def render_breadcrumbs(links, options)
|
70
|
+
return "" if links.empty?
|
71
|
+
|
72
|
+
# Array to hold the HTML fragments
|
73
|
+
fragments = []
|
74
|
+
|
75
|
+
# Loop through all but the last (current) link and build HTML of the fragments
|
76
|
+
links[0..-2].each do |link|
|
77
|
+
fragments << render_breadcrumb_fragment(link.text, link.url, options[:semantic])
|
78
|
+
end
|
79
|
+
|
80
|
+
# The current link is handled a little differently, and is only linked if specified in the options
|
81
|
+
current_link = links.last
|
82
|
+
fragments << render_breadcrumb_fragment(current_link.text, (options[:link_current] ? current_link.url : nil), options[:semantic], :class => options[:current_class])
|
83
|
+
|
84
|
+
# Build the final HTML
|
85
|
+
html = (options[:pretext] + fragments.join(options[:separator]) + options[:posttext]).html_safe
|
86
|
+
content_tag(:div, html, :id => options[:id], :class => options[:class])
|
87
|
+
end
|
88
|
+
|
89
|
+
# Renders HTML for at breadcrumb fragment, i.e. a breadcrumb link.
|
90
|
+
def render_breadcrumb_fragment(text, url, semantic, options = {})
|
91
|
+
if semantic
|
92
|
+
if url.present?
|
93
|
+
content_tag(:div, link_to(content_tag(:span, text, :itemprop => "title"), url, :class => options[:class], :itemprop => "url"), :itemscope => "", :itemtype => "http://data-vocabulary.org/Breadcrumb")
|
94
|
+
else
|
95
|
+
content_tag(:div, content_tag(:span, text, :class => options[:class], :itemprop => "title"), :itemscope => "", :itemtype => "http://data-vocabulary.org/Breadcrumb")
|
96
|
+
end
|
97
|
+
else
|
98
|
+
if url.present?
|
99
|
+
link_to(text, url, :class => options[:class])
|
100
|
+
elsif options[:class]
|
101
|
+
content_tag(:span, text, :class => options[:class])
|
102
|
+
else
|
103
|
+
text
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Default options for the breadcrumb rendering.
|
109
|
+
def default_breadcrumb_options
|
110
|
+
{ :pretext => "",
|
111
|
+
:posttext => "",
|
112
|
+
:separator => " > ",
|
113
|
+
:autoroot => false,
|
114
|
+
:show_root_alone => false,
|
115
|
+
:link_current => false,
|
116
|
+
:semantic => false,
|
117
|
+
:class => "breadcrumbs",
|
118
|
+
:current_class => "current",
|
119
|
+
:id => nil }
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
data/lib/gretel.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
require 'gretel/
|
1
|
+
require 'gretel/version'
|
2
2
|
require 'gretel/crumbs'
|
3
|
-
require 'gretel/
|
4
|
-
require 'gretel/view_link'
|
3
|
+
require 'gretel/crumb'
|
5
4
|
require 'gretel/link'
|
6
|
-
require 'gretel/
|
5
|
+
require 'gretel/view_helpers'
|
7
6
|
|
8
|
-
ActionView::Base.send :include, Gretel::
|
7
|
+
ActionView::Base.send :include, Gretel::ViewHelpers
|
File without changes
|
File without changes
|
@@ -40,4 +40,25 @@ Gretel::Crumbs.layout do
|
|
40
40
|
link "Contact form", contact_form_path
|
41
41
|
parent :basic
|
42
42
|
end
|
43
|
+
|
44
|
+
crumb :with_proc do
|
45
|
+
link Proc.new { "Name from proc" }, Proc.new { "URL from proc" }
|
46
|
+
end
|
47
|
+
|
48
|
+
crumb :with_multiple_params do |a, b, c|
|
49
|
+
link "#{a} and #{b} and #{c}", contact_path
|
50
|
+
parent :parent_with_multiple_params, a * 2, b * 2, c * 2
|
51
|
+
end
|
52
|
+
|
53
|
+
crumb :parent_with_multiple_params do |d, e, f|
|
54
|
+
link "First #{d} then #{e} then #{f}", about_path
|
55
|
+
end
|
56
|
+
|
57
|
+
crumb :with_unsafe_html do
|
58
|
+
link "Test <strong>bold text</strong>", about_path
|
59
|
+
end
|
60
|
+
|
61
|
+
crumb :with_safe_html do
|
62
|
+
link "Test <strong>bold text</strong>".html_safe, about_path
|
63
|
+
end
|
43
64
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
Dummy::Application.config.session_store :cookie_store, key
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
4
|
|
5
5
|
# Use the database for sessions instead of the cookie-based default,
|
6
6
|
# which shouldn't be used to store highly confidential information
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
7
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format
|
8
|
+
wrap_parameters :format => [:json]
|
9
9
|
end
|
10
10
|
|
11
11
|
# Disable root element in JSON by default.
|
File without changes
|
File without changes
|
data/test/helper_methods_test.rb
CHANGED
@@ -1,100 +1,125 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class HelperMethodsTest < ActionView::TestCase
|
4
|
-
include Gretel::
|
4
|
+
include Gretel::ViewHelpers
|
5
5
|
fixtures :all
|
6
6
|
|
7
|
-
test "
|
8
|
-
breadcrumb :root
|
9
|
-
response = breadcrumb
|
10
|
-
assert_equal %{<div class="breadcrumbs"><span class="current">Home</span></div>}, response
|
11
|
-
end
|
12
|
-
|
13
|
-
test "should show basic breadcrumb" do
|
7
|
+
test "shows basic breadcrumb" do
|
14
8
|
breadcrumb :basic
|
15
|
-
|
16
|
-
|
9
|
+
assert_equal %{<div class="breadcrumbs"><span class="current">About</span></div>},
|
10
|
+
breadcrumbs
|
17
11
|
end
|
18
12
|
|
19
|
-
test "
|
13
|
+
test "shows breadcrumb with root" do
|
20
14
|
breadcrumb :with_root
|
21
|
-
|
22
|
-
|
15
|
+
assert_equal %{<div class="breadcrumbs"><a href="/">Home</a> > <span class="current">About</span></div>},
|
16
|
+
breadcrumbs
|
23
17
|
end
|
24
18
|
|
25
|
-
test "
|
19
|
+
test "shows breadcrumb with parent" do
|
26
20
|
breadcrumb :with_parent
|
27
|
-
|
28
|
-
|
21
|
+
assert_equal %{<div class="breadcrumbs"><a href="/about">About</a> > <span class="current">Contact</span></div>},
|
22
|
+
breadcrumbs
|
29
23
|
end
|
30
24
|
|
31
|
-
test "
|
25
|
+
test "shows breadcrumb with autopath" do
|
32
26
|
breadcrumb :with_autopath, projects(:one)
|
33
|
-
|
34
|
-
|
27
|
+
assert_equal %{<div class="breadcrumbs"><span class="current">Test Project</span></div>},
|
28
|
+
breadcrumbs
|
35
29
|
end
|
36
30
|
|
37
|
-
test "
|
31
|
+
test "shows breadcrumb with parent object" do
|
38
32
|
breadcrumb :with_parent_object, issues(:one)
|
39
|
-
|
40
|
-
|
33
|
+
assert_equal %{<div class="breadcrumbs"><a href="/projects/1">Test Project</a> > <span class="current">Test Issue</span></div>},
|
34
|
+
breadcrumbs
|
41
35
|
end
|
42
36
|
|
43
|
-
test "
|
37
|
+
test "shows multiple links" do
|
44
38
|
breadcrumb :multiple_links
|
45
|
-
|
46
|
-
|
39
|
+
assert_equal %{<div class="breadcrumbs"><a href="/about/contact">Contact</a> > <span class="current">Contact form</span></div>},
|
40
|
+
breadcrumbs
|
47
41
|
end
|
48
42
|
|
49
|
-
test "
|
43
|
+
test "shows multiple links with parent" do
|
50
44
|
breadcrumb :multiple_links_with_parent
|
51
|
-
|
52
|
-
|
45
|
+
assert_equal %{<div class="breadcrumbs"><a href="/about">About</a> > <a href="/about/contact">Contact</a> > <span class="current">Contact form</span></div>},
|
46
|
+
breadcrumbs
|
53
47
|
end
|
54
48
|
|
55
|
-
test "
|
49
|
+
test "shows semantic breadcrumb" do
|
56
50
|
breadcrumb :with_root
|
57
|
-
|
58
|
-
|
51
|
+
assert_equal %{<div class="breadcrumbs"><div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></div> > <div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><span class="current" itemprop="title">About</span></div></div>},
|
52
|
+
breadcrumbs(:semantic => true)
|
59
53
|
end
|
60
54
|
|
61
|
-
test "
|
62
|
-
assert_equal "",
|
55
|
+
test "shows no breadcrumb" do
|
56
|
+
assert_equal "", breadcrumbs
|
63
57
|
end
|
64
58
|
|
65
|
-
test "
|
59
|
+
test "links current breadcrumb" do
|
66
60
|
breadcrumb :with_root
|
67
|
-
|
68
|
-
|
61
|
+
assert_equal %{<div class="breadcrumbs"><a href="/">Home</a> > <a href="/about" class="current">About</a></div>},
|
62
|
+
breadcrumbs(:link_current => true)
|
69
63
|
end
|
70
64
|
|
71
|
-
test "
|
65
|
+
test "shows pretext" do
|
72
66
|
breadcrumb :basic
|
73
|
-
|
74
|
-
|
67
|
+
assert_equal %{<div class="breadcrumbs">You are here: <span class="current">About</span></div>},
|
68
|
+
breadcrumbs(:pretext => "You are here: ")
|
75
69
|
end
|
76
70
|
|
77
|
-
test "
|
71
|
+
test "shows posttext" do
|
78
72
|
breadcrumb :basic
|
79
|
-
|
80
|
-
|
73
|
+
assert_equal %{<div class="breadcrumbs"><span class="current">About</span> - text after breadcrumbs</div>},
|
74
|
+
breadcrumbs(:posttext => " - text after breadcrumbs")
|
81
75
|
end
|
82
76
|
|
83
|
-
test "
|
77
|
+
test "shows autoroot" do
|
84
78
|
breadcrumb :basic
|
85
|
-
|
86
|
-
|
79
|
+
assert_equal %{<div class="breadcrumbs"><a href="/">Home</a> > <span class="current">About</span></div>},
|
80
|
+
breadcrumbs(:autoroot => true)
|
87
81
|
end
|
88
82
|
|
89
|
-
test "
|
83
|
+
test "shows separator" do
|
90
84
|
breadcrumb :with_root
|
91
|
-
|
92
|
-
|
85
|
+
assert_equal %{<div class="breadcrumbs"><a href="/">Home</a> › <span class="current">About</span></div>},
|
86
|
+
breadcrumbs(:separator => " › ")
|
87
|
+
end
|
88
|
+
|
89
|
+
test "shows element id" do
|
90
|
+
breadcrumb :basic
|
91
|
+
assert_equal %{<div class="breadcrumbs" id="custom_id"><span class="current">About</span></div>},
|
92
|
+
breadcrumbs(:id => "custom_id")
|
93
|
+
end
|
94
|
+
|
95
|
+
test "unsafe html" do
|
96
|
+
breadcrumb :with_unsafe_html
|
97
|
+
assert_equal %{<div class="breadcrumbs"><span class="current">Test <strong>bold text</strong></span></div>},
|
98
|
+
breadcrumbs
|
93
99
|
end
|
94
100
|
|
95
|
-
test "
|
101
|
+
test "safe html" do
|
102
|
+
breadcrumb :with_safe_html
|
103
|
+
assert_equal %{<div class="breadcrumbs"><span class="current">Test <strong>bold text</strong></span></div>},
|
104
|
+
breadcrumbs
|
105
|
+
end
|
106
|
+
|
107
|
+
test "works with legacy breadcrumb rendering method" do
|
96
108
|
breadcrumb :basic
|
97
|
-
|
98
|
-
|
109
|
+
assert_equal %{<div class="breadcrumbs"><span class="current">About</span></div>},
|
110
|
+
breadcrumb
|
111
|
+
end
|
112
|
+
|
113
|
+
test "yields a block containing breadcrumb links array" do
|
114
|
+
breadcrumb :multiple_links_with_parent
|
115
|
+
|
116
|
+
out = nil # Needs to be defined here to be set inside block
|
117
|
+
breadcrumbs do |links|
|
118
|
+
out = links.map { |link| [link.key, link.text, link.url] }
|
119
|
+
end
|
120
|
+
|
121
|
+
assert_equal [[:basic, "About", "/about"],
|
122
|
+
[:multiple_links_with_parent, "Contact", "/about/contact"],
|
123
|
+
[:multiple_links_with_parent, "Contact form", "/about/contact/form"]], out
|
99
124
|
end
|
100
125
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gretel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0.beta1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Lasse Bunk
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -45,31 +45,41 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
description: Gretel is a Ruby on Rails plugin that makes it easy yet flexible to create
|
47
47
|
breadcrumbs.
|
48
|
-
email:
|
48
|
+
email:
|
49
|
+
- lassebunk@gmail.com
|
49
50
|
executables: []
|
50
51
|
extensions: []
|
51
52
|
extra_rdoc_files: []
|
52
53
|
files:
|
54
|
+
- .gitignore
|
55
|
+
- .travis.yml
|
56
|
+
- CHANGELOG.md
|
57
|
+
- Gemfile
|
58
|
+
- Gemfile.lock
|
59
|
+
- LICENSE.txt
|
60
|
+
- README.md
|
61
|
+
- Rakefile
|
62
|
+
- gretel.gemspec
|
63
|
+
- lib/generators/gretel/USAGE
|
53
64
|
- lib/generators/gretel/gretel_generator.rb
|
54
65
|
- lib/generators/gretel/install_generator.rb
|
55
66
|
- lib/generators/gretel/templates/initializer.rb
|
56
|
-
- lib/
|
67
|
+
- lib/gretel.rb
|
57
68
|
- lib/gretel/crumb.rb
|
58
69
|
- lib/gretel/crumbs.rb
|
59
|
-
- lib/gretel/helper_methods.rb
|
60
70
|
- lib/gretel/link.rb
|
61
|
-
- lib/gretel/
|
62
|
-
- lib/gretel/
|
63
|
-
-
|
64
|
-
- MIT-LICENSE
|
65
|
-
- Rakefile
|
66
|
-
- README.md
|
71
|
+
- lib/gretel/version.rb
|
72
|
+
- lib/gretel/view_helpers.rb
|
73
|
+
- test/dummy/Rakefile
|
67
74
|
- test/dummy/app/assets/javascripts/application.js
|
68
75
|
- test/dummy/app/assets/stylesheets/application.css
|
69
76
|
- test/dummy/app/controllers/application_controller.rb
|
70
77
|
- test/dummy/app/helpers/application_helper.rb
|
78
|
+
- test/dummy/app/mailers/.gitkeep
|
79
|
+
- test/dummy/app/models/.gitkeep
|
71
80
|
- test/dummy/app/models/issue.rb
|
72
81
|
- test/dummy/app/models/project.rb
|
82
|
+
- test/dummy/config.ru
|
73
83
|
- test/dummy/config/application.rb
|
74
84
|
- test/dummy/config/boot.rb
|
75
85
|
- test/dummy/config/database.yml
|
@@ -86,36 +96,23 @@ files:
|
|
86
96
|
- test/dummy/config/initializers/wrap_parameters.rb
|
87
97
|
- test/dummy/config/locales/en.yml
|
88
98
|
- test/dummy/config/routes.rb
|
89
|
-
- test/dummy/config.ru
|
90
|
-
- test/dummy/db/development.sqlite3
|
91
99
|
- test/dummy/db/migrate/20130122163007_create_projects.rb
|
92
100
|
- test/dummy/db/migrate/20130122163051_create_issues.rb
|
93
101
|
- test/dummy/db/schema.rb
|
94
|
-
- test/dummy/
|
95
|
-
- test/dummy/log
|
96
|
-
- test/dummy/log/test.log
|
102
|
+
- test/dummy/lib/assets/.gitkeep
|
103
|
+
- test/dummy/log/.gitkeep
|
97
104
|
- test/dummy/public/404.html
|
98
105
|
- test/dummy/public/422.html
|
99
106
|
- test/dummy/public/500.html
|
100
107
|
- test/dummy/public/favicon.ico
|
101
|
-
- test/dummy/Rakefile
|
102
108
|
- test/dummy/script/rails
|
103
|
-
- test/dummy/tmp/cache/assets/CD0/C10/sprockets%2F54298310314d4114afd54d090ef4eae3
|
104
|
-
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
105
|
-
- test/dummy/tmp/cache/assets/D11/910/sprockets%2Fa4743dda75a6c1d923065da98d729f21
|
106
|
-
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
107
|
-
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
108
|
-
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
109
|
-
- test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F25f5ca97d1c1c044514dd8d2c5cb6d02
|
110
|
-
- test/dummy/tmp/cache/assets/D79/060/sprockets%2Fa2cf91ba98db7115dd35bcd7881934f8
|
111
|
-
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
112
|
-
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
113
109
|
- test/fixtures/issues.yml
|
114
110
|
- test/fixtures/projects.yml
|
115
111
|
- test/helper_methods_test.rb
|
116
112
|
- test/test_helper.rb
|
117
113
|
homepage: http://github.com/lassebunk/gretel
|
118
|
-
licenses:
|
114
|
+
licenses:
|
115
|
+
- MIT
|
119
116
|
post_install_message:
|
120
117
|
rdoc_options: []
|
121
118
|
require_paths:
|
@@ -126,25 +123,32 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
123
|
- - ! '>='
|
127
124
|
- !ruby/object:Gem::Version
|
128
125
|
version: '0'
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
hash: -511168212548034673
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
|
-
- - ! '
|
132
|
+
- - ! '>'
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 1.3.1
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 1.8.
|
137
|
+
rubygems_version: 1.8.25
|
138
138
|
signing_key:
|
139
139
|
specification_version: 3
|
140
140
|
summary: Flexible Ruby on Rails breadcrumbs plugin.
|
141
141
|
test_files:
|
142
|
+
- test/dummy/Rakefile
|
142
143
|
- test/dummy/app/assets/javascripts/application.js
|
143
144
|
- test/dummy/app/assets/stylesheets/application.css
|
144
145
|
- test/dummy/app/controllers/application_controller.rb
|
145
146
|
- test/dummy/app/helpers/application_helper.rb
|
147
|
+
- test/dummy/app/mailers/.gitkeep
|
148
|
+
- test/dummy/app/models/.gitkeep
|
146
149
|
- test/dummy/app/models/issue.rb
|
147
150
|
- test/dummy/app/models/project.rb
|
151
|
+
- test/dummy/config.ru
|
148
152
|
- test/dummy/config/application.rb
|
149
153
|
- test/dummy/config/boot.rb
|
150
154
|
- test/dummy/config/database.yml
|
@@ -161,30 +165,16 @@ test_files:
|
|
161
165
|
- test/dummy/config/initializers/wrap_parameters.rb
|
162
166
|
- test/dummy/config/locales/en.yml
|
163
167
|
- test/dummy/config/routes.rb
|
164
|
-
- test/dummy/config.ru
|
165
|
-
- test/dummy/db/development.sqlite3
|
166
168
|
- test/dummy/db/migrate/20130122163007_create_projects.rb
|
167
169
|
- test/dummy/db/migrate/20130122163051_create_issues.rb
|
168
170
|
- test/dummy/db/schema.rb
|
169
|
-
- test/dummy/
|
170
|
-
- test/dummy/log
|
171
|
-
- test/dummy/log/test.log
|
171
|
+
- test/dummy/lib/assets/.gitkeep
|
172
|
+
- test/dummy/log/.gitkeep
|
172
173
|
- test/dummy/public/404.html
|
173
174
|
- test/dummy/public/422.html
|
174
175
|
- test/dummy/public/500.html
|
175
176
|
- test/dummy/public/favicon.ico
|
176
|
-
- test/dummy/Rakefile
|
177
177
|
- test/dummy/script/rails
|
178
|
-
- test/dummy/tmp/cache/assets/CD0/C10/sprockets%2F54298310314d4114afd54d090ef4eae3
|
179
|
-
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
180
|
-
- test/dummy/tmp/cache/assets/D11/910/sprockets%2Fa4743dda75a6c1d923065da98d729f21
|
181
|
-
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
182
|
-
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
183
|
-
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
184
|
-
- test/dummy/tmp/cache/assets/D5F/7E0/sprockets%2F25f5ca97d1c1c044514dd8d2c5cb6d02
|
185
|
-
- test/dummy/tmp/cache/assets/D79/060/sprockets%2Fa2cf91ba98db7115dd35bcd7881934f8
|
186
|
-
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
187
|
-
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
188
178
|
- test/fixtures/issues.yml
|
189
179
|
- test/fixtures/projects.yml
|
190
180
|
- test/helper_methods_test.rb
|