Permalink
Browse files

Make it into a gem

  • Loading branch information...
1 parent 68cb218 commit 99771bdaa2d86f241666ee678cd7422c96a3968f Andy Goodell committed Oct 31, 2011
Showing with 29 additions and 0 deletions.
  1. +11 −0 Manifest
  2. +2 −0 lib/sequel_timestamped.rb
  3. +16 −0 sequel_timestamped.gemspec
View
@@ -0,0 +1,11 @@
+.gitignore
+CHANGELOG
+COPYING
+lib/sequel_timestamped.rb
+Manifest
+Rakefile
+README
+sequel_timestamped.gemspec
+spec/sequel_timestamped_spec.rb
+spec/spec.opts
+spec/spec_helper.rb
@@ -1,6 +1,8 @@
module Sequel
module Plugins
module Timestamped
+ VERSION = "0.1.0"
+
# Apply the plugin to the model.
def self.apply(model, options = {})
model.send(:include, InstanceMethods)
View
@@ -0,0 +1,16 @@
+require 'lib/sequel_timestamped'
+
+Gem::Specification.new do |s|
+ s.name = "sequel_timestamped"
+ s.summary = "Automatically set :created_at and :updated_at in Sequel"
+ s.description = "If your model is :timestamped, it will automatically set the :created_at and :updated_at columns if they exist"
+ s.author = ["bricooke", 'cohuman']
+ s.email = ["brian@madebyrocket.com", 'dev@cohuman.com']
+ s.homepage = "http://github.com/cohuman/sequel_timestamped"
+ s.require_path = "lib"
+ s.version = Sequel::Plugins::Timestamped::VERSION
+ s.files = File.read("Manifest").strip.split("\n")
+ s.add_dependency 'sequel'
+end
+
+

0 comments on commit 99771bd

Please sign in to comment.