Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Making the plugin available as gem

  • Loading branch information...
commit d6b9f3824e5f6d59d7b553e57b9cb17938d6c37e 1 parent 25d54a3
Michael Kessler authored
2  .gitignore
... ... @@ -0,0 +1,2 @@
  1 +pkg
  2 +crumble.gemspec
12 README.md
Source Rendered
@@ -5,6 +5,16 @@ It's a tiny combination of a helper and a simple configuration class to make bre
5 5 Installation
6 6 ============
7 7
  8 +The gem is hosted on gemcutter, so if you haven’t already, add it as a gem source:
  9 +
  10 + gem sources -a http://gemcutter.org/
  11 +
  12 +Then install the Formtastic gem (recommended):
  13 +
  14 + gem install crumble
  15 +
  16 +Alternatively you can also install it as a Rails plugin:
  17 +
8 18 script/plugin install git://github.com/mattmatt/crumble.git
9 19
10 20 Requires Rails 2.3.
@@ -102,7 +112,7 @@ Then, in your views, just insert the following:
102 112 Don't forget to include the helper in the affected controllers:
103 113
104 114 class ApplicationController < ActionController::Base
105   - helper :breadcrumbs
  115 + helper :breadcrumbs
106 116 end
107 117
108 118 If your trails reference non-existing crumbs, the plugin will raise an error telling you where in your configuration the illegal reference was made.
17 Rakefile
... ... @@ -1,5 +1,22 @@
  1 +require 'rubygems'
  2 +require 'rake'
1 3 require "spec/rake/spectask"
2 4
  5 +begin
  6 + require 'jeweler'
  7 + Jeweler::Tasks.new do |gem|
  8 + gem.name = "crumble"
  9 + gem.summary = %Q{Crumble - It's like breadcrumbs for your Rails application!}
  10 + gem.description = %Q{How did these breadcrumbs in your Rails application? Oh right, with this plugin!}
  11 + gem.email = "meyer@paperplanes.de"
  12 + gem.homepage = "http://github.com/mattmatt/crumble"
  13 + gem.authors = ["Mathias Meyer"]
  14 + end
  15 + Jeweler::GemcutterTasks.new
  16 +rescue LoadError
  17 + puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
  18 +end
  19 +
3 20 desc "Run all specs"
4 21 Spec::Rake::SpecTask.new("spec") do |t|
5 22 t.spec_files = FileList["spec/*.rb"]
1  VERSION
... ... @@ -0,0 +1 @@
  1 +0.1.0
0  init.rb
No changes.
1  rails/init.rb
... ... @@ -0,0 +1 @@
  1 +require File.join(File.dirname(__FILE__), *%w[.. lib breadcrumb])

0 comments on commit d6b9f38

Please sign in to comment.
Something went wrong with that request. Please try again.