Permalink
Browse files

Gemified plugin.

  • Loading branch information...
1 parent 42005e1 commit fecad3b6c548bfdbb9eb12d1480d1f5f70691b54 @tylerhunt committed Mar 2, 2009
Showing with 65 additions and 24 deletions.
  1. +3 −0 .gitignore
  2. +8 −0 Manifest
  3. 0 README → README.markdown
  4. +11 −21 Rakefile
  5. +38 −0 comeback.gemspec
  6. +0 −3 init.rb
  7. +5 −0 rails/init.rb
View
3 .gitignore
@@ -0,0 +1,3 @@
+.DS_Store
+doc
+pkg
View
8 Manifest
@@ -0,0 +1,8 @@
+comeback.gemspec
+lib/comeback.rb
+Manifest
+MIT-LICENSE
+rails/init.rb
+Rakefile
+README.markdown
+test/comeback_test.rb
View
0 README → README.markdown
File renamed without changes.
View
32 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
View
38 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
View
3 init.rb
@@ -1,3 +0,0 @@
-require 'comeback'
-
-ActionController::Base.send(:include, Comeback)
View
5 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.