Skip to content

Commit

Permalink
Merge pull request #4 from nodanaonlyzuul/master
Browse files Browse the repository at this point in the history
Gemified!
  • Loading branch information
nodanaonlyzuul committed Nov 9, 2011
2 parents 985651d + db6d38c commit b01865c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.rdoc
Expand Up @@ -3,7 +3,14 @@

Generate slugs for your models

== Installation
== Install as a rails plugin or or as a gem

...then add the following to a model you'd like to slug:

class MyClass < ActiveRecord::Base
include Slugify
slugify :title
end

Throw it in vendor/plugins (with script/plugin install, braid, submodules, or whatever your preferred installation method), and add the following to a model you'd like to slug:

Expand Down
14 changes: 14 additions & 0 deletions slugify.gemspec
@@ -0,0 +1,14 @@
$spec = Gem::Specification.new do |s|
s.name = "slugify"
s.description = "Generate slugs for your ActicveRecord models"
s.version = '0.1.4'
s.summary = "A Command-Line tool for exploring your flickr account"

s.authors = ['Scott Taylor', 'Stephen Schor']
s.email = ['scott@railsnewbie.com', 'beholdthepanda@gmail.com']
s.homepage = 'https://github.com/nodanaonlyzuul/flickr_cli'

s.files = Dir['lib/*','lib/slugify/*']

s.rubyforge_project = 'nowarning'
end

0 comments on commit b01865c

Please sign in to comment.