Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding .gemspec file so this can be installed as a gem OR a plugin

  • Loading branch information...
commit db6d38cd369e61ac19e1e69352039dba65aeaea0 1 parent 985651d
nodanaonlyzuul authored
Showing with 22 additions and 1 deletion.
  1. +8 −1 README.rdoc
  2. +14 −0 slugify.gemspec
View
9 README.rdoc
@@ -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:
View
14 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
Please sign in to comment.
Something went wrong with that request. Please try again.