Permalink
Browse files

gemify!

  • Loading branch information...
1 parent 524fb87 commit 8e7dc8bf942fb812a9374533a9a4c3bdbc787f52 @grosser grosser committed Nov 18, 2009
Showing with 129 additions and 8 deletions.
  1. +2 −4 README
  2. +16 −0 Rakefile
  3. +1 −0 VERSION
  4. +1 −4 init.rb
  5. +4 −0 lib/userstamp.rb
  6. +105 −0 userstamp.gemspec
View
6 README
@@ -12,10 +12,8 @@ created, updated, or deleted by 'stampers'.
== Installation
-Installation of the plugin can be done using the built in Rails plugin script. Issue the following
-command from the root of your application:
-
- script/plugin install git://github.com/delynn/userstamp.git
+ - As Rails plugin: `script/plugin install git://github.com/delynn/userstamp.git `
+ - As gem: ` sudo gem install userstamp -s http://gemcutter.org `
Once installed you will need to restart your application for the plugin to be loaded into the Rails
environment.
View
@@ -19,4 +19,20 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README', 'CHANGELOG', 'LICENSE')
rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+begin
+ require 'jeweler'
+ project_name = 'userstamp'
+ Jeweler::Tasks.new do |gem|
+ gem.name = project_name
+ gem.summary = "This Rails plugin extends ActiveRecord::Base to add automatic updating of created_by and updated_by attributes of your models in much the same way that the ActiveRecord::Timestamp module updates created_(at/on) and updated_(at/on) attributes."
+ gem.email = "delynn@gmail.com"
+ gem.homepage = "http://github.com/delynn/#{project_name}"
+ gem.authors = ["DeLynn Berry"]
+ end
+
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
View
@@ -0,0 +1 @@
+2.0.0
View
@@ -1,4 +1 @@
-require 'stamper'
-require 'stampable'
-require 'userstamp'
-require 'migration_helper'
+require 'userstamp'
View
@@ -1,3 +1,7 @@
+require 'stamper'
+require 'stampable'
+require 'migration_helper'
+
module Ddb
module Controller
# The Userstamp module, when included into a controller, adds a before filter
View
@@ -0,0 +1,105 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{userstamp}
+ s.version = "2.0.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["DeLynn Berry"]
+ s.date = %q{2009-11-18}
+ s.email = %q{delynn@gmail.com}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README"
+ ]
+ s.files = [
+ ".gitignore",
+ "CHANGELOG",
+ "LICENSE",
+ "README",
+ "Rakefile",
+ "init.rb",
+ "lib/migration_helper.rb",
+ "lib/stampable.rb",
+ "lib/stamper.rb",
+ "lib/userstamp.rb",
+ "rdoc/classes/Ddb/Controller.html",
+ "rdoc/classes/Ddb/Controller/Userstamp.html",
+ "rdoc/classes/Ddb/Controller/Userstamp/InstanceMethods.html",
+ "rdoc/classes/Ddb/Userstamp.html",
+ "rdoc/classes/Ddb/Userstamp/MigrationHelper.html",
+ "rdoc/classes/Ddb/Userstamp/MigrationHelper/InstanceMethods.html",
+ "rdoc/classes/Ddb/Userstamp/Stampable.html",
+ "rdoc/classes/Ddb/Userstamp/Stampable/ClassMethods.html",
+ "rdoc/classes/Ddb/Userstamp/Stamper.html",
+ "rdoc/classes/Ddb/Userstamp/Stamper/ClassMethods.html",
+ "rdoc/classes/Ddb/Userstamp/Stamper/InstanceMethods.html",
+ "rdoc/created.rid",
+ "rdoc/files/CHANGELOG.html",
+ "rdoc/files/LICENSE.html",
+ "rdoc/files/README.html",
+ "rdoc/files/lib/migration_helper_rb.html",
+ "rdoc/files/lib/stampable_rb.html",
+ "rdoc/files/lib/stamper_rb.html",
+ "rdoc/files/lib/userstamp_rb.html",
+ "rdoc/fr_class_index.html",
+ "rdoc/fr_file_index.html",
+ "rdoc/fr_method_index.html",
+ "rdoc/index.html",
+ "rdoc/rdoc-style.css",
+ "test/compatibility_stamping_test.rb",
+ "test/controllers/posts_controller.rb",
+ "test/controllers/users_controller.rb",
+ "test/controllers/userstamp_controller.rb",
+ "test/database.yml",
+ "test/fixtures/comments.yml",
+ "test/fixtures/people.yml",
+ "test/fixtures/posts.yml",
+ "test/fixtures/users.yml",
+ "test/helpers/functional_test_helper.rb",
+ "test/helpers/unit_test_helper.rb",
+ "test/models/comment.rb",
+ "test/models/person.rb",
+ "test/models/ping.rb",
+ "test/models/post.rb",
+ "test/models/user.rb",
+ "test/schema.rb",
+ "test/stamping_test.rb",
+ "test/userstamp_controller_test.rb"
+ ]
+ s.homepage = %q{http://github.com/delynn/userstamp}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.5}
+ s.summary = %q{This Rails plugin extends ActiveRecord::Base to add automatic updating of created_by and updated_by attributes of your models in much the same way that the ActiveRecord::Timestamp module updates created_(at/on) and updated_(at/on) attributes.}
+ s.test_files = [
+ "test/helpers/unit_test_helper.rb",
+ "test/helpers/functional_test_helper.rb",
+ "test/schema.rb",
+ "test/userstamp_controller_test.rb",
+ "test/compatibility_stamping_test.rb",
+ "test/controllers/userstamp_controller.rb",
+ "test/controllers/posts_controller.rb",
+ "test/controllers/users_controller.rb",
+ "test/models/ping.rb",
+ "test/models/person.rb",
+ "test/models/user.rb",
+ "test/models/post.rb",
+ "test/models/comment.rb",
+ "test/stamping_test.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end
+

0 comments on commit 8e7dc8b

Please sign in to comment.