From 9f3713e09986113d3ac0b4e5f090aaa7cf14751d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 31 Jul 2012 17:48:46 -0500 Subject: [PATCH] Throw the Hoe on the street and go with a regular gemspec setup and allow this to be used with Rails 4+ --- Gemfile | 2 - Gemfile.lock | 89 ++++++++++++++++++++++++++++++++++++++++++ Manifest.txt | 9 ----- Rakefile | 25 +++--------- rails_autolink.gemspec | 11 ++++++ 5 files changed, 106 insertions(+), 30 deletions(-) create mode 100644 Gemfile.lock delete mode 100644 Manifest.txt create mode 100644 rails_autolink.gemspec diff --git a/Gemfile b/Gemfile index c91bf73..bb529a5 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,4 @@ source 'http://rubygems.org' gem 'rails' gem 'arel' gem 'rack' -gem 'hoe' gem 'minitest' - diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..16c10f4 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,89 @@ +GEM + remote: http://rubygems.org/ + specs: + actionmailer (3.2.7) + actionpack (= 3.2.7) + mail (~> 2.4.4) + actionpack (3.2.7) + activemodel (= 3.2.7) + activesupport (= 3.2.7) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.4) + rack (~> 1.4.0) + rack-cache (~> 1.2) + rack-test (~> 0.6.1) + sprockets (~> 2.1.3) + activemodel (3.2.7) + activesupport (= 3.2.7) + builder (~> 3.0.0) + activerecord (3.2.7) + activemodel (= 3.2.7) + activesupport (= 3.2.7) + arel (~> 3.0.2) + tzinfo (~> 0.3.29) + activeresource (3.2.7) + activemodel (= 3.2.7) + activesupport (= 3.2.7) + activesupport (3.2.7) + i18n (~> 0.6) + multi_json (~> 1.0) + arel (3.0.2) + builder (3.0.0) + erubis (2.7.0) + hike (1.2.1) + i18n (0.6.0) + journey (1.0.4) + json (1.7.4) + mail (2.4.4) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.19) + minitest (3.3.0) + multi_json (1.3.6) + polyglot (0.3.3) + rack (1.4.1) + rack-cache (1.2) + rack (>= 0.4) + rack-ssl (1.3.2) + rack + rack-test (0.6.1) + rack (>= 1.0) + rails (3.2.7) + actionmailer (= 3.2.7) + actionpack (= 3.2.7) + activerecord (= 3.2.7) + activeresource (= 3.2.7) + activesupport (= 3.2.7) + bundler (~> 1.0) + railties (= 3.2.7) + railties (3.2.7) + actionpack (= 3.2.7) + activesupport (= 3.2.7) + rack-ssl (~> 1.3.2) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (>= 0.14.6, < 2.0) + rake (0.9.2.2) + rdoc (3.12) + json (~> 1.4) + sprockets (2.1.3) + hike (~> 1.2) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + thor (0.15.4) + tilt (1.3.3) + treetop (1.4.10) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.33) + +PLATFORMS + ruby + +DEPENDENCIES + arel + minitest + rack + rails diff --git a/Manifest.txt b/Manifest.txt deleted file mode 100644 index d909ab7..0000000 --- a/Manifest.txt +++ /dev/null @@ -1,9 +0,0 @@ -.autotest -CHANGELOG.rdoc -Gemfile -Manifest.txt -README.rdoc -Rakefile -lib/rails_autolink.rb -lib/rails_autolink/helpers.rb -test/test_rails_autolink.rb diff --git a/Rakefile b/Rakefile index 406c2e3..a748d37 100644 --- a/Rakefile +++ b/Rakefile @@ -1,21 +1,8 @@ -# -*- ruby -*- +# Setup some testing +require 'rake' +require 'rake/testtask' -require 'rubygems' -require 'hoe' - -Hoe.plugins.delete :rubyforge -Hoe.plugin :minitest -Hoe.plugin :gemspec # `gem install hoe-gemspec` -Hoe.plugin :git # `gem install hoe-git` - -Hoe.spec 'rails_autolink' do - developer('Aaron Patterson', 'aaron@tenderlovemaking.com') - developer('Juanjo Bazan', 'jjbazan@gmail.com') - developer('Akira Matsuda', 'ronnie@dio.jp') - self.readme_file = 'README.rdoc' - self.history_file = 'CHANGELOG.rdoc' - self.extra_rdoc_files = FileList['*.rdoc'] - self.extra_deps << ['rails', '~> 3.1'] +Rake::TestTask.new do |t| + t.libs << 'test' + t.pattern = 'test/test_*.rb' end - -# vim: syntax=ruby diff --git a/rails_autolink.gemspec b/rails_autolink.gemspec new file mode 100644 index 0000000..9e7e10e --- /dev/null +++ b/rails_autolink.gemspec @@ -0,0 +1,11 @@ +Gem::Specification.new do |s| + s.name = 'rails_autolink' + s.version = '1.0.10' + s.authors = ['Aaron Patterson', 'Juanjo Bazan', 'Akira Matsuda'] + s.email = 'aaron@tenderlovemaking.com' + s.summary = 'This is an extraction of the `auto_link` method from rails. The `auto_link` method was removed from Rails in version Rails 3.1. This gem is meant to bridge the gap for people migrating.' + + s.add_dependency 'rails', '> 3.1' + + s.files = Dir["#{File.dirname(__FILE__)}/**/*"] +end