Navigation Menu

Skip to content

Commit

Permalink
Gemified plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhunt committed Mar 2, 2009
1 parent 42005e1 commit fecad3b
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
.DS_Store
doc
pkg
8 changes: 8 additions & 0 deletions Manifest
@@ -0,0 +1,8 @@
comeback.gemspec
lib/comeback.rb
Manifest
MIT-LICENSE
rails/init.rb
Rakefile
README.markdown
test/comeback_test.rb
File renamed without changes.
32 changes: 11 additions & 21 deletions Rakefile
@@ -1,22 +1,12 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the comeback plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end

desc 'Generate documentation for the comeback plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Comeback'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
require 'rubygems'
require 'echoe'

Echoe.new 'comeback' do |p|
p.version = "0.0.1"
p.author = "Tyler Hunt"
p.email = "tyler@tylerhunt.com"
p.summary = "Provides a mechanism for storing and accessing return URLs."
p.url = "http://github.com/tylerhunt/comeback"
p.dependencies = %w(actionpack)
p.development_dependencies = %w(echoe)
end
38 changes: 38 additions & 0 deletions comeback.gemspec
@@ -0,0 +1,38 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{comeback}
s.version = "0.0.1"

s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Tyler Hunt"]
s.date = %q{2009-03-02}
s.description = %q{Provides a mechanism for storing and accessing return URLs.}
s.email = %q{tyler@tylerhunt.com}
s.extra_rdoc_files = ["lib/comeback.rb", "README.markdown"]
s.files = ["comeback.gemspec", "lib/comeback.rb", "Manifest", "MIT-LICENSE", "rails/init.rb", "Rakefile", "README.markdown", "test/comeback_test.rb"]
s.has_rdoc = true
s.homepage = %q{http://github.com/tylerhunt/comeback}
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Comeback", "--main", "README.markdown"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{comeback}
s.rubygems_version = %q{1.3.1}
s.summary = %q{Provides a mechanism for storing and accessing return URLs.}
s.test_files = ["test/comeback_test.rb"]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<actionpack>, [">= 0"])
s.add_development_dependency(%q<echoe>, [">= 0"])
else
s.add_dependency(%q<actionpack>, [">= 0"])
s.add_dependency(%q<echoe>, [">= 0"])
end
else
s.add_dependency(%q<actionpack>, [">= 0"])
s.add_dependency(%q<echoe>, [">= 0"])
end
end
3 changes: 0 additions & 3 deletions init.rb

This file was deleted.

5 changes: 5 additions & 0 deletions rails/init.rb
@@ -0,0 +1,5 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'comeback')

ActionController::Base.class_eval do
include Comeback
end

0 comments on commit fecad3b

Please sign in to comment.