breadcrumbs_for 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{breadcrumbs_for}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dmitry Naumov"]
@@ -75,7 +75,7 @@ module BreadcrumbsFor
75
75
  when 'Symbol' # Is a namespace. Skip it
76
76
  crumb_to_caption(crumb.last)
77
77
  when 'String' # Is an action name. Use it
78
- string_to_caption(crumb.first) << ' ' << cramb_caption(crumb.last)
78
+ string_to_caption(crumb.first) << ' ' << crumb_caption(crumb.last)
79
79
  else # Use last item only
80
80
  cramb_to_caption(crumb.last)
81
81
  end
@@ -95,11 +95,11 @@ module BreadcrumbsFor
95
95
  when 'Hash'
96
96
  crumb.delete(:crumb)
97
97
  else
98
- cramb_caption(crumb)
98
+ crumb_caption(crumb)
99
99
  end
100
100
  end
101
101
 
102
- def cramb_caption obj, method='name'
102
+ def crumb_caption obj, method='name'
103
103
  [method,'name','title'].each do |name_method|
104
104
  if obj.respond_to?(name_method)
105
105
  was_method = "#{name_method}_was"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dmitry Naumov