crumby 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -61,7 +61,7 @@ You can use scopes to have more than one breadcrumb
61
61
 
62
62
  == History
63
63
 
64
- * 0.1 first release
64
+ * 1.1 first release
65
65
 
66
66
  == Roadmap
67
67
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/crumby.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "crumby"
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marco Scholl"]
data/lib/crumby/trail.rb CHANGED
@@ -111,9 +111,13 @@ module Crumby
111
111
  title_entries = entries
112
112
  title_entries = title_entries[1..-1] if options[:skip_first]
113
113
 
114
- title = title_entries.reverse.collect{ |e| e[:label] }
115
- title += [suffix] if suffix.present?
116
- title.join(options[:divider])
114
+ if not title_entries.nil? and title_entries.count > 0
115
+ title = title_entries.reverse.collect{ |e| e[:label] }
116
+ title += [suffix] if suffix.present?
117
+ title.join(options[:divider])
118
+ else
119
+ suffix.to_s
120
+ end
117
121
  end
118
122
 
119
123
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crumby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 870723315963817778
156
+ hash: -2895121973989839435
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  none: false
159
159
  requirements: