Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making the plugin available as gem

  • Loading branch information...
commit d6b9f3824e5f6d59d7b553e57b9cb17938d6c37e 1 parent 25d54a3
Michael Kessler authored
View
2  .gitignore
@@ -0,0 +1,2 @@
+pkg
+crumble.gemspec
View
12 README.md
@@ -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
17 Rakefile
@@ -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
1  VERSION
@@ -0,0 +1 @@
+0.1.0
View
0  init.rb
No changes.
View
1  rails/init.rb
@@ -0,0 +1 @@
+require File.join(File.dirname(__FILE__), *%w[.. lib breadcrumb])
Please sign in to comment.
Something went wrong with that request. Please try again.