merb-breadcrumbs 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ *.kpf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -24,6 +24,14 @@ module Merb
24
24
  end
25
25
 
26
26
  module ClassMethods
27
+
28
+ # Convenience method for laying a trail of breadcrumbs
29
+ def breadcrumb_trail(*args)
30
+ args.each do |arg|
31
+ send(:before, "#{arg}_crumb".to_sym)
32
+ end
33
+ end
34
+
27
35
  ACTION_CRUMBS = {
28
36
  :new => 'New',
29
37
  :create => 'New',
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{merb-breadcrumbs}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Glen Mailer"]
12
- s.date = %q{2010-02-01}
12
+ s.date = %q{2010-02-02}
13
13
  s.description = %q{A simple merb plugin to assist in breadcumbing}
14
14
  s.email = %q{glen@epigenesys.co.uk}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-breadcrumbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glen Mailer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-01 00:00:00 +00:00
12
+ date: 2010-02-02 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency