crummy 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.travis.yml +4 -4
- data/Appraisals +9 -0
- data/CHANGELOG +4 -0
- data/README.md +12 -1
- data/Rakefile +1 -0
- data/crummy.gemspec +1 -0
- data/gemfiles/rails3_2.gemfile +8 -0
- data/gemfiles/rails4_0.gemfile +8 -0
- data/lib/crummy.rb +2 -0
- data/lib/crummy/action_controller.rb +4 -4
- data/lib/crummy/action_view.rb +2 -2
- data/lib/crummy/standard_renderer.rb +20 -13
- data/lib/crummy/version.rb +1 -1
- data/test/standard_renderer_test.rb +51 -9
- metadata +27 -13
- data/gemfiles/rails3_2/Gemfile +0 -6
- data/gemfiles/rails4_0/Gemfile +0 -6
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,11 +3,11 @@ rvm:
|
|
3
3
|
- 1.9.3
|
4
4
|
- 2.0.0
|
5
5
|
gemfile:
|
6
|
-
- gemfiles/rails3_2
|
7
|
-
- gemfiles/rails4_0
|
6
|
+
- gemfiles/rails3_2.gemfile
|
7
|
+
- gemfiles/rails4_0.gemfile
|
8
8
|
matrix:
|
9
9
|
allow_failures:
|
10
10
|
- rvm: 1.9.3
|
11
|
-
gemfile: gemfiles/rails4_0
|
11
|
+
gemfile: gemfiles/rails4_0.gemfile
|
12
12
|
- rvm: 2.0.0
|
13
|
-
gemfile: gemfiles/rails4_0
|
13
|
+
gemfile: gemfiles/rails4_0.gemfile
|
data/Appraisals
ADDED
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Crummy is a simple and tasty way to add breadcrumbs to your Rails applications.
|
|
11
11
|
Simply add the dependency to your Gemfile:
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
gem "crummy", "~> 1.7.
|
14
|
+
gem "crummy", "~> 1.7.2"
|
15
15
|
```
|
16
16
|
|
17
17
|
# Example
|
@@ -49,6 +49,15 @@ Then in your view:
|
|
49
49
|
<%= render_crumbs %>
|
50
50
|
```
|
51
51
|
|
52
|
+
## Html options for breadcrumb link
|
53
|
+
|
54
|
+
You can set the html options with *link_html_options*.
|
55
|
+
These are added to the *a* tag.
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
add_crumb "Home", '/', link_html_options: {title: "my link title"}
|
59
|
+
```
|
60
|
+
|
52
61
|
## Options for render\_crumbs
|
53
62
|
|
54
63
|
render\_crumbs renders the list of crumbs as either html or xml
|
@@ -144,6 +153,8 @@ Possible parameters for configuration are:
|
|
144
153
|
:ul_class
|
145
154
|
:li_class
|
146
155
|
:microdata
|
156
|
+
:last_crumb_linked
|
157
|
+
:truncate
|
147
158
|
```
|
148
159
|
|
149
160
|
See `lib/crummy.rb` for a list of these parameters and their defaults.
|
data/Rakefile
CHANGED
data/crummy.gemspec
CHANGED
data/lib/crummy.rb
CHANGED
@@ -22,6 +22,7 @@ module Crummy
|
|
22
22
|
attr_accessor :li_class
|
23
23
|
attr_accessor :microdata
|
24
24
|
attr_accessor :last_crumb_linked
|
25
|
+
attr_accessor :truncate
|
25
26
|
|
26
27
|
def initialize
|
27
28
|
@format = :html
|
@@ -37,6 +38,7 @@ module Crummy
|
|
37
38
|
@li_class = ''
|
38
39
|
@microdata = false
|
39
40
|
@last_crumb_linked = true
|
41
|
+
@truncate = nil
|
40
42
|
end
|
41
43
|
|
42
44
|
def active_li_class=(class_name)
|
@@ -33,9 +33,9 @@ module Crummy
|
|
33
33
|
|
34
34
|
_record = instance.instance_variable_get("@#{name}") unless name.kind_of?(String)
|
35
35
|
if _record and _record.respond_to? :to_param
|
36
|
-
instance.add_crumb(_record.to_s, url || instance.url_for(_record))
|
36
|
+
instance.add_crumb(_record.to_s, url || instance.url_for(_record), options)
|
37
37
|
else
|
38
|
-
instance.add_crumb(name, url)
|
38
|
+
instance.add_crumb(name, url, options)
|
39
39
|
end
|
40
40
|
|
41
41
|
# FIXME: url = instance.url_for(name) if name.respond_to?("to_param") && url.nil?
|
@@ -56,8 +56,8 @@ module Crummy
|
|
56
56
|
# add_crumb("Home", "/")
|
57
57
|
# add_crumb("Business") { |instance| instance.business_path }
|
58
58
|
#
|
59
|
-
def add_crumb(name, url=nil)
|
60
|
-
crumbs.push [name, url]
|
59
|
+
def add_crumb(name, url=nil, options={})
|
60
|
+
crumbs.push [name, url, options]
|
61
61
|
end
|
62
62
|
|
63
63
|
def clear_crumbs
|
data/lib/crummy/action_view.rb
CHANGED
@@ -36,12 +36,13 @@ module Crummy
|
|
36
36
|
options[:first_class] ||= Crummy.configuration.first_class
|
37
37
|
options[:last_class] ||= Crummy.configuration.last_class
|
38
38
|
options[:microdata] ||= Crummy.configuration.microdata
|
39
|
+
options[:truncate] ||= Crummy.configuration.truncate if options[:truncate]
|
39
40
|
options[:last_crumb_linked] = Crummy.configuration.last_crumb_linked if options[:last_crumb_linked].nil?
|
40
41
|
|
41
42
|
case options[:format]
|
42
43
|
when :html
|
43
44
|
crumb_string = crumbs.collect do |crumb|
|
44
|
-
crumb_to_html(crumb, options[:links], options[:first_class], options[:last_class], (crumb == crumbs.first), (crumb == crumbs.last), options[:microdata], options[:last_crumb_linked])
|
45
|
+
crumb_to_html(crumb, options[:links], options[:first_class], options[:last_class], (crumb == crumbs.first), (crumb == crumbs.last), options[:microdata], options[:last_crumb_linked], options[:truncate])
|
45
46
|
end.reduce { |memo, obj| memo << options[:separator] << obj }
|
46
47
|
crumb_string
|
47
48
|
when :html_list
|
@@ -50,7 +51,7 @@ module Crummy
|
|
50
51
|
options[:ul_class] ||= Crummy.configuration.ul_class
|
51
52
|
options[:ul_id] ||= Crummy.configuration.ul_id
|
52
53
|
crumb_string = crumbs.collect do |crumb|
|
53
|
-
crumb_to_html_list(crumb, options[:links], options[:li_class], options[:first_class], options[:last_class], (crumb == crumbs.first), (crumb == crumbs.last), options[:microdata], options[:last_crumb_linked])
|
54
|
+
crumb_to_html_list(crumb, options[:links], options[:li_class], options[:first_class], options[:last_class], (crumb == crumbs.first), (crumb == crumbs.last), options[:microdata], options[:last_crumb_linked], options[:truncate])
|
54
55
|
end.reduce { |memo, obj| memo << options[:separator] << obj }
|
55
56
|
crumb_string = content_tag(:ul, crumb_string, :class => options[:ul_class], :id => options[:ul_id])
|
56
57
|
crumb_string
|
@@ -65,25 +66,29 @@ module Crummy
|
|
65
66
|
|
66
67
|
private
|
67
68
|
|
68
|
-
def crumb_to_html(crumb, links, first_class, last_class, is_first, is_last, with_microdata, last_crumb_linked)
|
69
|
+
def crumb_to_html(crumb, links, first_class, last_class, is_first, is_last, with_microdata, last_crumb_linked, truncate)
|
69
70
|
html_classes = []
|
70
71
|
html_classes << first_class if is_first
|
71
72
|
html_classes << last_class if is_last
|
72
|
-
name, url = crumb
|
73
|
+
name, url, options = crumb
|
74
|
+
options = {} unless options.is_a?(Hash)
|
73
75
|
can_link = url && links && (!is_last || last_crumb_linked)
|
74
|
-
|
76
|
+
link_html_options = options[:link_html_options] || {}
|
77
|
+
link_html_options[:class] = html_classes
|
75
78
|
if with_microdata
|
76
|
-
item_title = content_tag(:span, name, :itemprop => "title")
|
79
|
+
item_title = content_tag(:span, (truncate.present? ? name.truncate(truncate) : name), :itemprop => "title")
|
77
80
|
html_options = {:itemscope => true, :itemtype => data_definition_url("Breadcrumb")}
|
78
|
-
|
81
|
+
link_html_options[:itemprop] = "url"
|
82
|
+
html_content = can_link ? link_to(item_title, url, link_html_options) : item_title
|
79
83
|
content_tag(:div, html_content, html_options)
|
80
84
|
else
|
81
|
-
can_link ? link_to(name, url, :
|
85
|
+
can_link ? link_to((truncate.present? ? name.truncate(truncate) : name), url, link_html_options) : (truncate.present? ? name.truncate(truncate) : name)
|
82
86
|
end
|
83
87
|
end
|
84
88
|
|
85
|
-
def crumb_to_html_list(crumb, links, li_class, first_class, last_class, is_first, is_last, with_microdata, last_crumb_linked)
|
86
|
-
name, url = crumb
|
89
|
+
def crumb_to_html_list(crumb, links, li_class, first_class, last_class, is_first, is_last, with_microdata, last_crumb_linked, truncate)
|
90
|
+
name, url, options = crumb
|
91
|
+
options = {} unless options.is_a?(Hash)
|
87
92
|
can_link = url && links && (!is_last || last_crumb_linked)
|
88
93
|
html_classes = []
|
89
94
|
html_classes << first_class if is_first
|
@@ -93,10 +98,12 @@ module Crummy
|
|
93
98
|
if with_microdata
|
94
99
|
html_options[:itemscope] = true
|
95
100
|
html_options[:itemtype] = data_definition_url("Breadcrumb")
|
96
|
-
item_title = content_tag(:span, name, :itemprop => "title")
|
97
|
-
|
101
|
+
item_title = content_tag(:span, (truncate.present? ? name.truncate(truncate) : name), :itemprop => "title")
|
102
|
+
link_html_options = options[:link_html_options] || {}
|
103
|
+
link_html_options[:itemprop] = "url"
|
104
|
+
html_content = can_link ? link_to(item_title, url, link_html_options) : item_title
|
98
105
|
else
|
99
|
-
html_content = can_link ? link_to(name, url) : content_tag(:span, name)
|
106
|
+
html_content = can_link ? link_to((truncate.present? ? name.truncate(truncate) : name), url, options[:link_html_options]) : content_tag(:span, (truncate.present? ? name.truncate(truncate) : name))
|
100
107
|
end
|
101
108
|
content_tag(:li, html_content, html_options)
|
102
109
|
end
|
data/lib/crummy/version.rb
CHANGED
@@ -5,22 +5,24 @@ require 'test/unit'
|
|
5
5
|
|
6
6
|
require 'action_controller'
|
7
7
|
require 'active_support/core_ext/string/output_safety'
|
8
|
+
require 'action_dispatch/testing/assertions'
|
8
9
|
require 'crummy'
|
9
10
|
require 'crummy/standard_renderer'
|
10
11
|
|
11
12
|
class StandardRendererTest < Test::Unit::TestCase
|
13
|
+
include ActionDispatch::Assertions::DomAssertions
|
12
14
|
include Crummy
|
13
15
|
|
14
16
|
def test_classes
|
15
17
|
renderer = StandardRenderer.new
|
16
|
-
|
18
|
+
assert_dom_equal('<a href="url" class="first last">name</a>',
|
17
19
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html))
|
18
20
|
assert_equal('<ul class="" id=""><li class="first last"><a href="url">name</a></li></ul>',
|
19
21
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html_list))
|
20
22
|
assert_equal('<crumb href="url">name</crumb>',
|
21
23
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :xml))
|
22
24
|
|
23
|
-
|
25
|
+
assert_dom_equal('<a href="url1" class="first">name1</a> » <a href="url2" class="last">name2</a>',
|
24
26
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2']], :first_class => 'first', :last_class => 'last', :format => :html))
|
25
27
|
assert_equal('<ul class="" id=""><li class="first li_class"><a href="url1">name1</a></li><li class="li_class"><a href="url2">name2</a></li><li class="last li_class"><a href="url3">name3</a></li></ul>',
|
26
28
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2'], ['name3', 'url3']], :li_class => "li_class", :first_class => 'first', :last_class => 'last', :format => :html_list))
|
@@ -29,7 +31,7 @@ class StandardRendererTest < Test::Unit::TestCase
|
|
29
31
|
assert_equal('<crumb href="url1">name1</crumb><crumb href="url2">name2</crumb>',
|
30
32
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2']], :first_class => 'first', :last_class => 'last', :format => :xml))
|
31
33
|
|
32
|
-
|
34
|
+
assert_dom_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" class="first last" itemprop="url"><span itemprop="title">name</span></a></div>',
|
33
35
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html, :microdata => true))
|
34
36
|
assert_equal('<ul class="" id=""><li class="first last" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" itemprop="url"><span itemprop="title">name</span></a></li></ul>',
|
35
37
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html_list, :microdata => true))
|
@@ -40,13 +42,13 @@ class StandardRendererTest < Test::Unit::TestCase
|
|
40
42
|
def test_classes_last_crumb_not_linked
|
41
43
|
renderer = StandardRenderer.new
|
42
44
|
assert_equal('name',
|
43
|
-
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
45
|
+
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
44
46
|
assert_equal('<ul class="" id=""><li class="first last"><span>name</span></li></ul>',
|
45
47
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html_list, :last_crumb_linked => false))
|
46
48
|
assert_equal('<crumb href="url">name</crumb>',
|
47
49
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :xml, :last_crumb_linked => false))
|
48
50
|
|
49
|
-
|
51
|
+
assert_dom_equal('<a href="url1" class="first">name1</a> » name2',
|
50
52
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2']], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
51
53
|
assert_equal('<ul class="" id=""><li class="first li_class"><a href="url1">name1</a></li><li class="li_class"><a href="url2">name2</a></li><li class="last li_class"><span>name3</span></li></ul>',
|
52
54
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2'], ['name3', 'url3']], :li_class => "li_class", :first_class => 'first', :last_class => 'last', :format => :html_list, :last_crumb_linked => false))
|
@@ -63,6 +65,44 @@ class StandardRendererTest < Test::Unit::TestCase
|
|
63
65
|
renderer.render_crumbs([['name', 'url']], :format => :html_list, :ul_id => "crumbid", :ul_class => "crumbclass", :li_class => "liclass", :last_crumb_linked => false))
|
64
66
|
end
|
65
67
|
|
68
|
+
def test_link_html_options
|
69
|
+
renderer = StandardRenderer.new
|
70
|
+
Crummy.configure do |config|
|
71
|
+
config.microdata = false
|
72
|
+
end
|
73
|
+
|
74
|
+
assert_equal('<a href="url" class="first last" title="link title">name</a>',
|
75
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html))
|
76
|
+
|
77
|
+
assert_equal('name',
|
78
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
79
|
+
|
80
|
+
assert_equal('<ul class="" id=""><li class="first last"><a href="url" title="link title">name</a></li></ul>',
|
81
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html_list))
|
82
|
+
|
83
|
+
assert_equal('<ul class="" id=""><li class="first last"><span>name</span></li></ul>',
|
84
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html_list, :last_crumb_linked => false))
|
85
|
+
end
|
86
|
+
|
87
|
+
def test_link_html_options_with_microdata
|
88
|
+
renderer = StandardRenderer.new
|
89
|
+
Crummy.configure do |config|
|
90
|
+
config.microdata = true
|
91
|
+
end
|
92
|
+
|
93
|
+
assert_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" class="first last" itemprop="url" title="link title"><span itemprop="title">name</span></a></div>',
|
94
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html))
|
95
|
+
|
96
|
+
assert_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">name</span></div>',
|
97
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
98
|
+
|
99
|
+
assert_equal('<ul class="" id=""><li class="first last" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" itemprop="url" title="link title"><span itemprop="title">name</span></a></li></ul>',
|
100
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html_list))
|
101
|
+
|
102
|
+
assert_equal('<ul class="" id=""><li class="first last" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">name</span></li></ul>',
|
103
|
+
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html_list, :last_crumb_linked => false))
|
104
|
+
end
|
105
|
+
|
66
106
|
def test_configuration
|
67
107
|
renderer = StandardRenderer.new
|
68
108
|
# check defaults
|
@@ -80,10 +120,10 @@ class StandardRendererTest < Test::Unit::TestCase
|
|
80
120
|
config.html_separator = " / "
|
81
121
|
end
|
82
122
|
# using configured separator
|
83
|
-
|
123
|
+
assert_dom_equal('<a href="url1" class="">name1</a> / <a href="url2" class="">name2</a>',
|
84
124
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2']]))
|
85
125
|
# overriding configured separator
|
86
|
-
|
126
|
+
assert_dom_equal('<a href="url1" class="">name1</a> | <a href="url2" class="">name2</a>',
|
87
127
|
renderer.render_crumbs([['name1', 'url1'], ['name2', 'url2']], :separator => " | "))
|
88
128
|
end
|
89
129
|
|
@@ -93,9 +133,11 @@ class StandardRendererTest < Test::Unit::TestCase
|
|
93
133
|
config.microdata = true
|
94
134
|
end
|
95
135
|
# using configured microdata setting
|
96
|
-
|
136
|
+
assert_dom_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" class="first last" itemprop="url"><span itemprop="title">name</span></a></div>',
|
97
137
|
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html))
|
98
138
|
# last crumb not linked
|
99
139
|
assert_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">name</span></div>',
|
100
|
-
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
140
|
+
renderer.render_crumbs([['name', 'url']], :first_class => 'first', :last_class => 'last', :format => :html, :last_crumb_linked => false))
|
141
|
+
end
|
142
|
+
|
101
143
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crummy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &70215967636920 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70215967636920
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bundler
|
28
|
-
requirement: &
|
28
|
+
requirement: &70215967634820 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '1.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70215967634820
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: activesupport
|
39
|
-
requirement: &
|
39
|
+
requirement: &70215967634140 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70215967634140
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: actionpack
|
50
|
-
requirement: &
|
50
|
+
requirement: &70215967633040 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,7 +55,18 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70215967633040
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: appraisal
|
61
|
+
requirement: &70215967647760 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *70215967647760
|
59
70
|
description: Crummy is a simple and tasty way to add breadcrumbs to your Rails applications.
|
60
71
|
email: zach+crummy@londonmade.co.uk
|
61
72
|
executables: []
|
@@ -66,6 +77,7 @@ files:
|
|
66
77
|
- .gitignore
|
67
78
|
- .rvmrc
|
68
79
|
- .travis.yml
|
80
|
+
- Appraisals
|
69
81
|
- CHANGELOG
|
70
82
|
- Gemfile
|
71
83
|
- MIT-LICENSE
|
@@ -136,8 +148,8 @@ files:
|
|
136
148
|
- example/spec/spec_helper.rb
|
137
149
|
- example/vendor/assets/stylesheets/.gitkeep
|
138
150
|
- example/vendor/plugins/.gitkeep
|
139
|
-
- gemfiles/rails3_2
|
140
|
-
- gemfiles/rails4_0
|
151
|
+
- gemfiles/rails3_2.gemfile
|
152
|
+
- gemfiles/rails4_0.gemfile
|
141
153
|
- init.rb
|
142
154
|
- lib/crummy.rb
|
143
155
|
- lib/crummy/action_controller.rb
|
@@ -158,6 +170,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
170
|
- - ! '>='
|
159
171
|
- !ruby/object:Gem::Version
|
160
172
|
version: '0'
|
173
|
+
segments:
|
174
|
+
- 0
|
175
|
+
hash: -2479994297472692565
|
161
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
177
|
none: false
|
163
178
|
requirements:
|
@@ -172,4 +187,3 @@ specification_version: 3
|
|
172
187
|
summary: Tasty breadcrumbs!
|
173
188
|
test_files:
|
174
189
|
- test/standard_renderer_test.rb
|
175
|
-
has_rdoc:
|
data/gemfiles/rails3_2/Gemfile
DELETED