Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Gemified! #4

Merged
merged 1 commit into from over 2 years ago

1 participant

Stephen Tiberius Schor
Stephen Tiberius Schor
Collaborator

Heyo.

I added a .gemspec file so this can be installed as a gem without changing existing usage.
This is useful for people moving away from plugins in favor of bundler and gems.

-Stephen

Stephen Tiberius Schor
Collaborator

Also - the library can still be used as a rails plugin.

Stephen Tiberius Schor nodanaonlyzuul merged commit b01865c into from
Stephen Tiberius Schor nodanaonlyzuul closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Nov 09, 2011
Adding .gemspec file so this can be installed as a gem OR a plugin db6d38c
This page is out of date. Refresh to see the latest.
9  README.rdoc
Source Rendered
@@ -3,7 +3,14 @@
3 3
 
4 4
 Generate slugs for your models
5 5
 
6  
-== Installation
  6
+== Install as a rails plugin or or as a gem
  7
+
  8
+...then add the following to a model you'd like to slug:
  9
+
  10
+  class MyClass < ActiveRecord::Base
  11
+    include Slugify
  12
+    slugify :title
  13
+  end
7 14
 
8 15
 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:
9 16
 
14  slugify.gemspec
... ...
@@ -0,0 +1,14 @@
  1
+$spec = Gem::Specification.new do |s|
  2
+  s.name        = "slugify"
  3
+  s.description = "Generate slugs for your ActicveRecord models"
  4
+  s.version     = '0.1.4'
  5
+  s.summary     = "A Command-Line tool for exploring your flickr account"
  6
+
  7
+  s.authors   = ['Scott Taylor', 'Stephen Schor']
  8
+  s.email     = ['scott@railsnewbie.com', 'beholdthepanda@gmail.com']
  9
+  s.homepage  = 'https://github.com/nodanaonlyzuul/flickr_cli'
  10
+
  11
+  s.files         = Dir['lib/*','lib/slugify/*']
  12
+
  13
+  s.rubyforge_project = 'nowarning'
  14
+end
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.