Permalink
Browse files

Making the plugin available as gem

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

0 comments on commit d6b9f38

Please sign in to comment.