crummy 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.textile +2 -3
- data/VERSION +1 -1
- data/lib/crummy.rb +1 -3
- metadata +5 -18
- data/crummy.gemspec +0 -46
data/.gitignore
CHANGED
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
|
17
|
+
Then install the Formtastic 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>:
|
84
|
+
<code>:link => boolean</code>
|
85
85
|
|
86
86
|
h3. Examples
|
87
87
|
|
@@ -111,6 +111,5 @@ 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
|
115
114
|
|
116
115
|
*Copyright (c) 2008 Zach Inglis, released under the MIT license*
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.1.0
|
data/lib/crummy.rb
CHANGED
@@ -93,11 +93,9 @@ module Crummy
|
|
93
93
|
options[:links] = true if options[:links] == nil
|
94
94
|
case options[:format]
|
95
95
|
when :html
|
96
|
-
|
96
|
+
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
|
101
99
|
when :xml
|
102
100
|
crumbs.collect do |crumb|
|
103
101
|
crumb_to_xml crumb, options[:links], options[:seperator]
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crummy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 0.0.0
|
4
|
+
version: 0.1.0
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Zach Inglis
|
@@ -15,7 +9,7 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date:
|
12
|
+
date: 2009-11-18 00:00:00 +01:00
|
19
13
|
default_executable:
|
20
14
|
dependencies: []
|
21
15
|
|
@@ -33,7 +27,6 @@ files:
|
|
33
27
|
- README.textile
|
34
28
|
- Rakefile
|
35
29
|
- VERSION
|
36
|
-
- crummy.gemspec
|
37
30
|
- init.rb
|
38
31
|
- lib/crummy.rb
|
39
32
|
- rails/init.rb
|
@@ -48,27 +41,21 @@ rdoc_options:
|
|
48
41
|
require_paths:
|
49
42
|
- lib
|
50
43
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
44
|
requirements:
|
53
45
|
- - ">="
|
54
46
|
- !ruby/object:Gem::Version
|
55
|
-
hash: 3
|
56
|
-
segments:
|
57
|
-
- 0
|
58
47
|
version: "0"
|
48
|
+
version:
|
59
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
50
|
requirements:
|
62
51
|
- - ">="
|
63
52
|
- !ruby/object:Gem::Version
|
64
|
-
hash: 3
|
65
|
-
segments:
|
66
|
-
- 0
|
67
53
|
version: "0"
|
54
|
+
version:
|
68
55
|
requirements: []
|
69
56
|
|
70
57
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.3.
|
58
|
+
rubygems_version: 1.3.5
|
72
59
|
signing_key:
|
73
60
|
specification_version: 3
|
74
61
|
summary: Tasty breadcrumbs!
|
data/crummy.gemspec
DELETED
@@ -1,46 +0,0 @@
|
|
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 = "0.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
|
-
|