Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
65 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
doc | ||
pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require File.join(File.dirname(__FILE__), '..', 'lib', 'comeback') | ||
|
||
ActionController::Base.class_eval do | ||
include Comeback | ||
end |