Skip to content
Browse files

Gem-ified plugin

  • Loading branch information...
1 parent ad93cc8 commit ef0f150f1055782d6541f51a3aa447cfa68565cd @ffmike committed Aug 16, 2008
Showing with 54 additions and 10 deletions.
  1. +10 −0 README
  2. +1 −10 init.rb
  3. +10 −0 rails/init.rb
  4. +33 −0 user_event_logger.gemspec
View
10 README
@@ -46,6 +46,16 @@ def send_to
redirect_to destination_url
end
+Gem installation
+================
+If you are running rails 2.1 or above you can choose between a standard plugin install and a gem install. To
+install as a gem, add this to your environment.rb file:
+
+ config.gem 'ffmike-user_event_logger', :source => 'http://gems.github.com'
+
+and then run:
+
+ rake gems:install
Copyright (c) 2008 Michael A. Gunderloy, released under the MIT license
View
11 init.rb
@@ -1,10 +1 @@
-require "view_helpers"
-require "user_event_logger"
-ActionView::Base.send :include, UserEventLogger::UserEventLoggerViewHelper
-ActionController::Base.send :include, UserEventLogger::UserEventLoggerMixin
-
-path = File.join(File.dirname(__FILE__), 'lib', 'models')
-$LOAD_PATH << path
-Dependencies.load_paths << path
-Dependencies.load_once_paths.delete(path)
-
+require File.dirname(__FILE__) + "/rails/init"
View
10 rails/init.rb
@@ -0,0 +1,10 @@
+require "view_helpers"
+require "user_event_logger"
+ActionView::Base.send :include, UserEventLogger::UserEventLoggerViewHelper
+ActionController::Base.send :include, UserEventLogger::UserEventLoggerMixin
+
+path = File.join(File.dirname(__FILE__), '..', 'lib', 'models')
+$LOAD_PATH << path
+Dependencies.load_paths << path
+Dependencies.load_once_paths.delete(path)
+
View
33 user_event_logger.gemspec
@@ -0,0 +1,33 @@
+Gem::Specification.new do |s|
+ s.name = "user_event_logger"
+ s.version = "0.4.0"
+ s.date = "2008-08-16"
+ s.summary = "Simple user-triggered event tracking for Rails"
+ s.email = "MikeG1@larkfarm.com"
+ s.homepage = "http://github.com/ffmike/user_event_logger"
+ s.description = "User Event Logger provides a simple interface for tracking user actions such as outbound clicks."
+ s.has_rdoc = false
+ s.authors = ["Mike Gunderloy"]
+ s.files = [
+ "MIT-LICENSE",
+ "README",
+ "Rakefile",
+ "generators/user_event_logger",
+ "generators/user_event_logger/templates",
+ "generators/user_event_logger/templates/migration.rb",
+ "generators/user_event_logger/USAGE",
+ "generators/user_event_logger/user_event_logger_generator.rb",
+ "init.rb",
+ "install.rb",
+ "lib/models/event.rb",
+ "lib/user_event_logger.rb",
+ "lib/view_helpers.rb",
+ "tasks/user_event_logger_tasks.rake",
+ "test/database.yml",
+ "test/schema.rb",
+ "test/test_helper.rb",
+ "test/user_event_logger_test.rb",
+ "test/view_helpers_test.rb",
+ "uninstall.rb"
+ ]
+end

0 comments on commit ef0f150

Please sign in to comment.
Something went wrong with that request. Please try again.