crummy 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,2 @@
1
1
  rdoc
2
2
  pkg
3
- crummy.gemspec
data/README.textile CHANGED
@@ -14,7 +14,7 @@ The gem is hosted on gemcutter, so if you haven’t already, add it as a gem sou
14
14
  </code>
15
15
  </pre>
16
16
 
17
- Then install the Formtastic gem:
17
+ Then install the Crummy gem:
18
18
 
19
19
  <pre>
20
20
  <code>
@@ -81,7 +81,7 @@ The seperator text. It does not assume you want spaces on either side so you mus
81
81
 
82
82
  Render links in the output. Defaults to +true+
83
83
 
84
- <code>:link => boolean</code>
84
+ <code>:links => boolean</code>
85
85
 
86
86
  h3. Examples
87
87
 
@@ -111,5 +111,6 @@ h2. Credits
111
111
  * "Les Hill":http://blog.leshill.org/
112
112
  * "Sandro Turriate":http://turriate.com/
113
113
  * "Przemysław Kowalczyk":http://szeryf.wordpress.com/2008/06/13/easy-and-flexible-breadcrumbs-for-rails/ - feature ideas
114
+ * "Sharad Jain":http://github.com/sjain
114
115
 
115
116
  *Copyright (c) 2008 Zach Inglis, released under the MIT license*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 1.0.0
data/crummy.gemspec ADDED
@@ -0,0 +1,46 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{crummy}
8
+ s.version = "1.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Zach Inglis"]
12
+ s.date = %q{2010-09-10}
13
+ s.description = %q{Crummy is a simple and tasty way to add breadcrumbs to your Rails applications.}
14
+ s.email = %q{zach@lt3media.com}
15
+ s.extra_rdoc_files = [
16
+ "README.textile"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "MIT-LICENSE",
21
+ "README.textile",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "crummy.gemspec",
25
+ "init.rb",
26
+ "lib/crummy.rb",
27
+ "rails/init.rb",
28
+ "tasks/crummy_tasks.rake"
29
+ ]
30
+ s.homepage = %q{http://github.com/zachinglis/crummy}
31
+ s.rdoc_options = ["--charset=UTF-8"]
32
+ s.require_paths = ["lib"]
33
+ s.rubygems_version = %q{1.3.7}
34
+ s.summary = %q{Tasty breadcrumbs!}
35
+
36
+ if s.respond_to? :specification_version then
37
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
+ else
42
+ end
43
+ else
44
+ end
45
+ end
46
+
data/lib/crummy.rb CHANGED
@@ -93,9 +93,11 @@ module Crummy
93
93
  options[:links] = true if options[:links] == nil
94
94
  case options[:format]
95
95
  when :html
96
- crumbs.collect do |crumb|
96
+ crumb_string = crumbs.collect do |crumb|
97
97
  crumb_to_html crumb, options[:links]
98
98
  end * options[:seperator]
99
+ crumb_string = crumb_string.html_safe if crumb_string.respond_to?(:html_safe)
100
+ crumb_string
99
101
  when :xml
100
102
  crumbs.collect do |crumb|
101
103
  crumb_to_xml crumb, options[:links], options[:seperator]
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crummy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Zach Inglis
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-11-18 00:00:00 +01:00
18
+ date: 2010-09-10 00:00:00 +01:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -27,6 +33,7 @@ files:
27
33
  - README.textile
28
34
  - Rakefile
29
35
  - VERSION
36
+ - crummy.gemspec
30
37
  - init.rb
31
38
  - lib/crummy.rb
32
39
  - rails/init.rb
@@ -41,21 +48,27 @@ rdoc_options:
41
48
  require_paths:
42
49
  - lib
43
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
44
52
  requirements:
45
53
  - - ">="
46
54
  - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
47
58
  version: "0"
48
- version:
49
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
+ none: false
50
61
  requirements:
51
62
  - - ">="
52
63
  - !ruby/object:Gem::Version
64
+ hash: 3
65
+ segments:
66
+ - 0
53
67
  version: "0"
54
- version:
55
68
  requirements: []
56
69
 
57
70
  rubyforge_project:
58
- rubygems_version: 1.3.5
71
+ rubygems_version: 1.3.7
59
72
  signing_key:
60
73
  specification_version: 3
61
74
  summary: Tasty breadcrumbs!